/* TechVerse Studio — Premium Futuristic Design System */

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

:root {
  --bg-primary: #030512;
  --bg-secondary: #0A1028;
  --bg-card: rgba(10, 16, 40, 0.7);
  --bg-card-hover: rgba(14, 22, 56, 0.9);
  --text-primary: #FFFFFF;
  --text-secondary: #C8D0E0;
  --text-muted: #64748b;
  --accent-blue: #00BFFF;
  --accent-cyan: #00E5FF;
  --accent-purple: #8A2EFF;
  --accent-pink: #FF3CF7;
  --gradient-main: linear-gradient(135deg, #00BFFF 0%, #8A2EFF 50%, #FF3CF7 100%);
  --gradient-text: linear-gradient(135deg, #00BFFF, #8A2EFF, #FF3CF7);
  --gradient-glow: linear-gradient(135deg, rgba(0, 191, 255, 0.4), rgba(138, 46, 255, 0.4));
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(0, 191, 255, 0.6);
  --shadow-neon: 0 0 20px rgba(0, 191, 255, 0.4), 0 0 60px rgba(138, 46, 255, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.6);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --nav-height: 80px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --container: min(1200px, 92vw);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #eef2ff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-glass: rgba(15, 23, 42, 0.1);
  --border-glow: rgba(59, 130, 246, 0.25);
  --shadow-neon: 0 0 40px rgba(59, 130, 246, 0.1);
  --shadow-card: 0 8px 32px rgba(15, 23, 42, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background var(--transition), color var(--transition);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 191, 255, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(138, 46, 255, 0.1), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(255, 60, 247, 0.08), transparent),
    linear-gradient(rgba(0, 191, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 191, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  pointer-events: none;
  z-index: 0;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul { list-style: none; }

.container {
  width: var(--container);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  background: radial-gradient(circle at top right, rgba(138, 46, 255, 0.1), transparent 40%),
              radial-gradient(circle at bottom left, rgba(0, 191, 255, 0.1), transparent 40%);
  position: relative;
}

.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 24px rgba(0, 191, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 40px rgba(0, 191, 255, 0.6), 0 0 60px rgba(138, 46, 255, 0.4);
}

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

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 191, 255, 0.1);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
  transform: translateY(-3px) scale(1.02);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glow);
}

.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Glass cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.8), transparent 40%, rgba(255, 60, 247, 0.6));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-neon), var(--shadow-card);
  border-color: var(--border-glow);
}

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(3, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(248, 250, 252, 0.9);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: var(--container);
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.logo-icon svg { width: 24px; height: 24px; }

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}



.theme-toggle:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.2);
}

.nav-cta { display: inline-flex; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

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

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

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

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 5, 8, 0.98);
  backdrop-filter: blur(24px);
  z-index: 999;
  padding: 2rem;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  padding: 1rem 1.25rem;
  font-size: 1.125rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--border-glass);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--border-glow);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-content {
  position: relative;
  pointer-events: auto;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--accent-cyan);
  font-weight: 500;
  margin-bottom: 0.75rem;
  animation: fadeInUp 0.8s ease 0.15s both;
}

.hero p {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.125rem);
  max-width: 540px;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero .btn-group { animation: fadeInUp 0.8s ease 0.3s both; }

.hero-visual {
  position: relative;
  animation: fadeIn 1s ease 0.4s both;
  display: flex;
  justify-content: center;
  align-items: center; /* Align with left-side content center */
}

/* 3D Robot Video Integration */
.robot-container {
  position: relative;
  width: 180%; /* Even larger frame width */
  max-width: 1400px; 
  right: -25%; 
  margin-inline: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  transform: translateY(-20px) scale(2.1); /* Scaled up by ~30% from 1.6 */
  pointer-events: none;
}

.robot-ambient-glow {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(138, 46, 255, 0.6) 0%, rgba(0, 191, 255, 0.3) 50%, transparent 80%);
  filter: blur(20px);
  z-index: 0;
  animation: pulse 4s infinite alternate;
}

