/* ======================================================
   THEME VARIABLES
   Change these → whole website updates
====================================================== */
:root {
  /* BACKGROUNDS */
  --bg-main: #050505;
  --bg-soft: #0e0e0e;
  --bg-navbar: rgba(11, 11, 11, 0.95);
  --bg-card: #111;
  --bg-card-light: #161616;
  --bg-tag: #222;
  --bg-footer: #0b0b0b;

  /* TEXT */
  --text-main: #ffffff;
  --text-muted: #aaa;
  --text-soft: #ccc;
  --text-dim: #999;
  --text-faint: #555;

  /* BORDERS */
  --border-soft: #222;
  --border-medium: #333;
  --border-light: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.3);

  /* GLASS */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-hover: rgba(255, 255, 255, 0.1);

  /* ACCENT */
  --accent: #ffffff;
  --accent-dark: #000000;

  /* EFFECTS */
  --glow: rgba(255, 255, 255, 0.2);
}

#rope-svg {
  opacity: 0.5;
}



/* ======================================================
   RESET & CORE
====================================================== */
body {
  margin: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;

  /* MOVING GRID BACKGROUND */
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: moveGrid 20s linear infinite;
}


/* ======================================================
   SECTION STACKING SYSTEM (AUTO)
====================================================== */



a {
  color: var(--text-main);
  text-decoration: none;
  transition: 0.3s;
}

h1, h2, h3 {
  margin-bottom: 15px;
  color: var(--text-main);
}

/* ======================================================
   NAVBAR
====================================================== */
.navbar {
  background: var(--bg-navbar);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-soft);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
}

.navbar a {
  margin-left: 25px;
  font-size: 0.9rem;
  font-weight: 500;
}

.navbar a:hover { color: var(--text-dim); }

