/* ═══════════════════════════════════════════════
   Abhinav Saxena — Portfolio Design System
   Warm Ivory Editorial Theme
   ═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Core palette */
  --bg:          #FAFAF6;
  --bg-warm:     #F5F0E8;
  --bg-soft:     #F0ECE3;
  --card:        #FFFFFF;
  --card-hover:  #FEFEFE;
  --border:      #E8E2D6;
  --border-soft: #D9D2C4;

  /* Brand */
  --brand:       #E8553A;
  --brand-light: #F06D52;
  --brand-soft:  #F4907E;
  --brand-dim:   rgba(232, 85, 58, 0.10);
  --brand-bg:    rgba(232, 85, 58, 0.06);

  /* Navy accent */
  --navy:        #1B2A4A;
  --navy-light:  #2D4066;
  --navy-soft:   rgba(27, 42, 74, 0.08);

  /* Typography colors */
  --text:        #1A1A18;
  --text-dim:    #4A4A45;
  --text-muted:  #7A7A72;
  --muted:       #7A7A72;

  /* Functional */
  --input:       #FFFFFF;
  --radius:      16px;
  --radius-sm:   8px;

  /* Typography */
  --font-display: 'Sora', sans-serif;
  --font-body:    'Source Serif 4', 'Georgia', serif;
  --font-serif:   'Source Serif 4', 'Georgia', serif;
  --font-sans:    'Sora', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.7;
}
body.menu-open { overflow: hidden; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-soft); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Subtle dot-grid texture */
body::before {
  content: '';
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: radial-gradient(circle, rgba(27,42,74,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* ─── GRADIENT TEXT ─── */
.gradient-text {
  background: linear-gradient(135deg, var(--brand) 0%, #D4451F 50%, var(--brand) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}
@keyframes gradient-shift {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* ─── GRID PATTERN ─── */
.grid-pattern {
  background-image:
    linear-gradient(rgba(27,42,74,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,42,74,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ─── AURORA ─── */
.aurora-bg::before {
  content: '';
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(232,85,58,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(27,42,74,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 80%, rgba(232,85,58,0.03) 0%, transparent 50%);
  animation: aurora 15s ease-in-out infinite;
  z-index: 0;
}
@keyframes aurora {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  33%     { transform: translate(30px,-30px) rotate(1deg); }
  66%     { transform: translate(-20px,20px) rotate(-1deg); }
}

/* ─── GLOW LINE ─── */
.glow-line {
  background: linear-gradient(90deg, transparent, rgba(232,85,58,0.3), transparent);
  height: 1px;
  position: absolute; top: 0; left: 0; right: 0;
  pointer-events: none;
}

/* ─── ANIMATIONS ─── */
@keyframes float       { 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-18px); } }
@keyframes float-d     { 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-12px); } }
@keyframes bounce-slow { 0%,100%{ transform:translateX(-50%) translateY(0); } 50%{ transform:translateX(-50%) translateY(8px); } }
@keyframes marquee     { 0%{ transform:translateX(0); } 100%{ transform:translateX(-50%); } }
@keyframes spin        { to{ transform:rotate(360deg); } }
@keyframes pulse-dot   { 0%,100%{ opacity:1; } 50%{ opacity:.4; } }

.float   { animation: float 6s ease-in-out infinite; }
.float-d { animation: float-d 8s ease-in-out infinite; }
.bounce-slow { animation: bounce-slow 2s ease-in-out infinite; }
.marquee-track { animation: marquee 35s linear infinite; }
.spin { animation: spin 1s linear infinite; }
.pulse { animation: pulse-dot 2s ease-in-out infinite; }

/* ─── SHINE BUTTON ─── */
.shine-btn { position: relative; overflow: hidden; }
.shine-btn::after {
  content: '';
  position: absolute; top: -50%; left: -60%;
  width: 200%; height: 200%;
  background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.7s ease;
}
.shine-btn:hover::after { transform: rotate(45deg) translateX(100%); }

/* ─── CARD HOVER ─── */
.card-hover { transition: all 0.35s cubic-bezier(0.4,0,0.2,1); }
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(27,42,74,0.10), 0 0 0 1px rgba(232,85,58,0.08);
}

/* ─── REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.5,0,0,1), transform 0.75s cubic-bezier(0.5,0,0,1);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 100ms !important; }
.delay-2 { transition-delay: 200ms !important; }
.delay-3 { transition-delay: 300ms !important; }
.delay-4 { transition-delay: 400ms !important; }

/* ─── LAYOUT ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
@media(max-width:640px) { .container { padding: 0 1.25rem; } }
section { position: relative; overflow: hidden; }

/* ─── NAVBAR ─── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: all 0.5s ease;
}
header.scrolled {
  background: rgba(250,250,246,0.88);
  backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(27,42,74,0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; color: #fff;
  font-family: var(--font-display);
  box-shadow: 0 2px 12px rgba(232,85,58,0.25);
}
.logo-text { font-weight: 700; font-size: 18px; color: var(--navy); font-family: var(--font-display); }
.logo-text span { color: var(--brand); }
nav.desktop { display: flex; align-items: center; gap: 4px; }
nav.desktop a {
  padding: 8px 16px; font-size: 14px; color: var(--text-muted);
  text-decoration: none; border-radius: 8px; transition: all 0.2s;
  font-family: var(--font-display); font-weight: 500;
}
nav.desktop a:hover { color: var(--navy); background: var(--navy-soft); }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; font-size: 14px; font-weight: 600; color: #fff;
  background: var(--brand); border: none; border-radius: 100px;
  cursor: pointer; text-decoration: none; transition: all 0.3s;
  font-family: var(--font-display);
  box-shadow: 0 2px 12px rgba(232,85,58,0.2);
}
.btn-primary:hover { background: #D4451F; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(232,85,58,0.3); }
.menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 8px; transition: color 0.2s;
}
.menu-btn:hover { color: var(--navy); }
@media(max-width:1023px){ nav.desktop,.cta-desktop{ display:none; } .menu-btn{ display:flex; } }

/* ─── MOBILE MENU ─── */
#mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(250,250,246,0.97); backdrop-filter: blur(24px);
  padding-top: 100px; padding-left: 1.5rem; padding-right: 1.5rem;
  transition: all 0.3s ease;
  opacity: 0; pointer-events: none;
}
#mobile-menu.open { opacity: 1; pointer-events: auto; }
#mobile-menu a {
  display: block; padding: 16px; font-size: 20px; font-weight: 500;
  color: var(--text-dim); text-decoration: none;
  border-bottom: 1px solid var(--border); transition: color 0.2s;
  font-family: var(--font-display);
}
#mobile-menu a:hover { color: var(--brand); }
#mobile-menu .btn-primary { margin-top: 24px; justify-content: center; font-size: 18px; padding: 16px 24px; width: 100%; border-radius: 100px; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: var(--bg);
}
.hero-bg-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.hero-orb1 { width: 500px; height: 500px; top: 10%; left: -10%; background: rgba(232,85,58,0.06); filter: blur(140px); }
.hero-orb2 { width: 400px; height: 400px; bottom: 10%; right: -10%; background: rgba(27,42,74,0.05); filter: blur(120px); }
.hero-orb3 { width: 300px; height: 300px; top: 40%; right: 20%; background: rgba(232,85,58,0.03); filter: blur(100px); }
.hero-content { position: relative; z-index: 10; text-align: center; padding: 8rem 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 50px;
  border: 1px solid rgba(232,85,58,0.2); background: rgba(232,85,58,0.06);
  color: var(--brand); font-size: 14px; margin-bottom: 2rem;
  font-weight: 500; letter-spacing: 0.02em;
  font-family: var(--font-display);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #38A169; animation: pulse-dot 2s ease-in-out infinite; }
h1.hero-title {
  font-family: var(--font-display);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.08; margin-bottom: 1.5rem;
  font-size: clamp(3rem, 9vw, 5.5rem);
  color: var(--navy);
}
.hero-sub {
  max-width: 580px; margin: 0 auto 3rem;
  font-size: 1.2rem; color: var(--text-muted); line-height: 1.75;
  font-weight: 400;
}
.hero-btns { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 18px 36px; font-size: 16px; font-weight: 600;
  color: #fff; background: var(--brand); border: none; border-radius: 100px;
  cursor: pointer; text-decoration: none; transition: all 0.3s ease;
  font-family: var(--font-display);
  box-shadow: 0 4px 20px rgba(232,85,58,0.25);
}
.btn-white:hover { background: #D4451F; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(232,85,58,0.35); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 18px 36px; font-size: 16px; font-weight: 600;
  color: var(--navy); background: transparent;
  border: 2px solid var(--border-soft); border-radius: 100px;
  cursor: pointer; text-decoration: none; transition: all 0.3s ease;
  font-family: var(--font-display);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-bg); }
.hero-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; max-width: 720px; margin: 5rem auto 0; }
@media(max-width:640px){ .hero-stats{ grid-template-columns: repeat(2,1fr); gap: 20px; } }
.stat-val { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--brand); letter-spacing: -0.02em; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 6px; letter-spacing: 0.05em; text-transform: uppercase; font-family: var(--font-display); }
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint span { font-size: 11px; color: var(--border-soft); text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-display); }

