/* ============================================
   MACROGENIX — Premium Digital Studio
   Design System & Complete Stylesheet
   ============================================ */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Fustat:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

@font-face {
  font-family: 'Aquire';
  src: url('Azonix.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* ── CSS Custom Properties ── */
:root {
  /* Core Palette (Solid) */
  --bg-primary: #0f111a;
  --bg-dark: #090a0f;
  --bg-card: #13151f;
  --bg-card-hover: #1a1c2e;
  --primary: #7c3aed;
  --primary-light: #a78bfa;
  --secondary: #ec4899;
  --accent: #0ea5e9;
  --white: #ffffff;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --border-subtle: rgba(124, 58, 237, 0.15);
  --border-glow: rgba(124, 58, 237, 0.4);

  /* Gradients (Restricted to glows and ambient light) */
  --gradient-glow: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(124, 58, 237, 0.12), transparent 40%);
  --hero-ambient: radial-gradient(circle at center, rgba(124, 58, 237, 0.15) 0%, transparent 60%);
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));

  /* Glass */
  --glass-bg: rgba(19, 21, 31, 0.6);
  --glass-border: rgba(124, 58, 237, 0.12);
  --glass-blur: 20px;

  /* Typography */
  --font-heading: 'Aquire', sans-serif;
  --font-body: 'Fustat', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --section-padding: 120px 0;
  --container-max: 1280px;
  --container-padding: 0 24px;

  /* Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-out-quart);
  --transition-medium: 0.4s var(--ease-out-expo);
  --transition-slow: 0.8s var(--ease-out-expo);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--white);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: clip;
  cursor: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: normal;
  letter-spacing: 2px;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: none;
}

button, input, textarea, select {
  font-family: inherit;
  cursor: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

::selection {
  background: rgba(124, 58, 237, 0.4);
  color: var(--white);
}

/* ── Custom Cursor ── */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.3s, height 0.3s, background 0.3s, box-shadow 0.3s;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(124, 58, 237, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease-out-expo), height 0.4s var(--ease-out-expo), border-color 0.3s, box-shadow 0.3s;
}

.cursor-dot.hovering {
  width: 12px;
  height: 12px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.cursor-ring.hovering {
  width: 60px;
  height: 60px;
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.05);
}

.cursor-dot.expanding {
  width: 80px;
  height: 80px;
  background: var(--white);
  box-shadow: none;
}

.cursor-ring.expanding {
  width: 120px;
  height: 120px;
  border-color: rgba(255, 255, 255, 0.2);
  border-width: 1px;
  background: transparent;
  box-shadow: none;
}

/* Heading Hover Effects (Removed fade per request) */
h1, h2, h3, .hero-title, .hero-title-clean, .stat-number, .section-title {
  /* Retaining base transition just in case */
  transition: color 0.4s var(--ease-out-expo), text-shadow 0.4s var(--ease-out-expo);
}

/* ── Animated Background Grid ── */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2 !important;
  pointer-events: none;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.4) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 70%);
}

/* ── Particle Canvas ── */
#particles-canvas,
#particlesCanvas,
#hero-particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1 !important;
  pointer-events: none;
}

/* Ensure all service cards and page interactive elements stay above the background effects */
.bento-item,
.benefit-card,
.process-step-item,
.deliverable-card,
.industry-card,
.compare-card,
.faq-item,
.testimonial-card,
.service-full-card,
.service-card {
  position: relative;
  z-index: 1;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
  position: relative;
  z-index: 1;
}

.section {
  padding: var(--section-padding);
  position: relative;
}

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all var(--transition-medium);
}

.navbar.scrolled {
  padding: 1rem 0;
  background: rgba(9, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container,
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max, 1200px);
  padding: 0 1.5rem;
  margin: 0 auto;
  width: 100%;
}

.nav-logo,
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 3px;
  color: var(--white);
  position: relative;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: clamp(32px, 4.5vw, 65px);
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-logo::after,
.logo::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-medium);
}

.nav-logo:hover::after,
.logo:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-right-group {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links .nav-socials {
  display: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--transition-fast);
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out-expo);
}

.mobile-menu-btn {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

/* Underline for Services link is on ::before instead of ::after to avoid conflict with the arrow */
.nav-link-dropdown::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out-expo);
}

.nav-link-dropdown:hover::before,
.nav-link-dropdown.active::before {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link-dropdown::after {
  content: ' ▾' !important;
  font-size: 0.75rem;
  margin-left: 6px;
  display: inline-block !important;
  vertical-align: middle !important;
  transition: transform 0.3s ease;
  opacity: 0.8;
  
  /* Reset absolute positioning inherited from .nav-link::after */
  position: static !important;
  bottom: auto !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  transform: none !important;
}

.nav-dropdown:hover .nav-link-dropdown::after {
  transform: translateY(2px) !important;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 240px;
  background: rgba(15, 17, 26, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s var(--ease-out-expo);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  padding: 10px 24px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.2s;
  display: block;
}

.dropdown-menu a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  padding-left: 28px;
}

/* Socials in Nav */
.nav-socials {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 16px;
  padding-left: 32px;
  border-left: 1px solid rgba(255,255,255,0.1);
}

.nav-socials a {
  color: var(--text-secondary);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-socials a svg {
  width: 18px;
  height: 18px;
}

.nav-socials a:hover {
  color: var(--white);
  transform: translateY(-2px);
}

/* Command Center Toggle (9-dot) */
.command-center-toggle {
  background: none;
  border: none;
  cursor: none;
  padding: 8px;
  margin-left: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.command-center-toggle:hover {
  transform: scale(1.1);
}

.grid-icon {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  grid-template-rows: repeat(3, 4px);
  gap: 3px;
}

.grid-icon span {
  display: block;
  width: 4px;
  height: 4px;
  background: var(--white);
  border-radius: 50%;
  transition: all 0.3s;
}

.command-center-toggle:hover .grid-icon span {
  background: var(--primary);
}
/* Command Center Overlay */
.command-center-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out-expo), visibility 0.5s;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.command-center-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.command-center-bg {
  position: absolute;
  inset: 0;
  background: rgba(9, 10, 15, 0.95);
  backdrop-filter: blur(30px);
  z-index: 0;
}

.command-center-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  padding: 40px;
  transform: translateY(40px) scale(0.95);
  transition: transform 0.6s var(--ease-out-expo);
}

.command-center-overlay.active .command-center-content {
  transform: translateY(0) scale(1);
}

.command-center-close {
  position: absolute;
  top: -10px;
  right: 0px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out-expo);
  z-index: 10;
}

.command-center-close:hover {
  transform: rotate(90deg);
  color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}

.command-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.command-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 30px;
}

.command-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.command-nav li {
  margin-bottom: 20px;
}

.command-nav a {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s, padding-left 0.3s;
  display: inline-block;
}

.command-nav a:hover {
  color: var(--primary);
  padding-left: 20px;
}

.command-info p {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.command-socials {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.command-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  transition: all 0.3s;
}

.command-socials a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-5px);
}

/* Mobile Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px;
  cursor: none;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-mesh .mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: meshFloat 12s ease-in-out infinite;
}

.hero-mesh .mesh-blob:nth-child(1) {
  width: 600px;
  height: 600px;
  background: rgba(124, 58, 237, 0.15);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.hero-mesh .mesh-blob:nth-child(2) {
  width: 500px;
  height: 500px;
  background: rgba(236, 72, 153, 0.1);
  bottom: -15%;
  left: -10%;
  animation-delay: -4s;
}

.hero-mesh .mesh-blob:nth-child(3) {
  width: 400px;
  height: 400px;
  background: rgba(14, 165, 233, 0.08);
  top: 40%;
  left: 50%;
  animation-delay: -8s;
}

@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.03); }
}

.hero-content-clean {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-left: 0;
}

.hero-badge-clean {
  font-family: var(--font-body);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 8px;
  font-weight: 300;
  animation: fadeInUp 1s var(--ease-out-expo) 0.2s both;
}

.hero-title-clean {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.1;
  letter-spacing: 2px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeInUp 1s var(--ease-out-expo) 0.4s both;
}

.text-white {
  color: var(--white);
}

.hero-dynamic-text-clean {
  color: var(--primary);
  min-height: clamp(3rem, 6vw, 5rem);
  white-space: nowrap;
}

.hero-bottom-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: 800px;
  animation: fadeInUp 1s var(--ease-out-expo) 0.6s both;
}

.hero-play-btn-wrapper {
  flex-shrink: 0;
}

.hero-play-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  color: var(--white);
  transition: transform 0.3s ease;
}

.hero-play-btn:hover {
  transform: scale(1.05);
}

.play-circle {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.play-circle svg {
  width: 24px;
  height: 24px;
  margin-left: 4px;
}

.spinning-text {
  position: absolute;
  width: 120px;
  height: 120px;
  animation: spin-text 10s linear infinite;
  z-index: 1;
}

.spinning-text svg {
  width: 100%;
  height: 100%;
  fill: var(--white);
  font-size: 11px;
  letter-spacing: 3px;
  font-family: var(--font-heading);
  text-transform: uppercase;
}

@keyframes spin-text {
  100% { transform: rotate(360deg); }
}

.hero-desc-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.hero-subtitle-clean {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.hero-buttons-clean {
  display: flex;
  margin-top: 2.5rem;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 8px 8px 8px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-medium);
}

.btn-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 50%;
  color: var(--white);
  transition: transform var(--transition-medium);
}

.btn-pill:hover .btn-pill-icon {
  transform: rotate(45deg);
}

/* Premium Button System 2.0 (Pill Style) */
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 16px 16px 16px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: none;
  cursor: none;
  transition: all var(--transition-medium);
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Global Button Base Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 16px 24px;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
  text-align: center;
  transition: all var(--transition-medium);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-premium:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-premium span {
  position: relative;
  z-index: 1;
}

.btn-premium .btn-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  background: var(--primary);
  border-radius: 50%;
  color: var(--white);
  padding: 8px;
  box-sizing: border-box;
  transition: transform var(--transition-medium);
}

.btn-premium:hover .btn-icon {
  transform: rotate(45deg);
}

.btn-premium-outline {
  background: transparent;
  border-color: var(--border-glow);
}

.btn-premium-outline:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 1s var(--ease-out-expo) 1.2s both;
}

.scroll-indicator .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(124, 58, 237, 0.4);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ── Section Headers ── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Glassmorphism Card ── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-medium);
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity var(--transition-medium);
  pointer-events: none;
}

.glass-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.glass-card:hover::before {
  opacity: 1;
}

/* ── Services Cards ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-medium);
  cursor: none;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  display: block;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-medium);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity var(--transition-medium);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.1);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  transition: all var(--transition-medium);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary-light);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card:hover .service-icon {
  /* removed violet hover box */
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ── Statistics ── */
.stats-section {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

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

.stat-item {
  text-align: center;
  padding: 40px 20px;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(transparent, var(--border-subtle), transparent);
}

.stat-item:last-child::after {
  display: none;
}

.stat-number {
  font-family: 'Fustat', sans-serif; font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ── Portfolio ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-medium);
  cursor: none;
  position: relative;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.12);
}

.portfolio-thumb {
  height: 220px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(236, 72, 153, 0.15));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-thumb .project-letter {
  font-family: var(--font-heading);
  font-size: 4rem;
  letter-spacing: 4px;
  opacity: 0.15;
  color: var(--white);
}

.portfolio-thumb .overlay {
  position: absolute;
  inset: 0;
  background: rgba(124, 58, 237, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.portfolio-card:hover .overlay {
  opacity: 1;
}

.overlay-icon {
  width: 48px;
  height: 48px;
  border: 2px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.5);
  transition: transform var(--transition-medium);
}

.portfolio-card:hover .overlay-icon {
  transform: scale(1);
}

.portfolio-info {
  padding: 24px;
}

.portfolio-info h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.portfolio-info .project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(124, 58, 237, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

/* ── Team ── */
.team-section {
  padding-top: 70px;
  padding-bottom: 15px;
  position: relative;
  z-index: 10;
}

.cta-section, .cta-banner {
  padding-top: 50px !important;
}

.team-floating-layout {
  position: relative;
  width: 100%;
  height: 550px;
  margin: 40px auto 0;
  display: block;
}

/* Background Glowing Blobs */
.team-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
  animation: teamBlobFloat 15s ease-in-out infinite alternate;
}
.team-glow-1 {
  background: var(--primary);
  top: 10%;
  left: 20%;
}
.team-glow-2 {
  background: var(--secondary);
  bottom: 15%;
  right: 20%;
  animation-delay: -5s;
}

@keyframes teamBlobFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.1); }
  100% { transform: translate(-20px, 30px) scale(0.9); }
}

/* Background Constellation Lines */
.team-constellation-svg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* Profile Items */
.team-profile-item {
  position: absolute;
  z-index: 2;
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

/* Specific Positions for Desktop */
.team-profile-item.pos-taman {
  top: 8%;
  left: 10%;
}
.team-profile-item.pos-fatima {
  top: 14%;
  left: 40%;
}
.team-profile-item.pos-preran {
  top: 10%;
  right: 10%;
}
.team-profile-item.pos-sanjeeva {
  bottom: 16%;
  left: 50%;
}
.team-profile-item.pos-sai {
  bottom: 10%;
  left: 25%;
}
.team-profile-item.pos-dheeraj {
  bottom: 10%;
  right: 15%;
}

/* Inner wrapper handles the floating animation */
.team-profile-floating-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pos-taman .team-profile-floating-inner { animation: floatTaman 8s ease-in-out infinite; }
.pos-fatima .team-profile-floating-inner { animation: floatFatima 7.5s ease-in-out infinite 0.8s; }
.pos-preran .team-profile-floating-inner { animation: floatPreran 9s ease-in-out infinite 1s; }
.pos-sanjeeva .team-profile-floating-inner { animation: floatSanjeeva 8.2s ease-in-out infinite 1.2s; }
.pos-sai .team-profile-floating-inner { animation: floatSai 7s ease-in-out infinite 0.5s; }
.pos-dheeraj .team-profile-floating-inner { animation: floatDheeraj 8.5s ease-in-out infinite 1.5s; }

@keyframes floatTaman {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}
@keyframes floatFatima {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-11px) rotate(-1deg); }
}
@keyframes floatPreran {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(-1.5deg); }
}
@keyframes floatSanjeeva {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-13px) rotate(0.8deg); }
}
@keyframes floatSai {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1.2deg); }
}
@keyframes floatDheeraj {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-0.8deg); }
}

/* Circular Avatar Wrap */
.team-profile-avatar-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

/* Creative random sizing per position for visual interest */
.pos-fatima .team-profile-avatar-wrap  { width: 138px; height: 138px; } /* Taman – center hero */
.pos-taman .team-profile-avatar-wrap   { width: 142px; height: 142px; } /* Preran – slightly larger */
.pos-preran .team-profile-avatar-wrap  { width: 149px; height: 149px; } /* Sai Teja – slightly larger */
.pos-sanjeeva .team-profile-avatar-wrap{ width: 125px; height: 125px; }
.pos-sai .team-profile-avatar-wrap     { width: 140px; height: 140px; } /* Dheeraj – increased */
.pos-dheeraj .team-profile-avatar-wrap { width: 130px; height: 130px; }

/* Profile image inside avatar wrap */
.team-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(30%);
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), filter var(--transition-medium);
  transform: scale(1);
  will-change: transform;
}

/* Glow Ring in the background (Removed) */
.avatar-glow {
  display: none;
}

/* Hover effects for Avatar */
.team-profile-item:hover {
  z-index: 50; /* Elevate hovered item to overlap all neighboring profiles and cards */
}

.team-profile-item:hover .team-profile-img {
  filter: grayscale(0%);
  transform: scale(1.1); /* 10% enlargement on hover */
}

/* Curved connector arrow */
.profile-connector {
  position: absolute;
  width: 95px;
  height: 80px;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
  transform: scale(0.8);
}

/* Adjust connector arrows directions based on position — offsets match individual avatar sizes */
.pos-taman .profile-connector {
  left: 130px;  /* 145px avatar - 15px */
  top: 25px;
  transform-origin: left bottom;
}
.pos-fatima .profile-connector {
  left: 119px;  /* 134px avatar - 15px */
  top: 25px;
  transform-origin: left bottom;
}
.pos-preran .profile-connector {
  right: 135px; /* 150px avatar - 15px */
  top: 25px;
  transform-origin: right bottom;
}
.pos-sai .profile-connector {
  left: 125px;  /* 140px avatar - 15px */
  bottom: 25px;
  transform-origin: left top;
}
.pos-dheeraj .profile-connector {
  right: 107px; /* 122px avatar - 15px */
  bottom: 25px;
  transform-origin: right top;
}
.pos-sanjeeva .profile-connector {
  right: 110px; /* 125px avatar - 15px */
  bottom: 25px;
  transform-origin: right top;
}

.connector-arrow {
  width: 100%;
  height: 100%;
}

.connector-arrow path {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  transition: stroke-dashoffset 0.5s ease-in-out;
}

