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

@font-face {
    font-family: "Helvetica Regular";
    src: url("https://db.onlinewebfonts.com/t/a64ff11d2c24584c767f6257e880dc65.eot");
    src: url("https://db.onlinewebfonts.com/t/a64ff11d2c24584c767f6257e880dc65.eot?#iefix")format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/a64ff11d2c24584c767f6257e880dc65.woff2")format("woff2"),
    url("https://db.onlinewebfonts.com/t/a64ff11d2c24584c767f6257e880dc65.woff")format("woff"),
    url("https://db.onlinewebfonts.com/t/a64ff11d2c24584c767f6257e880dc65.ttf")format("truetype"),
    url("https://db.onlinewebfonts.com/t/a64ff11d2c24584c767f6257e880dc65.svg#Helvetica Regular")format("svg");
}

/* ==========================================================================
   DESIGN TOKENS & ROOT VARIABLES
   ========================================================================== */
:root {
  /* Warm, luxurious light-theme colors */
  --bg-primary: #fafafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f4f6fa;
  --text-primary: #0b0f19;
  --text-secondary: #3b4256;
  --text-muted: #808a9f;
  --accent-blue: #0066ff;
  --accent-purple: #8200ff;
  --accent-gold: #c5a059;
  --border-light: rgba(11, 15, 25, 0.06);
  --border-medium: rgba(11, 15, 25, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.45);
  --glass-glow: rgba(0, 102, 255, 0.03);

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(11, 15, 25, 0.02);
  --shadow-md: 0 12px 36px rgba(11, 15, 25, 0.05);
  --shadow-lg: 0 24px 64px rgba(11, 15, 25, 0.08);

  /* Fonts */
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Layout */
  --max-width: 1400px;
  --header-height: 80px;
}

/* ==========================================================================
   CSS RESETS & STRUCTURE
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--text-primary);
  /* Fix stacking: set background to transparent to allow fixed background elements to be visible */
  background: transparent;
  scroll-behavior: smooth;
}

/* ==========================================================================
   BACKGROUNDS (WebGL & Video Canvas Stacking Context)
   ========================================================================== */
#bg-color-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3; /* Bottom-most layer */
  background-color: var(--bg-primary);
  pointer-events: none;
}

#bg-video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2; /* Middle-bottom layer */
  overflow: hidden;
  pointer-events: none;
}

#bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35; /* Adjusted opacity to ensure background movement is visible but doesn't override text */
  filter: saturate(0.8) contrast(1.05) brightness(1.02);
}

#webgl-canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Middle layer */
  pointer-events: none;
}

/* Base body overlay for premium look */
.body-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0) 0%, rgba(250,250,252,0.5) 80%);
  pointer-events: none;
}

/* ==========================================================================
   WEBSITE LOADER
   ========================================================================== */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.8s ease;
}

.loader-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Morphing Wireframe Sphere in CSS/SVG */
.loader-svg {
  width: 120px;
  height: 120px;
  animation: rotateLoader 6s linear infinite;
  margin-bottom: 24px;
}

.loader-circle {
  fill: none;
  stroke: var(--accent-blue);
  stroke-width: 2.5;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLoader 3s ease-in-out infinite alternate;
  transform-origin: center;
}

.loader-circle-inner {
  fill: none;
  stroke: var(--accent-purple);
  stroke-width: 1.5;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawLoaderInner 2s ease-in-out infinite alternate;
  transform-origin: center;
}

.loader-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}

.loader-logo-img {
  height: 50px;
  width: auto;
  display: block;
}

.loader-progress-bar {
  width: 200px;
  height: 2px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.loader-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  transition: width 0.1s ease-out;
}

.loader-percentage {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-head);
  font-weight: 500;
}

@keyframes rotateLoader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes drawLoader {
  0% { stroke-dashoffset: 200; transform: scale(0.9) rotate(0deg); }
  50% { stroke-dashoffset: 0; transform: scale(1.05) rotate(180deg); }
  100% { stroke-dashoffset: -200; transform: scale(0.9) rotate(360deg); }
}