.robot-video {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  object-fit: contain;
  /* Strictly remove generator logos in corners */
  clip-path: inset(0 15% 15% 15%); 
  /* Aggressively fade the margins of the video box to 0% opacity long before the actual edge, guaranteeing a seamless blend into the website background */
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, black 40%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 45%, black 40%, transparent 75%);
}

/* Creative Speech Cloud Caption */
.video-caption {
  position: absolute;
  top: -20%; /* Shifted even higher to -20% */
  right: 55%; /* Shifted towards the right */
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 5, 18, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 1.25rem 2rem;
  /* Speech bubble shape: fully rounded except the bottom-right corner which acts as the base of the tail */
  border-radius: 40px 40px 5px 40px;
  box-shadow: 0 15px 35px rgba(0, 229, 255, 0.15), inset 0 0 15px rgba(0, 229, 255, 0.1);
  animation: float 4s ease-in-out infinite;
  white-space: nowrap;
  
  /* Hidden by default, appears when waving */
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.hero-visual.is-waving .video-caption {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* The Speech Tail pointing towards the robot's mouth */
.video-caption::after {
  content: '';
  position: absolute;
  bottom: 10px;
  right: -12px;
  width: 24px;
  height: 24px;
  background: rgba(3, 5, 18, 0.7);
  border-right: 1px solid rgba(0, 229, 255, 0.3);
  border-top: 1px solid rgba(0, 229, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: rotate(45deg);
  border-radius: 4px;
  z-index: -1;
  box-shadow: 5px -5px 10px rgba(0, 229, 255, 0.05);
}

.typewriter-text {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
  border-right: none;
  white-space: normal;
  text-align: center;
  margin: 0 auto;
  line-height: 1.4;
  clip-path: inset(0 100% 0 0);
  animation: none;
}

.hero-visual.is-waving .typewriter-text {
  animation: typing-clip 1.5s forwards;
}

@keyframes typing-clip {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--accent-cyan); }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

.floating-delay { animation-delay: -3s; }

/* Stats */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
  padding: 2rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
}

.stat-item { text-align: center; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card .service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: transform var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.08);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.3);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

/* Why choose / benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.benefit-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.benefit-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.6;
  line-height: 1;
}

.benefit-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.benefit-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Industries */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}

.industry-card {
  text-align: center;
  padding: 2rem 1rem;
}

.industry-card .industry-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.industry-card h3 {
  font-size: 1rem;
  font-weight: 600;
}

/* Process timeline */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan), var(--accent-purple), var(--accent-pink));
  opacity: 0.6;
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-step .step-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-neon);
}

.process-step:hover .step-icon {
  transform: scale(1.1);
  box-shadow: 0 0 32px rgba(59, 130, 246, 0.4);
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: 0 0.5rem;
}

/* Portfolio */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 100px;
  border: 1px solid var(--border-glass);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-main);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.portfolio-card {
  padding: 0;
  overflow: hidden;
}

.portfolio-card.hidden { display: none; }

.portfolio-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

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

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.08);
}

.portfolio-image .category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.375rem 0.875rem;
  background: rgba(3, 5, 8, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.portfolio-content { padding: 1.5rem; }

.portfolio-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.portfolio-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tags span {
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 100px;
  color: var(--accent-cyan);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.testimonial-card .stars {
  color: #fbbf24;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimonial-card blockquote {
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.author-info strong {
  display: block;
  font-size: 0.9375rem;
}

.author-info span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* CTA banner */
.cta-banner {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(59, 130, 246, 0.1), transparent 30%);
  animation: rotate 20s linear infinite;
}

.cta-banner > * { position: relative; z-index: 1; }

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-inline: auto;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--border-glow);
  transform: scale(1.02);
  box-shadow: var(--shadow-neon);
}

.pricing-card .plan-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pricing-card .plan-price {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pricing-card .plan-price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card .plan-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.pricing-features {
  margin-bottom: 1.5rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent-cyan);
  font-weight: 700;
}

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