/* Animate arrow stroke on hover */
.team-profile-item:hover .profile-connector {
  opacity: 1;
  transform: scale(1);
}

.team-profile-item:hover .connector-arrow path {
  stroke-dashoffset: 0;
}

/* Glassmorphism Info Card */
.team-profile-info-card {
  position: absolute;
  width: 280px;
  padding: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.95);
  transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo), visibility 0.4s;
  z-index: 15;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: left;
}

/* Info card positions relative to circle — left/right = avatar size + ~80px gap */
.pos-taman .team-profile-info-card {
  left: 225px;  /* 145 + 80 */
  top: -20px;
}
.pos-fatima .team-profile-info-card {
  left: 214px;  /* 134 + 80 */
  top: -20px;
}
.pos-preran .team-profile-info-card {
  right: 230px; /* 150 + 80 */
  top: -20px;
}
.pos-sai .team-profile-info-card {
  left: 220px;  /* 140 + 80 */
  bottom: -20px;
}
.pos-dheeraj .team-profile-info-card {
  right: 202px; /* 122 + 80 */
  bottom: -20px;
}
.pos-sanjeeva .team-profile-info-card {
  right: 205px; /* 125 + 80 */
  bottom: -20px;
}

/* Hover reveals the card */
.team-profile-item:hover .team-profile-info-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.team-profile-info-card h3 {
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 4px;
  background: linear-gradient(120deg, var(--white), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.team-profile-info-card .team-role {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.team-profile-info-card .team-intro {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Responsive Adaptation */
@media (max-width: 1023px) {
  .team-floating-layout {
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin-top: 40px;
  }
  
  .team-constellation-svg {
    display: none;
  }
  
  .team-profile-item {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    animation: floatMobile 6s ease-in-out infinite alternate !important;
    transform: none !important;
  }
  
  .team-profile-item:nth-child(even) {
    animation-delay: -3s !important;
  }

  .profile-connector {
    display: none;
  }

  .team-profile-avatar-wrap {
    width: 110px;
    height: 110px;
  }

  .team-profile-info-card {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    opacity: 1;
    visibility: visible;
    transform: none !important;
    width: 100%;
    background: rgba(19, 21, 31, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
}

@media (max-width: 650px) {
  .team-floating-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@keyframes floatMobile {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* ── CTA Banner ── */
.cta-banner {
  position: relative;
  overflow: hidden;
}

.cta-inner {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(124, 58, 237, 0.15), transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(236, 72, 153, 0.1), transparent 50%);
  animation: ctaPulse 6s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.cta-inner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.2vw, 2.8rem);
  letter-spacing: 3px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-inner p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

/* ── Footer ── */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 32px;
}

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

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-contact-item,
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-item svg,
.footer-contact li svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary-light);
  fill: none;
  flex-shrink: 0;
}

.footer-contact li a {
  transition: color var(--transition-fast);
}

.footer-contact li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  letter-spacing: 1px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-medium);
}

.footer-social a:hover {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.1);
  transform: translateY(-3px);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-secondary);
  fill: none;
  transition: stroke var(--transition-fast);
}

.footer-social a:hover svg {
  stroke: var(--primary-light);
}

/* ── Contact Form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group .error-message {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 6px;
  display: none;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #ef4444;
}

.form-group.error .error-message {
  display: block;
}

.form-group.success input,
.form-group.success textarea {
  border-color: #22c55e;
}

/* Form Success */
.form-success {
  text-align: center;
  padding: 60px 40px;
  display: none;
}

.form-success.active {
  display: block;
  animation: fadeInUp 0.6s var(--ease-out-expo);
}

.success-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  border: 2px solid #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: scaleIn 0.5s var(--ease-spring);
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.success-checkmark svg {
  width: 36px;
  height: 36px;
  stroke: #22c55e;
  fill: none;
  stroke-width: 2.5;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: drawCheck 0.6s 0.3s forwards;
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

/* Contact Info Cards */
.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
  transition: all var(--transition-medium);
}

.contact-info-card:hover {
  border-color: var(--border-glow);
  transform: translateX(4px);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(124, 58, 237, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary-light);
  fill: none;
}

.contact-info-content h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.contact-info-content p,
.contact-info-content a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.contact-info-content a:hover {
  color: var(--primary-light);
}

/* ── FAQ Accordion ── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--transition-medium);
}

.faq-item.active {
  border-color: var(--border-glow);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  text-align: left;
  font-size: 0.95rem;
}

.faq-question:hover {
  color: var(--primary-light);
}

.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--primary-light);
  border-radius: 2px;
  transition: transform 0.3s;
}

.faq-icon::before {
  width: 14px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item.active .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-expo);
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── About Page ── */
.about-hero {
  padding-top: 160px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
}

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

.mission-text h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.mission-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.mission-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.mission-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.1), transparent 60%);
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  transition: all var(--transition-medium);
}

.value-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.value-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.value-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 48px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--magenta), var(--electric-blue));
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
  padding-left: 32px;
}

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 3px var(--primary);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--primary-light);
  margin-bottom: 8px;
}

.timeline-item h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.timeline-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Achievements */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.achievement-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  transition: all var(--transition-medium);
}

.achievement-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.achievement-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.achievement-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.achievement-card p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.6;
}

/* ── Page Header (inner pages) ── */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08), transparent 60%);
  pointer-events: none;
}

.page-header .section-title {
  font-size: clamp(3rem, 6vw, 5rem);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-out-expo);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s var(--ease-out-expo);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s var(--ease-out-expo);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s var(--ease-out-expo);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--ease-out-expo);
}

.stagger-children.active > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(8) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(9) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }

/* ── Page Transition ── */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 10000;
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}

.page-transition.active {
  animation: pageTransition 0.4s var(--ease-out-expo);
}

@keyframes pageTransition {
  0% { transform: scaleY(0); transform-origin: bottom; }
  50% { transform: scaleY(1); transform-origin: bottom; }
  50.1% { transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: top; }
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Glow Effects ── */
.glow-violet {
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.15), 0 0 80px rgba(124, 58, 237, 0.05);
}

.text-glow {
  text-shadow: 0 0 40px rgba(124, 58, 237, 0.3);
}

/* ── Services Page Full ── */
.services-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-full-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px 32px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-medium);
}

.service-full-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-medium);
}

.service-full-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.12);
}

.service-full-card:hover::before {
  transform: scaleX(1);
}

.service-full-icon {
  margin-bottom: 28px;
  transition: all var(--transition-medium);
}

.service-full-card:hover .service-full-icon {
}

.service-full-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--primary-light);
  fill: none;
  stroke-width: 1.5;
}

.service-full-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.service-full-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-features {
  list-style: none;
}

.service-features li {
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ========== PREMIUM PORTFOLIO SHOWCASE ========== */

/* 1. Hero Premium */
.hero-premium {
  padding: 180px 0 100px;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero-massive {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.1;
  text-transform: uppercase;
  background: linear-gradient(to right, #fff, #999);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}

.hero-sub-massive {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 60px;
  line-height: 1.6;
}

.hero-stats-inline {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-family: 'Fustat', sans-serif; font-weight: 700;
  font-size: 3rem;
  color: var(--primary);
}

.stat-plus {
  font-family: 'Fustat', sans-serif; font-weight: 700;
  font-size: 3rem;
  color: var(--white);
  margin-left: 5px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* 2. Featured Project Showcase */
.featured-showcase {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

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

.featured-card.asym-right {
  grid-template-columns: 1fr 1.2fr;
}

.feat-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 600px;
}

.feat-img-wrap .gradient-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 5rem;
  color: rgba(255,255,255,0.1);
  letter-spacing: 5px;
  transition: transform 0.6s var(--ease-out-expo);
}

.gradient-placeholder.type-1 { background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), #090a0f); }
.gradient-placeholder.type-2 { background: linear-gradient(45deg, rgba(236, 72, 153, 0.2), #090a0f); }

.featured-card:hover .gradient-placeholder {
  transform: scale(1.05);
}

.feat-tags {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.feat-tags span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.feat-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 24px;
}

.feat-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 30px;
}

.feat-tech {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}

.feat-tech span {
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  font-size: 0.8rem;
}

.feat-results {
  padding: 20px;
  background: rgba(255,255,255,0.03);
  border-left: 2px solid var(--primary);
  border-radius: 0 8px 8px 0;
}

/* 3. Filterable Bento Grid */
.bento-filters {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.bento-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 350px;
  gap: 24px;
}

.bento-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  transition: transform 0.5s var(--ease-out-expo), opacity 0.4s;
}

.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; }
.bento-square { grid-column: span 2; }

@media (min-width: 1200px) {
  .bento-square { grid-column: span 1; }
}

.bento-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 3rem;
  color: rgba(255,255,255,0.05);
  transition: transform 0.6s var(--ease-out-expo);
  z-index: 1;
}

.bento-bg.type-3 { background: linear-gradient(to top right, #1a1a2e, #090a0f); }
.bento-bg.type-4 { background: linear-gradient(to bottom, #16213e, #090a0f); }
.bento-bg.type-5 { background: linear-gradient(45deg, #0f3460, #090a0f); }

.bento-card:hover .bento-bg {
  transform: scale(1.05);
}

.bento-content {
  position: relative;
  z-index: 2;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.4s;
}

.bento-card:hover .bento-content {
  transform: translateY(0);
  opacity: 1;
}

.bento-content::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: linear-gradient(to top, rgba(9,10,15,0.95) 0%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

.bento-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: block;
}

.bento-content h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 12px;
}

.bento-content p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* 5. Project Details Modal (Glassmorphism) */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s;
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 10, 15, 0.7);
  backdrop-filter: blur(10px);
}

.modal-content-glass {
  position: relative;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(20, 22, 30, 0.6);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 60px;
  transform: translateY(40px) scale(0.95);
  transition: transform 0.5s var(--ease-out-expo);
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
}

.project-modal.active .modal-content-glass {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: none;
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--white);
}

.modal-header {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modal-industry {
  font-family: var(--font-mono);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
}

.modal-header h2 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  margin: 16px 0;
}

.modal-services {
  color: var(--text-secondary);
}

.modal-body-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
}

.modal-col h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: var(--white);
}

.modal-col p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-col ul {
  list-style: disc inside;
  color: var(--text-secondary);
  line-height: 1.8;
}

.bg-panel {
  background: rgba(255,255,255,0.03);
  padding: 40px;
  border-radius: 16px;
}

.mod-tech-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mod-tech-tags span {
  padding: 4px 12px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--primary);
}

.modal-footer {
  margin-top: 60px;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* 6. Case Study Section */
.success-story {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 60px;
}

.story-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.story-header h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
}

.story-metric {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--primary);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.story-block h4 {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.story-block p {
  color: var(--white);
  line-height: 1.6;
}

/* 7. Tech Marquee */
.tech-marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}

.tech-marquee {
  display: flex;
  animation: scrollMarquee 20s linear infinite;
}

.tech-item {
  font-family: var(--font-heading);
  font-size: 3rem;
  padding: 0 40px;
  color: rgba(255,255,255,0.1);
  -webkit-text-stroke: 1px rgba(255,255,255,0.2);
  transition: color 0.3s, -webkit-text-stroke 0.3s;
}

.tech-item:hover {
  color: var(--white);
  -webkit-text-stroke: 0;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 8. Impact Counters */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.impact-card {
  padding: 60px 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.03), transparent);
  border-radius: 20px;
  border-top: 2px solid var(--primary);
}

.impact-num {
  font-family: 'Fustat', sans-serif; font-weight: 700;
  font-size: 4rem;
  color: var(--white);
  margin-bottom: 16px;
}

.impact-card p {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* 9. Testimonials */
.testimonial-slider {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.test-card {
  background: var(--bg-card);
  padding: 50px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.05);
}

.test-stars {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.test-review {
  font-size: 1.4rem;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 40px;
}

.test-client {
  display: flex;
  align-items: center;
  gap: 20px;
}

.test-avatar {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.test-client h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.test-client span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* 10. Massive CTA */
.massive-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.1;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--white), #666);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* ── Mobile Responsive ── */
@media (max-width: 1024px) {
  /* Global Layout & Padding */
  :root {
    --section-padding: 80px 0 !important;
  }

  /* Cursors hiding on touch devices */
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
  body, a, button, input, textarea, select {
    cursor: auto !important;
  }

  /* Navigation Drawer & Toggle Menu */
  .nav-links {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 320px;
    height: 100vh !important;
    background: rgba(9, 10, 15, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 32px !important;
    transform: translateX(100%) !important;
    transition: transform 0.4s var(--ease-out-expo) !important;
    border-left: 1px solid var(--border-subtle) !important;
    z-index: 1000 !important;
    padding: 40px 24px !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5) !important;
  }

  .nav-links.active {
    transform: translateX(0) !important;
  }

  .nav-toggle {
    display: flex !important;
    z-index: 1001 !important;
    min-width: 44px !important;
    min-height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .command-center-toggle {
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .nav-right-group {
    gap: 16px !important;
  }

  /* Hide top navbar socials on mobile/tablet */
  .nav-right-group > .nav-socials {
    display: none !important;
  }

  /* Display and style socials inside hamburger side menu */
  .nav-links .nav-socials {
    display: flex !important;
    margin: 24px 0 0 0 !important;
    padding: 24px 0 0 0 !important;
    border-left: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    width: 100% !important;
    justify-content: center !important;
    gap: 16px !important;
  }

  .nav-links .nav-socials a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
  }

  .nav-links .nav-socials a svg {
    width: 18px !important;
    height: 18px !important;
  }

  .nav-links .nav-socials a:hover {
    background: rgba(124, 58, 237, 0.1) !important;
    border-color: var(--primary) !important;
    color: var(--white) !important;
    transform: translateY(-3px) !important;
  }

  /* Navigation Dropdown Menu on Mobile/Tablet */
  .nav-dropdown {
    width: 100% !important;
    text-align: center !important;
  }

  .nav-link-dropdown::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 8px;
    display: inline-block;
    transition: transform 0.3s ease;
  }

  .nav-dropdown.open .nav-link-dropdown::after {
    transform: rotate(180deg) !important;
  }

  .nav-dropdown .dropdown-menu {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    transform: none !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: none !important;
    border-left: 2px solid var(--primary) !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-top: 0px !important;
    min-width: 100% !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, margin-top 0.35s ease-out;
  }

  .nav-dropdown.open .dropdown-menu {
    max-height: 500px;
    margin-top: 10px !important;
  }

  .dropdown-menu a {
    text-align: center !important;
    padding: 10px 24px !important;
  }

  /* Grid layouts (2 columns on tablet) */
  .services-grid,
  .services-page-grid,
  .portfolio-grid,
  .values-grid,
  .team-grid,
  .stats-grid,
  .achievements-grid,
  .story-grid,
  .impact-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
  }

  .mission-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .stat-item::after {
    display: none !important;
  }

  /* Bento Grid & Asymmetrical elements */
  .bento-item.span-8,
  .bento-item.span-4,
  .bento-item.span-6 {
    grid-column: span 12 !important;
  }
  .benefit-card-large,
  .benefit-card-small {
    grid-column: span 12 !important;
  }
  .case-study-preview {
    flex-direction: column !important;
  }
  .case-study-img {
    min-height: 300px !important;
  }
  .case-study-content {
    padding: 40px 20px !important;
  }

  /* Modals (Tablet & Mobile 1-Column Layout) */
  .modal-content-glass {
    padding: 30px !important;
    width: 95% !important;
  }
  .modal-body-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  .modal-header h2 {
    font-size: clamp(1.8rem, 5vw, 3rem) !important;
  }
  .modal-header {
    margin-bottom: 30px !important;
    padding-bottom: 20px !important;
  }
  .modal-footer {
    flex-direction: column-reverse !important;
    gap: 12px !important;
    align-items: stretch !important;
  }
  .modal-footer button,
  .modal-footer .btn {
    width: 100% !important;
  }

  /* Responsive Sticky Scroll-Jacking for Projects Section (Tablet) */
  .horizontal-scroll-container {
    height: 450vh !important;
    position: relative !important;
    background: var(--bg-dark);
    padding: 0 !important;
    overflow: visible !important;
  }
  .sticky-wrapper {
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
  .horizontal-scroll-header {
    padding: 0 5vw !important;
    margin-bottom: 20px !important;
  }
  .horizontal-scroll-header h2 {
    font-size: 2rem !important;
    margin-bottom: 6px !important;
  }
  .horizontal-scroll-header p {
    font-size: 0.9rem !important;
    max-width: 500px !important;
  }
  .horizontal-scroll-content {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px !important;
    padding: 0 10vw !important;
    overflow: visible !important;
    width: max-content !important;
    will-change: transform !important;
  }
  .horizontal-card {
    width: 70vw !important;
    max-width: 550px !important;
    min-width: 280px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding: 20px !important;
    box-sizing: border-box !important;
  }
  .horizontal-card .feat-img-wrap {
    height: 160px !important;
    width: 100% !important;
    order: -1 !important;
  }
  .horizontal-card .feat-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 0 !important;
  }
  .horizontal-card .btn-premium {
    min-height: 50px !important;
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
  }
  .horizontal-card .btn-premium .btn-icon {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    padding: 6px !important;
  }
}

@media (max-width: 767px) {
  /* Section Padding */
  :root {
    --section-padding: 60px 0 !important;
  }

  /* Full Screen Navigation Drawer on Mobile */
  .nav-links {
    width: 100% !important;
  }

  /* Typography */
  h1, .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.5rem) !important;
  }
  h2, .section-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
  }
  h3 {
    font-size: clamp(1.4rem, 5vw, 1.8rem) !important;
  }
  p {
    font-size: 0.95rem !important;
  }

  /* Logo Sizing & Aspect-Ratio Preservation */
  .logo, .nav-logo {
    margin-right: auto !important;
    flex-shrink: 0 !important;
    flex-wrap: nowrap !important;
    max-width: 60% !important;
  }

  .logo img {
    height: clamp(45px, 14vw, 55px) !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
  }

  /* Hide Dots Grid Menu (Command Center Toggle) on Mobile */
  .command-center-toggle {
    display: none !important;
  }

  /* Forms & Tables */
  input, textarea, select {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  input, select {
    min-height: 44px !important;
  }
  textarea {
    min-height: 120px !important;
  }
  button, .btn, [class*="btn-"], input[type="submit"], input[type="button"] {
    min-height: 44px !important;
  }
  table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* 1 Column Layouts for Mobile */
  .services-grid,
  .services-page-grid,
  .portfolio-grid,
  .values-grid,
  .achievements-grid,
  .contact-grid,
  .story-grid,
  .impact-grid,
  .testimonial-slider,
  .comparison-container,
  .process-steps {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .team-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    text-align: center !important;
  }
  .footer-col {
    align-items: center !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    gap: 16px !important;
    text-align: center !important;
  }

  .story-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }
  .success-story {
    padding: 30px !important;
  }

  /* Process steps separator */
  .process-step::after {
    display: none !important;
  }

  /* Timeline */
  .process-step-item {
    padding-left: 60px !important;
  }
  .process-timeline::before {
    left: 20px !important;
  }
  .process-step-icon {
    left: 0 !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 1rem !important;
  }

  /* Responsive Sticky Scroll-Jacking for Projects Section (Mobile) */
  .horizontal-scroll-container {
    height: 400vh !important;
    position: relative !important;
    background: var(--bg-dark);
    padding: 0 !important;
    overflow: visible !important;
  }
  .sticky-wrapper {
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
  .horizontal-scroll-header {
    padding: 0 5vw !important;
    margin-bottom: 12px !important;
  }
  .horizontal-scroll-header h2 {
    font-size: 1.6rem !important;
    margin-bottom: 0 !important;
  }
  .horizontal-scroll-header p {
    display: none !important;
  }
  .horizontal-scroll-content {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
    padding: 0 10vw !important;
    overflow: visible !important;
    width: max-content !important;
    will-change: transform !important;
  }
  .horizontal-card {
    width: 85vw !important;
    max-width: 320px !important;
    min-width: 260px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 14px !important;
    box-sizing: border-box !important;
  }
  .horizontal-card .feat-img-wrap {
    height: 130px !important;
    width: 100% !important;
    order: -1 !important;
  }
  .horizontal-card .feat-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 0 !important;
  }
  .horizontal-card .feat-title {
    font-size: 1.3rem !important;
    margin: 0 !important;
    line-height: 1.2 !important;
  }
  .horizontal-card .feat-desc {
    font-size: 0.82rem !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    color: var(--text-secondary) !important;
  }
  .horizontal-card .feat-tags span,
  .horizontal-card .feat-tech span {
    font-size: 0.72rem !important;
    padding: 4px 8px !important;
  }
  .horizontal-card .btn-premium {
    min-height: 46px !important;
    padding: 10px 16px !important;
    font-size: 0.8rem !important;
    margin-top: 8px !important;
  }
  .horizontal-card .btn-premium .btn-icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    padding: 4px !important;
  }


  /* Gather cards offset limit to prevent horizontal scroll */
  .gather-cards > *:nth-child(odd) {
    transform: translate(-50px, 50px) scale(0.9) !important;
  }
  .gather-cards > *:nth-child(even) {
    transform: translate(50px, 50px) scale(0.9) !important;
  }
  .gather-cards.active > * {
    transform: translate(0, 0) scale(1) !important;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 40px 0 !important;
  }
  .team-grid,
  .stats-grid {
    grid-template-columns: 1fr !important;
  }
  .hero-buttons-clean,
  .hero-buttons {
    flex-direction: column !important;
    align-items: center !important;
  }
  .horizontal-card {
    width: 90vw !important;
    gap: 20px !important;
  }
  .modal-content-glass {
    padding: 20px !important;
  }
  .bento-item {
    padding: 20px !important;
  }
  .massive-cta-title {
    font-size: clamp(2rem, 10vw, 3rem) !important;
  }
  .success-story {
    padding: 20px !important;
  }
}