/* ─── SECTION HEADERS ─── */
.section-label {
  font-size: 13px; font-weight: 600; color: var(--brand);
  text-transform: uppercase; letter-spacing: 0.12em;
  font-family: var(--font-display);
}
h2.section-title {
  font-family: var(--font-display);
  font-weight: 700; color: var(--navy); margin-top: 12px; margin-bottom: 20px;
  font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.15; letter-spacing: -0.02em;
}
.section-desc { color: var(--text-muted); font-size: 1.1rem; line-height: 1.75; max-width: 600px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 4rem; }

/* ─── ABOUT ─── */
#about { padding: 7rem 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media(max-width:1023px){ .about-grid{ grid-template-columns:1fr; } }
.profile-card {
  position: relative; aspect-ratio: 1; max-width: 400px; margin: 0 auto;
}
.profile-inner {
  position: absolute; inset: 16px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(232,85,58,0.08), rgba(27,42,74,0.05));
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem;
  box-shadow: 0 8px 40px rgba(27,42,74,0.06);
}
.profile-inner .grid-pattern { position: absolute; inset: 0; opacity: 0.35; z-index: 0; }
.profile-inner > * { position: relative; z-index: 1; }
.profile-img-wrap {
  width: 128px; height: 128px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #D4451F);
  padding: 4px; margin-bottom: 1.5rem;
  box-shadow: 0 4px 24px rgba(232,85,58,0.2);
}
.profile-img-wrap img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.profile-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--navy); }
.profile-role { color: var(--brand); font-size: 14px; margin-top: 4px; font-family: var(--font-display); }
.profile-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 220px; margin-top: 2rem; }
.mini-stat {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px; text-align: center;
}
.mini-stat .v { font-weight: 700; font-size: 1.1rem; color: var(--navy); font-family: var(--font-display); }
.mini-stat .l { font-size: 11px; color: var(--text-muted); }
.badge-float {
  position: absolute; background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 30px rgba(27,42,74,0.08);
}
.badge-float .icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.badge-float .label { font-size: 12px; font-weight: 600; color: var(--navy); font-family: var(--font-display); }
.badge-float .sub { font-size: 11px; }
.badge-top { top: -8px; right: -8px; }
.badge-bottom { bottom: -8px; left: -8px; }
.about-text .overline { margin-bottom: 1rem; }
.about-text p { color: var(--text-dim); line-height: 1.85; margin-bottom: 1rem; }
.about-text strong { color: var(--navy); }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 2rem; }
.feat-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 12px; transition: background 0.2s;
}
.feat-item:hover { background: var(--brand-bg); }
.feat-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-dim); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--brand); }
.feat-label { font-size: 14px; font-weight: 600; color: var(--navy); font-family: var(--font-display); }
.feat-sub { font-size: 12px; color: var(--text-muted); }