.faq-item {
  border-bottom: 1px solid var(--border-glass);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--accent-cyan); }

.faq-question .icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: transform var(--transition);
}

.faq-item.open .faq-question .icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer { max-height: 300px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

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

.contact-method .icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

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

.form-error {
  font-size: 0.8125rem;
  color: #ef4444;
  margin-top: 0.375rem;
  display: none;
}

.form-error.visible { display: block; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-success {
  display: none;
  padding: 1rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-md);
  color: #4ade80;
  margin-bottom: 1rem;
}

.form-success.visible { display: block; }

/* Blog placeholder */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.blog-card .blog-date {
  font-size: 0.8125rem;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.blog-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.coming-soon-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(139, 92, 246, 0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-purple);
  margin-bottom: 1rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: calc(var(--nav-height) + 4rem) 0 3rem;
  text-align: center;
  position: relative;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin-inline: auto;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual .glass-card {
  padding: 3rem;
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.value-card { text-align: center; }

.value-card .value-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0 2rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 1rem 0 1.5rem;
  max-width: 280px;
}

.footer h4 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links li { margin-bottom: 0.625rem; }

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links a:hover { color: var(--accent-cyan); }

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.social-links a:hover {
  border-color: var(--border-glow);
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
  z-index: 998;
  transition: all var(--transition);
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes pulse-whatsapp {
  0%, 100% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 32px rgba(37, 211, 102, 0.7), 0 0 0 8px rgba(37, 211, 102, 0.1); }
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* 3D Floating Objects */
.parallax-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-element {
  position: absolute;
  pointer-events: none;
  will-change: transform;
}

.glass-shape {
  background: linear-gradient(135deg, rgba(255, 60, 247, 0.1), rgba(0, 191, 255, 0.1));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(138, 46, 255, 0.2);
}

.neon-wireframe {
  fill: none;
  stroke: url(#neon-gradient);
  stroke-width: 2;
  filter: drop-shadow(0 0 10px rgba(0, 191, 255, 0.6));
}

@keyframes float-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes float-bob-reverse {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(30px) rotate(-5deg); }
}

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

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

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

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 191, 255, 0.4)); opacity: 0.15; }
  50% { filter: drop-shadow(0 0 25px rgba(255, 60, 247, 0.7)); opacity: 0.3; }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .hero-visual { order: -1; max-width: 400px; margin-inline: auto; }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .process-timeline::before { display: none; }

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

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta { display: none !important; }

  .menu-toggle { display: flex; }

  .mobile-menu { display: flex; }

  .process-timeline { grid-template-columns: 1fr; }

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

  .footer-grid { grid-template-columns: 1fr; }

  .pricing-card.featured { transform: none; }
}

@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr; }

  .btn-group { flex-direction: column; }

  .btn-group .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
/* ==========================================================================
   Services Section (Zigzag Layout)
   ========================================================================== */
.services-wrapper {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(138, 46, 255, 0.15);
  border: 1px solid rgba(138, 46, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-purple);
  font-weight: 600;
  font-family: var(--font-mono);
}

.service-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 90%;
}

.service-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.service-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple);
  flex-shrink: 0;
}

.service-visual {
  position: relative;
  width: 100%;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-visual:hover {
  transform: translateY(-10px) scale(1.02);
}

.service-visual::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  right: -10%;
  bottom: -15%;
  background: var(--glow-color, rgba(0, 191, 255, 1));
  filter: blur(80px);
  z-index: -1;
  border-radius: 50%;
  opacity: 0.8;
  transition: all 0.5s ease;
}

.service-visual:hover::before {
  top: -15%;
  left: -15%;
  right: -15%;
  bottom: -20%;
  filter: blur(100px);
  opacity: 1;
}

.service-image-wrapper {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  padding: 8px; /* gives it a nested window feel */
  animation: floatImage 8s ease-in-out infinite;
  transition: box-shadow 0.5s ease;
}