@media (max-height: 500px) {
  .horizontal-card {
    grid-template-columns: 1fr 1fr !important;
    display: grid !important;
    width: 90vw !important;
  }
  .horizontal-card .feat-img-wrap {
    height: 120px !important;
    order: unset !important;
  }
}

/* ── Loading Screen ── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.6s, visibility 0.6s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  letter-spacing: 6px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: rgba(124, 58, 237, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 40%;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: loaderSlide 1s ease-in-out infinite;
}

@keyframes loaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ── Utility ── */
.text-solid-primary {
  color: var(--primary);
}

.text-solid-secondary {
  color: var(--secondary);
}

/* ── Infinity Text Loop ── */
.infinity-section {
  padding: 30px 0;
  overflow: hidden;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.infinity-track {
  display: flex;
  width: max-content;
  animation: infinityScroll 30s linear infinite;
  gap: 40px;
  padding: 0;
}

.infinity-item {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  transition: all 0.4s ease;
  cursor: none;
  position: relative;
}

.infinity-item:hover {
  color: var(--white);
  -webkit-text-stroke: 1px var(--white);
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.infinity-item.glow-primary:hover {
  color: var(--primary);
  -webkit-text-stroke: 1px var(--primary);
  text-shadow: 0 0 40px rgba(124, 58, 237, 0.4);
}

.infinity-item.glow-secondary:hover {
  color: var(--secondary);
  -webkit-text-stroke: 1px var(--secondary);
  text-shadow: 0 0 40px rgba(236, 72, 153, 0.4);
}

@keyframes infinityScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Floating WhatsApp Button ── */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: #25d366;
  color: white;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all 0.4s var(--ease-spring);
  overflow: hidden;
  text-decoration: none;
  animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
  padding: 16px 24px;
  animation: none;
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
  flex-shrink: 0;
}

.whatsapp-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 1px;
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  transition: all 0.4s var(--ease-spring);
}

.whatsapp-float:hover .whatsapp-text {
  max-width: 150px;
  opacity: 1;
  margin-left: 12px;
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Services page process section */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.process-step {
  text-align: center;
  padding: 32px 20px;
  position: relative;
}

.process-step-number {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}

.process-step h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

.process-step::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 2px;
  background: var(--border-subtle);
}

.process-step:last-child::after {
  display: none;
}

@media (max-width: 768px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
  .process-step::after {
    display: none;
  }
}


/* ========== HORIZONTAL SCROLL ========== */


.sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.horizontal-scroll-header {
  width: 100%;
  padding: 0 5vw;
  margin-bottom: 50px;
}
.horizontal-scroll-header h2 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  letter-spacing: 2px;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.horizontal-scroll-header p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 600px;
}





/* ========== PREMIUM BUTTONS ========== */
.filter-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  padding: 10px 24px;
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.btn-outline-glow {
  background: transparent;
  border: 1px solid rgba(124, 58, 237, 0.5);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: capitalize;
  font-size: 1rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}
.btn-outline-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}
.btn-outline-glow:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}
.btn-outline-glow:hover::before {
  opacity: 0.2;
}


.horizontal-scroll-container {
  height: 500vh; /* Increased height for 6 cards */
  position: relative;
  background: var(--bg-dark);
}
.horizontal-card {
  width: 65vw;
  max-width: 850px;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-card);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.horizontal-card:nth-child(even) {
  grid-template-columns: 1fr 1fr; /* keep consistent for smaller cards */
}
.horizontal-card .feat-img-wrap {
  height: 350px; /* fixed height for images */
}
.horizontal-scroll-content {
  gap: 60px;
}

.horizontal-scroll-content {
  display: flex;
  gap: 40px;
  padding: 0 5vw;
  will-change: transform;
}


/* ========== PHYSICS LOGO YARD ========== */
.physics-yard {
  position: relative;
  width: 100%;
  height: 45vh;
  min-height: 380px;
  overflow: hidden;
  background: transparent;
  cursor: crosshair;
}
.physics-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 90px;
  height: 90px;
  border-radius: 25%;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.2), 
    inset 0 0 20px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  /* z-index is randomized in JS */
}
.physics-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
  pointer-events: none;
}
/* Variations in sizing for organic feel */
.physics-icon.size-sm { width: 70px; height: 70px; }
.physics-icon.size-sm img { width: 35px; height: 35px; }
.physics-icon.size-lg { width: 110px; height: 110px; }
.physics-icon.size-lg img { width: 60px; height: 60px; }

.physics-icon img.invert-icon { filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3)); }

/* ==========================================
   GLOBAL BUTTON TYPOGRAPHY ENFORCEMENT
   ========================================== */
button, 
.btn, 
[class*="btn-"],
input[type="submit"],
input[type="button"] {
    font-family: var(--font-body) !important;
    font-size: 15.2px !important;
    color: #FFFFFF !important;
    text-transform: capitalize !important;
}


/* ==========================================
   PREMIUM SERVICE PAGE COMPONENTS
   ========================================== */

/* Process Timeline */
.process-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}
.process-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 2px;
  background: rgba(124, 58, 237, 0.2);
}
.process-step-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 50px;
}
.process-step-item:last-child {
  margin-bottom: 0;
}
.process-step-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  background: var(--bg-dark);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--primary);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
  z-index: 2;
}
.process-step-content {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.3s ease;
}
.process-step-content:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-5px);
}
.process-step-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--white);
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
}
.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s ease;
}
.faq-question:hover {
  color: var(--primary);
}
.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform 0.3s ease;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--primary);
  transition: transform 0.3s ease;
}
.faq-icon::before {
  top: 11px;
  left: 0;
  width: 24px;
  height: 2px;
}
.faq-icon::after {
  top: 0;
  left: 11px;
  width: 2px;
  height: 24px;
}
.faq-item.active .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
}
.faq-item.active .faq-answer {
  padding: 0 24px 20px;
}
.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Deliverables Grid */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.deliverable-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.3s ease;
}
.deliverable-card:hover {
  background: rgba(124, 58, 237, 0.05);
  border-color: rgba(124, 58, 237, 0.2);
}
.deliverable-icon {
  color: var(--primary);
  flex-shrink: 0;
}
.deliverable-content h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.deliverable-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Premium Asymmetrical Cards (Benefits) */
.premium-benefits-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.benefit-card-large {
  grid-column: span 8;
}
.benefit-card-small {
  grid-column: span 4;
}
@media (max-width: 900px) {
  .benefit-card-large, .benefit-card-small {
    grid-column: span 12;
  }
}
.benefit-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 40px;
  height: 100%;
  transition: all 0.4s ease;
  overflow: hidden;
  position: relative;
}
.benefit-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.benefit-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
  pointer-events: none;
}
.benefit-card h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--white);
}

/* Testimonial Cards */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.testimonial-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px;
  position: relative;
}
.testimonial-quote {
  font-family: 'Georgia', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 24px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}
.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}
.author-info h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.author-info p {
  font-size: 0.85rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Tech Stack Grid */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.tech-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 24px;
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--white);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tech-badge:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-2px);
}


/* ==========================================
   ADVANCED SERVICE PAGE COMPONENTS (14 SECTIONS)
   ========================================== */

/* Bento Grid */
.bento-grid-premium {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  grid-auto-rows: minmax(200px, auto);
}
.bento-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 30px;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}
.bento-item:hover {
  background: rgba(124, 58, 237, 0.05);
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-5px);
}
.bento-item.span-8 { grid-column: span 8; }
.bento-item.span-4 { grid-column: span 4; }
.bento-item.span-6 { grid-column: span 6; }
.bento-item.span-12 { grid-column: span 12; }
@media (max-width: 900px) {
  .bento-item.span-8, .bento-item.span-4, .bento-item.span-6 { grid-column: span 12; }
}

/* Comparison Cards */
.comparison-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
@media (max-width: 768px) {
  .comparison-container { grid-template-columns: 1fr; }
}
.compare-card {
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.05);
}
.compare-bad {
  background: rgba(255, 0, 0, 0.02);
}
.compare-good {
  background: rgba(124, 58, 237, 0.05);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.1);
}

/* Industry Cards */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.industry-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  transition: all 0.4s;
}
.industry-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--primary);
}

/* Case Study Preview */
.case-study-preview {
  display: flex;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 24px;
  overflow: hidden;
  align-items: stretch;
}
.case-study-img {
  flex: 1;
  background-size: cover;
  background-position: center;
  min-height: 400px;
}
.case-study-content {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 900px) {
  .case-study-preview { flex-direction: column; }
  .case-study-img { min-height: 300px; }
  .case-study-content { padding: 40px 20px; }
}

/* Statistics Mini Grid */
.stat-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}
@media (max-width: 600px) {
  .stat-mini-grid { grid-template-columns: 1fr; }
}


/* Typing Animation Class */
.type-reveal {
  opacity: 0;
  visibility: hidden;
}
.type-reveal.active {
  opacity: 1;
  visibility: visible;
}
.type-reveal.active::after {
  content: "|";
  display: inline-block;
  color: var(--primary);
  margin-left: 5px;
  animation: typingBlink 1s infinite;
}
@keyframes typingBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.type-reveal.typing-done::after { display: none; }



/* Gather Cards (Come From Outside and Attach) */
.gather-cards {
  overflow: hidden;
}
.gather-cards > * {
  opacity: 0;
  transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Distribute starting positions outward like an exploded view */
.gather-cards > *:nth-child(1) { transform: translate(-150px, -150px) scale(0.8); }
.gather-cards > *:nth-child(2) { transform: translate(0, -150px) scale(0.8); }
.gather-cards > *:nth-child(3) { transform: translate(150px, -150px) scale(0.8); }
.gather-cards > *:nth-child(4) { transform: translate(-150px, 150px) scale(0.8); }
.gather-cards > *:nth-child(5) { transform: translate(0, 150px) scale(0.8); }
.gather-cards > *:nth-child(6) { transform: translate(150px, 150px) scale(0.8); }

/* Additional fallbacks if there are more than 6 cards */
.gather-cards > *:nth-child(n+7):nth-child(odd) { transform: translate(-150px, 150px) scale(0.8); }
.gather-cards > *:nth-child(n+7):nth-child(even) { transform: translate(150px, 150px) scale(0.8); }

.gather-cards.active > * {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Infinity Loader Styles */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}
.loader.hide {
  opacity: 0;
  visibility: hidden;
}
.loader-infinity {
  width: 150px;
  height: 150px;
  position: relative;
}
.inf-path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawInf 1.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes drawInf {
  0% { stroke-dashoffset: 100; opacity: 0; }
  10% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
.loader-logo-text {
  margin-top: 10px;
  font-family: 'Fustat', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 4px;
  color: var(--white);
  opacity: 0;
  animation: fadeText 1s ease 1.2s forwards;
}
@keyframes fadeText {
  to { opacity: 1; transform: translateY(0); }
}

/* Added for Images */
.portfolio-thumb img, .feat-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}
.portfolio-card:hover .portfolio-thumb img {
  transform: scale(1.05);
}
.horizontal-card:hover .feat-img-wrap img {
  transform: scale(1.05);
}

.nav-logo {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  animation: navLogoEntry 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
  transform: translateY(-10px);
  margin-right: 20px; /* Add slightly more spacing between logo and navigation menu */
}
@keyframes navLogoEntry {
  0% { opacity: 0; transform: translateY(-15px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.nav-logo::after {
  display: none !important;
}
.nav-logo .logo-icon {
  height: 20px;
  width: 10px;
  margin-top: -2px; /* Ensure perfect vertical alignment */
}
.nav-logo .logo-text {
  height: 15px;
  width: 15px;
}

/* ========== RESPONSIVE BENTO GRID FOR PHYSICS YARD ========== */

/* Mobile view (up to 768px) */
@media (max-width: 768px) {
  .physics-yard {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    grid-auto-flow: dense !important;
    gap: 12px !important;
    padding: 20px 15px !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    position: relative !important;
    cursor: default !important;
  }

  .physics-icon {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 80px !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s, border-color 0.3s, box-shadow 0.3s !important;
  }

  /* Large cards (2x2 grid slots) */
  .physics-icon.size-lg {
    grid-column: span 2 !important;
    grid-row: span 2 !important;
    aspect-ratio: 1 / 1 !important;
  }

  /* Medium horizontal rectangular cards (2x1 grid slots) */
  .physics-icon:nth-child(5n + 1) {
    grid-column: span 2 !important;
    grid-row: span 1 !important;
    aspect-ratio: auto !important;
  }
  .physics-icon:nth-child(7n + 3) {
    grid-column: span 2 !important;
    grid-row: span 1 !important;
    aspect-ratio: auto !important;
  }

  /* Ensure images inside cards scale nicely */
  .physics-icon img {
    width: auto !important;
    height: auto !important;
    max-width: 45% !important;
    max-height: 45% !important;
  }
  
  .physics-icon.size-lg img {
    max-width: 55% !important;
    max-height: 55% !important;
  }

  .physics-icon:hover {
    transform: translateY(-4px) scale(1.02) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.15), inset 0 0 10px rgba(255, 255, 255, 0.05) !important;
  }
}

/* Tablet view (768px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .physics-yard {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    grid-auto-flow: dense !important;
    gap: 16px !important;
    padding: 30px 20px !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    position: relative !important;
    cursor: default !important;
  }

  .physics-icon {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 90px !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s, border-color 0.3s, box-shadow 0.3s !important;
  }

  /* Large cards (2x2 grid slots) */
  .physics-icon.size-lg {
    grid-column: span 2 !important;
    grid-row: span 2 !important;
    aspect-ratio: 1 / 1 !important;
  }

  /* Medium horizontal rectangular cards (2x1 grid slots) */
  .physics-icon:nth-child(5n + 1) {
    grid-column: span 2 !important;
    grid-row: span 1 !important;
    aspect-ratio: auto !important;
  }
  .physics-icon:nth-child(7n + 3) {
    grid-column: span 2 !important;
    grid-row: span 1 !important;
    aspect-ratio: auto !important;
  }

  /* Ensure images inside cards scale nicely */
  .physics-icon img {
    width: auto !important;
    height: auto !important;
    max-width: 45% !important;
    max-height: 45% !important;
  }
  
  .physics-icon.size-lg img {
    max-width: 55% !important;
    max-height: 55% !important;
  }

  .physics-icon:hover {
    transform: translateY(-6px) scale(1.03) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.18), inset 0 0 15px rgba(255, 255, 255, 0.05) !important;
  }
}

/* ========== FINAL CALL TO ACTION SECTION (PROJECTS PAGE) ========== */
.final-cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.final-cta-section .massive-cta-title {
  margin-bottom: 50px;
}

.final-cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 45px;
}