/* ─── SERVICES ─── */
#services { padding: 7rem 0; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media(max-width:1023px){ .services-grid{ grid-template-columns: repeat(2,1fr); } }
@media(max-width:640px){ .services-grid{ grid-template-columns: 1fr; } }
.service-card {
  position: relative; background: var(--card);
  border: 1px solid var(--border); border-radius: 20px; padding: 32px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(27,42,74,0.04);
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--brand-bg), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(232,85,58,0.25); box-shadow: 0 16px 48px rgba(27,42,74,0.1); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
  transition: transform 0.3s;
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(3deg); }
.service-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--navy); margin-bottom: 12px; transition: color 0.2s; }
.service-card:hover .service-title { color: var(--brand); }
.service-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag { font-size: 11px; padding: 6px 12px; border-radius: 100px; background: var(--bg-warm); color: var(--text-muted); border: 1px solid var(--border); letter-spacing: 0.02em; font-family: var(--font-display); }
.service-more { font-size: 13px; color: var(--brand); display: flex; align-items: center; gap: 6px; opacity: 0; transform: translateX(-8px); transition: all 0.3s; font-family: var(--font-display); font-weight: 600; }
.service-card:hover .service-more { opacity: 1; transform: translateX(0); }
.service-glow { position: absolute; inset: 0; border-radius: 20px; opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.service-card:hover .service-glow { opacity: 0.03; }

/* ─── WORK / PROJECTS ─── */
#work { padding: 7rem 0; }
.filter-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 4rem; }
.filter-btn {
  padding: 10px 24px; font-size: 14px; font-weight: 500; border-radius: 100px;
  cursor: pointer; transition: all 0.3s; border: 1px solid var(--border);
  background: var(--card); color: var(--text-muted);
  font-family: var(--font-display);
}
.filter-btn:hover { color: var(--brand); border-color: rgba(232,85,58,0.3); }
.filter-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 4px 16px rgba(232,85,58,0.25); }
.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media(max-width:1023px){ .projects-grid{ grid-template-columns: repeat(2,1fr); } }
@media(max-width:640px){ .projects-grid{ grid-template-columns: 1fr; } }
.project-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  overflow: hidden; transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 2px 12px rgba(27,42,74,0.04);
}
.project-card:hover { transform: translateY(-6px); border-color: rgba(232,85,58,0.2); box-shadow: 0 16px 48px rgba(27,42,74,0.1); }
.project-img { position: relative; height: 220px; overflow: hidden; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; display: block; }
.project-card:hover .project-img img { transform: scale(1.06); }
.project-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(255,255,255,0.9), transparent 60%); }
.project-img-hover {
  position: absolute; inset: 0; background: rgba(27,42,74,0.5);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  opacity: 0; transition: opacity 0.3s;
}
.project-card:hover .project-img-hover { opacity: 1; }
.img-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.2); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; color: #fff;
  border: none; cursor: pointer; transition: all 0.2s;
}
.img-btn:hover { background: var(--brand); transform: scale(1.1); }
.project-badge {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(12px);
  border-radius: 100px; padding: 8px 16px;
  display: flex; align-items: center; gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.project-badge span { font-size: 12px; font-weight: 600; color: var(--navy); font-family: var(--font-display); }
.project-body { padding: 20px; }
.project-label { font-size: 12px; color: var(--brand); font-weight: 600; margin-bottom: 8px; font-family: var(--font-display); }
.project-title { font-weight: 600; font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; transition: color 0.2s; font-family: var(--font-display); }
.project-card:hover .project-title { color: var(--brand); }
.project-desc { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ─── PROCESS ─── */
#process { padding: 7rem 0; }
.process-wrap { position: relative; padding-left: 4rem; }
.process-line {
  position: absolute; left: 2rem; top: 2rem; bottom: 2rem;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--border-soft), transparent);
}
@media(max-width:640px){ .process-wrap{ padding-left: 0; } .process-line{ display:none; } }
.process-step {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  margin-bottom: 5rem;
}
@media(max-width:1023px){ .process-step{ grid-template-columns: 1fr; gap: 2rem; } }
.step-text h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.step-text p { color: var(--text-muted); line-height: 1.75; margin-bottom: 24px; }
.step-items { display: flex; flex-wrap: wrap; gap: 8px; }
.step-item { font-size: 13px; padding: 6px 14px; border-radius: 8px; background: var(--card); border: 1px solid var(--border); color: var(--text-dim); font-family: var(--font-display); }
.step-num-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-num-badge {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 14px; flex-shrink: 0;
  font-family: var(--font-display);
}
.step-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem;
  box-shadow: 0 4px 20px rgba(27,42,74,0.05);
}
.step-card-icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; opacity: 0.8; }
.step-dot-row { display: flex; flex-direction: column; gap: 12px; }
.step-dot-item { display: flex; align-items: center; gap: 12px; }
.step-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.step-dot-item span { font-size: 14px; color: var(--text-dim); }