.service-visual:hover .service-image-wrapper {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

@keyframes floatImage {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.service-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

/* Responsive Reordering for Alternating Rows */
@media (max-width: 992px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .service-row.reverse .service-content {
    order: -1; /* Ensure text is always above image on mobile */
  }
  
  .service-desc {
    max-width: 100%;
  }
}




/* ==========================================================================
   The TechVerse Portfolio
   ========================================================================== */
#portfolio-verse {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #030512;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.verse-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.verse-container::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.85) 100%);
  z-index: 15;
}

/* Fullscreen Background Video */
.verse-brain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  transition: filter 0.5s ease;
}

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

/* Project Cards Container */
.verse-projects {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
}


/* Hero Intro Card */
.verse-hero-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  background: rgba(10, 15, 30, 0.4);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 4rem;
  text-align: center;
  z-index: 25; /* above projects */
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255,255,255,0.05);
  pointer-events: auto;
}

.verse-hero-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 30px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.5), rgba(138, 46, 255, 0.5), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.verse-hero-card h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.verse-hero-card p {
  color: #a0a0a0;
  font-size: 1.5rem;
  line-height: 1.6;
}

/* Large Glassmorphism Card (70% coverage) */

.verse-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70vw;
  height: 70vh;
  background: rgba(10, 15, 30, 0.4);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 3rem;
  opacity: 0;
  visibility: hidden;
  z-index: 20;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255,255,255,0.05);
  pointer-events: auto;
  
  display: flex;
  gap: 3rem;
  align-items: center;
}

.verse-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 30px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.5), rgba(138, 46, 255, 0.5), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.verse-card-image {
  flex: 1;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.verse-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.verse-card:hover .verse-card-image img {
  transform: scale(1.05);
}

.verse-card-content {
  flex: 1;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.verse-category {
  display: inline-block;
  align-self: flex-start;
  padding: 0.5rem 1rem;
  background: rgba(0, 191, 255, 0.15);
  color: #00BFFF;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 191, 255, 0.3);
}

.verse-card h3 {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #fff, #b3b3b3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.verse-card p {
  color: #a0a0a0;
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.tech-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.tech-tags span {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 1rem;
  color: #d1d5db;
}

.verse-card .btn {
  align-self: flex-start;
}

@media (max-width: 900px) {
  .verse-card {
    width: 90vw;
    height: 85vh;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  .verse-card-image {
    width: 100%;
    height: 40%;
    flex: none;
  }
  .verse-card-content {
    justify-content: flex-start;
  }
  .verse-card h3 { font-size: 2rem; }
}

/* Slideshow Controls */
.verse-slider-controls {
  position: absolute;
  bottom: 5vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 30;
}

.verse-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.verse-dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.verse-dot.active {
  background: rgba(0, 191, 255, 0.8);
  border-color: rgba(0, 191, 255, 1);
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
  transform: scale(1.3);
}
/* ==========================================================================
   Home Page: Professional Additions
   ========================================================================== */

/* Logo Marquee */
.logo-marquee-section {
  padding: 4rem 0;
  background: var(--bg-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-marquee 20s linear infinite;
}

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

.marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3rem;
}

.marquee-item img {
  height: 40px;
  max-width: 120px;
  transition: all 0.3s ease;
}

.marquee-item:hover img {
  filter: brightness(0) invert(1) opacity(1) !important;
  transform: scale(1.1);
}

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

/* Why Us Grid */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  padding: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 191, 255, 0.1), inset 0 0 0 1px rgba(0, 191, 255, 0.3);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.2), transparent);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(0, 191, 255, 0.3);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

/* Services Preview */
.services-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-preview-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2.5rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-preview-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0,191,255,0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-preview-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 191, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.service-preview-card:hover::before {
  opacity: 1;
}

.service-preview-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.service-preview-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-preview-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Testimonials Vertical Slideshow */
.testimonial-slider-container {
  margin-top: 4rem;
  padding: 1rem 0;
  position: relative;
  height: 350px; /* Fixed height to hold the absolute cards */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.testimonial-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.testimonial-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.testimonial-card.exit {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50px);
}

.quote-icon {
  font-size: 4rem;
  color: var(--primary);
  line-height: 1;
  opacity: 0.5;
  margin-bottom: 1rem;
  font-family: serif;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-primary);
  flex-grow: 1;
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.testimonial-author strong {
  display: block;
  font-size: 1.1rem;
  color: #fff;
}

.testimonial-author span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .testimonial-slider-container {
    height: 450px;
  }
}