.final-cta-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.final-cta-socials a {
  color: var(--text-secondary);
  transition: all var(--transition-medium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.final-cta-socials a svg {
  width: 20px;
  height: 20px;
}

.final-cta-socials a:hover {
  color: var(--white);
  transform: translateY(-3px);
}

/* Responsive CTA Spacing */
@media (max-width: 768px) {
  .final-cta-section {
    padding: 80px 0;
  }
  .final-cta-section .massive-cta-title {
    margin-bottom: 35px;
  }
  .final-cta-buttons {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 35px;
    align-items: center;
  }
  .final-cta-buttons .btn-premium,
  .final-cta-buttons .btn-outline {
    width: 100%;
    max-width: 280px;
    text-align: center;
    justify-content: center;
  }
}

/* ========== SERVICE PAGES STYLING (FAQ & SECTION TITLES) ========== */
.service-section-title {
  font-family: var(--font-heading) !important;
  font-size: clamp(2rem, 6vw, 3rem) !important;
  margin-top: 25px !important;
  margin-bottom: 40px !important;
  text-align: center !important;
  line-height: 1.2 !important;
  display: block !important;
  width: 100% !important;
}

.section-label-center {
  font-family: var(--font-mono) !important;
  font-size: 0.9rem !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  color: var(--primary) !important;
  display: block !important;
  text-align: center !important;
  margin-bottom: 15px !important;
  margin-top: 50px !important; /* Spacing from the section above */
}

/* Ensure the FAQ container has proper breathing room and is clearly separated */
.faq-container {
  margin-top: 30px !important;
  margin-bottom: 60px !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Spacing adjustments specifically for mobile devices */
@media (max-width: 768px) {
  .service-section-title {
    margin-bottom: 30px !important;
  }
  .section-label-center {
    margin-top: 35px !important;
  }
  .faq-container {
    margin-top: 20px !important;
    margin-bottom: 40px !important;
  }
}


/* ========== RESTORED TOOLS AND SHOWCASE PAGE STYLES ========== */
/* ============================================
   PROJECT SHOWCASE PAGE STYLES
   ============================================ */
body.dark-theme {
    background-color: #0B1325;
}

.showcase-hero {
    position: relative;
    padding: 12rem 0 5rem;
    overflow: hidden;
    text-align: center;
}

.showcase-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(67, 83, 255, 0.08) 0%, transparent 60%);
}

#starsShowcaseCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.showcase-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(67, 83, 255, 0.08);
    border: 1px solid rgba(67, 83, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    animation: pulseGlow 3s infinite alternate;
}

.showcase-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

.showcase-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 680px;
    margin: 0 auto 4.5rem;
}

/* Project Grid */
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 8rem;
    position: relative;
    z-index: 5;
}

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

@media (min-width: 1024px) {
    .showcase-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.showcase-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
}

.showcase-card:hover {
    transform: translateY(-10px);
    border-color: rgba(184, 69, 237, 0.55);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(67, 83, 255, 0.15);
}

.sc-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}

.sc-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.showcase-card:hover .sc-image-wrapper img {
    transform: scale(1.06);
}

.sc-category-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(67, 83, 255, 0.3);
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 5;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

body.dark-theme .sc-category-badge {
    background: rgba(11, 19, 37, 0.85);
}

.sc-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sc-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.sc-content p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.sc-tech-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.sc-tech-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    background: var(--bg-surface-light);
    border: 1px solid var(--glass-border);
    padding: 2px 8px;
    border-radius: 4px;
}

.sc-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(67, 83, 255, 0.1), rgba(184, 69, 237, 0.1));
    border: 1px solid rgba(67, 83, 255, 0.25);
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
}

.sc-btn-outline:hover {
    background: linear-gradient(135deg, rgba(67, 83, 255, 0.25), rgba(184, 69, 237, 0.25));
    border-color: rgba(184, 69, 237, 0.6);
    box-shadow: 0 0 15px rgba(184, 69, 237, 0.2);
    transform: translateY(-2px);
}

.sc-btn-outline i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.sc-btn-outline:hover i {
    transform: translate(2px, -2px);
}

/* Lighter App/UI CTA Button */
.sc-btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
    margin-top: auto;
}

.sc-btn-light:hover {
    background: rgba(67, 83, 255, 0.08);
    border-color: rgba(67, 83, 255, 0.35);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(67, 83, 255, 0.15);
    transform: translateY(-2px);
}

body.dark-theme .sc-btn-light:hover {
    color: #fff;
}

.sc-btn-light i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.sc-btn-light:hover i {
    transform: translateX(3px);
}

/* Branding Visuals & Swatches */
.sc-branding-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--glass-border);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.showcase-card:hover .sc-branding-details {
    background: rgba(67, 83, 255, 0.04);
    border-color: rgba(67, 83, 255, 0.25);
}

.sc-brand-meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.showcase-card:hover .sc-brand-meta {
    color: var(--primary);
}

.sc-palette-strip {
    display: flex;
    gap: 6px;
}

.sc-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

.showcase-card:hover .sc-swatch {
    transform: scale(1.2);
    box-shadow: 0 0 8px var(--primary);
}

/* Animations */
.reveal-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-card.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 10px rgba(67, 83, 255, 0.2);
        border-color: rgba(67, 83, 255, 0.2);
    }
    100% {
        box-shadow: 0 0 20px rgba(184, 69, 237, 0.4);
        border-color: rgba(184, 69, 237, 0.4);
    }
}



/* ========== RESTORED ENHANCEMENTS AND TOOLS WORKSPACE STYLES ========== */
/* ============================================
   AWWWARDS-GRADE ENHANCEMENTS & PREMIUM INTERACTIVES
   ============================================ */

/* 1. 3D Card Tilt Glare Effect & Base Transitions */
.service-card, .showcase-card, .team-card {
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.service-card::after, .showcase-card::after, .team-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, var(--glare-opacity, 0)), transparent 60%);
    pointer-events: none;
    z-index: 5;
    mix-blend-mode: overlay;
    transition: background 0.15s ease;
}

/* 2. Infinite Tech-Stack Marquee */
.tech-marquee-section {
    padding: 4rem 0;
    background: var(--bg-surface-light);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
    margin: 4rem 0;
}

.marquee-title-wrapper h4 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    font-weight: 600;
}

.tech-marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 4rem;
    position: relative;
    mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.tech-marquee-track {
    display: flex;
    flex-shrink: 0;
    gap: 4rem;
    min-width: 100%;
    justify-content: space-around;
    align-items: center;
    animation: scrollMarquee 30s linear infinite;
}

.tech-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text-main);
    opacity: 0.65;
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.tech-item:hover {
    opacity: 1;
    color: var(--primary);
    transform: scale(1.1);
}

.tech-item i {
    font-size: 2.25rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.tech-item:hover i {
    transform: rotate(8deg);
}



/* 5. Showcase Card Updates & Grid Animations */
.showcase-card {
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, background 0.3s ease;
    opacity: 1;
    transform: scale(1);
    transform-origin: center center;
}

/* 6. Case Study Modals */
.case-study-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.case-study-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 13, 33, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    cursor: pointer;
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 1100px;
    height: 85vh;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4), 0 0 50px rgba(67, 83, 255, 0.15);
    border-radius: 28px;
    overflow: hidden;
    z-index: 10;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}

.case-study-modal.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-surface-light);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-close-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: rotate(90deg);
}

.modal-content-scroller {
    flex: 1;
    overflow-y: auto;
    padding: 3rem;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
}

.modal-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.modal-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    aspect-ratio: 4/3;
}

.modal-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-meta-card {
    background: var(--bg-surface-light);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.modal-meta-row span:first-child {
    color: var(--text-muted);
    font-weight: 500;
}

.modal-meta-row span:last-child {
    font-weight: 600;
    color: var(--text-main);
}

.modal-color-strip {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.modal-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    cursor: help;
}

.modal-right {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.modal-right h2 {
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    letter-spacing: -1px;
    font-weight: 800;
    line-height: 1.15;
}

.modal-category-badge {
    display: inline-block;
    width: fit-content;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(67, 83, 255, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.modal-section h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.modal-section p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.modal-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    background: var(--bg-surface-light);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.modal-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
}

.modal-stat-val {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 850;
    color: var(--primary);
}

.modal-stat-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Scroll lock for page body */
body.modal-open {
    overflow: hidden !important;
}

/* ============================================
   RESPONSIVENESS & CORRECTIONS
   ============================================ */
@media (max-width: 992px) {
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .modal-content-scroller {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .modal-stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ============================================
   WEBSITE SPEED & SEO AUDIT DIAGNOSTIC TOOL
   ============================================ */
.audit-tool-wrapper {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3.5rem;
    margin-bottom: 5rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.audit-header {
    text-align: center;
    margin-bottom: 3rem;
}

.audit-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    background: rgba(67, 83, 255, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.audit-header h2 {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
    font-weight: 800;
}

.audit-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
}

.audit-container {
    min-height: 250px;
    position: relative;
}

.audit-screen {
    display: none;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.audit-screen.active {
    display: block;
    opacity: 1;
}

/* 1. Input Screen Form */
.audit-fields-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.audit-form .form-group input {
    width: 100%;
    padding: 1.15rem 1.5rem;
    background: var(--bg-surface-light);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.audit-form .form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(67, 83, 255, 0.15);
}

/* 2. Scanner Screen */
#auditScannerScreen {
    text-align: center;
    padding: 3rem 0;
}

.scanner-loader-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 2.5rem;
}

.scanner-ring {
    width: 100%;
    height: 100%;
    border: 4px solid var(--glass-border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spinScanner 1.5s linear infinite;
}

.scanner-radar {
    position: absolute;
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(67, 83, 255, 0.15) 0%, transparent 70%);
    border: 2px dashed rgba(67, 83, 255, 0.3);
    border-radius: 50%;
    animation: radarPulse 2s ease-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.75rem;
}

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

@keyframes radarPulse {
    0% { transform: scale(0.9); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(0.9); opacity: 0.3; }
}

#scannerStatusText {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.scanner-progress-bar {
    width: 100%;
    max-width: 450px;
    height: 8px;
    background: var(--glass-border);
    border-radius: 999px;
    margin: 0 auto;
    overflow: hidden;
}

.scanner-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--grad-primary);
    border-radius: 999px;
    transition: width 0.1s linear;
}

/* 3. Results Dashboard Screen */
.results-dashboard-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3.5rem;
    align-items: start;
    margin-bottom: 3rem;
}

.results-scores-panel {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--bg-surface-light);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.25rem 1.5rem;
}

.score-card-radial {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.radial-progress {
    position: relative;
    width: 90px;
    height: 90px;
}

.radial-progress svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.radial-track {
    fill: none;
    stroke: var(--glass-border);
    stroke-width: 6;
}

.radial-fill {
    fill: none;
    stroke: var(--primary);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 264; /* 2 * PI * r (r=42) = 263.89 */
    stroke-dashoffset: 264;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.25, 1, 0.5, 1), stroke 0.3s ease;
}

.radial-score-val {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 850;
    color: var(--text-main);
}

.score-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Bottlenecks Panel */
.results-bottlenecks-panel h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.bottlenecks-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bottlenecks-list li {
    display: flex;
    gap: 1.15rem;
    padding: 1.15rem 1.25rem;
    background: var(--bg-surface-light);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    align-items: flex-start;
}

.bottlenecks-list li i {
    font-size: 1.75rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.bottlenecks-list li h5 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.bottlenecks-list li p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.text-accent { color: var(--accent); }
.text-secondary { color: var(--secondary); }

/* Results CTA Footer */
.results-cta-footer {
    text-align: center;
    background: var(--bg-surface-light);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.25rem;
}

.results-cta-footer p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    line-height: 1.7;
}

.results-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.results-cta-buttons .btn {
    padding: 0.85rem 2rem;
}

@media (max-width: 992px) {
    .results-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .audit-tool-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .audit-fields-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .results-scores-panel {
        flex-direction: column;
        gap: 2rem;
    }
    
    .results-cta-buttons .btn {
        width: 100%;
    }
}

/* ==========================================================================
   FREE DEVELOPER & DESIGNER TOOLS DASHBOARD
   ========================================================================== */
.tools-section {
    position: relative;
    padding-top: 12rem;
    padding-bottom: var(--section-padding);
    background: var(--bg-dark);
}

.tools-tab-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.tool-tab-btn {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: var(--shadow-card);
}

.tool-tab-btn i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.tool-tab-btn:hover {
    color: var(--text-main);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 83, 255, 0.15);
}

.tool-tab-btn:hover i {
    transform: scale(1.15);
}

.tool-tab-btn.active {
    background: var(--grad-primary);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(67, 83, 255, 0.3);
}

.tool-content-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.tool-content-pane.active {
    display: block;
    opacity: 1;
}

/* ==========================================================================
   GLOBAL INVOICE GENERATOR STYLES
   ========================================================================== */
.invoice-generator-wrapper {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
    align-items: start;
    position: relative;
    z-index: 10;
}

@media (max-width: 1200px) {
    .invoice-generator-wrapper {
        grid-template-columns: 1fr;
    }
}

.invoice-control-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.invoice-preview-panel {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .invoice-preview-panel {
        position: static;
    }
}

/* Live Invoice Sheet preview on screen */
#invoiceSheet {
    background: #ffffff !important; /* Forces physical paper white appearance */
    color: #1A1A1A !important;
    border-radius: 16px;
    padding: 3.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    width: 100%;
}

.invoice-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #f0f3f7;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.invoice-sheet-brand h3 {
    font-weight: 800;
    font-size: 1.75rem;
    color: #0b1325 !important;
    letter-spacing: -0.75px;
}

.invoice-sheet-brand p {
    color: #5d6778 !important;
    font-size: 0.85rem;
    margin-top: 0.35rem;
    line-height: 1.5;
}

.invoice-sheet-meta {
    text-align: right;
}