/* ======================================================
   HERO
====================================================== */
.hero {
  padding: 120px 20px;
  text-align: center;
  background: radial-gradient(circle at center, #c7d2f8 0%, var(--bg-soft) 70%);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
}



.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.subtitle { font-size: 1.5rem; color: var(--text-muted); margin-top: 0; }
.description { max-width: 600px; margin: 20px auto 40px; color: var(--text-soft); }

/* Smaller hero */
.hero.small {
  min-height: 40vh;
  padding: 80px 20px;
}

/* Animated gradient hero */
.hero-animated {
  background: linear-gradient(-45deg, #000000, #1a0b2e, #0f1c2e, #2a2a2a);
  background-size: 400% 400%;
  animation: gradientMove 15s ease infinite;
}



/* ======================================================
   BUTTONS
====================================================== */
.btn-primary {
  background:   #a6b1d6;
  color: var(--accent-dark);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.btn-primary:hover {
  background: #fdfcfc;
  transform: scale(1.05);
}

/* ======================================================
   SECTIONS
====================================================== */
.section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
}

.center-text {
  text-align: center;
  max-width: 800px;
  margin: auto;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
}

.section.dark {
  background: var(--bg-card);
  border-top: 1px solid var(--border-soft);
  text-align: center;
}

/* ======================================================
   GRID
====================================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* ======================================================
   CARDS
====================================================== */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 35px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  transition: all 0.4s ease;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.card h3 { font-size: 1.4rem; margin-bottom: 15px; }
.card p { color: var(--text-dim); font-size: 0.95rem; }

.card:hover {
  transform: translateY(-10px);
  background: var(--glass-hover);
  border-color: var(--border-strong);
  box-shadow: 0 0 20px var(--glow);
}

/* Clickable cards */
a.card {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

a.card:hover h3 {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Highlight card */
.card.highlight {
  background: #F1F4FF;
  border: 1px solid var(--border-medium);
}

/* ======================================================
   TEXT BLOCK
====================================================== */
.text-block {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  color: var(--text-soft);
  font-size: 1.1rem;
}

.text-block h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
}

.text-block strong { color: var(--text-main); }

/* Mission */
.mission-text {
  font-size: 1.8rem;
  font-style: italic;
  color: var(--text-main);
  border-left: 4px solid var(--accent);
  padding-left: 20px;
  margin-top: 20px;
}

/* ======================================================
   SERVICE LIST
====================================================== */
.service-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.service-list li {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: var(--text-soft);
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}

.service-list strong { color: var(--text-main); }

/* ======================================================
   INDUSTRY TAGS
====================================================== */
.industry-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.industry-tag {
  background: var(--bg-tag);
  color: var(--text-main);
  padding: 15px 30px;
  border-radius: 50px;
  border: 1px solid var(--border-medium);
  font-size: 1.1rem;
  transition: 0.3s;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.industry-tag:hover {
  background:  #fdfcfc;
  color: var(--accent-dark);
  transform: scale(1.05);
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--glow);
}

/* ======================================================
   TICKER
====================================================== */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg-card);
  padding: 15px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background:var(--bg-tag);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

.ticker-item {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-faint);
  padding: 0 40px;
  text-transform: uppercase;
}

/* ======================================================
   STICKY LAYOUT
====================================================== */
.sticky-container {
  padding: 100px 5%;
  background: var(--bg-main);
}

.sticky-content {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.text-column { width: 45%; padding-bottom: 50px; }

.sticky-text-block {
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sticky-text-block h3 {
  font-size: 3rem;
  margin-bottom: 20px;
  background: linear-gradient(to right, #ffffff, #888888);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.sticky-text-block p {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.image-column { width: 45%; height: 100%; }

.sticky-image-wrapper {
  position: sticky;
  top: 15%;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticky-image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* ======================================================
   STACK CARDS
====================================================== */
.stack-section {
  padding: 100px 20px;
  position: relative;
}

.stack-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.stack-card {
  position: sticky;
  top: calc(15vh + (var(--i) * 40px));
  background: #e9edfc;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 60px;
  margin-bottom: 50px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  transform-origin: top center;
  transform: scale(calc(1 - (var(--i) * 0.03)));
  transition: transform 0.5s ease;
}

.stack-card:hover {
  background: var(--bg-card-light);
  border-color: var(--border-strong);
}

.card-content span {
  font-size: 4rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.1);
  display: block;
  margin-bottom: 20px;
}

.card-content h3 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.card-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ======================================================
   CONTACT
====================================================== */
.contact-box { margin-top: 30px; font-size: 1.1rem; }
.contact-box a { border-bottom: 1px solid var(--border-medium); }

/* ======================================================
   FOOTER
====================================================== */
footer {
  text-align: center;
  padding: 40px;
  color: var(--text-faint);
  font-size: 0.8rem;
  background: var(--bg-footer);
}

/* ======================================================
   ANIMATIONS
====================================================== */
.fade-in { animation: fadeIn 1.5s ease forwards; opacity: 0; }
@keyframes fadeIn { to { opacity: 1; } }

.scroll-hidden {
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.scroll-hidden:nth-child(1) { transition-delay: 0ms; }
.scroll-hidden:nth-child(2) { transition-delay: 100ms; }
.scroll-hidden:nth-child(3) { transition-delay: 200ms; }
.scroll-hidden:nth-child(4) { transition-delay: 300ms; }
.scroll-hidden:nth-child(5) { transition-delay: 400ms; }
.scroll-hidden:nth-child(6) { transition-delay: 500ms; }

.card:nth-child(2) { transition-delay: 100ms; }
.card:nth-child(3) { transition-delay: 200ms; }
.card:nth-child(4) { transition-delay: 300ms; }

/* moving grid */
@keyframes moveGrid {
  0% { background-position: 0 0; }
  100% { background-position: 50px 50px; }
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ======================================================
   RESPONSIVE
====================================================== */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }

  .navbar { flex-direction: column; gap: 15px; }
  .navbar a { margin: 0 10px; }

  .sticky-content { flex-direction: column-reverse; }
  .text-column, .image-column { width: 100%; }

  .sticky-image-wrapper { position: relative; top: 0; }

  .sticky-text-block {
    height: auto;
    margin-bottom: 50px;
  }

  .stack-card {
    position: relative;
    top: 0 !important;
    transform: none !important;
    margin-bottom: 30px;
    padding: 30px;
  }
}


/* =========================================
   STICKY "CURTAIN" SECTION (Seamless Gradient)
   ========================================= */
.parallax-container {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1; 

    height: 100vh;
    width: 100%;
    
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    /* 1. THE SEAMLESS GRADIENT */
    /* Starts with Soft Mist (matches top) -> Deepens to Blue-Grey (bottom) */
    background: linear-gradient(to bottom, #eff3f8 0%, #dbe4f0 100%) !important;
    
    overflow: hidden;
}
/* Typography remains the same */
.parallax-title {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    
    /* 1. SIZE: Reduced from 5rem to 3.5rem for a cleaner look */
    font-size: 3.5rem;       
    
    /* 2. WEIGHT: Standard Bold (700) instead of Extra Bold (800) */
    font-weight: 700;        
    
    color: #0b0c15;          /* Deep Navy/Black */
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: -1px;    /* Tighter spacing */
    position: relative;
    z-index: 10;

    /* 3. WIDTH CONSTRAINT: Stops it from stretching too wide */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Add this if you want the "Real People. Real Buzz." line */
.parallax-subtitle {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.5rem;       /* Distinctly smaller */
    font-weight: 400;        /* Regular weight (NOT Bold) */
    color: #333;             /* Dark Grey */
    margin-top: 0;
    margin-bottom: 25px;
    position: relative;
    z-index: 10;
}

.parallax-text {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.1rem;       /* Smaller reading size */
    color: #555;             /* Softer Grey */
    line-height: 1.6;
    font-weight: 400;        /* Light and readable */
    
    max-width: 600px;        /* Narrow width for the paragraph */
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* The Mist Blobs */
.parallax-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    z-index: 0;
    will-change: transform;
}

.shape-1 { width: 600px; height: 600px; background: #EDE8F5; top: -10%; left: -10%; }
.shape-2 { width: 500px; height: 500px; background: #DCE4F2; bottom: -10%; right: -5%; }


/* =========================================
   THE "COVER" SECTION (Expertise)
   ========================================= */
/* Assuming your next section has ID 'expertise' or class 'section' */
#expertise, .section {
    position: relative; 
    z-index: 2; /* HIGHER than the parallax section */
    
    /* MUST HAVE A SOLID BACKGROUND */
    background: #ffffff; 
    
    /* Optional: A shadow on top adds to the 3D feel */
    box-shadow: 0 -20px 40px rgba(0,0,0,0.05);
}


/* =========================================
   FOOTER STYLES (Seamless Light Grey)
   ========================================= */
footer {
    position: relative; 
    z-index: 50;  /* Keeps it on top */
    
    /* 1. MATCH THE LIGHT GREY BACKGROUND */
    background-color: #f0f4f8; /* Soft Grey-Blue Mist */
    
    /* 2. TEXT COLOR (Dark Grey/Black) */
    color: #333333; 
    
    /* 3. SPACING */
    padding: 40px 20px;
    text-align: center;
    width: 100%;
    
    /* Optional: Remove any border so it blends perfectly */
    border: none;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.7; /* Slight fade for elegance */
}