/* ==========================================================================
   AI SITES (ai-sites.gr) - Extreme 3D & Kinetic Motion Theme
   Dark Cyber Aesthetics, 3D Scroll Dynamics, Glassmorphic UI & Ultra Responsive
   ========================================================================== */

:root {
  /* Color System */
  --bg-deep: #06080d;
  --bg-surface: #0b0f17;
  --bg-card: rgba(15, 22, 35, 0.75);
  --bg-card-hover: rgba(22, 32, 50, 0.9);
  --bg-glass: rgba(11, 15, 23, 0.78);
  
  --primary: #00f0ff;
  --primary-glow: rgba(0, 240, 255, 0.45);
  --secondary: #7000ff;
  --secondary-glow: rgba(112, 0, 255, 0.45);
  --accent: #ff007a;
  --accent-glow: rgba(255, 0, 122, 0.4);

  --text-main: #f3f6fc;
  --text-muted: #8e9bb5;
  --text-dim: #5c6882;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.28);
  --border-glow-purple: rgba(112, 0, 255, 0.38);

  --gradient-brand: linear-gradient(135deg, #00f0ff 0%, #7000ff 50%, #ff007a 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.15) 0%, transparent 70%);

  /* Typography */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Elevation & Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(0, 240, 255, 0.25);
  --shadow-purple: 0 0 35px rgba(112, 0, 255, 0.3);

  /* Layout */
  --max-w: 1280px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --nav-h: 80px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(112, 0, 255, 0.15), transparent),
    radial-gradient(circle at 90% 40%, rgba(0, 240, 255, 0.08), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(255, 0, 122, 0.06), transparent 40%);
  background-attachment: fixed;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Cyber Floating Cursor
   ========================================================================== */

.cyber-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: #00f0ff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 14px #00f0ff, 0 0 25px #00f0ff;
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cyber-cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(0, 240, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, border-color 0.25s, transform 0.08s ease-out;
}

body.cursor-hover .cyber-cursor {
  width: 14px;
  height: 14px;
  background-color: #ff007a;
  box-shadow: 0 0 20px #ff007a, 0 0 35px #ff007a;
}

body.cursor-hover .cyber-cursor-trail {
  width: 60px;
  height: 60px;
  border-color: rgba(255, 0, 122, 0.6);
  background: rgba(255, 0, 122, 0.06);
}

@media (max-width: 1024px) {
  .cyber-cursor, .cyber-cursor-trail {
    display: none !important;
  }
}

/* ==========================================================================
   Section Stacking Context & Luxury Dark Staging
   ========================================================================== */

section {
  position: relative;
  z-index: 10;
  background-color: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
  clear: both;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  background-size: 200% 200%;
  animation: gradientFlow 6s ease infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.cyan-text {
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary-glow);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 16px var(--primary); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.section-tag {
  text-align: center;
  margin-bottom: 12px;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  position: relative;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 56px auto;
  font-size: 1.15rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-spring);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 4px 25px rgba(0, 240, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 35px rgba(0, 240, 255, 0.65), 0 0 25px rgba(112, 0, 255, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 24px rgba(0, 240, 255, 0.25);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.55);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Header & Sticky Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 1000;
  transition: var(--transition);
  background: rgba(6, 8, 13, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header.scrolled {
  background: rgba(6, 8, 13, 0.94);
  border-bottom: 1px solid var(--border-glow);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  height: 48px;
  transition: var(--transition-spring);
}

.brand-logo:hover {
  transform: scale(1.05);
}

.brand-logo img,
.brand-logo svg {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-brand);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Sound Toggle */
.sound-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.sound-toggle-btn:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  transform: scale(1.05);
}

.sound-toggle-btn.muted {
  opacity: 0.5;
  filter: grayscale(1);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile Slide Drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 3, 6, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: #080c16;
  border-left: 1px solid var(--border-subtle);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -10px 0 40px rgba(0,0,0,0.8);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.mobile-drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #ffffff;
  cursor: pointer;
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-item {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.mobile-nav-item:hover {
  color: var(--primary);
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}

/* ==========================================================================
   HERO: 3D Crystal Prism Showcase (Modeled After Dribbble Reference Video)
   ========================================================================== */

.prism-hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, #070c24 0%, #03040a 75%, #010204 100%);
  border-top: none;
  z-index: 5;
}

.prism-showcase-container {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#prism-canvas {
  touch-action: pan-y;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: grab;
}

#prism-canvas:active {
  cursor: grabbing;
}

.prism-backdrop-glow {
  position: absolute;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.16) 0%, rgba(112, 0, 255, 0.1) 45%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.prism-top-pill {
  position: absolute;
  top: calc(var(--nav-h) + 24px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.25);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

/* Floating Bottom HUD (Two Distinct Glassmorphic Info Pods) */
.prism-hud-bottom {
  position: absolute;
  bottom: 80px;
  left: 36px;
  right: 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  z-index: 10;
  pointer-events: none;
}

.prism-hud-col-left,
.prism-hud-col-right {
  pointer-events: auto;
  background: rgba(6, 8, 13, 0.88);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.prism-hud-col-left {
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prism-hud-col-right {
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prism-counter-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.prism-counter {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.15em;
}

.prism-hud-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.prism-project-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.prism-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.prism-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.prism-project-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.prism-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Centered Navigation Dots */
.prism-nav-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 11;
  pointer-events: auto;
}

.prism-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid var(--border-glow);
  cursor: pointer;
  transition: var(--transition-spring);
}

.prism-dot.active {
  background: var(--primary);
  box-shadow: 0 0 14px var(--primary);
  transform: scale(1.4);
}

/* Controls Panel (Arrows + Drag Hint) */
.prism-controls-panel {
  position: absolute;
  bottom: 22px;
  right: 36px;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: auto;
}

.prism-nav-arrows {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prism-arrow-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(12, 18, 30, 0.85);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(12px);
}

.prism-arrow-btn:hover {
  border-color: var(--primary);
  background: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
}

.prism-interaction-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(6, 10, 18, 0.85);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.prism-interaction-hint .drag-icon {
  display: inline-block;
  color: var(--primary);
  animation: spinHint 6s linear infinite;
}

@keyframes spinHint {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Limitless Websites Showcase (Interactive 3D Perspective & Filter)
   ========================================================================== */

.site-catalog-section {
  padding: 120px 0;
  position: relative;
  z-index: 10;
  background: #05070e;
  border-top: 1px solid var(--border-subtle);
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-spring);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.45);
  transform: translateY(-2px) scale(1.05);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

/* 3D Kinetic Card with Dynamic Spotlight */
.site-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.15s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 280px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 240, 255, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 3;
}

.site-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.25);
}

.site-card:hover::after {
  opacity: 1;
}

.site-card-preview {
  height: 200px;
  position: relative;
  background: #0d121c;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-mockup-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(6, 8, 13, 0.85);
  border: 1px solid var(--border-glow);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.preview-mesh {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: 
    radial-gradient(circle at 70% 30%, rgba(0, 240, 255, 0.2) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(112, 0, 255, 0.25) 0%, transparent 60%);
  opacity: 0.7;
  transition: var(--transition);
}

.site-card:hover .preview-mesh {
  opacity: 1;
  transform: scale(1.12);
}

/* Extreme Icon Hover Animations */
.preview-icon-wrapper {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.45s ease, border-color 0.45s ease;
}

.preview-icon-wrapper::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 2px solid var(--primary);
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-icon-wrapper:hover {
  transform: scale(1.35) rotateY(360deg) rotateZ(-6deg);
  box-shadow: 0 0 35px var(--primary), 0 0 60px var(--secondary-glow);
  border-color: var(--primary);
  animation: iconGlowBurst 1.2s infinite alternate;
}

.preview-icon-wrapper:hover::after {
  opacity: 1;
  transform: scale(1.4);
  filter: blur(2px);
  opacity: 0;
}

@keyframes iconGlowBurst {
  0% { box-shadow: 0 0 25px rgba(0, 240, 255, 0.5), 0 0 50px rgba(112, 0, 255, 0.4); }
  100% { box-shadow: 0 0 45px rgba(0, 240, 255, 0.85), 0 0 80px rgba(255, 0, 122, 0.6); }
}

.site-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.site-card-title {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.site-card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.site-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag-pill {
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
}

.site-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.site-card-price {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.site-card-price strong {
  font-size: 1.15rem;
  color: #ffffff;
  font-family: var(--font-display);
}

/* ==========================================================================
   3D Scroll Dynamics & Scrollytelling Section
   ========================================================================== */

.scroll-experience-section {
  padding: 100px 0;
  position: relative;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(112, 0, 255, 0.08), transparent);
  perspective: 1200px;
}

.scroll-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-3d-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.15s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-3d-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: var(--transition);
}

.feature-3d-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 260px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(112, 0, 255, 0.25), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 3;
}

.feature-3d-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 240, 255, 0.25);
}