.invoice-sheet-meta h4 {
    font-size: 2rem;
    font-weight: 900;
    color: #4353FF !important; /* Force primary blue accent on preview */
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.invoice-sheet-meta p {
    font-size: 0.95rem;
    color: #4e5566 !important;
}

.invoice-sheet-details-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.invoice-details-col h5 {
    font-size: 0.8rem;
    font-weight: 800;
    color: #8c9ba5 !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.65rem;
}

.invoice-details-col div,
.invoice-details-col p {
    color: #2b313c !important;
    font-weight: 500;
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.invoice-sheet-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 3rem;
}

.invoice-sheet-table th {
    background: #f8fafd !important;
    color: #4a5468 !important;
    font-weight: 750;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.85rem 1.15rem;
    text-align: left;
    border-bottom: 2px solid #eaeef4;
}

.invoice-sheet-table th:last-child,
.invoice-sheet-table td:last-child {
    text-align: right;
}

.invoice-sheet-table td {
    padding: 1.15rem 1.15rem;
    border-bottom: 1px solid #f0f3f7;
    color: #3b4252 !important;
    vertical-align: top;
}

.invoice-sheet-table td h6 {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0b1325 !important;
    margin-bottom: 0.2rem;
}

.invoice-sheet-table td p {
    font-size: 0.8rem;
    color: #5d6778 !important;
    line-height: 1.4;
}

.invoice-sheet-totals {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 3rem;
}

.invoice-totals-table {
    width: 280px;
    border-collapse: collapse;
}

.invoice-totals-table tr td {
    padding: 0.6rem 0;
    color: #4a5468 !important;
    font-weight: 600;
    font-size: 0.9rem;
}

.invoice-totals-table tr td:last-child {
    text-align: right;
    color: #0b1325 !important;
    font-weight: 700;
}

.invoice-totals-table tr.total-due td {
    border-top: 2px solid #0b1325;
    padding-top: 1.25rem;
    font-size: 1.3rem;
    font-weight: 900;
}

.invoice-totals-table tr.total-due td:last-child {
    color: #4353FF !important; /* Glow accent */
    font-size: 1.35rem;
}

.invoice-sheet-footer {
    border-top: 1px solid #eaeef4;
    padding-top: 2rem;
    font-size: 0.8rem;
    color: #8c9ba5 !important;
    text-align: center;
    line-height: 1.5;
}

/* Control Panel Form Customization */
.invoice-form-section {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 2.5rem;
}

.invoice-form-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.invoice-form-section h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--primary);
}

.invoice-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 576px) {
    .invoice-grid-2 {
        grid-template-columns: 1fr;
    }
}

.invoice-control-panel .form-group {
    margin-bottom: 1.25rem;
}

.invoice-control-panel .form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.invoice-control-panel .form-group input,
.invoice-control-panel .form-group select,
.invoice-control-panel .form-group textarea {
    width: 100%;
    padding: 0.9rem 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.invoice-control-panel .form-group select {
    background-color: var(--bg-surface);
    cursor: pointer;
}

.invoice-control-panel .form-group input:focus,
.invoice-control-panel .form-group select:focus,
.invoice-control-panel .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(67, 83, 255, 0.15);
    outline: none;
}

/* Custom layout for Line Items controls */
.items-input-table {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.items-input-header {
    display: grid;
    grid-template-columns: 2.2fr 0.8fr 1fr 40px;
    gap: 1rem;
    padding: 0 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 750;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#invoiceItemsContainer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.invoice-item-row {
    display: grid;
    grid-template-columns: 2.2fr 0.8fr 1fr 40px;
    gap: 1rem;
    align-items: center;
}

.invoice-item-row input {
    width: 100%;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.invoice-item-row input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(67, 83, 255, 0.15);
}

.btn-delete-row {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    height: 44px;
    width: 44px;
    border-radius: 8px;
}

.btn-delete-row:hover {
    background: rgba(255, 51, 102, 0.1);
    transform: scale(1.05);
}

.btn-add-item {
    margin-top: 0.5rem;
    background: rgba(67, 83, 255, 0.08);
    border: 1px dashed var(--primary);
    color: var(--text-main);
    align-self: flex-start;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-add-item:hover {
    background: var(--primary);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-1px);
}

/* ==========================================================================
   HIGH FIDELITY PRINT MODE MEDIA OVERRIDE
   ========================================================================== */
@media print {
    /* 1. Global Reset & Body override */
    html, body {
        background: #ffffff !important;
        color: #000000 !important;
        font-family: 'Inter', sans-serif !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    /* 2. Hide ALL visual UI layout elements cleanly */
    .navbar,
    footer,
    .whatsapp-float,
    .theme-btn,
    .mobile-menu-btn,
    .skip-to-content,
    .showcase-bg,
    .showcase-badge,
    .showcase-title,
    .showcase-subtitle,
    #starsCanvas,
    .tools-tab-container,
    .audit-tool-wrapper,
    .invoice-control-panel,
    .invoice-preview-actions,
    .section-header,
    .tech-marquee-section {
        display: none !important;
    }

    /* 3. Re-format the main layout structure so it occupies full canvas width */
    main,
    .showcase-hero,
    .tools-section,
    .tools-section .container,
    .tools-showcase-grid,
    #invoiceGeneratorSection,
    .invoice-generator-wrapper,
    .invoice-preview-panel {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        color: #000000 !important;
        position: static !important;
        box-shadow: none !important;
        border: none !important;
    }

    /* 4. Format the Invoice Sheet container to perfectly represent an A4 printed sheet */
    #invoiceSheet {
        display: block !important;
        background: #ffffff !important;
        color: #000000 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
        position: static !important;
        top: 0 !important;
        left: 0 !important;
        box-sizing: border-box !important;
        page-break-after: avoid !important;
        page-break-inside: avoid !important;
    }

    /* 5. Force elements that usually have color adjustments to show correctly */
    .invoice-sheet-table th {
        background: #f0f3f7 !important;
        color: #1a1a1a !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .invoice-sheet-meta h4 {
        color: #4353FF !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .invoice-totals-table tr.total-due td:last-child {
        color: #4353FF !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* ==========================================================================
   AD FEED MOCKUP GENERATOR WORKSPACE STYLES
   ========================================================================== */
.mockup-tool-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 2.5rem;
    align-items: start;
    width: 100%;
}

.mockup-control-panel {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

.mockup-control-panel .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.mockup-control-panel label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.75px;
    margin-bottom: 0.25rem;
}

.mockup-control-panel input,
.mockup-control-panel select,
.mockup-control-panel textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.mockup-control-panel input:focus,
.mockup-control-panel select:focus,
.mockup-control-panel textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(67, 83, 255, 0.25);
    background: var(--bg-surface-light);
}

.mockup-control-panel textarea {
    resize: vertical;
    line-height: 1.5;
}

.mockup-preview-panel {
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Platform Tabs */
.mockup-platform-tabs {
    display: flex;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 0.4rem;
    gap: 0.5rem;
}

.platform-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.platform-tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.platform-tab-btn.active {
    background: rgba(67, 83, 255, 0.1) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(67, 83, 255, 0.3) !important;
    box-shadow: 0 0 15px rgba(67, 83, 255, 0.15) !important;
}

body.dark-theme .platform-tab-btn.active {
    color: #5d6eff !important;
    border-color: rgba(93, 110, 255, 0.4) !important;
    background: rgba(93, 110, 255, 0.15) !important;
}

/* Canvas Viewport */
.mockup-canvas-frame {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.mockup-viewport {
    display: none;
    width: 100%;
    max-width: 520px;
    animation: fadeIn 0.4s ease forwards;
}

.mockup-viewport.active {
    display: block;
}

/* Meta / Facebook Mockup Styles */
.meta-ad-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    color: #1c1e21;
    font-family: -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    padding: 0.9rem 0 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.meta-card-header {
    display: flex;
    align-items: center;
    padding: 0 1rem 0.75rem;
    position: relative;
}

.meta-profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
}

.meta-profile-info {
    margin-left: 0.75rem;
}

.meta-profile-info h5 {
    margin: 0;
    font-size: 0.93rem;
    font-weight: 600;
    color: #050505;
}

.meta-profile-info span {
    font-size: 0.75rem;
    color: #65676b;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.meta-header-dots {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #65676b;
    cursor: pointer;
}

.meta-ad-body {
    padding: 0 1rem 0.75rem;
    font-size: 0.93rem;
    line-height: 1.4;
    white-space: pre-wrap;
}

.meta-ad-banner {
    border-top: 1px solid #ebedf0;
    border-bottom: 1px solid #ebedf0;
    background: #f0f2f5;
}

.meta-banner-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f0f2f5;
}

.meta-footer-text {
    flex: 1;
    padding-right: 1rem;
}

.meta-dest-domain {
    font-size: 0.75rem;
    color: #65676b;
    text-transform: uppercase;
}

.meta-banner-footer h4 {
    margin: 0.15rem 0 0;
    font-size: 0.93rem;
    font-weight: 600;
    color: #050505;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meta-cta-btn {
    background: #e4e6eb;
    border: none;
    border-radius: 6px;
    color: #050505;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.meta-cta-btn:hover {
    background: #d8dadf;
}

.meta-ad-engagement {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: #65676b;
    border-top: 1px solid #ebedf0;
    margin-top: 0.25rem;
}

/* Google Search Mockup Styles */
.google-ad-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    color: #3c4043;
    font-family: Roboto, Arial, sans-serif;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.google-url-row {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}

.google-sponsored-tag {
    font-weight: 700;
    color: #202124;
    margin-right: 0.5rem;
}

.google-url-text {
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.google-ad-title {
    color: #1a0dab;
    font-size: 1.25rem;
    font-weight: 400;
    text-decoration: none;
    display: block;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.google-ad-title:hover {
    text-decoration: underline;
}

.google-ad-snippet {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #4d5156;
    margin: 0 0 1rem 0;
    white-space: pre-wrap;
}

.google-sitelinks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    border-top: 1px solid #f1f3f4;
    padding-top: 1rem;
}

.google-sitelink-item a {
    color: #1a0dab;
    font-size: 0.9rem;
    text-decoration: none;
    display: block;
    margin-bottom: 0.15rem;
}

.google-sitelink-item a:hover {
    text-decoration: underline;
}

.google-sitelink-item span {
    font-size: 0.78rem;
    color: #4d5156;
    line-height: 1.4;
    display: block;
}

/* Instagram Story Viewport Styles */
.instagram-story-device {
    background: #000000;
    width: 290px;
    height: 500px;
    border-radius: 36px;
    border: 8px solid #1a1a1a;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

.insta-top-indicators {
    display: flex;
    padding: 0.75rem 0.5rem 0.5rem;
    gap: 4px;
    z-index: 10;
}

.insta-bar {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
}

.insta-bar.active {
    background: #ffffff;
}

.insta-story-header {
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    z-index: 10;
}

.insta-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.insta-header-text {
    margin-left: 0.5rem;
}

.insta-header-text h5 {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
}

.insta-header-text span {
    font-size: 0.65rem;
    opacity: 0.75;
}

.insta-story-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 5;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #c026d3 100%);
    position: relative;
}

.insta-story-body::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 10%, transparent 60%);
    top: 0;
    left: 0;
}

.insta-content-box {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    z-index: 10;
}

.insta-content-box h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
    color: #ffffff;
}

.insta-content-box p {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.4;
    opacity: 0.9;
}

.insta-story-swipeup {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 10;
    cursor: pointer;
}

.insta-story-swipeup i {
    font-size: 1.2rem;
    animation: swipeBounce 1.5s infinite;
}

.insta-story-swipeup span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

@keyframes swipeBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}



/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS SYSTEM
   Complete responsive overhaul for all tools, forms, and layouts.
   Breakpoints: 768px → 576px → 480px → 375px → 320px
   ========================================================================== */

/* --- GLOBAL FLUID RESETS (all screen sizes) --- */
.meta-banner-img {
    width: 100% !important;
    height: auto !important;
    max-height: 240px !important;
    object-fit: cover !important;
    display: block !important;
}

/* Force ALL form-level elements to respect container boundaries */
input, select, textarea, button {
    max-width: 100%;
    box-sizing: border-box;
}

/* Prevent long text from breaking layouts */
h1, h2, h3, h4, h5, h6, p, span, label, a, li, td, th, div {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* ==========================================================================
   BREAKPOINT: 1024px — Tablet landscape / small desktop
   ========================================================================== */
@media (max-width: 1024px) {
    .mockup-tool-wrapper {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
}

/* ==========================================================================
   BREAKPOINT: 768px — Tablet / large mobile
   ========================================================================== */
@media (max-width: 768px) {

    /* --- GLOBAL OVERFLOW PREVENTION --- */
    html {
        overflow-x: clip !important;
    }
    body {
        overflow-x: clip !important;
        min-width: 0 !important;
    }

    /* --- CONTAINER / WRAPPER CONSTRAINTS --- */
    .container,
    main,
    .showcase-hero,
    .tools-workspace,
    .tool-content-pane,
    .audit-tool-wrapper,
    .audit-container,
    .audit-screen,
    .audit-form,
    .invoice-generator-wrapper,
    .invoice-control-panel,
    .invoice-preview-panel,
    .invoice-form-section,
    .mockup-tool-wrapper,
    .mockup-control-panel,
    .mockup-preview-panel,
    .mockup-canvas-frame,
    .results-dashboard-grid,
    .results-scores-panel,
    .results-bottlenecks-panel,
    .results-cta-footer {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* --- SHOWCASE HERO & SECTION PADDING --- */
    .showcase-hero {
        padding: 8rem 0 3rem !important;
    }
    .showcase-subtitle {
        max-width: 100% !important;
        padding: 0 1rem;
    }

    /* --- TOOL TAB SWITCHER --- */
    .tools-tab-container {
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100% !important;
        max-width: 340px !important;
        margin: 0 auto 3rem auto !important;
    }
    .tool-tab-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.9rem 1.5rem !important;
        font-size: 0.95rem !important;
    }

    /* --- SPEED & SEO ANALYZER --- */
    .audit-tool-wrapper {
        padding: 1.5rem 1rem !important;
        border-radius: 16px !important;
    }
    .audit-fields-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .results-dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .results-scores-panel {
        flex-direction: column !important;
        gap: 1.5rem !important;
        padding: 1.5rem 1rem !important;
    }
    .results-cta-footer {
        padding: 1.5rem 1rem !important;
    }
    .results-cta-buttons {
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }
    .results-cta-buttons .btn {
        width: 100% !important;
        justify-content: center !important;
        display: flex !important;
    }
    .bottlenecks-list li {
        padding: 1rem !important;
        gap: 0.75rem !important;
    }

    /* --- ALL FORM ELEMENTS (GLOBAL) --- */
    .form-group,
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }
    .form-group label {
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
        display: block !important;
    }

    /* --- INVOICE GENERATOR --- */
    .invoice-generator-wrapper {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .invoice-control-panel {
        padding: 1.25rem !important;
        border-radius: 16px !important;
        overflow: hidden !important;
    }
    .invoice-preview-panel {
        position: static !important;
    }
    .invoice-grid-2 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .invoice-form-section {
        margin-bottom: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    /* Invoice line items: stack into card layout */
    .items-input-header {
        display: none !important;
    }
    .invoice-item-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
        padding: 1rem !important;
        background: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid var(--glass-border) !important;
        border-radius: 12px !important;
    }
    .invoice-item-row .item-desc {
        grid-column: span 2 !important;
    }
    .invoice-item-row .btn-delete-row {
        grid-column: span 2 !important;
        width: 100% !important;
        height: 40px !important;
        margin-top: 0.25rem !important;
        background: rgba(255, 51, 102, 0.05) !important;
        border: 1px solid rgba(255, 51, 102, 0.2) !important;
        border-radius: 8px !important;
    }

    /* Invoice A4 preview: allow scroll within container only */
    .invoice-sheet-scroll-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
        background: #ffffff !important;
        padding: 0.5rem !important;
        box-sizing: border-box !important;
    }
    #invoiceSheet {
        min-width: 580px !important;
        box-shadow: none !important;
        border: none !important;
        padding: 1.75rem !important;
    }

    /* --- AD MOCKUP GENERATOR --- */
    .mockup-tool-wrapper {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .mockup-control-panel {
        padding: 1.25rem !important;
        border-radius: 16px !important;
        overflow: hidden !important;
    }
    .mockup-canvas-frame {
        padding: 1rem !important;
        min-height: 400px !important;
        border-radius: 16px !important;
    }
    /* Meta ad text wrapping */
    .meta-banner-footer h4 {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        font-size: 0.85rem !important;
    }
    .meta-banner-footer {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    .meta-footer-text {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }
    /* Google Search mockup wrapping */
    .google-url-text {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        word-break: break-all !important;
    }
    .google-ad-title {
        font-size: 1.1rem !important;
    }
    .google-sitelinks-grid {
        grid-template-columns: 1fr !important;
    }
    /* Instagram story scaling */
    .instagram-story-device {
        width: 260px !important;
        height: 450px !important;
    }
    .insta-content-box h3 {
        font-size: 0.95rem !important;
    }
    .insta-content-box p {
        font-size: 0.7rem !important;
    }

    /* --- FOOTER --- */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* --- CONTACT SECTION --- */
    .contact-wrapper {
        grid-template-columns: 1fr !important;
        border-radius: 20px !important;
    }
    .contact-info, .contact-form {
        padding: 2rem 1.5rem !important;
    }

    /* --- NAV MOBILE MENU --- */
    .nav-links {
        display: none;
    }
    .nav-links.active {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background: var(--glass-bg) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid var(--glass-border) !important;
        padding: 1.5rem !important;
        gap: 1rem !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
        z-index: 999 !important;
        box-sizing: border-box !important;
    }
    .mobile-menu-btn {
        display: block !important;
    }
}

/* ==========================================================================
   BREAKPOINT: 576px — Small mobile
   ========================================================================== */
@media (max-width: 576px) {
    /* Strategy selector stacking */
    .strategy-selector {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    .strategy-option {
        width: 100% !important;
    }

    /* Platform tabs stacking */
    .mockup-platform-tabs {
        flex-direction: column !important;
        gap: 0.5rem !important;
        border-radius: 12px !important;
    }
    .platform-tab-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.65rem 1rem !important;
        font-size: 0.85rem !important;
    }

    /* Tighter paddings for audit wrapper */
    .audit-tool-wrapper {
        padding: 1.25rem 0.75rem !important;
    }

    /* Scale down radial scores */
    .radial-progress {
        width: 75px !important;
        height: 75px !important;
    }
    .radial-score-val {
        font-size: 1.2rem !important;
    }
    .score-label {
        font-size: 0.8rem !important;
    }

    /* CTA buttons padding */
    .btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }

    /* Contact form row */
    .form-row-2 {
        grid-template-columns: 1fr !important;
    }

    /* Stream cards (testimonials) */
    .stream-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1.5rem !important;
    }

    /* Invoice form section headings */
    .invoice-form-section h4 {
        font-size: 1rem !important;
    }

    /* Audit header */
    .audit-header h2 {
        font-size: 1.65rem !important;
        letter-spacing: -0.5px !important;
    }
    .audit-header p {
        font-size: 0.9rem !important;
    }

    /* Showcase hero */
    .showcase-hero {
        padding: 7rem 0 2rem !important;
    }
    .showcase-title {
        font-size: 2rem !important;
        letter-spacing: -1px !important;
    }
    .showcase-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 2.5rem !important;
    }
}