@keyframes drawLoaderInner {
  0% { stroke-dashoffset: 100; transform: rotate(0deg); }
  100% { stroke-dashoffset: -100; transform: rotate(-360deg); }
}

/* ==========================================================================
   NAVIGATION BAR (MEGA DROPDOWN)
   ========================================================================== */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  transition: background 0.3s ease, border 0.3s ease;
}

.nav-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.logo-link:hover .logo-img {
  opacity: 0.8;
}

.logo-icon {
  width: 28px;
  height: 28px;
  stroke: var(--accent-blue);
  stroke-width: 2.5;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  height: 100%;
}

.nav-item {
  height: 100%;
  display: flex;
  align-items: center;
  position: static;
}

.nav-link {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-item.active .nav-link {
  color: var(--accent-blue);
}

.nav-link svg {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.nav-item:hover .nav-link svg {
  transform: rotate(180deg);
}

/* Services Mega Dropdown - Multi-Column layout for 5 Categories */
.mega-dropdown {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  margin: 0 auto;
  transform: translateY(15px);
  width: 1050px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  pointer-events: none;
}

.nav-item:hover .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-col-title {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-col-title svg {
  width: 14px;
  height: 14px;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.dropdown-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dropdown-item-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-item-title {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.dropdown-item-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.dropdown-item-link:hover .dropdown-item-title {
  color: var(--accent-blue);
}

/* CTA Button in Nav */
.nav-cta-btn {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--text-primary);
  color: var(--bg-secondary) !important;
  padding: 10px 24px;
  border-radius: 50px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid transparent;
}

.nav-cta-btn:hover {
  background: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.2);
}

.nav-secondary-btn {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  color: var(--text-primary) !important;
  padding: 10px 24px;
  border-radius: 50px;
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-secondary-btn:hover {
  border-color: var(--accent-blue);
  background: rgba(0, 102, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.1);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
}

/* ==========================================================================
   PAGE SECTIONS & LAYOUT UTILITIES
   ========================================================================== */
main {
  position: relative;
  width: 100%;
}

.section {
  width: 100%;
  min-height: 100vh;
  padding: 120px 0;
  display: flex;
  align-items: center;
  position: relative;
}

.container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

.page-header-spacing {
  padding-top: calc(var(--header-height) + 40px);
}

/* Text reveal masks for GSAP animations */
.text-mask {
  overflow: hidden;
  display: block;
}

.reveal-heading {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.reveal-subheading {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
}

/* High-end glass containers */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  padding: 40px;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-panel:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-lg);
}

/* CTA buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-secondary);
  border: 1px solid var(--text-primary);
}

.btn-primary:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 102, 255, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  background: rgba(11, 15, 25, 0.03);
  transform: translateY(-3px);
}

/* ==========================================================================
   HOMEPAGE SPECIFIC SECTIONS
   ========================================================================== */

/* Hero Section */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 102, 255, 0.06);
  border: 1px solid rgba(0, 102, 255, 0.12);
  color: var(--accent-blue);
  padding: 8px 16px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero-tag svg {
  width: 14px;
  height: 14px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Section Video Showreel style */
.hero-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16/9;
  border-radius: 16px;
  border: 2px solid var(--border-medium);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 102, 255, 0.05) 0%, rgba(11, 15, 25, 0.2) 100%);
  pointer-events: none;
}

/* Previews Sections on Homepage */
.section-preview {
  border-top: 1px solid var(--border-light);
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.preview-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.preview-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-tag {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  display: block;
}

/* ==========================================================================
   SERVICES PAGE & COMPONENT STYLING
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.service-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent-blue);
  margin-bottom: 24px;
  transition: transform 0.4s ease, background 0.4s ease, color 0.4s ease;
}

.service-card:hover .service-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  background: var(--accent-blue);
  color: #ffffff;
}

.service-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-features-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 16px;
  width: 100%;
}

/* 2 columns for services list */
.services-detailed-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  width: 100%;
  margin-top: 10px;
  list-style: none;
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.service-feature-item svg {
  width: 14px;
  height: 14px;
  color: var(--accent-blue);
  flex-shrink: 0;
}

/* AEO FAQ Section */
.faq-section {
  margin-top: 100px;
  border-top: 1px solid var(--border-light);
  padding-top: 80px;
}

.faq-title {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 48px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-question svg {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: var(--accent-blue);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), margin-top 0.4s ease;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  margin-top: 16px;
}

/* ==========================================================================
   PORTFOLIO DEVICE MOCKUPS & ANIMATIONS
   ========================================================================== */

/* Filter Controls */
.portfolio-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-secondary);
  transform: translateY(-2px);
}