.feature-3d-card:hover::before {
  opacity: 1;
}

.feature-3d-card:hover::after {
  opacity: 1;
}

.feature-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 24px;
  cursor: pointer;
  position: relative;
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.45s ease;
}

.feature-icon-box:hover {
  transform: scale(1.35) rotateY(360deg) rotateZ(8deg);
  box-shadow: 0 0 35px var(--primary), 0 0 60px var(--secondary-glow);
  border-color: var(--primary);
}

.feature-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   AI Video Production Section (Kinetic 3D Movement)
   ========================================================================== */

.motion-video-section {
  padding: 110px 0;
  position: relative;
  overflow: hidden;
  perspective: 1400px;
}

.motion-container {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 54px;
  align-items: center;
}

.video-mockup-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glow);
  box-shadow: 0 25px 70px rgba(0, 240, 255, 0.25), 0 0 50px rgba(112, 0, 255, 0.35);
  background: #090d14;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.2s ease-out, box-shadow 0.4s ease;
}

.video-mockup-frame:hover {
  box-shadow: 0 30px 90px rgba(0, 240, 255, 0.4), 0 0 70px rgba(112, 0, 255, 0.5);
}

.video-mockup-inner {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #090e17 0%, #17102e 50%, #0d1e2e 100%);
  overflow: hidden;
}