/* ==========================================================================
   BREAKPOINT: 480px — Narrow mobile
   ========================================================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem !important;
    }

    /* Even tighter invoice control panel */
    .invoice-control-panel {
        padding: 1rem !important;
    }

    /* Invoice item row fully stacked */
    .invoice-item-row {
        grid-template-columns: 1fr !important;
    }
    .invoice-item-row .item-desc,
    .invoice-item-row .btn-delete-row {
        grid-column: span 1 !important;
    }

    /* Mockup canvas */
    .mockup-canvas-frame {
        padding: 0.75rem !important;
        min-height: 360px !important;
    }

    /* Instagram story smaller */
    .instagram-story-device {
        width: 240px !important;
        height: 420px !important;
        border-width: 6px !important;
        border-radius: 28px !important;
    }

    /* Meta ad card padding */
    .meta-card-header {
        padding: 0 0.75rem 0.65rem !important;
    }
    .meta-ad-body {
        padding: 0 0.75rem 0.65rem !important;
        font-size: 0.85rem !important;
    }
    .meta-ad-engagement {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.72rem !important;
    }

    /* Google ad card */
    .google-ad-card {
        padding: 1rem !important;
    }
    .google-ad-title {
        font-size: 1rem !important;
    }
    .google-ad-snippet {
        font-size: 0.82rem !important;
    }

    /* Invoice sheet min-width reduction for very small screens */
    #invoiceSheet {
        min-width: 520px !important;
        padding: 1.5rem !important;
        font-size: 0.8rem !important;
    }

    /* Results CTA footer */
    .results-cta-footer p {
        font-size: 0.9rem !important;
    }

    /* Bottleneck items */
    .bottlenecks-list li {
        flex-direction: column !important;
        gap: 0.5rem !important;
        text-align: left !important;
    }
    .bottlenecks-list li i {
        font-size: 1.5rem !important;
    }

    /* Whatsapp float */
    .whatsapp-float {
        bottom: 1.25rem !important;
        right: 1.25rem !important;
        width: 48px !important;
        height: 48px !important;
        font-size: 1.6rem !important;
    }
    .whatsapp-tooltip {
        display: none !important;
    }
}

/* ==========================================================================
   BREAKPOINT: 375px — iPhone SE / narrow devices
   ========================================================================== */
@media (max-width: 375px) {
    .container {
        padding: 0 0.75rem !important;
    }

    .showcase-title {
        font-size: 1.75rem !important;
    }
    .showcase-subtitle {
        font-size: 0.85rem !important;
    }
    .showcase-badge {
        font-size: 0.6rem !important;
        padding: 0.4rem 1rem !important;
    }

    .tool-tab-btn {
        padding: 0.75rem 1rem !important;
        font-size: 0.85rem !important;
    }

    .audit-header h2 {
        font-size: 1.45rem !important;
    }
    .audit-header p {
        font-size: 0.82rem !important;
    }

    /* Reduce mockup sizes further */
    .instagram-story-device {
        width: 220px !important;
        height: 380px !important;
    }
    .insta-content-box {
        padding: 0.75rem !important;
    }
    .insta-content-box h3 {
        font-size: 0.82rem !important;
    }
    .insta-content-box p {
        font-size: 0.62rem !important;
    }

    /* Google sitelinks */
    .google-sitelink-item a {
        font-size: 0.8rem !important;
    }
    .google-sitelink-item span {
        font-size: 0.7rem !important;
    }

    /* Invoice preview on very small screens */
    #invoiceSheet {
        min-width: 460px !important;
        padding: 1.25rem !important;
        font-size: 0.75rem !important;
    }
    .invoice-sheet-header {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    .invoice-sheet-meta {
        text-align: left !important;
    }
    .invoice-sheet-meta h4 {
        font-size: 1.5rem !important;
    }
    .invoice-sheet-details-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .invoice-details-col[style*="text-align: right"] {
        text-align: left !important;
    }
}

/* ==========================================================================
   BREAKPOINT: 320px — Ultra-narrow devices
   ========================================================================== */
@media (max-width: 320px) {
    .container {
        padding: 0 0.5rem !important;
    }

    .showcase-hero {
        padding: 6rem 0 1.5rem !important;
    }
    .showcase-title {
        font-size: 1.5rem !important;
    }

    .tool-tab-btn {
        padding: 0.65rem 0.75rem !important;
        font-size: 0.8rem !important;
        gap: 0.5rem !important;
    }
    .tool-tab-btn i {
        font-size: 1rem !important;
    }

    .audit-tool-wrapper {
        padding: 1rem 0.5rem !important;
    }

    .invoice-control-panel,
    .mockup-control-panel {
        padding: 0.75rem !important;
        border-radius: 12px !important;
    }

    .mockup-canvas-frame {
        padding: 0.5rem !important;
        min-height: 320px !important;
    }

    .instagram-story-device {
        width: 200px !important;
        height: 340px !important;
        border-width: 5px !important;
        border-radius: 24px !important;
    }

    #invoiceSheet {
        min-width: 400px !important;
        padding: 1rem !important;
        font-size: 0.7rem !important;
    }

    .meta-profile-avatar {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
    }

    .btn {
        padding: 0.65rem 1.25rem !important;
        font-size: 0.82rem !important;
    }

    .radial-progress {
        width: 65px !important;
        height: 65px !important;
    }
    .radial-score-val {
        font-size: 1rem !important;
    }
}

/* ============================================
   POST-PRODUCTION & DESIGN SERVICES CATEGORY
   ============================================ */
.anim-postprod .lens-body {
    transform-origin: 50px 50px;
    animation: lensBreathe 4s ease-in-out infinite alternate;
}
@keyframes lensBreathe {
    0% { transform: scale(1); stroke-width: 4px; stroke: currentColor; }
    100% { transform: scale(1.05); stroke-width: 5px; stroke: var(--primary); filter: drop-shadow(0 0 5px var(--primary)); }
}

.anim-postprod .film-dots {
    transform-origin: 50px 50px;
    animation: rotateFilmDots 15s linear infinite;
    stroke: var(--text-muted);
}
@keyframes rotateFilmDots {
    100% { transform: rotate(360deg); }
}

.anim-postprod .play-btn {
    transform-origin: 50px 50px;
    animation: playPulse 2s ease-in-out infinite alternate;
}
@keyframes playPulse {
    0% { transform: scale(0.95); opacity: 0.8; fill: var(--primary); }
    100% { transform: scale(1.1); opacity: 1; fill: var(--secondary); filter: drop-shadow(0 0 5px var(--secondary)); }
}

.anim-postprod .blade {
    transform-origin: 50px 50px;
}
.anim-postprod .blade-1 {
    animation: bladeRotate1 8s linear infinite;
}
.anim-postprod .blade-2 {
    animation: bladeRotate2 8s linear infinite;
}
.anim-postprod .blade-3 {
    animation: bladeRotate3 8s linear infinite;
}
@keyframes bladeRotate1 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes bladeRotate2 {
    0% { transform: rotate(120deg); }
    100% { transform: rotate(480deg); }
}
@keyframes bladeRotate3 {
    0% { transform: rotate(240deg); }
    100% { transform: rotate(600deg); }
}



/* ==========================================================================
   RESTORED & REFACTORED TOOLS PAGE CSS (DARK THEME)
   ========================================================================== */

/* ============================================
   PROJECT SHOWCASE PAGE STYLES
   ============================================ */
body.dark-theme {
    background-color: #0B1325;
}

.showcase-hero {
    position: relative;
    padding: 12rem 0 5rem;
    overflow: hidden;
    text-align: center;
}

.showcase-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(67, 83, 255, 0.08) 0%, transparent 60%);
}

#starsShowcaseCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.showcase-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(67, 83, 255, 0.08);
    border: 1px solid rgba(67, 83, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    animation: pulseGlow 3s infinite alternate;
}

.showcase-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

.showcase-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 680px;
    margin: 0 auto 4.5rem;
}

/* Project Grid */
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 8rem;
    position: relative;
    z-index: 5;
}

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

@media (min-width: 1024px) {
    .showcase-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.showcase-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
}

.showcase-card:hover {
    transform: translateY(-10px);
    border-color: rgba(184, 69, 237, 0.55);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(67, 83, 255, 0.15);
}

.sc-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}

.sc-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.showcase-card:hover .sc-image-wrapper img {
    transform: scale(1.06);
}

.sc-category-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(67, 83, 255, 0.3);
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 5;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

body.dark-theme .sc-category-badge {
    background: rgba(11, 19, 37, 0.85);
}

.sc-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sc-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.sc-content p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.sc-tech-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.sc-tech-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 2px 8px;
    border-radius: 4px;
}

.sc-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(67, 83, 255, 0.1), rgba(184, 69, 237, 0.1));
    border: 1px solid rgba(67, 83, 255, 0.25);
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
}

.sc-btn-outline:hover {
    background: linear-gradient(135deg, rgba(67, 83, 255, 0.25), rgba(184, 69, 237, 0.25));
    border-color: rgba(184, 69, 237, 0.6);
    box-shadow: 0 0 15px rgba(184, 69, 237, 0.2);
    transform: translateY(-2px);
}

.sc-btn-outline i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.sc-btn-outline:hover i {
    transform: translate(2px, -2px);
}

/* Lighter App/UI CTA Button */
.sc-btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
    margin-top: auto;
}

.sc-btn-light:hover {
    background: rgba(67, 83, 255, 0.08);
    border-color: rgba(67, 83, 255, 0.35);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(67, 83, 255, 0.15);
    transform: translateY(-2px);
}

body.dark-theme .sc-btn-light:hover {
    color: #fff;
}

.sc-btn-light i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.sc-btn-light:hover i {
    transform: translateX(3px);
}

/* Branding Visuals & Swatches */
.sc-branding-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--glass-border);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.showcase-card:hover .sc-branding-details {
    background: rgba(67, 83, 255, 0.04);
    border-color: rgba(67, 83, 255, 0.25);
}

.sc-brand-meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.showcase-card:hover .sc-brand-meta {
    color: var(--primary);
}

.sc-palette-strip {
    display: flex;
    gap: 6px;
}

.sc-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

.showcase-card:hover .sc-swatch {
    transform: scale(1.2);
    box-shadow: 0 0 8px var(--primary);
}

/* Animations */
.reveal-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-card.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 10px rgba(67, 83, 255, 0.2);
        border-color: rgba(67, 83, 255, 0.2);
    }
    100% {
        box-shadow: 0 0 20px rgba(184, 69, 237, 0.4);
        border-color: rgba(184, 69, 237, 0.4);
    }
}


/* ============================================
   AWWWARDS-GRADE ENHANCEMENTS & PREMIUM INTERACTIVES
   ============================================ */

/* 1. 3D Card Tilt Glare Effect & Base Transitions */
.service-card, .showcase-card, .team-card {
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.service-card::after, .showcase-card::after, .team-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, var(--glare-opacity, 0)), transparent 60%);
    pointer-events: none;
    z-index: 5;
    mix-blend-mode: overlay;
    transition: background 0.15s ease;
}

/* 2. Infinite Tech-Stack Marquee */
.tech-marquee-section {
    padding: 4rem 0;
    background: var(--bg-card);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
    margin: 4rem 0;
}

.marquee-title-wrapper h4 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    font-weight: 600;
}

.tech-marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 4rem;
    position: relative;
    mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.tech-marquee-track {
    display: flex;
    flex-shrink: 0;
    gap: 4rem;
    min-width: 100%;
    justify-content: space-around;
    align-items: center;
    animation: scrollMarquee 30s linear infinite;
}

.tech-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text-main);
    opacity: 0.65;
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.tech-item:hover {
    opacity: 1;
    color: var(--primary);
    transform: scale(1.1);
}

.tech-item i {
    font-size: 2.25rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.tech-item:hover i {
    transform: rotate(8deg);
}



/* 5. Showcase Card Updates & Grid Animations */
.showcase-card {
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, background 0.3s ease;
    opacity: 1;
    transform: scale(1);
    transform-origin: center center;
}

/* 6. Case Study Modals */
.case-study-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.case-study-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 13, 33, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    cursor: pointer;
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 1100px;
    height: 85vh;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4), 0 0 50px rgba(67, 83, 255, 0.15);
    border-radius: 28px;
    overflow: hidden;
    z-index: 10;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}

.case-study-modal.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-close-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: rotate(90deg);
}

.modal-content-scroller {
    flex: 1;
    overflow-y: auto;
    padding: 3rem;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
}

.modal-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.modal-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    aspect-ratio: 4/3;
}

.modal-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-meta-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.modal-meta-row span:first-child {
    color: var(--text-muted);
    font-weight: 500;
}

.modal-meta-row span:last-child {
    font-weight: 600;
    color: var(--text-main);
}

.modal-color-strip {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.modal-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    cursor: help;
}

.modal-right {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.modal-right h2 {
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    letter-spacing: -1px;
    font-weight: 800;
    line-height: 1.15;
}

.modal-category-badge {
    display: inline-block;
    width: fit-content;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(67, 83, 255, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.modal-section h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.modal-section p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.modal-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.modal-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
}

.modal-stat-val {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 850;
    color: var(--primary);
}

.modal-stat-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Scroll lock for page body */
body.modal-open {
    overflow: hidden !important;
}


/* ============================================
   WEBSITE SPEED & SEO AUDIT DIAGNOSTIC TOOL
   ============================================ */
.audit-tool-wrapper {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3.5rem;
    margin-bottom: 5rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;

  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

.audit-header {
    text-align: center;
    margin-bottom: 3rem;
}

.audit-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    background: rgba(67, 83, 255, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.audit-header h2 {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
    font-weight: 800;
}

.audit-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
}

.audit-container {
    min-height: 250px;
    position: relative;
}

.audit-screen {
    display: none;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.audit-screen.active {
    display: block;
    opacity: 1;
}

/* 1. Input Screen Form */
.audit-fields-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.audit-form .form-group input {
    width: 100%;
    padding: 1.15rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.audit-form .form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(67, 83, 255, 0.15);
}

/* 2. Scanner Screen */
#auditScannerScreen {
    text-align: center;
    padding: 3rem 0;
}

.scanner-loader-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 2.5rem;
}

.scanner-ring {
    width: 100%;
    height: 100%;
    border: 4px solid var(--glass-border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spinScanner 1.5s linear infinite;
}

.scanner-radar {
    position: absolute;
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(67, 83, 255, 0.15) 0%, transparent 70%);
    border: 2px dashed rgba(67, 83, 255, 0.3);
    border-radius: 50%;
    animation: radarPulse 2s ease-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.75rem;
}

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

@keyframes radarPulse {
    0% { transform: scale(0.9); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(0.9); opacity: 0.3; }
}

#scannerStatusText {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.scanner-progress-bar {
    width: 100%;
    max-width: 450px;
    height: 8px;
    background: var(--glass-border);
    border-radius: 999px;
    margin: 0 auto;
    overflow: hidden;
}

.scanner-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--grad-primary);
    border-radius: 999px;
    transition: width 0.1s linear;
}