/* Portfolio Cards Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 80px;
}

.portfolio-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.portfolio-item:nth-child(even) {
  direction: rtl;
}

.portfolio-item:nth-child(even) .portfolio-details {
  direction: ltr;
}

.portfolio-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.portfolio-tag {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.portfolio-title {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.portfolio-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.tech-tag {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-blue);
  background: rgba(0, 102, 255, 0.05);
  border: 1px solid rgba(0, 102, 255, 0.1);
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tech-tag.purple {
  color: var(--accent-purple);
  background: rgba(130, 0, 255, 0.05);
  border: 1px solid rgba(130, 0, 255, 0.1);
}

.tech-tag.gold {
  color: var(--accent-gold);
  background: rgba(197, 160, 89, 0.05);
  border: 1px solid rgba(197, 160, 89, 0.1);
}

/* --- THE LAPTOP MOCKUP (CSS Rendering) --- */
.laptop-mockup {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.laptop-screen-wrapper {
  position: relative;
  padding-top: 61.5%;
  background: #101010;
  border-radius: 12px 12px 0 0;
  border: 12px solid #000000;
  border-bottom: none;
  box-shadow: inset 0 0 10px rgba(255,255,255,0.1), var(--shadow-lg);
  overflow: hidden;
}

.laptop-camera {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #202020;
  border-radius: 50%;
  z-index: 10;
}

.laptop-screen-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  overflow: hidden;
}

.laptop-base {
  position: relative;
  width: 112%;
  height: 12px;
  left: -6%;
  background: #d1d5db;
  border-radius: 0 0 12px 12px;
  border-bottom: 4px solid #9ca3af;
  box-shadow: 0 12px 24px rgba(11, 15, 25, 0.15);
  display: flex;
  justify-content: center;
}

.laptop-notch {
  width: 70px;
  height: 4px;
  background: #4b5563;
  border-radius: 0 0 6px 6px;
}

/* --- THE TABLET MOCKUP (CSS Rendering) --- */
.tablet-mockup {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.tablet-wrapper {
  position: relative;
  padding-top: 133.3%;
  background: #000000;
  border: 14px solid #1a1a1a;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.tablet-camera-top {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #333;
  border-radius: 50%;
  z-index: 10;
}

.tablet-screen-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  overflow: hidden;
}

.tablet-home-indicator {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  z-index: 10;
}

/* --- THE PHONE MOCKUP (CSS Rendering) --- */
.phone-mockup {
  position: relative;
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
}

.phone-wrapper {
  position: relative;
  padding-top: 216%;
  background: #000000;
  border: 10px solid #1f1f1f;
  border-radius: 36px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.phone-island {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 16px;
  background: #000;
  border-radius: 12px;
  z-index: 10;
}

.phone-screen-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  overflow: hidden;
}

.phone-home-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3.5px;
  background: #e2e8f0;
  border-radius: 2px;
  z-index: 10;
}