/* Generative Laser Scanning Line */
.video-laser-scanner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00f0ff, #ff007a, transparent);
  box-shadow: 0 0 15px #00f0ff;
  animation: scanLaser 3.5s ease-in-out infinite alternate;
  z-index: 4;
  pointer-events: none;
}

@keyframes scanLaser {
  0% { top: 0%; opacity: 0.3; }
  50% { opacity: 1; }
  100% { top: 98%; opacity: 0.3; }
}

.video-pulse-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--gradient-brand);
  filter: blur(50px);
  opacity: 0.6;
  animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.8); opacity: 0.4; }
  100% { transform: scale(1.4); opacity: 0.8; }
}

.play-button-visual {
  position: relative;
  z-index: 5;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #ffffff;
  cursor: pointer;
  transition: var(--transition-spring);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.45);
}

.play-button-visual:hover {
  transform: scale(1.18);
  background: var(--gradient-brand);
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.85);
}

/* Floating 3D HUD Badges */
.hud-chip {
  position: absolute;
  background: rgba(6, 8, 13, 0.88);
  border: 1px solid var(--border-glow);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  backdrop-filter: blur(10px);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.hud-chip-tl {
  top: 16px;
  left: 16px;
  transform: translateZ(35px);
}

.hud-chip-tr {
  top: 16px;
  right: 16px;
  transform: translateZ(40px);
  border-color: var(--secondary);
  color: var(--primary);
}

.hud-chip-bl {
  bottom: 16px;
  left: 16px;
  transform: translateZ(30px);
}

.hud-chip-br {
  bottom: 16px;
  right: 16px;
  transform: translateZ(35px);
}

/* Equalizer Bars */
.equalizer-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.eq-bar {
  width: 3px;
  background: var(--primary);
  border-radius: 2px;
  animation: eqBounce 1s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 85%; animation-delay: 0.3s; }
.eq-bar:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.eq-bar:nth-child(4) { height: 100%; animation-delay: 0.4s; }
.eq-bar:nth-child(5) { height: 50%; animation-delay: 0.15s; }

@keyframes eqBounce {
  0% { height: 20%; background: #00f0ff; }
  50% { height: 95%; background: #7000ff; }
  100% { height: 40%; background: #ff007a; }
}

/* ==========================================================================
   Packages & Pricing Section (Starting from 500€)
   ========================================================================== */

.pricing-section {
  padding: 100px 0;
  position: relative;
  perspective: 1200px;
}

.pricing-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.pricing-tab-btn {
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-spring);
}

.pricing-tab-btn:hover, .pricing-tab-btn.active {
  background: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.45);
  transform: translateY(-2px) scale(1.04);
}

.pricing-deck {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
}

.pricing-deck.active {
  display: grid;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  backdrop-filter: blur(16px);
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.15s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.2);
}

.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.06) 0%, rgba(15, 22, 35, 0.85) 100%);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.25);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.4);
}