/* 3. Results Dashboard Screen */
.results-dashboard-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3.5rem;
    align-items: start;
    margin-bottom: 3rem;
}

.results-scores-panel {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.25rem 1.5rem;
}

.score-card-radial {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.radial-progress {
    position: relative;
    width: 90px;
    height: 90px;
}

.radial-progress svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.radial-track {
    fill: none;
    stroke: var(--glass-border);
    stroke-width: 6;
}

.radial-fill {
    fill: none;
    stroke: var(--primary);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 264; /* 2 * PI * r (r=42) = 263.89 */
    stroke-dashoffset: 264;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.25, 1, 0.5, 1), stroke 0.3s ease;
}

.radial-score-val {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 850;
    color: var(--text-main);
}

.score-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Bottlenecks Panel */
.results-bottlenecks-panel h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.bottlenecks-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bottlenecks-list li {
    display: flex;
    gap: 1.15rem;
    padding: 1.15rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    align-items: flex-start;
}

.bottlenecks-list li i {
    font-size: 1.75rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.bottlenecks-list li h5 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.bottlenecks-list li p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.text-accent { color: var(--accent); }
.text-secondary { color: var(--secondary); }

/* Results CTA Footer */
.results-cta-footer {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.25rem;
}

.results-cta-footer p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    line-height: 1.7;
}

.results-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.results-cta-buttons .btn {
    padding: 0.85rem 2rem;
}

@media (max-width: 992px) {
    .results-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .audit-tool-wrapper {
        padding: 2rem 1.5rem;
    
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}
    
    .audit-fields-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .results-scores-panel {
        flex-direction: column;
        gap: 2rem;
    }
    
    .results-cta-buttons .btn {
        width: 100%;
    }
}

/* ==========================================================================
   FREE DEVELOPER & DESIGNER TOOLS DASHBOARD
   ========================================================================== */
.tools-section {
    position: relative;
    padding-top: 12rem;
    padding-bottom: var(--section-padding);
    background: var(--bg-dark);
}

.tools-tab-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.tool-tab-btn {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: var(--shadow-card);
}

.tool-tab-btn i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.tool-tab-btn:hover {
    color: var(--text-main);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 83, 255, 0.15);
}

.tool-tab-btn:hover i {
    transform: scale(1.15);
}

.tool-tab-btn.active {
    background: var(--grad-primary);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(67, 83, 255, 0.3);
}

.tool-content-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.tool-content-pane.active {
    display: block;
    opacity: 1;
}

/* ==========================================================================
   GLOBAL INVOICE GENERATOR STYLES
   ========================================================================== */
.invoice-generator-wrapper {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
    align-items: start;
    position: relative;
    z-index: 10;

  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

@media (max-width: 1200px) {
    .invoice-generator-wrapper {
        grid-template-columns: 1fr;
    
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}
}

.invoice-control-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.invoice-preview-panel {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .invoice-preview-panel {
        position: static;
    }
}

/* Live Invoice Sheet preview on screen */
#invoiceSheet {
    background: var(--bg-card); !important; /* Forces physical paper white appearance */
    color: #1A1A1A !important;
    border-radius: 16px;
    padding: 3.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    width: 100%;
}

.invoice-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #f0f3f7;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.invoice-sheet-brand h3 {
    font-weight: 800;
    font-size: 1.75rem;
    color: #0b1325 !important;
    letter-spacing: -0.75px;
}

.invoice-sheet-brand p {
    color: #5d6778 !important;
    font-size: 0.85rem;
    margin-top: 0.35rem;
    line-height: 1.5;
}

.invoice-sheet-meta {
    text-align: right;
}

.invoice-sheet-meta h4 {
    font-size: 2rem;
    font-weight: 900;
    color: #4353FF !important; /* Force primary blue accent on preview */
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.invoice-sheet-meta p {
    font-size: 0.95rem;
    color: #4e5566 !important;
}

.invoice-sheet-details-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.invoice-details-col h5 {
    font-size: 0.8rem;
    font-weight: 800;
    color: #8c9ba5 !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.65rem;
}

.invoice-details-col div,
.invoice-details-col p {
    color: #2b313c !important;
    font-weight: 500;
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.invoice-sheet-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 3rem;
}

.invoice-sheet-table th {
    background: #f8fafd !important;
    color: #4a5468 !important;
    font-weight: 750;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.85rem 1.15rem;
    text-align: left;
    border-bottom: 2px solid #eaeef4;
}

.invoice-sheet-table th:last-child,
.invoice-sheet-table td:last-child {
    text-align: right;
}

.invoice-sheet-table td {
    padding: 1.15rem 1.15rem;
    border-bottom: 1px solid #f0f3f7;
    color: #3b4252 !important;
    vertical-align: top;
}

.invoice-sheet-table td h6 {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0b1325 !important;
    margin-bottom: 0.2rem;
}

.invoice-sheet-table td p {
    font-size: 0.8rem;
    color: #5d6778 !important;
    line-height: 1.4;
}

.invoice-sheet-totals {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 3rem;
}

.invoice-totals-table {
    width: 280px;
    border-collapse: collapse;
}

.invoice-totals-table tr td {
    padding: 0.6rem 0;
    color: #4a5468 !important;
    font-weight: 600;
    font-size: 0.9rem;
}

.invoice-totals-table tr td:last-child {
    text-align: right;
    color: #0b1325 !important;
    font-weight: 700;
}

.invoice-totals-table tr.total-due td {
    border-top: 2px solid #0b1325;
    padding-top: 1.25rem;
    font-size: 1.3rem;
    font-weight: 900;
}

.invoice-totals-table tr.total-due td:last-child {
    color: #4353FF !important; /* Glow accent */
    font-size: 1.35rem;
}

.invoice-sheet-footer {
    border-top: 1px solid #eaeef4;
    padding-top: 2rem;
    font-size: 0.8rem;
    color: #8c9ba5 !important;
    text-align: center;
    line-height: 1.5;
}

/* Control Panel Form Customization */
.invoice-form-section {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 2.5rem;
}

.invoice-form-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.invoice-form-section h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--primary);
}

.invoice-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 576px) {
    .invoice-grid-2 {
        grid-template-columns: 1fr;
    }
}

.invoice-control-panel .form-group {
    margin-bottom: 1.25rem;
}

.invoice-control-panel .form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.invoice-control-panel .form-group input,
.invoice-control-panel .form-group select,
.invoice-control-panel .form-group textarea {
    width: 100%;
    padding: 0.9rem 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.invoice-control-panel .form-group select {
    background-color: var(--bg-surface);
    cursor: pointer;
}

.invoice-control-panel .form-group input:focus,
.invoice-control-panel .form-group select:focus,
.invoice-control-panel .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(67, 83, 255, 0.15);
    outline: none;
}

/* Custom layout for Line Items controls */
.items-input-table {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.items-input-header {
    display: grid;
    grid-template-columns: 2.2fr 0.8fr 1fr 40px;
    gap: 1rem;
    padding: 0 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 750;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#invoiceItemsContainer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.invoice-item-row {
    display: grid;
    grid-template-columns: 2.2fr 0.8fr 1fr 40px;
    gap: 1rem;
    align-items: center;
}

.invoice-item-row input {
    width: 100%;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.invoice-item-row input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(67, 83, 255, 0.15);
}

.btn-delete-row {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    height: 44px;
    width: 44px;
    border-radius: 8px;
}

.btn-delete-row:hover {
    background: rgba(255, 51, 102, 0.1);
    transform: scale(1.05);
}

.btn-add-item {
    margin-top: 0.5rem;
    background: rgba(67, 83, 255, 0.08);
    border: 1px dashed var(--primary);
    color: var(--text-main);
    align-self: flex-start;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-add-item:hover {
    background: var(--primary);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-1px);
}

/* ==========================================================================
   HIGH FIDELITY PRINT MODE MEDIA OVERRIDE
   ========================================================================== */
@media print {
    /* 1. Global Reset & Body override */
    html, body {
        background: var(--bg-card); !important;
        color: #000000 !important;
        font-family: 'Inter', sans-serif !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    /* 2. Hide ALL visual UI layout elements cleanly */
    .navbar,
    footer,
    .whatsapp-float,
    .theme-btn,
    .mobile-menu-btn,
    .skip-to-content,
    .showcase-bg,
    .showcase-badge,
    .showcase-title,
    .showcase-subtitle,
    #starsCanvas,
    .tools-tab-container,
    .audit-tool-wrapper,
    .invoice-control-panel,
    .invoice-preview-actions,
    .section-header,
    .tech-marquee-section {
        display: none !important;
    }

    /* 3. Re-format the main layout structure so it occupies full canvas width */
    main,
    .showcase-hero,
    .tools-section,
    .tools-section .container,
    .tools-showcase-grid,
    #invoiceGeneratorSection,
    .invoice-generator-wrapper,
    .invoice-preview-panel {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: var(--bg-card); !important;
        color: #000000 !important;
        position: static !important;
        box-shadow: none !important;
        border: none !important;
    }

    /* 4. Format the Invoice Sheet container to perfectly represent an A4 printed sheet */
    #invoiceSheet {
        display: block !important;
        background: var(--bg-card); !important;
        color: #000000 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
        position: static !important;
        top: 0 !important;
        left: 0 !important;
        box-sizing: border-box !important;
        page-break-after: avoid !important;
        page-break-inside: avoid !important;
    }

    /* 5. Force elements that usually have color adjustments to show correctly */
    .invoice-sheet-table th {
        background: #f0f3f7 !important;
        color: #1a1a1a !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .invoice-sheet-meta h4 {
        color: #4353FF !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .invoice-totals-table tr.total-due td:last-child {
        color: #4353FF !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* ==========================================================================
   AD FEED MOCKUP GENERATOR WORKSPACE STYLES
   ========================================================================== */
.mockup-tool-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 2.5rem;
    align-items: start;
    width: 100%;

  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

.mockup-control-panel {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

.mockup-control-panel .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.mockup-control-panel label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.75px;
    margin-bottom: 0.25rem;
}

.mockup-control-panel input,
.mockup-control-panel select,
.mockup-control-panel textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.mockup-control-panel input:focus,
.mockup-control-panel select:focus,
.mockup-control-panel textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(67, 83, 255, 0.25);
    background: var(--bg-card);
}

.mockup-control-panel textarea {
    resize: vertical;
    line-height: 1.5;
}

.mockup-preview-panel {
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Platform Tabs */
.mockup-platform-tabs {
    display: flex;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 0.4rem;
    gap: 0.5rem;
}

.platform-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.platform-tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.platform-tab-btn.active {
    background: rgba(67, 83, 255, 0.1) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(67, 83, 255, 0.3) !important;
    box-shadow: 0 0 15px rgba(67, 83, 255, 0.15) !important;
}

body.dark-theme .platform-tab-btn.active {
    color: #5d6eff !important;
    border-color: rgba(93, 110, 255, 0.4) !important;
    background: rgba(93, 110, 255, 0.15) !important;
}

/* Canvas Viewport */
.mockup-canvas-frame {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.mockup-viewport {
    display: none;
    width: 100%;
    max-width: 520px;
    animation: fadeIn 0.4s ease forwards;
}

.mockup-viewport.active {
    display: block;
}

/* Meta / Facebook Mockup Styles */
.meta-ad-card {
    background: var(--bg-card);
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    color: #1c1e21;
    font-family: -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    padding: 0.9rem 0 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.meta-card-header {
    display: flex;
    align-items: center;
    padding: 0 1rem 0.75rem;
    position: relative;
}

.meta-profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
}

.meta-profile-info {
    margin-left: 0.75rem;
}

.meta-profile-info h5 {
    margin: 0;
    font-size: 0.93rem;
    font-weight: 600;
    color: #050505;
}

.meta-profile-info span {
    font-size: 0.75rem;
    color: #65676b;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.meta-header-dots {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #65676b;
    cursor: pointer;
}

.meta-ad-body {
    padding: 0 1rem 0.75rem;
    font-size: 0.93rem;
    line-height: 1.4;
    white-space: pre-wrap;
}

.meta-ad-banner {
    border-top: 1px solid #ebedf0;
    border-bottom: 1px solid #ebedf0;
    background: #f0f2f5;
}

.meta-banner-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f0f2f5;
}

.meta-footer-text {
    flex: 1;
    padding-right: 1rem;
}

.meta-dest-domain {
    font-size: 0.75rem;
    color: #65676b;
    text-transform: uppercase;
}

.meta-banner-footer h4 {
    margin: 0.15rem 0 0;
    font-size: 0.93rem;
    font-weight: 600;
    color: #050505;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meta-cta-btn {
    background: #e4e6eb;
    border: none;
    border-radius: 6px;
    color: #050505;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.meta-cta-btn:hover {
    background: #d8dadf;
}

.meta-ad-engagement {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: #65676b;
    border-top: 1px solid #ebedf0;
    margin-top: 0.25rem;
}

/* Google Search Mockup Styles */
.google-ad-card {
    background: var(--bg-card);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    color: #3c4043;
    font-family: Roboto, Arial, sans-serif;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.google-url-row {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}

.google-sponsored-tag {
    font-weight: 700;
    color: #202124;
    margin-right: 0.5rem;
}

.google-url-text {
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.google-ad-title {
    color: #1a0dab;
    font-size: 1.25rem;
    font-weight: 400;
    text-decoration: none;
    display: block;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.google-ad-title:hover {
    text-decoration: underline;
}

.google-ad-snippet {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #4d5156;
    margin: 0 0 1rem 0;
    white-space: pre-wrap;
}

.google-sitelinks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    border-top: 1px solid #f1f3f4;
    padding-top: 1rem;
}

.google-sitelink-item a {
    color: #1a0dab;
    font-size: 0.9rem;
    text-decoration: none;
    display: block;
    margin-bottom: 0.15rem;
}

.google-sitelink-item a:hover {
    text-decoration: underline;
}

.google-sitelink-item span {
    font-size: 0.78rem;
    color: #4d5156;
    line-height: 1.4;
    display: block;
}

/* Instagram Story Viewport Styles */
.instagram-story-device {
    background: #000000;
    width: 290px;
    height: 500px;
    border-radius: 36px;
    border: 8px solid #1a1a1a;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

.insta-top-indicators {
    display: flex;
    padding: 0.75rem 0.5rem 0.5rem;
    gap: 4px;
    z-index: 10;
}

.insta-bar {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
}

.insta-bar.active {
    background: var(--bg-card);
}

.insta-story-header {
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    z-index: 10;
}

.insta-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.insta-header-text {
    margin-left: 0.5rem;
}

.insta-header-text h5 {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
}

.insta-header-text span {
    font-size: 0.65rem;
    opacity: 0.75;
}

.insta-story-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 5;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #c026d3 100%);
    position: relative;
}

.insta-story-body::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 10%, transparent 60%);
    top: 0;
    left: 0;
}

.insta-content-box {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    z-index: 10;
}

.insta-content-box h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
    color: #ffffff;
}

.insta-content-box p {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.4;
    opacity: 0.9;
}

.insta-story-swipeup {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 10;
    cursor: pointer;
}

.insta-story-swipeup i {
    font-size: 1.2rem;
    animation: swipeBounce 1.5s infinite;
}

.insta-story-swipeup span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

@keyframes swipeBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}




@media (max-width: 1024px) {
    .mockup-tool-wrapper {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}
}
@media (max-width: 768px) {

    /* --- GLOBAL OVERFLOW PREVENTION --- */
    html {
        overflow-x: clip !important;
    }
    body {
        overflow-x: clip !important;
        min-width: 0 !important;
    }

    /* --- CONTAINER / WRAPPER CONSTRAINTS --- */
    .container,
    main,
    .showcase-hero,
    .tools-workspace,
    .tool-content-pane,
    .audit-tool-wrapper,
    .audit-container,
    .audit-screen,
    .audit-form,
    .invoice-generator-wrapper,
    .invoice-control-panel,
    .invoice-preview-panel,
    .invoice-form-section,
    .mockup-tool-wrapper,
    .mockup-control-panel,
    .mockup-preview-panel,
    .mockup-canvas-frame,
    .results-dashboard-grid,
    .results-scores-panel,
    .results-bottlenecks-panel,
    .results-cta-footer {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* --- SHOWCASE HERO & SECTION PADDING --- */
    .showcase-hero {
        padding: 8rem 0 3rem !important;
    }
    .showcase-subtitle {
        max-width: 100% !important;
        padding: 0 1rem;
    }

    /* --- TOOL TAB SWITCHER --- */
    .tools-tab-container {
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100% !important;
        max-width: 340px !important;
        margin: 0 auto 3rem auto !important;
    }
    .tool-tab-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.9rem 1.5rem !important;
        font-size: 0.95rem !important;
    }

    /* --- SPEED & SEO ANALYZER --- */
    .audit-tool-wrapper {
        padding: 1.5rem 1rem !important;
        border-radius: 16px !important;
    
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}
    .audit-fields-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .results-dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .results-scores-panel {
        flex-direction: column !important;
        gap: 1.5rem !important;
        padding: 1.5rem 1rem !important;
    }
    .results-cta-footer {
        padding: 1.5rem 1rem !important;
    }
    .results-cta-buttons {
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }
    .results-cta-buttons .btn {
        width: 100% !important;
        justify-content: center !important;
        display: flex !important;
    }
    .bottlenecks-list li {
        padding: 1rem !important;
        gap: 0.75rem !important;
    }

    /* --- ALL FORM ELEMENTS (GLOBAL) --- */
    .form-group,
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }
    .form-group label {
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
        display: block !important;
    }

    /* --- INVOICE GENERATOR --- */
    .invoice-generator-wrapper {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}
    .invoice-control-panel {
        padding: 1.25rem !important;
        border-radius: 16px !important;
        overflow: hidden !important;
    }
    .invoice-preview-panel {
        position: static !important;
    }
    .invoice-grid-2 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .invoice-form-section {
        margin-bottom: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    /* Invoice line items: stack into card layout */
    .items-input-header {
        display: none !important;
    }
    .invoice-item-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
        padding: 1rem !important;
        background: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid var(--glass-border) !important;
        border-radius: 12px !important;
    }
    .invoice-item-row .item-desc {
        grid-column: span 2 !important;
    }
    .invoice-item-row .btn-delete-row {
        grid-column: span 2 !important;
        width: 100% !important;
        height: 40px !important;
        margin-top: 0.25rem !important;
        background: rgba(255, 51, 102, 0.05) !important;
        border: 1px solid rgba(255, 51, 102, 0.2) !important;
        border-radius: 8px !important;
    }

    /* Invoice A4 preview: allow scroll within container only */
    .invoice-sheet-scroll-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
        background: var(--bg-card); !important;
        padding: 0.5rem !important;
        box-sizing: border-box !important;
    }
    #invoiceSheet {
        min-width: 580px !important;
        box-shadow: none !important;
        border: none !important;
        padding: 1.75rem !important;
    }

    /* --- AD MOCKUP GENERATOR --- */
    .mockup-tool-wrapper {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}
    .mockup-control-panel {
        padding: 1.25rem !important;
        border-radius: 16px !important;
        overflow: hidden !important;
    }
    .mockup-canvas-frame {
        padding: 1rem !important;
        min-height: 400px !important;
        border-radius: 16px !important;
    }
    /* Meta ad text wrapping */
    .meta-banner-footer h4 {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        font-size: 0.85rem !important;
    }
    .meta-banner-footer {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    .meta-footer-text {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }
    /* Google Search mockup wrapping */
    .google-url-text {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        word-break: break-all !important;
    }
    .google-ad-title {
        font-size: 1.1rem !important;
    }
    .google-sitelinks-grid {
        grid-template-columns: 1fr !important;
    }
    /* Instagram story scaling */
    .instagram-story-device {
        width: 260px !important;
        height: 450px !important;
    }
    .insta-content-box h3 {
        font-size: 0.95rem !important;
    }
    .insta-content-box p {
        font-size: 0.7rem !important;
    }

    /* --- FOOTER --- */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* --- CONTACT SECTION --- */
    .contact-wrapper {
        grid-template-columns: 1fr !important;
        border-radius: 20px !important;
    }
    .contact-info, .contact-form {
        padding: 2rem 1.5rem !important;
    }

    /* --- NAV MOBILE MENU --- */
    .nav-links {
        display: none;
    }
    .nav-links.active {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background: var(--glass-bg) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid var(--glass-border) !important;
        padding: 1.5rem !important;
        gap: 1rem !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
        z-index: 999 !important;
        box-sizing: border-box !important;
    }
    .mobile-menu-btn {
        display: block !important;
    }
}
@media (max-width: 576px) {
    /* Strategy selector stacking */
    .strategy-selector {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    .strategy-option {
        width: 100% !important;
    }

    /* Platform tabs stacking */
    .mockup-platform-tabs {
        flex-direction: column !important;
        gap: 0.5rem !important;
        border-radius: 12px !important;
    }
    .platform-tab-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.65rem 1rem !important;
        font-size: 0.85rem !important;
    }

    /* Tighter paddings for audit wrapper */
    .audit-tool-wrapper {
        padding: 1.25rem 0.75rem !important;
    
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

    /* Scale down radial scores */
    .radial-progress {
        width: 75px !important;
        height: 75px !important;
    }
    .radial-score-val {
        font-size: 1.2rem !important;
    }
    .score-label {
        font-size: 0.8rem !important;
    }

    /* CTA buttons padding */
    .btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }

    /* Contact form row */
    .form-row-2 {
        grid-template-columns: 1fr !important;
    }

    /* Stream cards (testimonials) */
    .stream-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1.5rem !important;
    }

    /* Invoice form section headings */
    .invoice-form-section h4 {
        font-size: 1rem !important;
    }

    /* Audit header */
    .audit-header h2 {
        font-size: 1.65rem !important;
        letter-spacing: -0.5px !important;
    }
    .audit-header p {
        font-size: 0.9rem !important;
    }

    /* Showcase hero */
    .showcase-hero {
        padding: 7rem 0 2rem !important;
    }
    .showcase-title {
        font-size: 2rem !important;
        letter-spacing: -1px !important;
    }
    .showcase-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 2.5rem !important;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 0 1rem !important;
    }

    /* Even tighter invoice control panel */
    .invoice-control-panel {
        padding: 1rem !important;
    }

    /* Invoice item row fully stacked */
    .invoice-item-row {
        grid-template-columns: 1fr !important;
    }
    .invoice-item-row .item-desc,
    .invoice-item-row .btn-delete-row {
        grid-column: span 1 !important;
    }

    /* Mockup canvas */
    .mockup-canvas-frame {
        padding: 0.75rem !important;
        min-height: 360px !important;
    }

    /* Instagram story smaller */
    .instagram-story-device {
        width: 240px !important;
        height: 420px !important;
        border-width: 6px !important;
        border-radius: 28px !important;
    }

    /* Meta ad card padding */
    .meta-card-header {
        padding: 0 0.75rem 0.65rem !important;
    }
    .meta-ad-body {
        padding: 0 0.75rem 0.65rem !important;
        font-size: 0.85rem !important;
    }
    .meta-ad-engagement {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.72rem !important;
    }

    /* Google ad card */
    .google-ad-card {
        padding: 1rem !important;
    }
    .google-ad-title {
        font-size: 1rem !important;
    }
    .google-ad-snippet {
        font-size: 0.82rem !important;
    }

    /* Invoice sheet min-width reduction for very small screens */
    #invoiceSheet {
        min-width: 520px !important;
        padding: 1.5rem !important;
        font-size: 0.8rem !important;
    }

    /* Results CTA footer */
    .results-cta-footer p {
        font-size: 0.9rem !important;
    }

    /* Bottleneck items */
    .bottlenecks-list li {
        flex-direction: column !important;
        gap: 0.5rem !important;
        text-align: left !important;
    }
    .bottlenecks-list li i {
        font-size: 1.5rem !important;
    }

    /* Whatsapp float */
    .whatsapp-float {
        bottom: 1.25rem !important;
        right: 1.25rem !important;
        width: 48px !important;
        height: 48px !important;
        font-size: 1.6rem !important;
    }
    .whatsapp-tooltip {
        display: none !important;
    }
}
@media (max-width: 375px) {
    .container {
        padding: 0 0.75rem !important;
    }

    .showcase-title {
        font-size: 1.75rem !important;
    }
    .showcase-subtitle {
        font-size: 0.85rem !important;
    }
    .showcase-badge {
        font-size: 0.6rem !important;
        padding: 0.4rem 1rem !important;
    }

    .tool-tab-btn {
        padding: 0.75rem 1rem !important;
        font-size: 0.85rem !important;
    }

    .audit-header h2 {
        font-size: 1.45rem !important;
    }
    .audit-header p {
        font-size: 0.82rem !important;
    }

    /* Reduce mockup sizes further */
    .instagram-story-device {
        width: 220px !important;
        height: 380px !important;
    }
    .insta-content-box {
        padding: 0.75rem !important;
    }
    .insta-content-box h3 {
        font-size: 0.82rem !important;
    }
    .insta-content-box p {
        font-size: 0.62rem !important;
    }

    /* Google sitelinks */
    .google-sitelink-item a {
        font-size: 0.8rem !important;
    }
    .google-sitelink-item span {
        font-size: 0.7rem !important;
    }

    /* Invoice preview on very small screens */
    #invoiceSheet {
        min-width: 460px !important;
        padding: 1.25rem !important;
        font-size: 0.75rem !important;
    }
    .invoice-sheet-header {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    .invoice-sheet-meta {
        text-align: left !important;
    }
    .invoice-sheet-meta h4 {
        font-size: 1.5rem !important;
    }
    .invoice-sheet-details-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .invoice-details-col[style*="text-align: right"] {
        text-align: left !important;
    }
}
@media (max-width: 320px) {
    .container {
        padding: 0 0.5rem !important;
    }

    .showcase-hero {
        padding: 6rem 0 1.5rem !important;
    }
    .showcase-title {
        font-size: 1.5rem !important;
    }

    .tool-tab-btn {
        padding: 0.65rem 0.75rem !important;
        font-size: 0.8rem !important;
        gap: 0.5rem !important;
    }
    .tool-tab-btn i {
        font-size: 1rem !important;
    }

    .audit-tool-wrapper {
        padding: 1rem 0.5rem !important;
    
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

    .invoice-control-panel,
    .mockup-control-panel {
        padding: 0.75rem !important;
        border-radius: 12px !important;
    }

    .mockup-canvas-frame {
        padding: 0.5rem !important;
        min-height: 320px !important;
    }

    .instagram-story-device {
        width: 200px !important;
        height: 340px !important;
        border-width: 5px !important;
        border-radius: 24px !important;
    }

    #invoiceSheet {
        min-width: 400px !important;
        padding: 1rem !important;
        font-size: 0.7rem !important;
    }

    .meta-profile-avatar {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
    }

    .btn {
        padding: 0.65rem 1.25rem !important;
        font-size: 0.82rem !important;
    }

    .radial-progress {
        width: 65px !important;
        height: 65px !important;
    }
    .radial-score-val {
        font-size: 1rem !important;
    }
}