/* Mockup Image Styles for Full-Page Horizontal Scrolling */
.screen-mockup-img {
  height: 100% !important;
  width: auto !important;
  min-width: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(0);
  transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

.screen-mockup-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* Landscape Tablet Mode */
.tablet-mockup.landscape {
  max-width: 480px !important;
}
.tablet-mockup.landscape .tablet-wrapper {
  padding-top: 67% !important; /* 3:2 landscape ratio */
  border-radius: 20px !important;
}
.tablet-mockup.landscape .tablet-camera-top {
  top: 50% !important;
  left: 4px !important;
  transform: translateY(-50%) !important;
  width: 6px !important;
  height: 6px !important;
}
.tablet-mockup.landscape .tablet-home-indicator {
  bottom: 6px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100px !important;
  height: 4px !important;
}

/* Landscape Phone Mode */
.phone-mockup.landscape {
  max-width: 320px !important;
}
.phone-mockup.landscape .phone-wrapper {
  padding-top: 56.25% !important; /* 16:9 landscape ratio */
  border-radius: 24px !important;
}
.phone-mockup.landscape .phone-island {
  top: 50% !important;
  left: 6px !important;
  transform: translateY(-50%) !important;
  width: 12px !important;
  height: 40px !important;
}
.phone-mockup.landscape .phone-home-indicator {
  bottom: 6px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 80px !important;
  height: 3.5px !important;
}


/* --- INTERACTIVE ANIMATED SCREEN INTERFACES (STORYTELLING) --- */

/* 1. Dashboard Interface (Laptop) */
.story-dashboard {
  width: 100%;
  height: 100%;
  background: #f8fafc;
  display: grid;
  grid-template-rows: 24px 1fr;
  font-family: var(--font-body);
}

.story-dashboard-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.dash-dots {
  display: flex;
  gap: 4px;
}

.dash-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
}

.dash-title {
  font-size: 8px;
  font-weight: 600;
  color: #64748b;
}

.story-dashboard-body {
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  overflow: hidden;
}

.dash-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-side-item {
  height: 12px;
  background: #e2e8f0;
  border-radius: 3px;
  width: 100%;
}

.dash-side-item.active {
  background: #bfdbfe;
  border-left: 2px solid var(--accent-blue);
}

.dash-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.dash-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-card-label {
  font-size: 6px;
  color: #94a3b8;
}

.dash-card-val {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-blue);
}

.dash-chart-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px;
  flex-grow: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  position: relative;
  overflow: hidden;
}

.dash-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  width: 100%;
  height: 60px;
}

.dash-chart-bar {
  flex-grow: 1;
  background: linear-gradient(180deg, var(--accent-blue), var(--accent-purple));
  border-radius: 3px 3px 0 0;
  height: 0%;
  transform-origin: bottom;
}

.portfolio-item:hover .dash-chart-bar,
.portfolio-item.active-scroll .dash-chart-bar {
  animation: barGrow 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.portfolio-item:hover .dash-chart-bar:nth-child(1), .portfolio-item.active-scroll .dash-chart-bar:nth-child(1) { animation-delay: 0.1s; --target-height: 45%; }
.portfolio-item:hover .dash-chart-bar:nth-child(2), .portfolio-item.active-scroll .dash-chart-bar:nth-child(2) { animation-delay: 0.2s; --target-height: 75%; }
.portfolio-item:hover .dash-chart-bar:nth-child(3), .portfolio-item.active-scroll .dash-chart-bar:nth-child(3) { animation-delay: 0.3s; --target-height: 60%; }
.portfolio-item:hover .dash-chart-bar:nth-child(4), .portfolio-item.active-scroll .dash-chart-bar:nth-child(4) { animation-delay: 0.4s; --target-height: 90%; }
.portfolio-item:hover .dash-chart-bar:nth-child(5), .portfolio-item.active-scroll .dash-chart-bar:nth-child(5) { animation-delay: 0.5s; --target-height: 50%; }

@keyframes barGrow {
  to { height: var(--target-height); }
}

/* 2. Collaborative Platform (Tablet) */
.story-collab {
  width: 100%;
  height: 100%;
  background: #fdfdfd;
  display: flex;
  flex-direction: column;
  padding: 16px;
  font-family: var(--font-body);
}

.story-collab-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.collab-logo {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-purple);
}

.collab-users {
  display: flex;
  gap: -4px;
}

.collab-user {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: #cbd5e1;
}

