/* ==========================================================================
   SHIVAM PANDEY — PORTFOLIO
   Color Palette:
     Navy  #0E1B2C  — Authority, dark backgrounds
     Cream #F4EFE6  — Warmth, light backgrounds
     Amber #C4763A  — Accent, CTAs, highlights
   ========================================================================== */

/* ── Custom Properties ─────────────────────────────────────────────────── */
:root {
  --navy:        #0E1B2C;
  --navy-mid:    #162436;
  --navy-light:  #1E3050;
  --cream:       #F4EFE6;
  --cream-dark:  #E8E0D3;
  --amber:       #C4763A;
  --amber-light: #D4895A;
  --amber-dark:  #A35E28;
  --white:       #FFFFFF;
  --text-cream:  #F4EFE6;
  --text-navy:   #0E1B2C;
  --text-muted:  #8A9BB0;
  --border-navy: rgba(244, 239, 230, 0.12);
  --border-cream: rgba(14, 27, 44, 0.12);

  --sidebar-w:   240px;
  --transition:  0.3s ease;
  --radius:      8px;
  --radius-lg:   16px;
  --shadow-sm:   0 2px 8px rgba(14,27,44,0.08);
  --shadow-md:   0 8px 32px rgba(14,27,44,0.14);
  --shadow-lg:   0 20px 60px rgba(14,27,44,0.2);
}

/* ── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-navy);
  background: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  font-weight: 700;
}

a {
  color: var(--amber);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}
a:hover { color: var(--amber-dark); }
a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 3px;
}

img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

/* ── Preloader ─────────────────────────────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }

.preloader-inner { text-align: center; }
.preloader-logo {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  animation: pulse 1.5s ease-in-out infinite;
}
.preloader-bar {
  width: 120px;
  height: 3px;
  background: var(--border-navy);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}
.preloader-fill {
  height: 100%;
  width: 0;
  background: var(--amber);
  border-radius: 2px;
  animation: load-bar 1.8s ease forwards;
}
@keyframes load-bar { to { width: 100%; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

/* ── Sidebar ───────────────────────────────────────────────────────────── */
#sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1rem 2rem;
  z-index: 1000;
  overflow-y: auto;
  scrollbar-width: none;
  transition: transform var(--transition);
}
#sidebar::-webkit-scrollbar { display: none; }

.sidebar-profile {
  text-align: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-navy);
  width: 100%;
  margin-bottom: 1.5rem;
}
.sidebar-avatar-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 0.75rem;
}
.sidebar-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--amber);
}
.avatar-status {
  position: absolute;
  bottom: 4px; right: 4px;
  width: 14px; height: 14px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid var(--navy);
}
.sidebar-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.25rem;
  font-family: 'Playfair Display', serif;
}
.sidebar-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sidebar-nav { width: 100%; flex: 1; }
.sidebar-nav ul { display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-nav .nav-link i { font-size: 1rem; flex-shrink: 0; }
.sidebar-nav .nav-link:hover {
  background: rgba(196, 118, 58, 0.1);
  color: var(--amber);
}
.sidebar-nav .nav-link.active {
  background: rgba(196, 118, 58, 0.15);
  color: var(--amber);
  border-left-color: var(--amber);
}

.sidebar-social {
  display: flex;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-navy);
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}
.sidebar-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(244, 239, 230, 0.06);
  color: var(--text-muted);
  font-size: 1rem;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.sidebar-social svg { width: 15px; height: 15px; fill: currentColor; }
.sidebar-social a:hover {
  background: var(--amber);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Mobile Nav Toggle ─────────────────────────────────────────────────── */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 1.25rem; right: 1.25rem;
  z-index: 1100;
  width: 44px; height: 44px;
  border: none;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.mobile-nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mobile-nav-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 27, 44, 0.6);
  z-index: 999;
  backdrop-filter: blur(4px);
}
.sidebar-overlay.active { display: block; }