/* ─── TECH STACK ─── */
#tech { padding: 7rem 0; }
.marquee-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 24px 0; margin-bottom: 5rem; overflow: hidden; background: var(--bg-warm); }
.marquee-inner { display: flex; white-space: nowrap; }
.marquee-inner span { display: inline-block; }
.marquee-word { display: inline-block; margin: 0 16px; font-size: 1.8rem; font-weight: 700; color: var(--border-soft); transition: color 0.2s; cursor: default; font-family: var(--font-display); }
.marquee-word:hover { color: var(--brand); }
.marquee-dot { display: inline-block; margin: 0 16px; font-size: 1.8rem; font-weight: 700; color: rgba(232,85,58,0.2); }

.tech-carousel { position: relative; width: 100%; overflow: hidden; padding: 10px 0; }
.tech-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; }
.tech-track::-webkit-scrollbar { display: none; }
.tech-card { flex: 0 0 calc(25% - 18px); scroll-snap-align: start; }
@media(max-width:1023px){ .tech-card { flex: 0 0 calc(50% - 12px); } }
@media(max-width:640px){ .tech-card { flex: 0 0 100%; } }

.tech-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: 0 2px 12px rgba(27,42,74,0.04); }
.tech-card h3 { font-weight: 600; font-size: 1.05rem; color: var(--navy); margin-bottom: 16px; font-family: var(--font-display); }
.tech-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px; border-radius: 8px; transition: background 0.2s;
}
.tech-item:hover { background: var(--brand-bg); }
.tech-item:hover .tech-label { color: var(--navy); }
.tech-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.tech-label { font-size: 14px; color: var(--text-muted); transition: color 0.2s; }

