@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #050505;
  --bg-2: #0a0a0a;
  --bg-card: rgba(10,10,10,0.8);
  --border: rgba(63,63,70,0.5);
  --text: #d4d4d8;
  --muted: #71717a;
  --white: #ffffff;
  --accent: #a1a1aa;
  --glow: rgba(120,120,140,0.15);
  --font: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

/* Custom Cursor */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none;
}
.cursor-dot {
  width: 8px; height: 8px; background: #fff;
  border-radius: 50%;
  position: absolute; transform: translate(-50%,-50%);
  transition: transform 0.1s;
}
.cursor-ring {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  position: absolute; transform: translate(-50%,-50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring {
  width: 60px; height: 60px; border-color: rgba(255,255,255,0.8);
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

/* Navigation */
nav#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 48px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s, backdrop-filter 0.4s;
}
footer nav { position: static; padding: 0; background: none; backdrop-filter: none; border: none; }
nav#main-nav.scrolled {
  background: rgba(5,5,5,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-size: 16px; font-weight: 800; color: var(--white);
  text-decoration: none; letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-links {
  display: flex; gap: 40px; list-style: none;
}
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta {
  padding: 10px 24px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--white);
  border-radius: 100px; font-size: 14px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
}
.nav-cta:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }

/* Hero */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 120px 48px 80px;
}
.hero-bg-glow {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(80,80,100,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1200px; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.hero-text { }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  border-radius: 100px; font-size: 13px; color: var(--accent);
  margin-bottom: 32px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100%{box-shadow:0 0 0 0 rgba(74,222,128,0.5);}
  50%{box-shadow:0 0 0 6px rgba(74,222,128,0);}
}
.hero-title {
  font-size: clamp(42px, 5.5vw, 80px);
  font-weight: 800; line-height: 1.05;
  color: var(--white); letter-spacing: -2px;
  margin-bottom: 24px;
}
.hero-title span { color: var(--muted); }
.hero-desc {
  font-size: 17px; line-height: 1.7; color: var(--muted);
  max-width: 480px; margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn-primary {
  padding: 14px 32px;
  background: var(--white); color: #000;
  border-radius: 100px; font-size: 15px; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,255,255,0.15); }
.btn-ghost {
  padding: 14px 32px;
  border: 1px solid var(--border); color: var(--white);
  border-radius: 100px; font-size: 15px; font-weight: 500;
  text-decoration: none; cursor: pointer; background: transparent;
  transition: border-color 0.3s, background 0.3s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.04); }

/* Hero Card */
.hero-card-wrap {
  perspective: 1200px;
}
.hero-card {
  background: rgba(15,15,18,0.9);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: blur(20px);
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}
.hero-card-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.hero-card-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #3f3f46, #18181b);
  border: 2px solid var(--border);
  overflow: hidden; flex-shrink: 0;
}
.hero-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-name { font-size: 16px; font-weight: 700; color: var(--white); }
.hero-card-role { font-size: 13px; color: var(--muted); margin-top: 2px; }
.hero-card-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px;
}
.stat-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 16px;
}
.stat-num { font-size: 28px; font-weight: 800; color: var(--white); }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.hero-card-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 100px; font-size: 12px; color: var(--accent);
  background: rgba(255,255,255,0.03);
}

