/* ===== CSS Reset & Variables ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --indigo: #6366f1;
  --indigo-light: #818cf8;
  --rose: #fb7185;
  --rose-light: #fda4af;
  --bg-dark: #0a0a0f;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --gradient-brand: linear-gradient(135deg, #6366f1, #a855f7, #fb7185);
  --gradient-subtle: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.08));
  --font-sans: 'Inter', 'Noto Sans KR', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(99,102,241,0.3); }
  50% { box-shadow: 0 0 40px rgba(99,102,241,0.5), 0 0 60px rgba(168,85,247,0.2); }
}
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes rotate-glow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Navigation ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 15, 0.7);
  border-bottom: 1px solid var(--border-glass);
  transition: all 0.3s ease;
}
nav.scrolled {
  padding: 10px 40px;
  background: rgba(10, 10, 15, 0.92);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
}
.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-logo .logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 24px;
  background: var(--gradient-brand);
  background-size: 200% 200%;
  border: none;
  border-radius: 50px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: var(--gradient-brand);
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
  border: none;
  border-radius: 14px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.4);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

/* ===== Hero Section (Index) ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-gradient {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, rgba(168,85,247,0.06) 40%, transparent 70%);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
.hero-bg-orb1 {
  position: absolute;
  top: 20%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(251,113,133,0.08), transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite 1s;
}
.hero-bg-orb2 {
  position: absolute;
  bottom: 15%;
  right: 8%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(99,102,241,0.1), transparent 70%);
  border-radius: 50%;
  animation: float 7s ease-in-out infinite 2s;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
  box-shadow: 0 0 6px #34d399;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.hero h1 .gradient-text {
  background: var(--gradient-brand);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}
.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.8;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Hero Profile Section ===== */
.hero-profile {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}

.hero-profile-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.profile-photo-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 32px;
}
.profile-photo-glow {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--gradient-brand);
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}
.profile-photo {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--bg-dark);
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-profile h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 8px;
}
.hero-profile .title-role {
  font-size: 18px;
  font-weight: 500;
  color: var(--indigo-light);
  margin-bottom: 24px;
}
.hero-profile .intro-text {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-contact-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}
.contact-btn:hover {
  color: var(--text-primary);
  border-color: rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.1);
  transform: translateY(-2px);
}

/* ===== Section Common ===== */
section {
  padding: 120px 40px;
  position: relative;
}
.section-container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--indigo-light);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gradient-brand);
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
  line-height: 1.2;
}
.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 64px;
}
.section-header-center {
  text-align: center;
}
.section-header-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* ===== About Section ===== */
#about {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(99,102,241,0.03) 50%, var(--bg-dark) 100%);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--rose-light);
}
.about-text p {
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 24px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ===== Stats Section (Profile) ===== */
#stats {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(99,102,241,0.03) 50%, var(--bg-dark) 100%);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  padding: 32px 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99,102,241,0.3);
}
.stat-number {
  font-size: 40px;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  line-height: 1.2;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== Vibe Section ===== */
#vibe { overflow: hidden; }
.vibe-header { text-align: center; }
.vibe-header .section-desc { margin-left: auto; margin-right: auto; }

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.4s;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99,102,241,0.2);
  background: rgba(255,255,255,0.06);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--gradient-subtle);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ===== Tech Stack Section ===== */
#tech {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(168,85,247,0.03) 50%, var(--bg-dark) 100%);
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.tech-card {
  padding: 32px 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  text-align: center;
  transition: all 0.4s;
  backdrop-filter: blur(10px);
}
.tech-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168,85,247,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.tech-card .tech-emoji {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}
.tech-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.tech-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== AIO Section ===== */
#aio { overflow: hidden; }
.aio-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.aio-visual {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  backdrop-filter: blur(10px);
}
.aio-visual::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: var(--gradient-brand);
  opacity: 0.1;
  z-index: -1;
}
.aio-flow-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.3s;
}
.aio-flow-step:hover {
  border-color: var(--border-glass);
  background: rgba(255,255,255,0.06);
}
.aio-flow-step:last-child { margin-bottom: 0; }
.aio-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--gradient-brand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
}
.aio-step-text h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.aio-step-text p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.aio-text-area h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--rose-light);
}
.aio-text-area p {
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 20px;
}
.aio-text-area ul {
  list-style: none;
  padding: 0;
}
.aio-text-area li {
  position: relative;
  padding-left: 24px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 15px;
}
.aio-text-area li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--indigo-light);
}

/* ===== Proposal CTA Section ===== */
#proposal {
  text-align: center;
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(99,102,241,0.05) 50%, var(--bg-dark) 100%);
}
.proposal-box {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.proposal-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
}
.proposal-box h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
}
.proposal-box p {
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

/* ===== Skills Section ===== */
#skills {
  overflow: hidden;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.skill-category {
  padding: 32px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.4s;
}
.skill-category:hover {
  border-color: rgba(99,102,241,0.2);
  transform: translateY(-4px);
}
.skill-category h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.skill-category h3 .cat-icon {
  font-size: 20px;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tag {
  padding: 6px 14px;
  background: var(--gradient-subtle);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s;
}
.skill-tag:hover {
  color: var(--text-primary);
  border-color: rgba(99,102,241,0.4);
  background: rgba(99,102,241,0.15);
  transform: translateY(-2px);
}

/* ===== Timeline Section ===== */
#timeline {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(168,85,247,0.03) 50%, var(--bg-dark) 100%);
}
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--indigo), var(--rose), var(--indigo));
  opacity: 0.3;
}
.timeline-item {
  position: relative;
  padding-left: 64px;
  margin-bottom: 48px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: 16px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gradient-brand);
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 12px rgba(99,102,241,0.4);
}
.timeline-item.active .timeline-dot {
  animation: pulse-glow 2s infinite;
}
.timeline-period {
  font-size: 13px;
  font-weight: 600;
  color: var(--indigo-light);
  margin-bottom: 4px;
  letter-spacing: 1px;
}
.timeline-role {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.timeline-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Projects Section ===== */
#projects { overflow: hidden; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.project-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.4s;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99,102,241,0.2);
  background: rgba(255,255,255,0.06);
}
.project-card:hover::before { opacity: 1; }