/* ─── TESTIMONIALS ─── */
#testimonials { padding: 7rem 0; }

.testi-carousel { position: relative; width: 100%; overflow: hidden; padding: 10px 0; }
.testi-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; }
.testi-track::-webkit-scrollbar { display: none; }
.testi-card { flex: 0 0 calc(33.333% - 16px); scroll-snap-align: start; }
@media(max-width:1023px){ .testi-card { flex: 0 0 calc(50% - 12px); } }
@media(max-width:640px){ .testi-card { flex: 0 0 100%; } }

.testi-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  position: relative; overflow: hidden;
  box-shadow: 0 2px 12px rgba(27,42,74,0.04);
}
.testi-card::before {
  content: '"'; position: absolute; top: -20px; right: 20px;
  font-family: var(--font-serif); font-size: 140px; color: var(--brand); opacity: 0.06; line-height: 1;
}
.testi-card:hover { transform: translateY(-6px); border-color: rgba(232,85,58,0.2); box-shadow: 0 16px 48px rgba(27,42,74,0.08); }
.testi-quote-icon { color: rgba(232,85,58,0.25); margin-bottom: 20px; }
.stars { display: flex; gap: 4px; margin-bottom: 20px; }
.star { color: #F59E0B; fill: #F59E0B; }
.testi-text { font-size: 15px; color: var(--text-dim); line-height: 1.8; margin-bottom: 28px; font-style: italic; font-family: var(--font-serif); }
.testi-author { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--border); }
.author-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; color: #fff; flex-shrink: 0;
  font-family: var(--font-display);
}
.author-name { font-size: 15px; font-weight: 600; color: var(--navy); font-family: var(--font-display); }
.author-title { font-size: 13px; color: var(--text-muted); }