/* ── Main Layout ───────────────────────────────────────────────────────── */
#main { margin-left: var(--sidebar-w); }

/* ── Section Shared Styles ─────────────────────────────────────────────── */
section { padding: 6rem 0; }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
  font-family: 'Inter', sans-serif;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}
.section-subtitle {
  font-size: 1.05rem;
  color: inherit;
  opacity: 0.7;
  margin-top: 0.75rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn-sp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
  text-decoration: none;
}
.btn-sp-primary {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}
.btn-sp-primary:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 118, 58, 0.35);
}
.btn-sp-outline {
  background: transparent;
  border-color: currentColor;
}
.btn-sp-outline:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ── HERO ──────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244,239,230,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,239,230,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-greeting {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--amber);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.hero-name {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--cream);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.hero-typed-wrap {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  color: var(--cream);
  opacity: 0.8;
  margin-bottom: 1.5rem;
  min-height: 1.7em;
}
.typed-prefix { color: var(--text-muted); }
.typed { color: var(--amber-light); }
.typed-cursor { color: var(--amber); }
.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-actions .btn-sp-outline {
  color: var(--cream);
  border-color: rgba(244,239,230,0.4);
}
.hero-actions .btn-sp-outline:hover {
  border-color: var(--cream);
  background: rgba(244,239,230,0.06);
  color: var(--cream);
}

/* Code Card */
.hero-visual { display: flex; justify-content: flex-end; }
.code-card {
  background: #0d1117;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
}
.code-card-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.code-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.code-dot.red    { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green  { background: #28c840; }
.code-filename {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #8b949e;
  margin-left: 0.5rem;
}
.code-body {
  padding: 1.25rem 1.5rem;
  margin: 0;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.8;
  background: #0d1117;
}
.code-body code { font-family: inherit; }
.ck  { color: #ff7b72; }
.cc  { color: #d2a8ff; }
.cf  { color: #79c0ff; }
.cp  { color: #e3b341; }
.cs  { color: #a5d6ff; }
.cm  { color: #8b949e; font-style: italic; }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.25rem;
  animation: bounce 2s infinite;
  transition: color var(--transition);
}
.hero-scroll:hover { color: var(--amber); }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── ABOUT ─────────────────────────────────────────────────────────────── */
#about {
  background: var(--cream);
  color: var(--text-navy);
}
#about .section-title { color: var(--navy); }

.about-img-wrap {
  position: relative;
  display: inline-block;
  max-width: 370px;
  width: 100%;
}
.about-img {
  width: 100%;
  height: 480px;
  border-radius: 20px;
  border: 3px solid var(--amber);
  object-fit: cover;
  object-position: center top;
  display: block;
  box-shadow: var(--shadow-md);
}
.about-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1rem;
  background: var(--white);
  color: var(--navy);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.about-badge i { color: var(--amber); }

.about-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--navy);
}
.text-amber { color: var(--amber); }
.about-content p {
  color: #3d4f63;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.about-stats {
  display: flex;
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-cream);
  border-bottom: 1px solid var(--border-cream);
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}
.stat-suffix {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--amber);
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-details { margin-bottom: 1.75rem; }
.detail-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border-cream);
  font-size: 0.9rem;
}
.detail-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-weight: 500;
  min-width: 120px;
  font-size: 0.85rem;
}
.detail-label i { color: var(--amber); }
.detail-value { color: var(--text-navy); font-weight: 500; }
.about-details a.detail-value:hover { color: var(--amber); }

.about-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.about-actions .btn-sp-outline {
  color: var(--navy);
  border-color: var(--navy);
}
.about-actions .btn-sp-outline:hover {
  background: var(--navy);
  color: var(--cream);
}

/* ── EXPERIENCE ────────────────────────────────────────────────────────── */
#experience {
  background: var(--navy-mid);
  color: var(--cream);
}
#experience .section-title { color: var(--cream); }
#experience .section-label { color: var(--amber); }

