/* =============================================
   ROOT & CSS VARIABLES
   ============================================= */
:root {
  --bg-primary: #09090f;
  --bg-secondary: #0f1018;
  --bg-card: #13141d;
  --bg-card-hover: #181928;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(200,169,110,0.35);

  --text-primary: #eeeef2;
  --text-secondary: #9a9aaa;
  --text-muted: #5a5a6a;

  --gold: #c8a96e;
  --gold-light: #dfc08a;
  --gold-dim: rgba(200,169,110,0.12);
  --gold-glow: rgba(200,169,110,0.25);

  --accent: #c8a96e;
  --accent-2: #8ba7d0;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-gold: 0 0 40px rgba(200,169,110,0.12);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { 
  scroll-behavior: smooth; 
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  position: relative;
}

/* Ensure main content doesn't go under navbar */
main, .hero, .section:first-of-type {
  position: relative;
  z-index: 1;
}

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

::selection { background: var(--gold-dim); color: var(--gold-light); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 1rem;
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(9,9,15,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(9,9,15,0.98);
  box-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.nav-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1001;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  font-weight: 400;
  position: relative;
  z-index: 1002;
}
.nav-logo .dot { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--gold);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 1002;
  background: rgba(200,169,110,0.1);
  border-radius: 8px;
  transition: background var(--transition);
}
.hamburger:hover {
  background: rgba(200,169,110,0.2);
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 2rem 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,169,110,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,110,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(200,169,110,0.06) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 20% 80%, rgba(139,167,208,0.05) 0%, transparent 60%);
}

.hero {
  max-width: 100%;
  padding: 100px 8% 80px;
  display: flex;
  align-items: center;
  gap: 4rem;
  justify-content: center;
}