.collab-user:nth-child(1) { background: #fecdd3; margin-right: -4px;}
.collab-user:nth-child(2) { background: #dbeafe; margin-right: -4px;}
.collab-user:nth-child(3) { background: #fef08a; }

.story-collab-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  flex-grow: 1;
}

.collab-card {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.3s ease;
}

.portfolio-item:hover .collab-card,
.portfolio-item.active-scroll .collab-card {
  border-style: solid;
  border-color: var(--accent-purple);
  box-shadow: 0 4px 12px rgba(130,0,255,0.06);
}

.collab-card-text {
  font-size: 8px;
  font-weight: 600;
  color: #334155;
  width: 100%;
  line-height: 1.4;
}

.collab-card-bar {
  width: 40%;
  height: 4px;
  background: #f1f5f9;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}

.collab-card-progress {
  width: 0%;
  height: 100%;
  background: var(--accent-purple);
}

.portfolio-item:hover .collab-card-progress,
.portfolio-item.active-scroll .collab-card-progress {
  animation: widthGrow 2s ease forwards;
}

.portfolio-item:hover .collab-card:nth-child(1) .collab-card-progress, .portfolio-item.active-scroll .collab-card:nth-child(1) .collab-card-progress { animation-delay: 0.2s; --width: 80%; }
.portfolio-item:hover .collab-card:nth-child(2) .collab-card-progress, .portfolio-item.active-scroll .collab-card:nth-child(2) .collab-card-progress { animation-delay: 0.4s; --width: 40%; }
.portfolio-item:hover .collab-card:nth-child(3) .collab-card-progress, .portfolio-item.active-scroll .collab-card:nth-child(3) .collab-card-progress { animation-delay: 0.6s; --width: 95%; }
.portfolio-item:hover .collab-card:nth-child(4) .collab-card-progress, .portfolio-item.active-scroll .collab-card:nth-child(4) .collab-card-progress { animation-delay: 0.8s; --width: 60%; }

@keyframes widthGrow {
  to { width: var(--width); }
}

/* 3. AI Assistant Chat Interface (Phone) */
.story-phone-ai {
  width: 100%;
  height: 100%;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  padding: 30px 12px 12px;
  font-family: var(--font-body);
}

.story-phone-chat-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.chat-bubble {
  max-width: 85%;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 8px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(10px);
}

.chat-bubble-ai {
  align-self: flex-start;
  background: #f1f5f9;
  color: #334155;
  border-bottom-left-radius: 2px;
}

.chat-bubble-user {
  align-self: flex-end;
  background: var(--accent-blue);
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.portfolio-item:hover .chat-bubble,
.portfolio-item.active-scroll .chat-bubble {
  animation: chatReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.portfolio-item:hover .chat-bubble:nth-child(1), .portfolio-item.active-scroll .chat-bubble:nth-child(1) { animation-delay: 0.2s; }
.portfolio-item:hover .chat-bubble:nth-child(2), .portfolio-item.active-scroll .chat-bubble:nth-child(2) { animation-delay: 1.2s; }
.portfolio-item:hover .chat-bubble:nth-child(3), .portfolio-item.active-scroll .chat-bubble:nth-child(3) { animation-delay: 2.2s; }

@keyframes chatReveal {
  to { opacity: 1; transform: translateY(0); }
}

.story-phone-input {
  border-top: 1px solid #e2e8f0;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-input-bar {
  width: 80%;
  height: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding-left: 6px;
  font-size: 6px;
  color: #94a3b8;
  display: flex;
  align-items: center;
}

.phone-input-send {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-blue);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
}

/* ==========================================================================
   CASE STUDIES PAGE & COMPONENTS
   ========================================================================== */
.case-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 60px;
}

.case-card {
  width: 100%;
}

.case-hero-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 32px;
}

.case-badge {
  display: inline-block;
  background: rgba(197, 160, 89, 0.08);
  border: 1px solid rgba(197, 160, 89, 0.16);
  color: var(--accent-gold);
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.case-card-title {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.case-split-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-challenge, .case-solution {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.case-challenge strong, .case-solution strong {
  display: block;
  font-family: var(--font-head);
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.case-scope-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  margin-top: 16px;
}

.case-scope-tag {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(197, 160, 89, 0.05);
  border: 1px solid rgba(197, 160, 89, 0.15);
  padding: 6px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* ==========================================================================
   ABOUT US PAGE (NO FAKE TEAM MEMBERS)
   ========================================================================== */
.about-principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 60px 0 100px;
}

.about-principle-card {
  text-align: left;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.principle-icon {
  width: 32px;
  height: 32px;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.about-principle-card:nth-child(even) .principle-icon {
  color: var(--accent-purple);
}

.principle-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.principle-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Process Flow Section */
.process-section {
  padding-bottom: 100px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.process-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.process-step-num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(0, 102, 255, 0.1);
  line-height: 1;
  margin-bottom: 12px;
}

.process-step-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.process-step-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Horizontal Interactive Timeline */
.timeline-section {
  border-top: 1px solid var(--border-light);
  padding-top: 80px;
  margin-bottom: 60px;
}

.timeline-wrapper {
  position: relative;
  width: 100%;
  overflow-x: auto;
  padding: 40px 0;
  scrollbar-width: thin;
}

.timeline-line {
  position: absolute;
  top: 75px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--border-medium);
  z-index: 1;
}

.timeline-progress-line {
  position: absolute;
  top: 75px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-blue);
  z-index: 2;
}

.timeline-items {
  display: flex;
  justify-content: space-between;
  min-width: 1000px;
  position: relative;
  z-index: 3;
}

.timeline-node {
  width: 200px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 4px solid var(--border-medium);
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.timeline-node.completed .timeline-dot {
  border-color: var(--accent-blue);
  background: var(--accent-blue);
  box-shadow: 0 0 10px rgba(0, 102, 255, 0.4);
}

.timeline-node.active .timeline-dot {
  border-color: var(--accent-purple);
  background: var(--bg-secondary);
  box-shadow: 0 0 10px rgba(130,0,255,0.4);
}

.timeline-date {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.timeline-node-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.timeline-node-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  padding: 0 10px;
}

/* ==========================================================================
   CONTACT US PAGE (NO PRICING IN FORM)
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: flex-start;
  margin-top: 60px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-info-title {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.contact-info-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-detail-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 102, 255, 0.06);
  border: 1px solid rgba(0, 102, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.contact-detail-content h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.contact-detail-content p, .contact-detail-content a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1.4;
}

.contact-detail-content a:hover {
  color: var(--accent-blue);
}

/* Contact Form Specifics */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input, .form-textarea {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
  width: 100%;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.08);
}

.form-textarea {
  height: 120px;
  resize: vertical;
}

.form-submit-btn {
  border: none;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 50px;
  background: var(--text-primary);
  color: var(--bg-secondary);
  cursor: pointer;
  align-self: flex-start;
  transition: all 0.4s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.form-submit-btn:hover {
  background: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,102,255,0.15);
}

.form-message {
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #047857;
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #b91c1c;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
  margin: 120px auto 0;
  width: calc(100% - 48px);
  max-width: var(--max-width);
  border-radius: 32px 32px 0 0;
  background: rgba(255, 255, 255, 0.02);
  background-blend-mode: luminosity;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}


.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social-link:hover {
  background: var(--accent-blue);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-col h3 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-link a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link a:hover {
  color: var(--accent-blue);
}

.footer-subscribe-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-subscribe-form {
  display: flex;
  gap: 8px;
}

.footer-subscribe-input {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: 50px;
  padding: 10px 18px;
  font-size: 0.85rem;
  flex-grow: 1;
}

.footer-subscribe-btn {
  border: none;
  background: var(--text-primary);
  color: var(--bg-secondary);
  padding: 10px 18px;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.footer-subscribe-btn:hover {
  background: var(--accent-blue);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal-link:hover {
  color: var(--accent-blue);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .hero-grid, .preview-grid, .portfolio-item, .contact-grid, .case-hero-panel {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .portfolio-item:nth-child(even) {
    direction: ltr;
  }

  .about-stats-grid, .process-grid, .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .mega-dropdown {
    width: 90%;
    grid-template-columns: repeat(2, 1fr);
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .nav-container {
    padding: 0 24px;
  }

  .about-stats-grid, .process-grid, .footer-grid, .case-stats-panel {
    grid-template-columns: 1fr;
  }

  .form-group-row {
    grid-template-columns: 1fr;
  }
  
  .mega-dropdown {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PREMIUM MICRO-INTERACTIONS & POLISH
   ========================================================================== */
.custom-cursor {
  position: fixed;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--accent-blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  background: transparent;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.custom-cursor.hovering {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 102, 255, 0.1);
  border-color: var(--accent-blue);
}

.custom-cursor.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Background Drafting Wireframes */
.drafting-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -4; /* Right above WebGL but below layout content */
  display: flex;
  justify-content: space-between;
  padding: 0 6%;
}

.drafting-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(11, 15, 25, 0.02) 0%, rgba(11, 15, 25, 0.005) 50%, rgba(11, 15, 25, 0) 100%);
}

/* Disable custom cursor on touch screens */
@media (hover: none) and (pointer: coarse) {
  .custom-cursor {
    display: none !important;
  }
}

/* Interactive Tech Stack Tooltips */
#tech-tooltip {
  position: fixed;
  padding: 10px 16px;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 102, 255, 0.25);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.4;
  max-width: 250px;
  pointer-events: none;
  z-index: 9999999;
  opacity: 0;
  transform: scale(0.9) translateY(10px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 102, 255, 0.1);
}

#tech-tooltip.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Staggered Split-Text Typography Reveals */
.word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  margin-right: 0.22em;
}

.letter-reveal {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}

/* Homepage Solutions Grid Layout */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 48px;
}

@media (max-width: 1024px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .solutions-grid {
    grid-template-columns: 1fr;
  }
}

.solution-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.solution-item {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
}

.solution-item:last-child {
  border-bottom: none;
}

.solution-item svg {
  width: 12px;
  height: 12px;
  margin-right: 8px;
  flex-shrink: 0;
}

/* Trust Bar Layout */
.trust-bar-section {
  text-align: center;
  padding: 60px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.015);
}

/* Micro Copy List Layout */
.micro-copy-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.micro-copy-item {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
}

.micro-copy-item::after {
  content: "•";
  margin-left: 20px;
  color: var(--border-medium);
}

.micro-copy-item:last-child::after {
  content: none;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-6px);
  }
  60% {
    transform: translateY(-3px);
  }
}

/* Services page detail block and grid */
.solution-detail-block {
  margin-bottom: 60px;
  padding: 50px 40px;
}

.solution-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 1024px) {
  .solution-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .solution-detail-block {
    padding: 40px 24px;
  }
}

/* Values Grid for Why Choose Us */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* Industries Grid */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  margin-top: 40px;
}