.timeline {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 1.5rem;
}
.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timeline-dot {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 6px rgba(196,118,58,0.15);
  z-index: 1;
}
.timeline-line {
  width: 2px;
  background: var(--border-navy);
  flex: 1;
  margin: 0.5rem 0;
  min-height: 2rem;
}

.timeline-content {
  padding-bottom: 3rem;
}
.timeline-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.timeline-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.timeline-badge {
  background: rgba(196,118,58,0.2);
  color: var(--amber);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.timeline-title {
  font-size: 1.25rem;
  color: var(--cream);
  margin-bottom: 0.25rem;
}
.timeline-org {
  font-size: 0.9rem;
  color: var(--amber);
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  margin-bottom: 1rem;
}
.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.timeline-bullets li {
  font-size: 0.875rem;
  color: rgba(244,239,230,0.75);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
}
.timeline-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}
.timeline-bullets strong { color: var(--cream); }

.timeline-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  background: rgba(244,239,230,0.08);
  color: rgba(244,239,230,0.7);
  border: 1px solid rgba(244,239,230,0.12);
}

/* ── SKILLS ────────────────────────────────────────────────────────────── */
#skills {
  background: var(--cream);
  color: var(--text-navy);
}
#skills .section-title { color: var(--navy); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.skill-cat {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-cream);
  transition: transform var(--transition), box-shadow var(--transition);
}
.skill-cat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.skill-cat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: rgba(196,118,58,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--amber);
  margin-bottom: 1rem;
}
.skill-cat-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.stag {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  background: var(--cream);
  color: var(--navy);
  border: 1px solid var(--border-cream);
  font-weight: 500;
  transition: all var(--transition);
}
.stag:hover { background: var(--navy); color: var(--cream); }
.stag.stag-primary {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
.stag.stag-primary:hover { background: var(--amber); border-color: var(--amber); }
.stag.stag-amber {
  background: rgba(196,118,58,0.1);
  color: var(--amber-dark);
  border-color: rgba(196,118,58,0.25);
}
.stag.stag-amber:hover { background: var(--amber); color: var(--white); border-color: var(--amber); }

/* ── PROJECTS ──────────────────────────────────────────────────────────── */
#projects {
  background: var(--navy);
  color: var(--cream);
}
#projects .section-title { color: var(--cream); }
#projects .section-label { color: var(--amber); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.project-card {
  background: var(--navy-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-navy);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  border-color: rgba(196,118,58,0.4);
}
.project-featured {
  border-color: rgba(196,118,58,0.3);
  background: linear-gradient(135deg, var(--navy-light), rgba(196,118,58,0.05));
}
.project-card-inner { padding: 2rem; }
.project-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(244,239,230,0.06);
  line-height: 1;
  margin-bottom: 0.75rem;
  user-select: none;
}
.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.project-title {
  font-size: 1.3rem;
  color: var(--cream);
}
.project-links { display: flex; gap: 0.5rem; }
.project-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(244,239,230,0.06);
  border: 1px solid var(--border-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all var(--transition);
}
.project-link:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--white);
}
.project-desc {
  font-size: 0.875rem;
  color: rgba(244,239,230,0.65);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.project-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.ph-item {
  font-size: 0.8rem;
  color: rgba(244,239,230,0.7);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ph-item i { color: var(--amber); font-size: 0.8rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ptag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(196,118,58,0.12);
  color: var(--amber-light);
  border: 1px solid rgba(196,118,58,0.2);
}

.projects-cta {
  text-align: center;
}
.projects-cta p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.projects-cta .btn-sp-outline {
  color: var(--cream);
  border-color: rgba(244,239,230,0.35);
}
.projects-cta .btn-sp-outline:hover {
  border-color: var(--cream);
  background: rgba(244,239,230,0.06);
  color: var(--cream);
}

/* ── CONTACT ───────────────────────────────────────────────────────────── */
#contact {
  background: var(--cream);
  color: var(--text-navy);
}
#contact .section-title { color: var(--navy); }
#contact .section-subtitle { color: #4a5568; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.ci-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.ci-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: rgba(196,118,58,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--amber);
  flex-shrink: 0;
}
.ci-body h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  font-family: 'Inter', sans-serif;
}
.ci-body a, .ci-body span {
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 500;
}
.ci-body a:hover { color: var(--amber); }