/* ─── TIMELINE ─── */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute; left: 20px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--brand), var(--border));
}
@media(max-width:640px){ .timeline::before{ left: 12px; } }
.timeline-item {
  position: relative; padding-left: 60px; margin-bottom: 40px;
}
@media(max-width:640px){ .timeline-item{ padding-left: 40px; } }
.timeline-dot {
  position: absolute; left: 12px; top: 8px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand); border: 3px solid var(--bg);
  box-shadow: 0 0 0 4px rgba(232,85,58,0.15);
}
.timeline-content {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
  box-shadow: 0 2px 12px rgba(27,42,74,0.04);
}
.timeline-date { font-size: 13px; color: var(--brand); font-weight: 600; margin-bottom: 8px; font-family: var(--font-display); }
.timeline-content h3 { font-size: 1.2rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; font-family: var(--font-display); }
.timeline-company { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.timeline-content p { font-size: 14px; color: var(--text-dim); line-height: 1.7; margin-bottom: 12px; }
.timeline-content .tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ─── SKILLS GRID ─── */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
@media(max-width:768px){ .skills-grid{ grid-template-columns: 1fr; } }
.skill-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  box-shadow: 0 2px 12px rgba(27,42,74,0.04);
}
.skill-card h3 { font-size: 1.2rem; font-weight: 600; color: var(--navy); margin-bottom: 16px; font-family: var(--font-display); }
.skill-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--brand-dim);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--brand);
}
.skill-items { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  font-size: 13px; padding: 6px 12px; border-radius: 8px;
  background: var(--bg-warm); border: 1px solid var(--border);
  color: var(--text-dim); font-family: var(--font-display);
}

/* ─── CONTACT ─── */
#contact { padding: 7rem 0; }
.contact-grid { display: grid; grid-template-columns: 2fr 3fr; gap: 3rem; }
@media(max-width:1023px){ .contact-grid{ grid-template-columns: 1fr; } }
.contact-info h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-bottom: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.contact-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--brand-dim); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; color: var(--brand);
}
.contact-label { font-weight: 500; color: var(--navy); font-size: 15px; font-family: var(--font-display); }
.contact-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.socials { display: flex; gap: 12px; margin-top: 2rem; }
.social-btn {
  width: 40px; height: 40px; border-radius: 12px; background: var(--card);
  border: 1px solid var(--border); display: flex; align-items: center;
  justify-content: center; color: var(--text-muted); text-decoration: none;
  transition: all 0.2s;
}
.social-btn:hover { color: var(--brand); border-color: rgba(232,85,58,0.3); background: var(--brand-bg); }
.avail-box {
  background: var(--brand-bg);
  border: 1px solid rgba(232,85,58,0.15); border-radius: 16px; padding: 24px; margin-top: 2rem;
}
.avail-box .avail-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.avail-box p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.avail-box strong { color: var(--navy); }
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; box-shadow: 0 4px 20px rgba(27,42,74,0.05); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
@media(max-width:640px){ .form-row{ grid-template-columns: 1fr; } }
.form-group { margin-bottom: 0; }
.form-label { font-size: 14px; font-weight: 500; color: var(--text-dim); display: block; margin-bottom: 8px; font-family: var(--font-display); }
.form-input {
  width: 100%; padding: 12px 16px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text); font-size: 14px; font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-input::placeholder { color: var(--border-soft); }