/* Marquee */
.marquee-section {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.marquee-track {
  display: flex; gap: 48px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  font-size: 13px; font-weight: 500; color: var(--muted);
  text-transform: uppercase; letter-spacing: 2px;
  display: flex; align-items: center; gap: 48px; flex-shrink: 0;
}
.marquee-item::after {
  content: '✦';
  color: rgba(255,255,255,0.15);
}

/* Sections */
section { padding: 120px 48px; max-width: 1200px; margin: 0 auto; }
.section-full { max-width: none; padding-left: 0; padding-right: 0; }

.section-label {
  font-size: 12px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 3px; margin-bottom: 16px;
}
.section-title {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800; color: var(--white);
  line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 24px;
}
.section-desc {
  font-size: 17px; color: var(--muted); line-height: 1.7;
  max-width: 520px;
}

/* Reveal animation */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* About */
#about {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start;
}
.about-left { }
.about-photo {
  width: 100%; aspect-ratio: 3/4; border-radius: 20px;
  object-fit: cover; border: 1px solid var(--border);
  margin-bottom: 32px;
  background: linear-gradient(135deg, #18181b, #09090b);
}
.about-stats { display: flex; flex-direction: column; gap: 12px; }
.about-stat {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 12px; background: rgba(255,255,255,0.02);
}
.about-stat-num { font-size: 22px; font-weight: 800; color: var(--white); }
.about-stat-label { font-size: 13px; color: var(--muted); }
.about-right { }
.about-right .section-label { margin-top: 12px; }
.about-bio {
  font-size: 17px; color: var(--muted); line-height: 1.8; margin-bottom: 32px;
}
.about-philosophy {
  border-left: 2px solid rgba(255,255,255,0.15); padding-left: 24px;
  font-size: 20px; font-style: italic; color: var(--accent); line-height: 1.6;
}

/* Capabilities */
#capabilities { }
.cap-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; flex-wrap: wrap; gap: 24px; }
.cap-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border-radius: 20px; overflow: hidden; }
.cap-card {
  background: var(--bg-2); padding: 40px 36px;
  transition: background 0.3s;
  position: relative; overflow: hidden;
}
.cap-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.cap-card:hover { background: #0f0f12; }
.cap-card:hover::before { opacity: 1; }
.cap-icon {
  width: 48px; height: 48px; margin-bottom: 20px;
  border: 1px solid var(--border); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: rgba(255,255,255,0.03);
}
.cap-name { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.cap-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* Process */
#process { background: rgba(255,255,255,0.01); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.process-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 48px; margin-top: 64px; }
.process-step { }
.step-num {
  font-size: 48px; font-weight: 900;
  color: rgba(255,255,255,0.06); margin-bottom: 16px;
  letter-spacing: -2px; line-height: 1;
}
.step-name { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.step-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* Works */
#works { }
.works-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; flex-wrap: wrap; gap: 24px; }
.featured-project {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0;
  border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  margin-bottom: 24px; min-height: 480px;
  transition: border-color 0.3s;
}
.featured-project:hover { border-color: rgba(255,255,255,0.2); }
.featured-img {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.featured-img .project-preview {
  width: 85%; border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.featured-info {
  padding: 48px 48px;
  display: flex; flex-direction: column; justify-content: center;
  background: rgba(10,10,12,0.9);
}
.project-tag {
  display: inline-block; padding: 5px 12px;
  border: 1px solid var(--border); border-radius: 100px;
  font-size: 12px; color: var(--muted); margin-bottom: 20px;
}
.project-title { font-size: 28px; font-weight: 800; color: var(--white); margin-bottom: 16px; line-height: 1.2; letter-spacing: -0.5px; }
.project-desc { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 28px; }
.project-metrics { display: flex; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.metric { }
.metric-val { font-size: 24px; font-weight: 800; color: var(--white); }
.metric-label { font-size: 12px; color: var(--muted); }
.project-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--white); font-size: 14px; font-weight: 600;
  text-decoration: none; transition: gap 0.2s;
}
.project-link:hover { gap: 12px; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project-card {
  border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  background: rgba(10,10,12,0.6);
}
.project-card:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-4px); }
.project-card-img {
  height: 220px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 64px;
}
.project-card-img.green { background: linear-gradient(135deg, #052e16, #166534); }
.project-card-img.purple { background: linear-gradient(135deg, #2e1065, #4c1d95); }
.project-card-body { padding: 28px; }

/* Testimonials */
#testimonials { }
.test-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 56px; }
.test-card {
  border: 1px solid var(--border); border-radius: 20px; padding: 32px;
  background: rgba(10,10,12,0.6);
  transition: border-color 0.3s, transform 0.3s;
}
.test-card:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-4px); }
.test-stars { color: #fbbf24; font-size: 14px; margin-bottom: 16px; letter-spacing: 2px; }
.test-quote { font-size: 15px; color: var(--text); line-height: 1.7; margin-bottom: 24px; font-style: italic; }
.test-author { display: flex; align-items: center; gap: 12px; }
.test-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #3f3f46, #18181b);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.test-name { font-size: 14px; font-weight: 600; color: var(--white); }
.test-role { font-size: 12px; color: var(--muted); }

/* FAQ */
#faq { }
.faq-list { margin-top: 56px; display: flex; flex-direction: column; gap: 1px; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; cursor: pointer;
  font-size: 17px; font-weight: 600; color: var(--white);
  transition: color 0.3s; gap: 16px;
}
.faq-q:hover { color: var(--accent); }
.faq-chevron {
  width: 32px; height: 32px; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: transform 0.3s, background 0.3s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); background: rgba(255,255,255,0.08); }
.faq-a {
  overflow: hidden; max-height: 0;
  transition: max-height 0.4s ease, padding 0.3s;
}
.faq-a-inner { padding-bottom: 24px; font-size: 15px; color: var(--muted); line-height: 1.8; }

/* Contact / CTA */
#contact {
  text-align: center;
  padding-top: 80px; padding-bottom: 80px;
  border-top: 1px solid var(--border);
}
.contact-glow {
  position: relative;
  max-width: 700px; margin: 0 auto;
}
.contact-glow::before {
  content: '';
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(100,100,120,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.contact-title { font-size: clamp(40px, 5vw, 68px); font-weight: 900; color: var(--white); letter-spacing: -2px; line-height: 1.05; margin-bottom: 20px; }
.contact-sub { font-size: 17px; color: var(--muted); margin-bottom: 48px; }
.contact-form { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field {
  padding: 16px 20px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 12px; color: var(--white); font-size: 15px; font-family: var(--font);
  outline: none; transition: border-color 0.3s;
  width: 100%;
}
.form-field::placeholder { color: var(--muted); }
.form-field:focus { border-color: rgba(255,255,255,0.25); }
textarea.form-field { resize: none; height: 120px; }

/* Skills Matrix */
.skills-grid { display: flex; flex-direction: column; gap: 32px; }
.skill-category { }
.skill-cat-label {
  font-size: 11px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 3px;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.skill-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chip {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 100px; font-size: 13px; font-weight: 500;
  color: var(--accent); background: rgba(255,255,255,0.03);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  cursor: default;
}
.skill-chip:hover { border-color: rgba(255,255,255,0.3); color: var(--white); background: rgba(255,255,255,0.06); }
.skill-chip--primary {
  border-color: rgba(255,255,255,0.2); color: var(--white);
  background: rgba(255,255,255,0.06); font-weight: 600;
}
.skill-chip--primary:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.1); }
.skill-chip--ai {
  border-color: rgba(139,92,246,0.4); color: #c4b5fd;
  background: rgba(139,92,246,0.08); font-weight: 600;
}
.skill-chip--ai:hover { border-color: rgba(139,92,246,0.8); background: rgba(139,92,246,0.15); }
.skills-ai-box {
  margin-top: 36px; padding: 24px 28px;
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 16px; background: rgba(139,92,246,0.06);
  display: flex; gap: 16px; align-items: flex-start;
}
.skills-ai-icon { font-size: 28px; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.skills-ai-title { font-size: 15px; font-weight: 700; color: #c4b5fd; margin-bottom: 8px; }
.skills-ai-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }



/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo { font-size: 20px; font-weight: 800; color: var(--white); }
.footer-links { display: flex; gap: 32px; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 12px; color: var(--muted); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 101;
  position: relative;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.35s ease;
  transform-origin: center;
}
/* Animate into X when open */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(5,5,5,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.mobile-menu a {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -1px;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: rgba(255,255,255,0.5); }
.mobile-menu .mobile-whatsapp {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.mobile-menu .mobile-whatsapp:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(37,211,102,0.35);
}
.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 28px;
  color: var(--white);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  padding: 8px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.mobile-close:hover { opacity: 1; }

.section-skills {
  padding: 120px 48px;
  border-top: 1px solid rgba(63,63,70,0.5);
}
.section-process {
  padding: 120px 48px;
  border-top: 1px solid rgba(63,63,70,0.5);
  border-bottom: 1px solid rgba(63,63,70,0.5);
}
.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.section-faq {
  padding: 120px 48px;
}
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-card-wrap { max-width: 500px; }
  #about { grid-template-columns: 1fr; }
  .about-photo { max-height: 400px; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .featured-project { grid-template-columns: 1fr; }
  .featured-img { min-height: 280px; }
  .skills-layout { grid-template-columns: 1fr; gap: 48px; }
  .faq-layout { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  nav#main-nav { padding: 16px 24px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  section { padding: 80px 24px; }
  .section-skills, .section-process, .section-faq { padding: 80px 24px; }
  footer { padding: 32px 24px; flex-direction: column; text-align: center; }
  .cap-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .test-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ========================================================================== */
/* STANDALONE CASE STUDY PAGES (REDESIGNED) */
/* ========================================================================== */

/* Hero Section */
.case-hero {
  position: relative;
  width: 100%;
  padding: 160px 24px 100px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.case-header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(5,5,5,0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(63,63,70,0.3);
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}
.btn-back:hover { color: var(--white); }

.case-hero-content {
  position: relative;
  z-index: 10;
  max-width: 1000px;
  margin: 0 auto;
}
.case-cat-badge {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}
.case-main-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -2px;
  margin-bottom: 40px;
}

/* Floating Cover Image */
.case-cover-wrapper {
  position: relative;
  max-width: 1200px;
  margin: -60px auto 80px; /* Overlap the hero section slightly */
  z-index: 20;
  padding: 0 24px;
  perspective: 1200px;
}
.case-cover-image {
  width: 100%;
  height: clamp(300px, 50vw, 600px);
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.1);
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  transition: transform 0.4s ease-out, border-color 0.4s;
}
.case-cover-image:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255,255,255,0.2);
}

/* Auto-Layout Main Content Container */
.case-main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 120px;
}

/* Metrics Grid */
.case-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}
.case-metric-card {
  padding: 40px 32px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.case-metric-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.case-metric-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
}
.case-metric-card:hover::before { opacity: 1; }

.case-metric-num {
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.case-metric-lbl {
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

/* Content Layout CSS Grid */
.case-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
}
.case-body-section {
  margin-bottom: 64px;
}
.case-body-section h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.case-body-section p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Beautiful Highlight Boxes */
.case-highlight-box {
  border: 1px solid rgba(139,92,246,0.3);
  background: rgba(139,92,246,0.05);
  border-radius: 24px;
  padding: 40px;
  margin-top: 48px;
}
.case-highlight-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
}
.case-list {
  list-style: none;
}
.case-list li {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.case-list li::before {
  content: '✦';
  color: var(--accent);
  font-size: 14px;
  margin-top: 4px;
}

/* Sidebar Styling */
.case-sidebar-card {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.01);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px;
  position: sticky;
  top: 120px;
}
.case-sidebar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 16px;
}
.case-tech-tag {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  margin: 0 8px 12px 0;
  transition: background 0.3s;
}
.case-tech-tag:hover {
  background: rgba(255,255,255,0.1);
}

/* CTA Footer Section */
.case-cta-section {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 80px;
  margin-top: 40px;
}
.case-cta-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.case-cta-desc {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .case-content-grid { grid-template-columns: 1fr; gap: 48px; }
  .case-sidebar-card { position: static; margin-top: 40px; }
}
@media (max-width: 768px) {
  .case-header-nav { padding: 16px 24px; }
  .case-hero { padding: 120px 24px 60px; }
  .case-cover-wrapper { margin-top: -30px; }
  .case-metrics-grid { grid-template-columns: 1fr; }
  .case-body-section h2 { font-size: 28px; }
  .case-highlight-box { padding: 24px; }
}