/* Global Premium Buttons Responsive System */
@media (max-width: 768px) {
    /* Stack CTA buttons site-wide on mobile */
    .hero-cta-group, 
    .final-cta-buttons {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        gap: 12px !important;
    }
    
    .hero-cta-group .btn-premium, 
    .final-cta-buttons .btn-premium {
        width: 100% !important;
        max-width: 280px !important;
        justify-content: center !important;
    }

    /* Compress premium buttons for clean mobile sizing */
    .btn-premium {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
        gap: 12px !important;
        justify-content: center !important;
    }
    .btn-premium .btn-icon {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        padding: 6px !important;
    }
}
/* Fix Let's Talk button text alignment */
.btn-premium:has(.btn-icon) {
  padding-left: 24px !important;
}
@media (max-width: 767px) {
  .btn-premium:has(.btn-icon) {
    padding-left: 16px !important;
  }
}

/* Fix cta-banner button width and spacing across all service pages */
.cta-banner .btn-premium {
  display: inline-flex !important;
  width: auto !important;
  margin: 32px auto 0 auto !important;
}

/* Fix btn-outline-glow vertical alignment */
.btn-outline-glow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

/* ============================================
   Animated Service Icons
   ============================================ */
.anim-icon {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.anim-icon * {
  transform-box: view-box;
}

/* 1. Web Design (Code Brackets) */
.anim-bracket-left { animation: codeBracketSlide 2s ease-in-out infinite alternate; }
.anim-bracket-right { animation: codeBracketSlide 2s ease-in-out infinite alternate-reverse; }
.anim-slash { animation: slashPulse 2s ease-in-out infinite; }
@keyframes codeBracketSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-1.5px); }
}
@keyframes slashPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* 2. SEO (Bar Chart) */
.anim-bar-1 { animation: barGrow 1.5s ease-in-out infinite alternate; }
.anim-bar-2 { animation: barGrow 1.8s ease-in-out infinite alternate 0.3s; }
.anim-bar-3 { animation: barGrow 1.2s ease-in-out infinite alternate 0.6s; }
@keyframes barGrow {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1); }
}

/* 3. Branding (Star Spin) */
.anim-star-core { animation: starSpin 8s linear infinite; }
.anim-star-glow { animation: starGlow 2.5s ease-in-out infinite alternate; }
@keyframes starSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes starGlow {
  0% { transform: scale(0.85); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 1; }
}

/* 4. Marketing (Radar Waves) */
.anim-radar-1 { animation: radarPulse 2.5s cubic-bezier(0.16, 1, 0.3, 1) infinite; }
.anim-radar-2 { animation: radarPulse 2.5s cubic-bezier(0.16, 1, 0.3, 1) infinite 1.25s; }
@keyframes radarPulse {
  0% { transform: scale(0.3); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* 5. Workflow (Rotating Gears) */
.anim-gear-1 { animation: gearSpin 6s linear infinite; }
.anim-gear-2 { animation: gearSpin 6s linear infinite reverse; }
@keyframes gearSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 6. Post-Production (Floating Play) */
.anim-play-float { animation: playFloat 3.5s ease-in-out infinite; }
.anim-play-pulse { animation: playPulse 2s ease-in-out infinite alternate; }
@keyframes playFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes playPulse {
  0% { opacity: 0.4; }
  100% { opacity: 1; filter: drop-shadow(0 0 4px var(--primary)); }
}


/* ============================================
   Advanced Service Animations
   ============================================ */
/* 1. Web Design (Browser with Code) */
.adv-code-slide { animation: advCodeSlide 2s ease-in-out infinite alternate; }
.adv-cursor-blink { animation: advCursorBlink 1s step-end infinite; }
@keyframes advCodeSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-2px); }
}
@keyframes advCursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* 2. Web Redesign (Refresh Arrows) */
.adv-refresh-spin { animation: advRefreshSpin 3s linear infinite; }
@keyframes advRefreshSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 3. Figma to Webflow (Morphing Effect) */
.adv-morph-fade-out { animation: advMorphOut 4s ease-in-out infinite; }
.adv-morph-fade-in { animation: advMorphIn 4s ease-in-out infinite; }
@keyframes advMorphOut {
  0%, 20% { opacity: 1; transform: scale(1); }
  40%, 100% { opacity: 0; transform: scale(0.8); }
}
@keyframes advMorphIn {
  0%, 40% { opacity: 0; transform: scale(0.8); }
  60%, 100% { opacity: 1; transform: scale(1); }
}

/* 4. SEO Optimization (Graph Rising) */
.adv-graph-rise { animation: advGraphRise 3s cubic-bezier(0.16, 1, 0.3, 1) infinite; }
@keyframes advGraphRise {
  0% { transform: translateY(10px) scaleY(0); opacity: 0; }
  20%, 80% { transform: translateY(0) scaleY(1); opacity: 1; }
  100% { transform: translateY(-5px) scaleY(1); opacity: 0; }
}

/* 5. Workflow Automation (Gears & Nodes) */
.adv-gear-spin { animation: advRefreshSpin 4s linear infinite; }
.adv-gear-spin-rev { animation: advRefreshSpin 4s linear infinite reverse; }
.adv-node-pulse { animation: advNodePulse 2s ease-in-out infinite alternate; }
@keyframes advNodePulse {
  0% { opacity: 0.4; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.1); fill: var(--primary); }
}

/* 6. Branding & Creative (Pen Draw) */
.adv-pen-draw { animation: advPenDraw 3s ease-in-out infinite; }
.adv-spark-glow { animation: advSparkGlow 3s ease-in-out infinite; }
@keyframes advPenDraw {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-2px, -2px) rotate(-5deg); }
  75% { transform: translate(2px, -1px) rotate(5deg); }
}
@keyframes advSparkGlow {
  0%, 100% { opacity: 0.5; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* 7. Meta Ads (Ripple Waves) */
.adv-wave-ripple-1 { animation: advWaveRipple 2.5s ease-out infinite; }
.adv-wave-ripple-2 { animation: advWaveRipple 2.5s ease-out infinite 1.25s; }
@keyframes advWaveRipple {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

/* 8. Website Maintenance (Shield Glow) */
.adv-shield-glow { animation: advShieldGlow 3s ease-in-out infinite alternate; }
@keyframes advShieldGlow {
  0% { filter: drop-shadow(0 0 2px rgba(124, 58, 237, 0.2)); stroke: var(--primary); }
  100% { filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.6)); stroke: var(--primary-light); }
}

/* 9. Post-Production (Timeline Slide) */
.adv-timeline-slide { animation: advTimelineSlide 3s linear infinite; }
.adv-play-pulse { animation: advPlayPulse 1.5s ease-in-out infinite alternate; }
@keyframes advTimelineSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(12px); }
}
@keyframes advPlayPulse {
  0% { opacity: 0.7; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1.05); }
}