.response-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  background: rgba(196,118,58,0.05);
  border-radius: var(--radius);
  border-left: 3px solid var(--amber);
  margin-top: 0.5rem;
}
.response-note i { color: var(--amber); }

/* Contact Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-cream);
}
.form-grp { margin-bottom: 1.25rem; }
.form-grp label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
  font-family: 'Inter', sans-serif;
}
.req { color: var(--amber); }
.form-inp {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-inp:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(196,118,58,0.12);
  background: var(--white);
}
.form-inp.is-error { border-color: #e53e3e; }
.form-textarea { resize: vertical; min-height: 140px; }
.form-grp-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 0.25rem;
}
.field-err {
  font-size: 0.8rem;
  color: #e53e3e;
  display: none;
}
.field-err.show { display: block; }
.char-count { font-size: 0.75rem; color: var(--text-muted); }

.btn-submit { width: 100%; justify-content: center; }
.btn-sending { display: none; }

.form-result {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
}
.form-result.success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #166534;
}
.form-result.error-msg {
  background: rgba(229,62,62,0.1);
  border: 1px solid rgba(229,62,62,0.3);
  color: #c53030;
}

/* ── FOOTER ────────────────────────────────────────────────────────────── */
#footer {
  background: var(--navy);
  color: var(--cream);
  padding: 3rem 0 1.5rem;
  margin-left: var(--sidebar-w);
  text-align: center;
}

/* Brand row */
.footer-brand {
  margin-bottom: 2rem;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  background: var(--amber);
  border-radius: var(--radius);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 280px;
  margin: 0 auto;
}

/* Horizontal nav links */
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-navy);
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.footer-links a:hover {
  color: var(--amber);
  background: rgba(196,118,58,0.08);
}

/* Social icons row */
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(244,239,230,0.06);
  border: 1px solid var(--border-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--white);
  transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

/* Copyright */
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-navy);
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* ── Back to Top ───────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--amber);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 500;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--amber-dark);
  color: var(--white);
  transform: translateY(-3px);
}

/* ── Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--amber); border-radius: 3px; }

/* ── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .hero-content { max-width: 600px; }
}

@media (max-width: 992px) {
  :root { --sidebar-w: 0px; }
  #main { margin-left: 0; }
  #sidebar {
    transform: translateX(-240px);
    width: 240px;
    z-index: 1050;
  }
  #sidebar.open { transform: translateX(0); }
  .mobile-nav-toggle { display: flex; }
  .hero-inner { padding: 4rem 2rem; }
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .hero-name { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .about-img-wrap { max-width: 100%; }
  .about-img { height: 360px; }
  .about-badge { left: 0.75rem; bottom: 1rem; }
  .about-stats { gap: 1rem; }
  .timeline-item { grid-template-columns: 40px 1fr; }
  .timeline-dot { width: 40px; height: 40px; font-size: 0.9rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .footer-links { gap: 0.1rem; }
  .footer-links a { padding: 0.3rem 0.6rem; }
  .contact-form { padding: 1.25rem; }
  .back-to-top { bottom: 1.25rem; right: 1.25rem; }
}

@media (max-width: 480px) {
  .hero-inner { padding: 3rem 1.25rem; }
  .hero-actions { flex-direction: column; }
  .btn-sp { width: 100%; justify-content: center; }
  .about-actions { flex-direction: column; }
  section { padding: 3rem 0; }
}

/* ── Print Styles ──────────────────────────────────────────────────────── */
@media print {
  #sidebar, .mobile-nav-toggle, .back-to-top, #preloader { display: none !important; }
  #main { margin-left: 0 !important; }
  * { background: white !important; color: black !important; }
}