.package-name {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.package-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  min-height: 44px;
  margin-bottom: 24px;
}

.package-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
}

.price-period {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.feature-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-main);
}

.check-icon {
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Interactive Project Cost Calculator
   ========================================================================== */

.calculator-section {
  padding: 100px 0;
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.05), transparent 70%);
}

.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 48px;
  backdrop-filter: blur(20px);
  max-width: 960px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 240, 255, 0.15);
  transform-style: preserve-3d;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-label {
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
}

.calc-select, .calc-range {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #ffffff;
  outline: none;
  transition: var(--transition);
}

.calc-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.calc-select option {
  background-color: var(--bg-surface);
  color: #ffffff;
}

.addon-checkboxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-spring);
  font-size: 0.92rem;
}

.checkbox-label:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-glow);
  transform: translateX(4px);
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

.calc-summary {
  background: rgba(6, 8, 13, 0.85);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.calc-estimate-lbl {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.calc-estimate-val {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4vw, 3.8rem);
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 0 25px var(--primary-glow);
  margin-bottom: 12px;
}

.calc-estimate-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ==========================================================================
   Greek Nationwide Coverage & Regions Cloud
   ========================================================================== */

.coverage-section {
  padding: 90px 0;
  position: relative;
  text-align: center;
}

.coverage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px;
  backdrop-filter: blur(16px);
}

.city-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.city-pill {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: var(--transition-spring);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.city-pill.highlight {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
  font-weight: 700;
}

.city-pill:hover {
  border-color: var(--border-glow);
  color: #ffffff;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.35);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq-section {
  padding: 100px 0;
  position: relative;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--border-glow);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.12);
}

.faq-question {
  width: 100%;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  transition: max-height 0.4s ease-in-out;
  padding-bottom: 24px;
}

/* ==========================================================================
   Contact & Direct Consultation
   ========================================================================== */

.contact-section {
  padding: 100px 0;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.contact-details p, .contact-details a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: var(--transition);
}

.contact-details a:hover {
  color: var(--primary);
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  backdrop-filter: blur(16px);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #ffffff;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #ffffff;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
  background: rgba(255, 255, 255, 0.07);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-feedback {
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-feedback.success {
  display: block;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid #25d366;
  color: #25d366;
}

/* ==========================================================================
   Grand Finale Typographic Section (Direct Dribbble Reference Re-creation)
   ========================================================================== */

.grand-finale-section {
  padding: 160px 0 140px 0;
  position: relative;
  z-index: 10;
  background: #020306;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.finale-container {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.finale-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 6.2rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 16px;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
}

.finale-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.2vw, 4.6rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
  transition: var(--transition);
  text-decoration: none;
  background: linear-gradient(135deg, #ffffff 0%, #00f0ff 60%, #7000ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.finale-email:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.7));
}

.finale-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 44px;
}

.finale-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #040508;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 32px 0;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 16px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

/* Floating WhatsApp Quick-Connect */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: var(--transition-spring);
}