/* ==========================================================================
   Stats Bar Section
   ========================================================================== */
.stats-section {
  position: relative;
  z-index: 10;
  margin-top: -3rem; /* Pulls it up closer to the hero naturally */
}

.stats-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #00BFFF, #8A2EFF, #FF3CF7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   Student Projects Bento Box
   ========================================================================== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 1.5rem;
  margin-top: 3rem;
}

.bento-card {
  position: relative;
  border-radius: 24px;
  padding: 2.5rem;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  transform-style: preserve-3d;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

/* Base state for all cards */
.student-card {
  grid-column: span 2; /* fallback for mobile */
}

/* Desktop sizing */
@media (min-width: 900px) {
  .student-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .student-card:nth-child(2) { grid-column: span 2; grid-row: span 1; }
  .student-card:nth-child(3) { grid-column: span 1; grid-row: span 1; }
  .student-card:nth-child(4) { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 899px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(250px, auto);
  }
  .bento-wide, .bento-tall, .student-card:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }
}

.bento-glow {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(0, 191, 255, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.bento-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(0, 191, 255, 0.4);
}

.bento-card:hover .bento-glow {
  opacity: 1;
}

.bento-content {
  position: relative;
  z-index: 2;
  transform: translateZ(20px);
}

.bento-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #fff, #aaa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.bento-link {
  color: #00BFFF;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.bento-card:hover .bento-link {
  opacity: 1;
  color: #FF3CF7;
}

.student-badges {
  position: absolute;
  top: 2rem;
  left: 2.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  z-index: 2;
  transform: translateZ(30px);
}

.student-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
}

.student-badge.primary {
  background: rgba(0, 191, 255, 0.2);
  border-color: rgba(0, 191, 255, 0.4);
  color: #00BFFF;
}

/* ==========================================================================
   Project Accordion
   ========================================================================== */

.accordion-wrapper {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-accordion {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-accordion:hover {
  border-color: rgba(0, 191, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 191, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.project-accordion.active {
  border-color: rgba(0, 191, 255, 0.6);
  box-shadow: 0 0 40px rgba(0, 191, 255, 0.3), inset 0 0 20px rgba(0, 191, 255, 0.05);
  background: rgba(255, 255, 255, 0.04);
}

.project-accordion-header {
  width: 100%;
  text-align: left;
  padding: 1.5rem 2rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 600;
  transition: background 0.3s ease;
}

.project-accordion-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.project-accordion-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent-blue);
  transition: transform 0.3s ease;
}

.project-accordion.active .project-accordion-icon {
  transform: rotate(45deg);
}

.project-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 0 2rem;
}

.project-accordion.active .project-accordion-content {
  /* max-height is set inline via JS for smooth transition */
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: visible !important;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.premium-card {
  border-color: rgba(0, 191, 255, 0.5);
  box-shadow: 0 0 30px rgba(0, 191, 255, 0.15), inset 0 0 20px rgba(0, 191, 255, 0.05);
}

.premium-card:hover {
  box-shadow: 0 0 50px rgba(0, 191, 255, 0.3), inset 0 0 20px rgba(0, 191, 255, 0.1);
}

.pricing-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: white;
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 5px 15px rgba(0, 191, 255, 0.4);
  white-space: nowrap;
}

.pricing-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  min-height: 45px;
}

.pricing-price-container {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 50px;
}