.project-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.project-year {
  font-size: 12px;
  font-weight: 600;
  color: var(--indigo-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.project-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.project-role {
  font-size: 13px;
  color: var(--rose-light);
  font-weight: 500;
  margin-bottom: 12px;
}
.project-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.project-desc ul {
  list-style: none;
  padding: 0;
}
.project-desc li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}
.project-desc li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--indigo-light);
  font-weight: 700;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-tech span {
  padding: 3px 10px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--indigo-light);
}

/* ===== Other Projects Section ===== */
#other-projects {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(99,102,241,0.03) 50%, var(--bg-dark) 100%);
}
.other-projects-toggle {
  width: 100%;
  padding: 20px 28px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
}
.other-projects-toggle:hover {
  border-color: rgba(99,102,241,0.3);
  background: rgba(255,255,255,0.08);
}
.other-projects-toggle .arrow {
  transition: transform 0.3s;
  font-size: 14px;
}
.other-projects-toggle.open .arrow {
  transform: rotate(180deg);
}
.other-projects-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, margin-top 0.3s ease;
}
.other-projects-list.open {
  max-height: 2000px;
  margin-top: 16px;
}
.other-project-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  margin-bottom: 8px;
  transition: all 0.3s;
}
.other-project-row:hover {
  border-color: rgba(99,102,241,0.2);
  background: rgba(255,255,255,0.05);
}
.other-project-year {
  font-size: 13px;
  font-weight: 600;
  color: var(--indigo-light);
}
.other-project-name {
  font-size: 15px;
  font-weight: 600;
}
.other-project-role {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* ===== CTA Section ===== */
#contact {
  text-align: center;
}
.cta-box {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
}
.cta-box h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-box p {
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
footer {
  padding: 60px 40px 40px;
  border-top: 1px solid var(--border-glass);
  background: rgba(0,0,0,0.3);
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.6;
}
.footer-links h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-secondary);
}
.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .feature-cards { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .aio-content { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  nav { padding: 12px 20px; }
  nav.scrolled { padding: 10px 20px; }
  .nav-links { display: none; }
  section { padding: 80px 20px; }
  .hero { padding: 100px 20px 60px; }
  .hero h1 { letter-spacing: -1px; }
  .hero-profile { padding: 100px 20px 60px; }
  .hero-profile h1 { letter-spacing: -1px; }
  .feature-cards { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-photo-wrapper { width: 120px; height: 120px; }
  .profile-photo { width: 120px; height: 120px; }
  .other-project-row { grid-template-columns: 60px 1fr; }
  .other-project-role { grid-column: 1 / -1; }
  .proposal-box { padding: 40px 24px; }
  .cta-box { padding: 40px 24px; }
  .footer-content { flex-direction: column; }
}

/* ===== Print ===== */
@media print {
  nav, .hero-bg-gradient, .hero-bg-orb1, .hero-bg-orb2 { display: none; }
  body { background: white; color: #333; }
  section { padding: 40px 20px; }
}

/* ===== AIO Demo Component ===== */
.aio-demo-container {
  margin-top: 48px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.aio-details {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
}

.aio-details[open] {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.aio-summary {
  padding: 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: var(--text-primary);
  transition: background 0.3s;
  user-select: none;
}

.aio-summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.aio-summary::-webkit-details-marker {
  display: none;
}

.aio-summary-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.aio-summary .status-dot {
  width: 8px;
  height: 8px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 10px #34d399;
}

.aio-summary .toggle-icon {
  font-size: 14px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.aio-details[open] .toggle-icon {
  transform: rotate(180deg);
}

.aio-content-wrapper {
  padding: 0 24px 24px;
  animation: fadeInUp 0.4s ease-out;
}

.aio-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  border-top: 1px solid var(--border-glass);
  margin-bottom: 8px;
}

.aio-code-block {
  background: #08080c;
  padding: 24px;
  border-radius: 12px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #a1a1aa;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.03);
  white-space: pre-wrap;
  word-break: break-all;
}

.aio-code-block .hl-h { color: var(--indigo-light); font-weight: 700; }
.aio-code-block .hl-b { color: var(--rose-light); }
.aio-code-block .hl-list { color: var(--text-secondary); }


/* ===== AIO Lifecycle Banner ===== */
.aio-lifecycle-box {
  margin-top: 32px;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  backdrop-filter: blur(10px);
}

.aio-lifecycle-box .info-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  background: var(--gradient-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aio-lifecycle-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.aio-lifecycle-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.aio-lifecycle-content .highlight {
  color: var(--indigo-light);
  font-weight: 600;
}