.floating-whatsapp:hover {
  transform: scale(1.15) translateY(-4px);
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.65);
}

.floating-ping {
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  background-color: #ff007a;
  border: 2px solid #ffffff;
  border-radius: 50%;
  animation: pulsePing 2s infinite;
}

@keyframes pulsePing {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* ==========================================================================
   GDPR & Cookie Consent Modal Gate (Full Compliance & Modern Dark Glass)
   ========================================================================== */

.cookie-consent-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 8, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.cookie-consent-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner,
.cookie-consent-modal {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  width: calc(100% - 48px);
  max-width: 560px;
  background: rgba(8, 12, 22, 0.96);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 26px 28px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 240, 255, 0.22);
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

.cookie-banner.show,
.cookie-consent-modal.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.cookie-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 999px;
  padding: 4px 12px;
}

.cookie-emoji {
  font-size: 1.1rem;
  line-height: 1;
}

.cookie-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-transform: uppercase;
}

.cookie-security-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 999px;
  padding: 3px 10px;
}

.status-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.cookie-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.cookie-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.cookie-modal-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.cookie-feat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.cookie-feat-item .feat-check {
  color: var(--primary);
  font-weight: 700;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.cookie-btn {
  flex: 1 1 auto;
  justify-content: center;
  padding: 11px 18px;
  font-size: 0.86rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cookie-settings-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 0.84rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: var(--transition);
}

.cookie-settings-link:hover {
  color: var(--primary);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   AI Code-to-Website 3D Flip Transformer (Interactive Core)
   ========================================================================== */

.code-flip-section {
  padding: 120px 0 100px;
  position: relative;
  background: radial-gradient(circle at 50% 30%, rgba(0, 240, 255, 0.04) 0%, transparent 60%);
  overflow: hidden;
}

.code-flip-section .section-tag {
  text-align: center;
  margin-bottom: 16px;
}

.code-flip-section .section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #ffffff 30%, var(--primary) 70%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.code-flip-section .section-desc {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Switch Bar / State Indicator */
.flip-switch-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
}

.flip-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(15, 22, 35, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
}

.flip-toggle-btn:hover {
  border-color: var(--border-glow);
  color: #ffffff;
  transform: translateY(-2px);
}

.flip-toggle-btn.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.flip-toggle-btn .dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: all 0.3s ease;
}

.flip-toggle-btn.active .dot-indicator {
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.flip-divider-icon {
  color: var(--primary);
  font-size: 1.1rem;
  opacity: 0.7;
  animation: pulseDivider 2s infinite ease-in-out;
}

@keyframes pulseDivider {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4px); }
}

/* 3D Perspective Stage */
.flip-stage-perspective {
  perspective: 2000px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  min-height: 580px;
  touch-action: pan-y;
}

.flip-card-3d {
  position: relative;
  width: 100%;
  min-height: 580px;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 240, 255, 0.15);
  border-radius: var(--radius-xl);
}

.flip-card-3d.flipped {
  transform: rotateY(180deg);
}

/* Card Faces */
.card-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-glow);
  box-sizing: border-box;
}

/* Front Face: Code IDE */
.card-face-code {
  background: #080d16;
  transform: rotateY(0deg);
  z-index: 2;
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: rgba(13, 20, 32, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-filename {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #cbd5e1;
}

.terminal-status-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.15);
  color: var(--primary);
  border: 1px solid rgba(0, 240, 255, 0.3);
  letter-spacing: 0.05em;
  animation: badgeBlink 1.8s infinite;
}

@keyframes badgeBlink {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.terminal-branch {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.terminal-code-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #060a12;
  overflow-y: auto;
}

.prompt-stream-box {
  background: rgba(0, 240, 255, 0.05);
  border-left: 3px solid var(--primary);
  padding: 12px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 20px;
}

.prompt-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 4px;
}

.prompt-text {
  font-size: 0.95rem;
  color: #e2e8f0;
  font-style: italic;
  line-height: 1.5;
}