.revealed-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  animation: fadeIn 0.5s ease forwards;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: auto;
}

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent-blue);
  margin-right: 0.75rem;
  font-weight: bold;
}

.pricing-features li.disabled {
  color: rgba(255, 255, 255, 0.3);
}

.pricing-features li.disabled::before {
  content: '✕';
  color: rgba(255, 255, 255, 0.3);
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* ==========================================================================
   Comprehensive Mobile Responsiveness Fixes
   ========================================================================== */
@media (max-width: 768px) {
  /* Layout Grids */
  .contact-grid,
  .about-grid,
  .hero-grid,
  .service-row,
  .service-row.reverse,
  .footer-grid,
  .form-row,
  .process-timeline,
  .stats-bar,
  .values-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Reset order for reversed grids to put text above image */
  .service-row.reverse .service-content {
    order: -1 !important;
  }
  
  /* Adjust hero layouts */
  .hero-inner,
  .about-grid {
    text-align: center;
  }
  
  .page-hero {
    padding: calc(var(--nav-height) + 2rem) 0 2rem !important;
  }
  
  /* Mobile padding reduction */
  .container {
    padding-inline: 1.25rem !important;
  }
  
  .section {
    padding: 3rem 0 !important;
  }
  
  /* Fix sticky components */
  .mobile-menu {
    overflow-y: auto;
  }
  
  .pricing-card, .bento-card, .glass-card {
    padding: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem !important;
  }
  .page-hero h1 {
    font-size: 2rem !important;
  }
  
  .stats-bar {
    grid-template-columns: 1fr !important;
  }
  
  /* Allow portfolio and service grids to squish fully */
  .services-grid, .portfolio-grid, .pricing-grid, .blog-grid, .testimonials-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   Targeted Mobile Fixes (Hero, Portfolio, Menu Scroll)
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Hero Video Fix */
  .hero-visual {
    margin-top: 3rem !important;
  }
  
  /* 2. Portfolio Cards Fix */
  .verse-card {
    height: auto !important;
    min-height: 70vh !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    padding: 1.5rem !important;
    gap: 1rem !important;
    justify-content: flex-start !important;
  }
  
  .verse-card-image {
    height: 200px !important;
    min-height: 200px !important;
    flex: none !important;
  }
  
  .verse-card h3 {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .verse-card p {
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .verse-card .btn {
    align-self: center !important;
    width: 100% !important;
    text-align: center !important;
    padding: 0.75rem 1rem !important;
    margin-top: auto !important;
  }
  
  /* 3. Mobile Menu Scroll Fix */
  .mobile-menu {
    overflow-y: auto !important;
    padding-bottom: 5rem !important;
    justify-content: flex-start !important;
  }
  
  .mobile-menu a {
    flex-shrink: 0 !important;
  }
}

/* ==========================================================================
   Visual Polish & Human-Centric Layout (Mobile Only)
   ========================================================================== */
/* Hide Scrollbars but keep functionality */
.mobile-menu::-webkit-scrollbar,
.verse-card::-webkit-scrollbar {
  display: none !important;
}
.mobile-menu,
.verse-card {
  -ms-overflow-style: none !important;  /* IE and Edge */
  scrollbar-width: none !important;  /* Firefox */
}

@media (max-width: 768px) {
  /* Fix Hero Layout Order (Text first, Robot second) */
  .hero-visual {
    order: 2 !important;
    margin-top: 1rem !important; /* Reduced since it's below text now */
  }
  
  .hero-content {
    order: 1 !important;
  }
  
  /* Shrink and reposition the speech bubble caption */
  .hero-visual.is-waving .video-caption {
    transform: translateY(0) scale(0.65) !important;
  }
  .video-caption {
    top: 5% !important;
    right: auto !important;
    left: -15% !important;
    padding: 1rem 1.5rem !important;
  }
  
  /* Shrink WhatsApp button and move it to avoid overlapping text */
  .whatsapp-float {
    width: 48px !important;
    height: 48px !important;
    bottom: 1.5rem !important;
    right: 1.5rem !important;
  }
  
  .whatsapp-float svg {
    width: 24px !important;
    height: 24px !important;
  }
}

/* ==========================================================================
   Final Hero Layout Polish (Mobile Only)
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Remove massive top space */
  .hero {
    align-items: flex-start !important;
    padding-top: calc(var(--nav-height) + 1.5rem) !important;
    min-height: auto !important; /* Stop forcing 100vh on mobile to prevent stretching */
    padding-bottom: 2rem !important;
  }
  
  /* 2. Stop Robot Overlap */
  .hero-visual {
    margin-top: 4rem !important; /* Generous breathing room for buttons */
  }
  
  /* 3. Fix Speech Bubble */
  .video-caption {
    top: -15% !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) scale(0.85) !important; /* Center before animation */
    white-space: normal !important; /* Allow text to wrap */
    width: max-content !important;
    max-width: 80vw !important;
    text-align: center !important;
    padding: 1rem 1.5rem !important;
  }
  
  /* Override the waving animation transform so it stays centered */
  .hero-visual.is-waving .video-caption {
    transform: translateX(-50%) translateY(0) scale(0.85) !important;
  }
}

/* ==========================================================================
   Final Minor Polishes (Mobile Only)
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Speech Bubble Position: Move away from the waving hand */
  .video-caption {
    left: 20% !important; /* Move it towards the right side of the robot face so the tail points correctly and hand is clear */
    transform: translateX(0) scale(0.85) !important; 
  }
  .hero-visual.is-waving .video-caption {
    transform: translateX(0) translateY(0) scale(0.85) !important;
  }
  
  /* 2. Soften the robot's bottom edge so there is no sharp horizontal cut */
  .robot-video {
    -webkit-mask-image: radial-gradient(ellipse at 50% 35%, black 30%, transparent 65%) !important;
    mask-image: radial-gradient(ellipse at 50% 35%, black 30%, transparent 65%) !important;
  }
  
  /* 3. Remove background grid lines on mobile to eliminate any vertical rendering artifacts */
  body::before {
    background:
      radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 191, 255, 0.15), transparent),
      radial-gradient(ellipse 60% 40% at 100% 50%, rgba(138, 46, 255, 0.1), transparent),
      radial-gradient(ellipse 50% 30% at 0% 80%, rgba(255, 60, 247, 0.08), transparent) !important;
  }
}