.form-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(232,85,58,0.08); }
select.form-input { cursor: pointer; -webkit-appearance: none; }
.checkboxes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media(max-width:640px){ .checkboxes{ grid-template-columns: 1fr 1fr; } }
.check-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: var(--text-muted); transition: color 0.2s; }
.check-label:hover { color: var(--navy); }
.check-label input { accent-color: var(--brand); width: 16px; height: 16px; }
textarea.form-input { resize: none; }
.form-section { margin-bottom: 24px; }
.btn-submit {
  width: 100%; padding: 16px; border-radius: 100px; font-size: 16px;
  font-weight: 600; color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand);
  transition: all 0.3s; position: relative; overflow: hidden;
  font-family: var(--font-display);
  box-shadow: 0 4px 16px rgba(232,85,58,0.2);
}
.btn-submit:hover { background: #D4451F; box-shadow: 0 8px 28px rgba(232,85,58,0.3); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.btn-submit.success { background: #38A169; }
.btn-submit.error   { background: #E53E3E; }
.spinner {
  width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%;
}

/* ─── FOOTER ─── */
footer { border-top: 1px solid var(--border); background: var(--bg-warm); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr; gap: 3rem; padding: 4rem 0 3rem; }
@media(max-width:900px){ .footer-grid{ grid-template-columns: 1fr 1fr 1fr; } }
@media(max-width:640px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media(max-width:480px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-brand { grid-column: span 1; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; text-decoration: none; }
.footer-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.footer-col h4 { font-weight: 600; color: var(--navy); margin-bottom: 16px; font-size: 15px; font-family: var(--font-display); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 14px; color: var(--text-muted); }
.footer-bottom .heart { display: flex; align-items: center; gap: 4px; }
.heart-icon { color: #E53E3E; fill: #E53E3E; display: inline-flex; }

/* ─── COLOR HELPERS ─── */
.c-brand  { color: var(--brand); }
.c-emerald{ color: #38A169; }
.c-orange { color: #DD6B20; }
.c-violet { color: #805AD5; }
.c-red    { color: #E53E3E; }
.c-blue   { color: #3182CE; }
.c-teal   { color: #319795; }
.c-pink   { color: #D53F8C; }
.c-indigo { color: #5A67D8; }
.c-cyan   { color: #00B5D8; }

.bg-brand  { background: rgba(232,85,58,0.08); }
.bg-emerald{ background: rgba(56,161,105,0.08); }
.bg-orange { background: rgba(221,107,32,0.08); }
.bg-violet { background: rgba(128,90,213,0.08); }
.bg-red    { background: rgba(229,62,62,0.08); }
.bg-blue   { background: rgba(49,130,206,0.08); }
.bg-teal   { background: rgba(49,151,149,0.08); }
.bg-pink   { background: rgba(213,63,140,0.08); }
.bg-indigo { background: rgba(90,103,216,0.08); }

.grad-brand  { background: linear-gradient(135deg,#E8553A,#D4451F); }
.grad-violet { background: linear-gradient(135deg,#805AD5,#9F7AEA); }
.grad-cyan   { background: linear-gradient(135deg,#00B5D8,#3182CE); }
.grad-emerald{ background: linear-gradient(135deg,#38A169,#48BB78); }
.grad-orange { background: linear-gradient(135deg,#DD6B20,#ED8936); }
.grad-red    { background: linear-gradient(135deg,#E53E3E,#FC8181); }
.grad-blue   { background: linear-gradient(135deg,#3182CE,#63B3ED); }
.grad-teal   { background: linear-gradient(135deg,#319795,#4FD1C5); }
.grad-pink   { background: linear-gradient(135deg,#D53F8C,#F687B3); }
.grad-indigo { background: linear-gradient(135deg,#5A67D8,#7F9CF5); }

/* Hidden utility */
.hidden { display: none !important; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--navy);
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(27,42,74,0.08);
  transition: all 0.3s ease;
  padding: 0;
  line-height: 1;
}
.carousel-btn:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(232,85,58,0.25);
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* ═══════════════════ BLOG SECTION ═══════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(27,42,74,0.04);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(27,42,74,0.10);
}

.blog-card:hover .blog-content h3 {
  color: var(--brand);
}

.blog-img {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img img {
  transform: scale(1.05);
}

.blog-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-content {
  padding: 20px;
}

.blog-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.blog-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media(max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