.code-stream-pre {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.65;
  color: #00f0ff;
  white-space: pre-wrap;
  word-break: break-word;
  flex: 1;
  overflow-x: auto;
}

.code-stream-pre code {
  color: #a5b4fc;
}

.code-stream-pre .code-keyword { color: #f472b6; }
.code-stream-pre .code-func { color: #38bdf8; }
.code-stream-pre .code-string { color: #4ade80; }
.code-stream-pre .code-comment { color: #64748b; font-style: italic; }

.code-blinking-cursor {
  display: inline-block;
  width: 9px;
  height: 16px;
  background: var(--primary);
  vertical-align: middle;
  margin-left: 4px;
  animation: cursorBlink 0.9s infinite;
  box-shadow: 0 0 8px var(--primary);
}

@keyframes cursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.terminal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(13, 20, 32, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.term-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Back Face: Live Browser Mockup */
.card-face-site {
  background: #090e18;
  transform: rotateY(180deg);
  z-index: 1;
}

.browser-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: rgba(14, 21, 35, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.browser-url-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(6, 10, 18, 0.85);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #94a3b8;
  max-width: 480px;
  width: 100%;
}

.browser-url-bar .lock-icon {
  font-size: 0.8rem;
  color: #27c93f;
}

.live-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #27c93f;
  background: rgba(39, 201, 63, 0.12);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(39, 201, 63, 0.3);
}

.badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #27c93f;
  box-shadow: 0 0 10px #27c93f;
  animation: pulseDot 1.5s infinite;
}

.browser-body {
  flex: 1;
  background: linear-gradient(135deg, #090e18 0%, #111a2e 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.mockup-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(11, 17, 28, 0.7);
  backdrop-filter: blur(8px);
}

.mockup-logo {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: #ffffff;
}

.mockup-nav {
  display: flex;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.mockup-pill-btn {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gradient-brand);
  color: #ffffff;
}

.mockup-hero-stage {
  position: relative;
  overflow: hidden;
  padding: 32px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle at 80% 20%, rgba(112, 0, 255, 0.18) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(0, 240, 255, 0.15) 0%, transparent 50%);
}

/* Video Background Layer with Cinematic Overlay */
.mockup-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.mockup-video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.04);
  filter: brightness(0.85) contrast(1.08);
}

.mockup-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(8, 13, 24, 0.88) 0%,
    rgba(8, 13, 24, 0.62) 50%,
    rgba(10, 18, 32, 0.85) 100%
  );
  backdrop-filter: blur(0.5px);
}

.mockup-hero-content {
  position: relative;
  z-index: 1;
}

.mockup-hero-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.mockup-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  text-transform: uppercase;
}