/* ==========================================================================
   The True Final Polish (Mobile Only)
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Speech Bubble Position: Push it further left and up off the face */
  .video-caption {
    left: -10% !important;
    top: -5% !important;
  }
  
  /* 2. Remove the "scissors" so the fade mask works perfectly */
  .robot-video {
    clip-path: none !important;
  }
}

/* ==========================================================================
   Shrink Mobile Caption
   ========================================================================== */
@media (max-width: 768px) {
  /* Make the caption smaller and less bulky on mobile */
  .video-caption {
    transform: translateX(0) scale(0.65) !important; 
    padding: 0.75rem 1.25rem !important; /* Less padding to make the box tighter */
    font-size: 0.9rem !important; /* Slightly smaller text */
  }
  
  .hero-visual.is-waving .video-caption {
    transform: translateX(0) translateY(0) scale(0.65) !important;
  }
}

/* ==========================================================================
   Premium Navbar Impact Enhancements
   ========================================================================== */

/* 1. Always-on subtle glass effect for the top navbar */
.navbar {
  background: rgba(3, 5, 12, 0.4) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(0, 229, 255, 0.05) !important;
}

/* 2. Enhanced Premium Glow on Scroll */
.navbar.scrolled {
  background: rgba(3, 5, 12, 0.85) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid rgba(0, 229, 255, 0.2) !important;
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.15) !important; /* The glowing floating effect */
}

/* 3. Bolder, crisper links with subtle shadow to pop against the video */
.nav-links a {
  font-weight: 600 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important; /* Pops off the background */
  letter-spacing: 0.5px !important;
}