.hero-content {
  flex: 1;
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-dim);
  border: 1px solid rgba(200,169,110,0.25);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0%,100%{ box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  50%{ box-shadow: 0 0 0 5px rgba(74,222,128,0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-bottom: 1.2rem;
}
.hero-name { color: var(--text-primary); }
.hero-name.accent { color: var(--gold); font-style: italic; }

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2.2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #09090f;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,169,110,0.3);
}
.btn-primary.full-width { width: 100%; justify-content: center; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.hero-socials {
  display: flex;
  gap: 1rem;
}
.hero-socials a {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all var(--transition);
}
.hero-socials a:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(200,169,110,0.2);
}

/* Hero Image */
.hero-image-wrap {
  position: relative;
  flex-shrink: 0;
  width: 320px; height: 320px;
  z-index: 1;
}
.hero-image-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1.5px solid rgba(200,169,110,0.3);
  animation: spin-slow 18s linear infinite;
}
.hero-image-ring.ring2 {
  inset: -30px;
  border-color: rgba(200,169,110,0.12);
  animation-direction: reverse;
  animation-duration: 30s;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

.hero-image {
  width: 320px; height: 320px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  border: 3px solid var(--gold);
  box-shadow: 0 0 60px rgba(200,169,110,0.2), 0 20px 60px rgba(0,0,0,0.6);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 8%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.scroll-line {
  width: 48px; height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
}

/* =============================================
   SECTIONS
   ============================================= */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-secondary); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 3.5rem;
  color: var(--text-primary);
}
.section-title em {
  font-style: italic;
  color: var(--gold);
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.8;
}
.about-text p strong { color: var(--text-primary); font-weight: 600; }

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat {}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.about-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow);
}
.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.info-row:last-of-type { border-bottom: none; }
.info-row i {
  width: 20px;
  color: var(--gold);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.info-row a:hover { color: var(--gold); }

.about-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.focus-tag {
  background: var(--gold-dim);
  border: 1px solid rgba(200,169,110,0.2);
  color: var(--gold-light);
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 100px;
  font-weight: 500;
}

/* =============================================
   EDUCATION SECTION
   ============================================= */
.edu-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}
.edu-timeline::before {
  content: '';
  position: absolute;
  left: 32px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.edu-card {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.edu-card:hover {
  border-color: var(--border-hover);
  transform: translateX(6px);
  box-shadow: var(--shadow-gold);
}

.edu-icon {
  width: 64px; height: 64px;
  background: var(--gold-dim);
  border: 1px solid rgba(200,169,110,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.3rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.edu-content { flex: 1; }

.edu-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}
.edu-badge.current { background: rgba(74,222,128,0.1); color: #4ade80; border: 1px solid rgba(74,222,128,0.25); }
.edu-badge.completed { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(200,169,110,0.25); }

.edu-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}
.edu-inst {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.edu-period {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}
.edu-period i { color: var(--gold); font-size: 0.75rem; }

.cgpa-badge {
  background: var(--gold-dim);
  border: 1px solid rgba(200,169,110,0.2);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cgpa-badge i { font-size: 0.75rem; }

/* =============================================
   SKILLS SECTION
   ============================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.skill-category:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.skill-cat-header i {
  color: var(--gold);
  font-size: 1.1rem;
  width: 28px;
}
.skill-cat-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  font-family: var(--font-mono);
}
.skill-tag:hover {
  background: var(--gold-dim);
  border-color: rgba(200,169,110,0.3);
  color: var(--gold-light);
}

/* =============================================
   PROJECTS SECTION
   ============================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), var(--shadow-gold);
}

.project-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg-secondary);
}
.project-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-img-wrap img { transform: scale(1.05); }

.project-img-wrap.no-img { }
.project-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  color: var(--text-muted);
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
}

.project-img-wrap.img-fallback {
  background: linear-gradient(135deg, #1a1a28 0%, #0f0f18 100%);
}
.project-img-wrap.img-fallback img { display: none; }
.project-img-wrap.img-fallback::after {
  content: '\f5fc';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  color: var(--text-muted);
}

.project-img-overlay {
  position: absolute;
  top: 14px; left: 14px;
}
.project-type {
  background: rgba(9,9,15,0.85);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

.project-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex: 1;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 1.5rem;
}
.project-tech span {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.74rem;
  padding: 3px 9px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.project-links { display: flex; gap: 1rem; }
.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--gold);
  border: 1px solid rgba(200,169,110,0.3);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  background: var(--gold-dim);
}
.proj-link:hover {
  background: var(--gold);
  color: #09090f;
  border-color: var(--gold);
}
.proj-link.ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.proj-link.ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-intro {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 3rem;
  max-width: 600px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-cards { display: flex; flex-direction: column; gap: 1rem; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
a.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateX(6px);
  box-shadow: var(--shadow-gold);
}
.cc-icon {
  width: 46px; height: 46px;
  background: var(--gold-dim);
  border: 1px solid rgba(200,169,110,0.2);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.cc-info { flex: 1; }
.cc-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.cc-value {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}
.cc-arrow { color: var(--text-muted); font-size: 0.8rem; }

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}
.form-group input,
.form-group textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 12px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,169,110,0.1);
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.2);
  color: #4ade80;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
}
.form-success.show { display: flex; }

.form-error {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.2);
  color: #f87171;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
}
.form-error.show { display: flex; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand .nav-logo { display: inline-block; margin-bottom: 0.75rem; }
.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }

.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}
.footer-socials a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.footer-socials a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom .fa-heart { color: var(--gold); font-size: 0.7rem; }

/* =============================================
   ANIMATIONS & REVEAL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-info-card { position: static; }
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 100px 1.5rem 60px;
    gap: 2.5rem;
  }
  .hero-image-wrap { width: 240px; height: 240px; }
  .hero-image { width: 240px; height: 240px; }
  .hero-cta { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-badge { margin: 0 auto 1.5rem; }
  .scroll-indicator { display: none; }

  .projects-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-socials { flex-direction: row; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  /* Fix navbar for mobile */
  .navbar {
    padding: 0 1rem;
    height: 65px;
  }
  
  .nav-links {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: rgba(9,9,15,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 998;
    max-height: calc(100vh - 65px);
    overflow-y: auto;
  }
  .nav-links.open { 
    transform: translateY(0);
  }
  .nav-link { 
    padding: 1rem 2rem; 
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1rem;
  }
  .nav-link::after { display: none; }
  .nav-link:hover, .nav-link.active {
    background: var(--gold-dim);
    color: var(--gold);
  }
  .hamburger { 
    display: flex;
  }

  .skills-grid { grid-template-columns: 1fr; }
  .about-stats { flex-wrap: wrap; gap: 1.5rem; }
  .edu-timeline::before { display: none; }
  .edu-card { flex-direction: column; gap: 1rem; }
  
  /* Add padding to main content to prevent overlap */
  .hero, .section {
    padding-top: 80px;
  }
  
  /* Fix section labels visibility */
  .section-label {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.5rem; }
  .section-title { font-size: 1.8rem; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
  
  /* Ensure navbar doesn't overlap on very small screens */
  .navbar {
    padding: 0 0.75rem;
  }
  
  .nav-logo {
    font-size: 1.4rem;
  }
  
  .hamburger {
    padding: 6px;
  }
  
  .hamburger span {
    width: 20px;
    height: 1.5px;
  }
  
  .hero, .section {
    padding-top: 75px;
  }
}