@media (max-width: 1200px) {
  .industries-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* About page why-detail-grid & standards-list */
.why-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 48px;
}

@media (max-width: 1024px) {
  .why-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .why-detail-grid {
    grid-template-columns: 1fr;
  }
}

.standards-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

@media (max-width: 768px) {
  .standards-list {
    grid-template-columns: 1fr;
  }
}

/* Mobile Navigation slide-out drawer */
@media (max-width: 1024px) {
  .header-nav {
    overflow: visible; /* Make sure mobile menu can render outside header bounds */
  }

  .nav-links {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%; /* Hidden by default */
    width: 300px;
    height: 100vh;
    background: rgba(11, 15, 25, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 100px 30px 40px;
    gap: 15px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    align-items: flex-start;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links.active {
    right: 0; /* Slide in */
  }

  .nav-item {
    width: 100%;
    height: auto;
    display: block;
  }

  .nav-link {
    padding: 14px 0;
    width: 100%;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: block;
    height: auto;
  }

  .nav-link:hover {
    color: var(--accent-blue) !important;
  }

  .nav-cta-btn {
    margin-top: 20px;
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
  }

  .mega-dropdown {
    display: none !important; /* Hide mega menu on mobile */
  }

  .mobile-nav-toggle {
    display: block;
    z-index: 1000;
    position: relative;
    transition: transform 0.3s ease;
  }

  .mobile-nav-toggle.active {
    transform: rotate(90deg);
  }
}