/* 4. Mobile Menu Button Pop */
@media (max-width: 768px) {
  /* Removed ugly toggle styling */
}

/* Hide the top navbar CTA on mobile so it doesn't duplicate the one inside the mobile menu */
@media (max-width: 768px) {
  .nav-cta {
    display: none !important;
  }
}

/* ==========================================================================
   Mobile Menu & Card Spacing Fixes
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Condense the mobile menu so all links fit on one screen without scrolling */
  .mobile-menu {
    padding: 1rem 1.5rem !important;
    gap: 0.25rem !important; /* Tighter gap */
    padding-bottom: 2rem !important; /* Remove excessive bottom padding */
  }
  
  .mobile-menu a {
    padding: 0.75rem 1rem !important; /* Tighter padding for links */
    font-size: 1rem !important; /* Slightly smaller text so they all fit */
  }

  /* 2. Remove the forced full-screen height on Portfolio cards so they stack nicely */
  .verse-card {
    min-height: auto !important;
    max-height: none !important; /* Allow it to be as tall as its content */
    overflow-y: visible !important; /* No internal scrollbars */
  }
}


/* ==========================================================================
   Mobile Menu Containing Block Fix
   ========================================================================== */
@media (max-width: 768px) {
  .mobile-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - var(--nav-height, 80px)) !important;
    bottom: auto !important;
  }
}

/* ==========================================================================
   THE DEFINITIVE PORTFOLIO CARD FIX
   ========================================================================== */

/* 1. Global Card Reset */
.verse-card {
  top: 50% !important;
  /* Do not force transform, let GSAP handle it */
  width: 80vw !important;
  height: 70vh !important;
  min-height: 400px !important;
  max-height: 800px !important;
  
  display: flex !important;
  flex-direction: row !important;
  gap: 2rem !important;
  padding: 2rem !important;
  
  overflow: hidden !important; /* No outer scrollbars */
  align-items: stretch !important;
}

/* 2. Image Container */
.verse-card-image {
  flex: 1 !important;
  height: 100% !important;
  min-height: 100% !important;
}
.verse-card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* 3. Text Content Container */
.verse-card-content {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important; /* PREVENTS top cutoff entirely! */
  
  /* If text is too long, it MUST scroll internally */
  overflow-y: auto !important;
  padding-right: 1rem !important;
  
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.verse-card-content::-webkit-scrollbar { display: none; }

/* 4. Fix for Mobile Portrait (Standard Phones) */
@media (max-width: 768px) {
  .verse-card {
    width: 90vw !important;
    height: 75vh !important;
    flex-direction: column !important;
    padding: 1.5rem !important;
    gap: 1rem !important;
  }
  .verse-card-image {
    height: 40% !important;
    min-height: 150px !important;
    flex: none !important;
  }
  .verse-card-content {
    height: 60% !important;
  }
}

/* 5. Fix for Mobile Landscape (Short/Wide Screens) */
@media (max-height: 500px) and (orientation: landscape) {
  .verse-card {
    /* Push it down slightly below navbar in extreme cases */
    top: calc(50% + 20px) !important;
    height: calc(100vh - 60px) !important;
    width: 90vw !important;
    flex-direction: row !important;
  }
  .verse-card-image {
    height: 100% !important;
  }
}

/* Team Member LinkedIn Hover */
.team-member-card {
  transition: all 0.3s ease;
}
.linkedin-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0077b5; /* LinkedIn Blue */
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: inherit;
}
.team-member-card:hover .linkedin-hover-overlay {
  opacity: 1;
  transform: translateY(0);
}
.linkedin-hover-overlay svg {
  fill: white;
}

/* Full SVG Logo Marquee */
.full-svg-logo {
  height: 180px;
  width: auto;
  opacity: 0.8;
  filter: grayscale(50%);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 0 1.5rem;
}
.marquee-item:hover .full-svg-logo {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.12);
}
.marquee-item:hover .full-svg-logo {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}
