/* ==========================================================================
   Satvat Studio - Core Design System & Global Styles
   ========================================================================== */

:root {
  /* Colors */
  --bg: #08070c;
  --bg2: #0d0a13;
  --panel: rgba(255,255,255,0.055);
  --panel-strong: rgba(255,255,255,0.085);
  --line: rgba(255,255,255,0.10);
  --text: #f6f2ff;
  --muted: #aaa3b8;
  
  /* Accents */
  --purple: #7a42ff;
  --purple2: #b779ff;
  --cyan: #8ae7ff;
  
  /* Typography */
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  
  /* Layout */
  --max: 1440px;
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(55% 35% at 80% 4%, rgba(122,66,255,0.20), transparent 60%),
    radial-gradient(40% 30% at 5% 18%, rgba(138,231,255,0.08), transparent 65%),
    linear-gradient(180deg, #08070c 0%, #09070f 45%, #07060a 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  background: linear-gradient(rgba(255,255,255,0.012) 50%, transparent 50%);
  background-size: 100% 4px;
  opacity: 0.12;
  mix-blend-mode: overlay;
}

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

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: auto;
}

.section { padding: 110px 0; }
.section-sm { padding: 60px 0; }

h1, h2, h3, h4, h5, h6, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.04em; }
h1 { font-size: clamp(3.5rem, 8vw, 6.5rem); line-height: 0.9; }
h2 { font-size: clamp(2.4rem, 5vw, 4.7rem); line-height: 0.96; }
p { color: var(--muted); line-height: 1.7; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(var(--max), calc(100% - 28px));
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 18px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  background: rgba(11,9,16,0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 55px rgba(0,0,0,0.28);
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0.02em; }
.brand img {
  width: 40px; height: 40px; border-radius: 10px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18), 0 4px 14px rgba(122,66,255,0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.brand:hover img {
  transform: scale(1.06);
  box-shadow: 0 0 0 1px rgba(183,121,255,0.5), 0 6px 20px rgba(138,77,255,0.5);
}
.brand small { display: block; color: #9f97ad; font-weight: 500; font-size: 0.65rem; margin-top: 1px; }

.navlinks { display: flex; align-items: center; gap: 26px; color: #bcb3c8; font-size: 0.88rem; font-weight: 500; }
.navlinks a { transition: 0.25s var(--ease); }
.navlinks a:hover, .navlinks a.active { color: #fff; }

.header-socials { display: flex; gap: 6px; align-items: center; margin-right: 4px; }
.header-social {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.11); background: rgba(255,255,255,0.025);
  color: #aaa3b8; transition: 0.3s ease;
}
.header-social:hover {
  color: #fff; border-color: rgba(168,85,247,0.65); background: rgba(124,58,237,0.15);
  transform: translateY(-2px); box-shadow: 0 8px 25px rgba(106,57,219,0.2);
}
.header-social svg { width: 16px; height: 16px; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 13px;
  background: linear-gradient(135deg, #8a4dff, #6134d2); border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 8px 24px rgba(122,66,255,0.25); font-weight: 700; font-size: 0.82rem; transition: transform 0.3s var(--ease);
}
.nav-cta:hover { transform: translateY(-2px); }

.menu-toggle { display: none; border: 0; background: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ==========================================================================
   Buttons & Tags
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 15px; padding: 14px 22px; border: 1px solid var(--line);
  font-weight: 700; font-size: 0.95rem; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-3px); }
.btn.primary { background: linear-gradient(135deg, #8d52ff, #5c2ed4); box-shadow: 0 18px 38px rgba(112,56,240,0.23); color: #fff; border: none; }
.btn.ghost { background: rgba(255,255,255,0.04); color: #fff; }

.kicker {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.035);
  border-radius: 999px; color: #d9d1eb; font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; font-family: var(--font-display);
}
.kicker:before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 15px rgba(138,231,255,0.8); }

/* ==========================================================================
   Page Headers (Internal Pages)
   ========================================================================== */
.page-header {
  padding: 200px 0 100px;
  text-align: center;
  position: relative;
  isolation: isolate;
}
.page-header:after {
  content: ""; position: absolute; left: 50%; top: 50px; transform: translateX(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(122,66,255,0.15), transparent 66%);
  filter: blur(40px); z-index: -1;
}
.page-header p.lead {
  max-width: 600px; margin: 20px auto 0; font-size: 1.1rem;
}

/* ==========================================================================
   Footer (4 Column)
   ========================================================================== */
.site-footer { padding: 80px 0 40px; border-top: 1px solid var(--line); background: rgba(255,255,255,0.012); margin-top: 80px; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }

.footer-col h4 { font-size: 1.2rem; color: #fff; margin-bottom: 24px; font-weight: 600; letter-spacing: 0.02em; }
.footer-col p { font-size: 0.9rem; margin-bottom: 24px; color: #aaa3b8; }

.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.footer-brand img {
  width: 50px; height: 50px; border-radius: 12px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18), 0 4px 16px rgba(122,66,255,0.35);
  transition: transform 0.3s ease;
}
.footer-brand:hover img { transform: scale(1.05); }
.footer-brand strong { display: block; font: 800 1.2rem var(--font-display); letter-spacing: 0.12em; }

.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center;
  color: #9a91a4; background: rgba(255,255,255,0.025); transition: 0.25s;
}
.footer-social:hover { color: #fff; background: rgba(124,58,237,0.14); border-color: rgba(168,85,247,0.55); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }

.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: #8e8696; font-size: 0.95rem; transition: 0.25s; }
.footer-links a:hover { color: #fff; padding-left: 5px; }

.footer-newsletter { display: flex; gap: 10px; flex-direction: column; }
.footer-newsletter input {
  width: 100%; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.03); color: #fff; font-family: var(--font-body);
  outline: none; transition: 0.3s;
}
.footer-newsletter input:focus { border-color: var(--purple); background: rgba(255,255,255,0.05); }
.footer-newsletter button {
  padding: 14px; border-radius: 12px; border: none; background: linear-gradient(135deg, #8d52ff, #5c2ed4);
  color: #fff; font-weight: bold; cursor: pointer; transition: 0.3s;
}
.footer-newsletter button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(112,56,240,0.3); }

.footer-bottom {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 30px; margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.05); color: #6f6879; font-size: 0.8rem;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { transition: 0.3s; }
.footer-bottom-links a:hover { color: #fff; }

/* ==========================================================================
   Pipeline Timeline & Infographics
   ========================================================================== */
.pipeline-timeline {
  position: relative;
  margin: 40px 0;
  padding-left: 30px;
  border-left: 2px solid rgba(168, 85, 247, 0.3);
}

.pipeline-step {
  position: relative;
  margin-bottom: 40px;
  padding: 20px 30px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 15px;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.pipeline-step:hover {
  transform: translateX(10px);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.1);
}

.pipeline-step::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 30px;
  width: 16px;
  height: 16px;
  background: var(--bg);
  border: 3px solid #a855f7;
  border-radius: 50%;
  box-shadow: 0 0 10px #a855f7;
  transition: background 0.3s, transform 0.3s;
}

.pipeline-step:hover::before {
  background: #a855f7;
  transform: scale(1.3);
}

.pipeline-step h3 {
  margin-top: 0;
  font-size: 1.4rem;
  color: #fff;
}

.pipeline-step p {
  color: #a19ba8;
  font-size: 0.95rem;
  line-height: 1.6;
}

.tech-stack {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.tech-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 20px;
  font-size: 0.8rem;
  color: #d1c4e9;
  font-family: var(--font-sans);
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}

.tech-icon:hover {
  background: rgba(168, 85, 247, 0.3);
  color: #fff;
}

.tech-icon svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Utilities & Animations
   ========================================================================== */
.cursor-glow {
  position: fixed; pointer-events: none; z-index: 60; width: 250px; height: 250px; border-radius: 50%;
  background: radial-gradient(circle, rgba(126,77,255,0.12), transparent 65%); transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.show { opacity: 1; transform: none; }

.bubble { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.b1 { width: 14px; height: 14px; left: 10%; top: 20%; background: #9f73ff; box-shadow: 0 0 25px #8551ff; animation: float 6s ease-in-out infinite; }
.b2 { width: 9px; height: 9px; left: 80%; top: 15%; background: #82ddff; box-shadow: 0 0 18px #66dcff; animation: float 5s ease-in-out infinite 1s; }
.b3 { width: 16px; height: 16px; right: 15%; top: 40%; background: #7c49ff; box-shadow: 0 0 28px #7c49ff; animation: float 7s ease-in-out infinite 0.5s; }
@keyframes float { 50% { transform: translateY(-20px) translateX(10px); } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .header-socials { display: none; }
}

@media (max-width: 768px) {
  .nav { height: 60px; border-radius: 17px; padding: 0 15px; }
  .navlinks {
    position: absolute; top: 75px; left: 0; right: 0; background: rgba(11,9,16,0.95);
    flex-direction: column; padding: 20px; border-radius: 15px; border: 1px solid var(--line);
    backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.3s var(--ease);
  }
  .nav.open .navlinks { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-cta { display: none; }
  .menu-toggle { display: block; }
  
  .footer-main { grid-template-columns: 1fr; gap: 40px; }
}

/* ==========================================================================
   New Homepage Sections & Pipelines
   ========================================================================== */
.client-marquee {
  width: 100%; overflow: hidden; padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.01); display: flex; align-items: center; margin: 40px 0; gap: 80px;
}
.marquee-group {
  display: flex; gap: 80px; align-items: center; flex-shrink: 0;
  animation: marquee 30s linear infinite;
}
.client-marquee img { height: 60px; max-width: 180px; object-fit: contain; opacity: 0.8; filter: brightness(0) invert(1); transition: 0.4s; }
.client-marquee img:hover { opacity: 1; filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(255,255,255,0.8)); transform: scale(1.05); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-100% - 80px)); } }

.pipeline-timeline {
  position: relative; padding-left: 40px; border-left: 2px dashed rgba(122,66,255,0.3);
  margin-top: 40px; display: flex; flex-direction: column; gap: 40px;
}
.pipeline-step { position: relative; }
.pipeline-step::before {
  content: ""; position: absolute; left: -49px; top: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--purple); border: 4px solid var(--bg); box-shadow: 0 0 10px rgba(122,66,255,0.6);
}
.pipeline-step h3 { font-size: 1.4rem; color: #fff; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.pipeline-step p { color: var(--muted); }
.tech-stack { display: flex; gap: 12px; margin-top: 15px; flex-wrap: wrap; }
.tech-icon {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  background: rgba(255,255,255,0.04); border-radius: 8px; border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem; color: #d9d1eb; font-weight: 500;
}

.service-hub-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 50px;
}
.service-card {
  padding: 40px 30px; border-radius: 24px; border: 1px solid var(--line);
  background: var(--panel); backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s;
  position: relative; overflow: hidden;
}
.service-card:hover {
  transform: translateY(-8px); border-color: rgba(168,85,247,0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(255,255,255,0.05);
}
.service-card h3 { font-size: 1.6rem; color: #fff; margin-bottom: 15px; }
.service-card p { color: var(--muted); margin-bottom: 25px; font-size: 0.95rem; }
.service-card .icon {
  width: 60px; height: 60px; border-radius: 16px; background: rgba(122,66,255,0.1);
  display: grid; place-items: center; color: var(--purple2); margin-bottom: 25px;
  font-size: 1.5rem;
}

.showreel-container {
  position: relative; width: 100%; aspect-ratio: 21/9; border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  display: grid; place-items: center; background: #000; margin: 40px 0;
}
.showreel-container img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.play-btn {
  position: absolute; width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); display: grid; place-items: center;
  color: #fff; font-size: 2rem; cursor: pointer; transition: 0.3s var(--ease);
}
.play-btn:hover { transform: scale(1.1); background: rgba(122,66,255,0.6); }

.portfolio-img-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 30px;
}
.portfolio-img-grid img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 16px; border: 1px solid rgba(255,255,255,0.1);
  transition: 0.3s;
}
.portfolio-img-grid img:hover { transform: scale(1.02); border-color: rgba(168,85,247,0.4); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

/* Portfolio Gallery Grid */

    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 20px;
      grid-auto-flow: dense;
      margin-top: 40px;
    }
    
    .gallery-item {
      position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
      background: #0c0a11; cursor: pointer; aspect-ratio: 1; isolation: isolate;
    }
    
    .gallery-item.large {
      grid-column: span 2;
      grid-row: span 2;
    }
    

/* Portfolio Gallery Grid */

    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 20px;
      grid-auto-flow: dense;
      margin-top: 40px;
    }
    
    .gallery-item {
      position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
      background: #0c0a11; cursor: pointer; aspect-ratio: 1; isolation: isolate;
    }
    
    .gallery-item.large {
      grid-column: span 2;
      grid-row: span 2;
    }
    
    .gallery-item.wide {
      grid-column: span 2;
      aspect-ratio: 2/1;
    }
    
    .gallery-item img {
      position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
      transition: transform 0.6s var(--ease), filter 0.4s; filter: saturate(0.85) contrast(1.1);
    }
    .gallery-item:hover img { transform: scale(1.06); filter: saturate(1.1) contrast(1.1); }
    
    .gallery-item:after {
      content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.85) 100%); z-index: 1; opacity: 0; transition: opacity 0.3s;
      pointer-events: none;
    }
    .gallery-item:hover:after { opacity: 1; }
    
    .gallery-overlay {
      position: absolute; z-index: 2; bottom: 20px; left: 20px; right: 20px;
      transform: translateY(20px); opacity: 0; transition: all 0.4s var(--ease);
      pointer-events: none;
    }
    .gallery-item:hover .gallery-overlay { transform: translateY(0); opacity: 1; }
    
    .gallery-overlay h4 { font-size: 1.1rem; color: #fff; margin-bottom: 5px; }
    .gallery-overlay p { font-size: 0.8rem; color: #a855f7; }

    .portfolio-cta {
      margin-top: 80px; text-align: center; padding: 60px; border-radius: 30px;
      border: 1px solid rgba(168,85,247,0.3); background: rgba(124,58,237,0.05);
    }
    
    @media (max-width: 768px) {
      .gallery-item.large, .gallery-item.wide { grid-column: span 1; grid-row: span 1; aspect-ratio: 1; }
    }