.mockup-video-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.55);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.video-switch-btn {
  background: transparent;
  border: none;
  outline: none;
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.video-switch-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.video-switch-btn.active {
  color: #030712;
  background: #00f0ff;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.5);
}

.mockup-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.mockup-sub {
  font-size: 0.92rem;
  color: #e2e8f0;
  max-width: 540px;
  line-height: 1.55;
  margin-bottom: 20px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.mockup-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.mockup-metrics-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-card {
  background: rgba(15, 23, 38, 0.6);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.metric-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.metric-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.browser-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(14, 21, 35, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.flip-card-trigger-btn {
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
  transition: var(--transition-spring);
}

.flip-card-trigger-btn:hover {
  transform: scale(1.04);
}


/* Scroll Flip Indicators */
.scroll-flip-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  background: rgba(0, 240, 255, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.scroll-flip-indicator .indicator-arrow {
  animation: bounceDown 1.5s infinite;
}

.code-flip-scroll-cue {
  text-align: center;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0.85;
}

.code-flip-scroll-cue .cue-arrow {
  color: var(--primary);
  font-size: 1.1rem;
  animation: bounceDown 1.5s infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Footer Enhanced Styles */
.site-footer {
  background: #030508;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 36px 0;
  position: relative;
  z-index: 10;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 48px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 16px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-badge {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--primary);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 4px 12px;
  border-radius: 999px;
}

.footer-col h4 {
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-display);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a, .footer-links span {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-contact-link, .footer-contact-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-credits {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}



/* ==========================================================================
   Master Responsive Engine (Desktop, Tablet, Mobile Optimization)
   ========================================================================== */

/* Desktop Display Guard */
@media (min-width: 1025px) {
  .mobile-toggle {
    display: none !important;
  }
  .nav-links {
    display: flex !important;
  }
}

/* Tablet & Smaller Devices (max-width: 1024px) */
@media (max-width: 1024px) {
  .nav-links {
    display: none !important;
  }
  .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  .site-header {
    padding: 0 16px;
  }
  .prism-hud-bottom {
    bottom: 40px;
    left: 20px;
    right: 20px;
    gap: 16px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr !important;
    gap: 36px !important;
  }
  .scroll-cards-grid, .motion-container, .calc-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Devices & Phones (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --nav-h: 68px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Header & Navigation Fix: Zero crowding, pristine logo visibility */
  .site-header {
    padding: 0 14px;
  }

  .nav-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  .brand-logo {
    max-width: 135px !important;
    min-width: 110px !important;
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }

  .brand-logo img {
    width: 135px !important;
    height: auto !important;
    max-height: 34px !important;
    display: block !important;
  }

  .nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }

  /* Hide Sound toggle and CTA button in top header bar on mobile so the logo is never squished */
  .sound-toggle-btn {
    display: none !important;
  }

  .nav-actions .btn {
    display: none !important;
  }

  .lang-switcher {
    padding: 2px 4px !important;
    gap: 2px !important;
  }

  .lang-btn {
    padding: 4px 7px !important;
    font-size: 0.72rem !important;
  }

  .mobile-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    font-size: 1.35rem !important;
    padding: 0 !important;
  }

  /* 3D Crystal Prism Showcase: Natural in-flow stacking for mobile */
  .prism-hero-section {
    min-height: auto !important;
    height: auto !important;
    padding-top: calc(var(--nav-h) + 10px) !important;
    padding-bottom: 40px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    overflow: visible !important;
    background: radial-gradient(ellipse 90% 50% at 50% 20%, #070c24 0%, #03040a 70%, #010204 100%) !important;
  }

  .prism-showcase-container {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
    background: transparent !important;
    padding: 0 !important;
  }

  /* Top badge pill: Wraps naturally with zero horizontal overflow */
  .prism-top-pill {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 4px auto 14px auto !important;
    max-width: 92% !important;
    text-align: center !important;
    white-space: normal !important;
    font-size: 0.7rem !important;
    padding: 6px 14px !important;
    line-height: 1.35 !important;
    display: inline-flex !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
  }

  /* 3D Canvas Stage: Beautifully framed 320px high interactive viewport */
  #prism-canvas {
    position: relative !important;
    width: 100% !important;
    height: 320px !important;
    max-width: 420px !important;
    display: block !important;
    margin: 0 auto !important;
    z-index: 2 !important;
    touch-action: pan-y !important;
  }

  .prism-backdrop-glow {
    position: absolute !important;
    width: 260px !important;
    height: 260px !important;
    top: 200px !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1 !important;
    filter: blur(40px) !important;
  }

  /* Dots & Controls placed directly below the 3D canvas */
  .prism-nav-dots {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 12px auto 6px auto !important;
    z-index: 10 !important;
  }

  .prism-controls-panel {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    z-index: 10 !important;
    width: 100% !important;
  }

  .prism-nav-arrows {
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .prism-arrow-btn {
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
  }

  .prism-interaction-hint {
    font-size: 0.7rem !important;
    padding: 4px 12px !important;
  }

  /* Project HUD Cards: Stacked 100% width glassmorphic cards with ample margins */
  .prism-hud-bottom {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 16px !important;
    margin: 14px auto 0 auto !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    pointer-events: auto !important;
    z-index: 10 !important;
  }

  .prism-hud-col-left,
  .prism-hud-col-right {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 18px 16px !important;
    border-radius: var(--radius-lg) !important;
    background: rgba(8, 12, 22, 0.92) !important;
    border: 1px solid var(--border-glow) !important;
    backdrop-filter: blur(16px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
  }

  .prism-project-title {
    font-size: 1.35rem !important;
    margin-bottom: 12px !important;
    line-height: 1.25 !important;
  }

  .prism-cta-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .prism-cta-row .btn {
    flex: 1 1 calc(50% - 10px) !important;
    min-width: 135px !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 10px 12px !important;
    font-size: 0.82rem !important;
  }

  .prism-project-desc {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    margin-bottom: 12px !important;
  }

  .prism-project-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  /* Floating WhatsApp icon: Perfect spacing at bottom right without interference */
  .floating-whatsapp {
    bottom: 18px !important;
    right: 16px !important;
    width: 52px !important;
    height: 52px !important;
    font-size: 1.7rem !important;
    z-index: 9999 !important;
  }

  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
  }

  /* 3D Code Flip Transformer Mobile */
  .code-flip-section {
    padding: 70px 0 60px;
  }

  .flip-stage-perspective, .flip-card-3d {
    min-height: 640px;
  }

  .terminal-code-body {
    padding: 16px 14px;
  }

  .code-stream-pre {
    font-size: 0.76rem;
    max-height: 250px;
    overflow-x: auto;
  }

  .prompt-stream-box {
    padding: 10px 12px;
    margin-bottom: 14px;
  }

  .prompt-text {
    font-size: 0.85rem;
  }

  .terminal-footer, .browser-footer {
    padding: 12px 14px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .term-meta {
    font-size: 0.72rem;
  }

  .mockup-site-header {
    padding: 12px 14px;
  }

  .mockup-nav {
    display: none;
  }

  .mockup-hero-stage {
    padding: 18px 14px;
  }

  .mockup-hero-badges {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .mockup-video-switcher {
    width: 100%;
    justify-content: center;
  }

  .video-switch-btn {
    flex: 1;
    justify-content: center;
    padding: 5px 8px;
    font-size: 0.7rem;
  }

  .mockup-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .metric-card {
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .metric-val {
    font-size: 1.15rem;
  }

  /* All Studio Grids */
  .showcase-grid, .pricing-grid, .features-grid, .motion-container, .calc-grid, .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Footer Mobile */
  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  /* Grand Finale Mobile Typography (No Overflow) */
  .grand-finale-section {
    padding: 100px 0 80px 0;
  }

  .finale-title {
    font-size: clamp(2rem, 7vw, 3.8rem);
  }

  .finale-email {
    font-size: clamp(1.4rem, 5vw, 2.6rem);
    word-break: break-all;
  }

  .calculator-card {
    padding: 24px 16px;
  }

  /* Mobile GDPR Cookie Consent Modal */
  .cookie-banner,
  .cookie-consent-modal {
    bottom: 14px !important;
    left: 12px !important;
    right: 12px !important;
    width: calc(100% - 24px) !important;
    max-width: 100% !important;
    transform: translateY(40px) !important;
    padding: 18px 16px !important;
    border-radius: var(--radius-lg) !important;
    gap: 12px !important;
  }

  .cookie-banner.show,
  .cookie-consent-modal.show {
    transform: translateY(0) !important;
  }

  .cookie-title {
    font-size: 1.1rem !important;
  }

  .cookie-text {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
  }

  .cookie-modal-features {
    padding: 10px 12px !important;
    gap: 6px !important;
  }

  .cookie-feat-item {
    font-size: 0.76rem !important;
  }

  .cookie-actions {
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .cookie-btn {
    width: 100% !important;
    padding: 10px 14px !important;
  }
}

/* Very Small Phones (<= 480px) */
@media (max-width: 480px) {
  .hero-stats-row {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .flip-switch-bar {
    flex-direction: column;
    gap: 10px;
  }

  .flip-divider-icon {
    transform: rotate(90deg);
  }

  .browser-url-bar {
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  .live-status-pill {
    display: none;
  }
}
