/* ==========================================================================
   WEBUSTA — DIGITAL AGENCY WEBSITE
   Comprehensive Premium Stylesheet
   Design System, Components, Animations & Responsive Architecture
   ========================================================================== */

/* ==========================================================================
   1. Design System & CSS Custom Properties
   ========================================================================== */
:root {
  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

  /* Brand Colors */
  --color-bg: #0a0e27;
  --color-secondary: #0f1538;
  --color-tertiary: #141b4d;
  --color-card-bg: rgba(15, 21, 56, 0.7);
  --color-footer: #080b1e;

  /* Accent Colors */
  --color-primary: #2563eb;
  --color-primary-light: #3b82f6;
  --color-primary-dark: #1d4ed8;
  --color-cyan: #06b6d4;
  --color-cyan-light: #22d3ee;
  --color-cyan-dark: #0891b2;

  /* Neutral Colors */
  --color-white: #ffffff;
  --color-gray: #94a3b8;
  --color-muted: #64748b;
  --color-dark-border: rgba(255, 255, 255, 0.08);

  /* Glassmorphism & Surfaces */
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(6, 182, 212, 0.4);
  --border-brighter: rgba(255, 255, 255, 0.16);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --gradient-brand-subtle: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
  --gradient-hover: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
  --gradient-dark: linear-gradient(180deg, #0a0e27 0%, #0f1538 100%);
  --gradient-border: linear-gradient(135deg, rgba(37, 99, 235, 0.5), rgba(6, 182, 212, 0.5));

  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 120px;

  /* Border Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-card: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Transitions & Animation Timings */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 4px 20px rgba(6, 182, 212, 0.2);
  --shadow-glow-lg: 0 8px 36px rgba(6, 182, 212, 0.35);
  --shadow-button: 0 4px 16px rgba(37, 99, 235, 0.35);

  /* Z-Index Hierarchy */
  --z-back: -1;
  --z-base: 1;
  --z-elevated: 10;
  --z-header: 1000;
  --z-floating: 1100;
  --z-modal: 2000;
  --z-cursor: 9999;
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-white);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
  touch-action: none;
}

ul, ol {
  list-style: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

button {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

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

/* Accessible focus states */
:focus-visible {
  outline: 2px solid var(--color-cyan);
  outline-offset: 3px;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-cyan);
  outline-offset: 2px;
}

/* Accessibility: Respect 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;
  }
  .animate-in, .animate-hero, .hero-float {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   3. Typography & Utility Classes
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-white);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.75rem, 3.8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  color: var(--color-gray);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
}

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

/* ==========================================================================
   4. Layout & Global Containers
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 36px);
  padding-right: clamp(16px, 4vw, 36px);
}

.section {
  padding: var(--space-5xl) 0;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 96px;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-cyan);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding: 4px 14px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-pill);
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  min-height: 48px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn svg {
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.btn-primary {
  background: var(--gradient-brand);
  color: var(--color-white);
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-lg);
  background: var(--gradient-hover);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--color-cyan);
  background: rgba(6, 182, 212, 0.08);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline:active {
  transform: translateY(0);
}

.btn-lg {
  min-height: 54px;
  padding: 15px 34px;
  font-size: 1.05rem;
  border-radius: var(--radius-card);
}

.btn-xl {
  min-height: 58px;
  padding: 16px 40px;
  font-size: 1.1rem;
  border-radius: var(--radius-card);
}

.btn-sm {
  min-height: 38px;
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   6. Keyframe Animations & Reveal States
   ========================================================================== */
@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1) translate(-50%, -50%);
  }
  50% {
    opacity: 0.65;
    transform: scale(1.08) translate(-50%, -50%);
  }
}

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

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.2;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes line-move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 60px 60px;
  }
}

@keyframes particle-drift {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-15px) translateX(8px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

/* Scroll reveal classes */
.animate-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--transition-spring), transform 0.7s var(--transition-spring);
  will-change: opacity, transform;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Entrance Transitions */
.animate-hero {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--transition-spring), transform 0.7s var(--transition-spring);
  will-change: opacity, transform;
}

body.loaded .animate-hero {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--delay, 0s);
}

/* ==========================================================================
   7. Header & Navigation
   ========================================================================== */
/* ==========================================================================
   7. Floating Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: var(--z-header);
  padding: 0 24px;
  pointer-events: none;
  transition: top var(--transition-normal), padding var(--transition-normal);
}

.header-scrolled {
  top: 10px;
}

.header-inner {
  pointer-events: auto;
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 1.6vw, 24px);
  padding: 10px 18px 10px 22px;
  background: rgba(10, 14, 39, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 16px rgba(6, 182, 212, 0.06);
  position: relative;
  transition: all var(--transition-normal);
}

.header-scrolled .header-inner {
  background: rgba(10, 14, 39, 0.94);
  border-color: rgba(6, 182, 212, 0.28);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 22px rgba(6, 182, 212, 0.16);
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Brand Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  z-index: 2;
}

.logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-normal);
}

.logo:hover .logo-img {
  transform: scale(1.06);
}

.logo-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-white);
  line-height: 1;
  white-space: nowrap;
}

/* Desktop Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 20px);
  margin: 0;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-gray);
  position: relative;
  padding: 6px 2px;
  white-space: nowrap;
  transition: color var(--transition-normal);
}

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

.nav-link.active {
  color: var(--color-cyan);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: var(--radius-pill);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-mobile-cta {
  display: none;
}

.header-cta {
  flex-shrink: 0;
  padding: 9px 20px;
  font-size: 0.88rem;
  border-radius: 10px;
  white-space: nowrap;
}

/* Mobile Backdrop */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: calc(var(--z-header) - 1);
  pointer-events: none;
}

body.no-scroll .nav-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile Hamburger Toggle */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  cursor: pointer;
  z-index: calc(var(--z-header) + 2);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-cyan);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   8. Hero Section
   ========================================================================== */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(120px, 16vh, 150px);
  padding-bottom: clamp(40px, 6vh, 60px);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: var(--z-back);
  overflow: hidden;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: line-move 25s linear infinite;
  opacity: 0.6;
}

.hero-glow-1 {
  position: absolute;
  top: 25%;
  left: 50%;
  width: clamp(350px, 55vw, 800px);
  height: clamp(350px, 55vw, 800px);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, rgba(6, 182, 212, 0.08) 45%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: pulse-glow 9s ease-in-out infinite;
}

.hero-glow-2 {
  position: absolute;
  bottom: 0;
  right: -10%;
  width: clamp(250px, 40vw, 550px);
  height: clamp(250px, 40vw, 550px);
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Floating particle dots */
.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-cyan);
  border-radius: 50%;
  opacity: 0.35;
  animation: particle-drift 6s ease-in-out infinite;
}

.hero-particle-1 { top: 20%; left: 15%; animation-delay: 0s; }
.hero-particle-2 { top: 35%; left: 45%; animation-delay: 1.5s; width: 6px; height: 6px; }
.hero-particle-3 { top: 65%; left: 10%; animation-delay: 3s; }
.hero-particle-4 { top: 75%; right: 20%; animation-delay: 2s; width: 5px; height: 5px; }
.hero-particle-5 { top: 25%; right: 12%; animation-delay: 4.5s; }
.hero-particle-6 { top: 50%; right: 35%; animation-delay: 1s; }

.hero-content {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-cyan-light);
  margin-bottom: 20px;
}

.tag-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-cyan);
}

.hero-title {
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 36px;
}

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

/* ==========================================================================
   Hero Mockups (Laptop + Smartphone 3D Composition)
   ========================================================================== */
.hero-visual {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  perspective: 1200px;
}

/* Laptop Mockup */
.mockup-laptop {
  position: relative;
  width: 100%;
  animation: float 6s ease-in-out infinite;
  transform-style: preserve-3d;
  z-index: 2;
}

.mockup-screen {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #0d1233;
  border: 8px solid #1c2454;
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6), 0 0 30px rgba(6, 182, 212, 0.15);
}

.mockup-topbar {
  height: 28px;
  background-color: #161e47;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-red { background-color: #ff5f56; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green { background-color: #27c93f; }

.mockup-url {
  font-size: 0.72rem;
  color: var(--color-gray);
  background: rgba(0, 0, 0, 0.3);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
}

.mockup-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: calc(100% - 28px);
  background: linear-gradient(180deg, #0d1233 0%, #0a0e27 100%);
}

.mock-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mock-logo-pill {
  width: 48px;
  height: 10px;
  background: var(--gradient-brand);
  border-radius: 3px;
}

.mock-nav-links {
  display: flex;
  gap: 8px;
}

.mock-nav-links span {
  width: 24px;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
}

.mock-hero-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 0;
  gap: 6px;
}

.mock-headline {
  width: 65%;
  height: 16px;
  background: var(--gradient-brand);
  border-radius: 4px;
}

.mock-text {
  width: 80%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.mock-btn {
  width: 70px;
  height: 16px;
  background: var(--color-primary);
  border-radius: 4px;
  margin-top: 4px;
}

.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
}

.mock-card {
  height: 52px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.mock-card-icon {
  width: 14px;
  height: 14px;
  background: rgba(6, 182, 212, 0.3);
  border-radius: 3px;
}

.mock-card-line {
  width: 70%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.mockup-base {
  width: 110%;
  height: 14px;
  background: #1c2454;
  border-radius: 0 0 14px 14px;
  position: relative;
  left: -5%;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.mockup-base::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 4px;
  background: #0d1233;
  border-radius: 0 0 4px 4px;
}

/* Smartphone Mockup */
.mockup-phone {
  position: absolute;
  bottom: -20px;
  right: -16px;
  width: 135px;
  height: 255px;
  background-color: #0d1233;
  border: 5px solid #232d66;
  border-radius: 22px;
  z-index: 4;
  animation: float 5s ease-in-out infinite 0.8s;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(37, 99, 235, 0.25);
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 10px;
  background: #232d66;
  border-radius: 0 0 8px 8px;
  z-index: 5;
}

.phone-screen {
  padding: 14px 8px 8px;
  height: 100%;
  background: #0a0e27;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.55rem;
  color: var(--color-gray);
  padding: 0 2px;
}

.phone-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 4px;
}

.phone-logo {
  width: 28px;
  height: 6px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

.phone-burger {
  width: 12px;
  height: 6px;
  border-top: 1px solid var(--color-white);
  border-bottom: 1px solid var(--color-white);
}

.phone-hero {
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.phone-title {
  width: 80%;
  height: 10px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

.phone-text {
  width: 90%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.phone-button {
  width: 50px;
  height: 12px;
  background: var(--color-primary);
  border-radius: 3px;
  margin-top: 2px;
}

.phone-cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.phone-card {
  height: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

/* Floating UI Badges */
.float-element {
  position: absolute;
  background: rgba(15, 21, 56, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  animation: float 4.5s ease-in-out infinite;
  z-index: 5;
  pointer-events: none;
}

.float-icon-box {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.float-icon-box.cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-cyan);
}

.float-icon-box.blue {
  background: rgba(37, 99, 235, 0.15);
  color: var(--color-primary-light);
}

.float-icon-box.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.float-info {
  display: flex;
  flex-direction: column;
}

.float-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
}

.float-meta {
  font-size: 0.7rem;
  color: var(--color-gray);
}

.float-code {
  top: 10px;
  left: -24px;
  animation-delay: 0.2s;
}

.float-design {
  bottom: 24px;
  left: -32px;
  animation-delay: 1.4s;
}

.float-speed {
  top: 50%;
  right: -28px;
  transform: translateY(-50%);
  animation-delay: 2.2s;
}

/* ==========================================================================
   Hero Stats Bar
   ========================================================================== */
.hero-stats {
  border-top: 1px solid var(--border-glass);
  padding-top: clamp(24px, 4vw, 36px);
  margin-top: auto;
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
}

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

.stat-number {
  display: block;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 6px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.stat-label {
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  color: var(--color-gray);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border-glass);
}

/* ==========================================================================
   9. Trust Bar
   ========================================================================== */
.trust-bar {
  background-color: var(--color-secondary);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  padding: clamp(28px, 4vw, 36px) 0;
  position: relative;
}

.trust-bar-header {
  text-align: center;
  margin-bottom: 24px;
}

.trust-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-cyan-light);
  letter-spacing: 0.5px;
}

.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.trust-item:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.3);
}

.trust-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.1);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-text-group {
  display: flex;
  flex-direction: column;
}

.trust-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.3;
}

.trust-sub {
  font-size: 0.75rem;
  color: var(--color-gray);
}

/* ==========================================================================
   10. Services Section
   ========================================================================== */
.services {
  background-color: var(--color-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
}

.service-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3vw, 32px);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  overflow: hidden;
}

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

.service-number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 2.75rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  transition: color var(--transition-normal);
}

.service-card:hover .service-number {
  color: rgba(6, 182, 212, 0.15);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--gradient-brand);
  color: var(--color-white);
  border-color: transparent;
  transform: scale(1.06) rotate(-4deg);
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

.service-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-cyan);
  text-decoration: none;
  margin-top: auto;
  transition: color var(--transition-normal);
}

.service-action:hover {
  color: var(--color-cyan-light);
}

.service-arrow {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform var(--transition-normal);
}

.service-card:hover .service-arrow {
  transform: translateX(5px);
}

/* ==========================================================================
   11. Why WebUsta Section
   ========================================================================== */
.why-us {
  background-color: var(--color-secondary);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}

.why-card {
  position: relative;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius-card);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  transition: transform var(--transition-normal), border-color var(--transition-normal), background-color var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.why-number {
  font-size: clamp(3rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.25;
  margin-bottom: 16px;
  transition: opacity var(--transition-normal);
}

.why-card:hover .why-number {
  opacity: 0.6;
}

.why-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

.why-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   12. Portfolio Section & Realistic Browser Previews
   ========================================================================== */
.portfolio {
  background-color: var(--color-bg);
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.filter-btn {
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  color: var(--color-gray);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-normal);
}

.filter-btn:hover {
  color: var(--color-white);
  border-color: var(--color-cyan);
  background: rgba(6, 182, 212, 0.08);
}

.filter-btn.active {
  background: var(--gradient-brand);
  color: var(--color-white);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3.5vw, 36px);
}

.portfolio-card {
  background: var(--color-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), opacity 0.35s ease;
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-glow);
}

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

/* Browser Frame Container */
.portfolio-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #0b102c;
  overflow: hidden;
  border-bottom: 1px solid var(--border-glass);
}

.browser-frame {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0d1233;
}

.browser-topbar {
  height: 28px;
  background: #141b44;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.browser-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.browser-url {
  font-size: 0.7rem;
  color: var(--color-gray);
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 12px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.browser-content {
  flex-grow: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* --- Project 1: Gourmet Restaurant --- */
.project-1 {
  background: linear-gradient(180deg, #181210 0%, #0c0a09 100%);
  gap: 10px;
}

.p1-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}

.p1-logo-placeholder {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fbbf24;
}

.p1-nav-links {
  display: flex;
  gap: 6px;
}

.p1-nav-links span {
  width: 20px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.p1-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 8px 0;
}

.p1-tag {
  font-size: 0.62rem;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.p1-title {
  width: 60%;
  height: 14px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 3px;
}

.p1-subtitle {
  width: 75%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.p1-cta {
  font-size: 0.65rem;
  font-weight: 600;
  color: #000;
  background: #fbbf24;
  padding: 3px 12px;
  border-radius: 4px;
  margin-top: 2px;
}

.p1-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
}

.p1-card {
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.p1-img {
  height: 34px;
  width: 100%;
}

.p1-img-1 { background: linear-gradient(135deg, #78350f, #b45309); }
.p1-img-2 { background: linear-gradient(135deg, #9a3412, #ea580c); }
.p1-img-3 { background: linear-gradient(135deg, #854d0e, #ca8a04); }

.p1-card-text {
  height: 6px;
  width: 70%;
  background: rgba(255, 255, 255, 0.15);
  margin: 5px auto;
  border-radius: 2px;
}

/* --- Project 2: EduPro Dashboard --- */
.project-2 {
  background: #0f172a;
  display: grid;
  grid-template-columns: 46px 1fr;
  padding: 0;
  gap: 0;
}

.p2-sidebar {
  background: #1e293b;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p2-sidebar-item {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.p2-sidebar-item.active {
  background: var(--color-primary);
}

.p2-main {
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 8px;
  background: #0f172a;
}

.p2-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.p2-search-mock {
  width: 80px;
  height: 12px;
  background: #1e293b;
  border-radius: 3px;
}

.p2-user-mock {
  width: 14px;
  height: 14px;
  background: var(--color-cyan);
  border-radius: 50%;
}

.p2-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.p2-stat {
  height: 26px;
  border-radius: 4px;
  background: #1e293b;
}

.p2-stat-1 { border-left: 2px solid var(--color-cyan); }
.p2-stat-2 { border-left: 2px solid var(--color-primary); }
.p2-stat-3 { border-left: 2px solid #10b981; }

.p2-chart {
  height: 48px;
  background: #1e293b;
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 6px 12px;
}

.p2-bar {
  width: 12px;
  border-radius: 2px 2px 0 0;
  background: var(--gradient-brand);
}

.p2-bar-1 { height: 40%; }
.p2-bar-2 { height: 75%; }
.p2-bar-3 { height: 55%; }
.p2-bar-4 { height: 90%; }
.p2-bar-5 { height: 65%; }

.p2-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.p2-list-item {
  height: 12px;
  background: #1e293b;
  border-radius: 3px;
}

/* --- Project 3: Shoply E-Commerce --- */
.project-3 {
  background: #090d16;
  gap: 8px;
}

.p3-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.p3-logo {
  font-size: 0.72rem;
  font-weight: 800;
  color: #38bdf8;
}

.p3-search {
  flex-grow: 1;
  height: 12px;
  background: #1e293b;
  border-radius: 3px;
  max-width: 140px;
}

.p3-cart {
  color: var(--color-white);
}

.p3-banner {
  height: 32px;
  border-radius: 4px;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.p3-banner-tag {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--color-white);
}

.p3-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: auto;
}

.p3-product {
  background: #1e293b;
  border-radius: 4px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.p3-product-img {
  height: 36px;
  border-radius: 3px;
}

.p3-item-1 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.p3-item-2 { background: linear-gradient(135deg, #10b981, #047857); }
.p3-item-3 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.p3-item-4 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

.p3-product-name {
  height: 5px;
  width: 80%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.p3-product-price {
  height: 5px;
  width: 45%;
  background: #38bdf8;
  border-radius: 2px;
}

/* --- Project 4: Business Pro --- */
.project-4 {
  background: #0a1128;
  gap: 8px;
}

.p4-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}

.p4-nav-logo {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-white);
}

.p4-nav-links {
  display: flex;
  gap: 6px;
}

.p4-nav-links span {
  width: 18px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.p4-nav-cta {
  font-size: 0.58rem;
  font-weight: 600;
  padding: 2px 8px;
  background: var(--color-primary);
  border-radius: 3px;
  color: var(--color-white);
}

.p4-hero {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
}

.p4-hero-title {
  height: 12px;
  width: 90%;
  background: var(--gradient-brand);
  border-radius: 3px;
  margin-bottom: 4px;
}

.p4-hero-text {
  height: 6px;
  width: 80%;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  margin-bottom: 6px;
}

.p4-hero-btns {
  display: flex;
  gap: 4px;
}

.p4-btn-primary {
  width: 38px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 2px;
}

.p4-btn-secondary {
  width: 28px;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.p4-hero-img {
  height: 44px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(6, 182, 212, 0.4));
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.p4-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: auto;
}

.p4-feature {
  height: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

/* Hover Overlay */
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 10;
}

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

.portfolio-info {
  padding: clamp(18px, 2.5vw, 24px);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.portfolio-category {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--color-cyan);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

.portfolio-demo-tag {
  font-size: 0.7rem;
  color: var(--color-gray);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.portfolio-name {
  font-size: 1.3rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.portfolio-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.portfolio-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.portfolio-tech span {
  padding: 4px 10px;
  background: var(--color-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--color-gray);
  font-weight: 500;
}

/* ==========================================================================
   13. Portfolio Modal
   ========================================================================== */
.portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-content {
  position: relative;
  background: var(--color-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), var(--shadow-glow);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.4s var(--transition-spring);
  z-index: 2;
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray);
  transition: all var(--transition-normal);
}

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

.modal-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.modal-badge {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-gray);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

.modal-category {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-cyan);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

.modal-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 10px;
}

.modal-desc {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.modal-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.modal-section h4 {
  font-size: 1.05rem;
  color: var(--color-white);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-section p {
  font-size: 0.92rem;
  line-height: 1.6;
}

.modal-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.modal-features li {
  color: var(--color-gray);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-features li::before {
  content: '✓';
  color: var(--color-cyan);
  font-weight: 800;
}

.modal-techs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.tech-pill {
  padding: 6px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-cyan-light);
}

.modal-footer {
  border-top: 1px solid var(--border-glass);
  padding-top: 20px;
}

/* ==========================================================================
   14. Process Timeline (Progressive 6-Step Rail)
   ========================================================================== */
.process {
  background-color: var(--color-secondary);
}

.timeline {
  display: flex;
  position: relative;
  margin-top: clamp(40px, 6vw, 64px);
  justify-content: space-between;
}

.timeline-line {
  position: absolute;
  top: 28px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0.3;
  z-index: 1;
}

.timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 12px;
}

.step-circle {
  width: 56px;
  height: 56px;
  border: 2px solid var(--color-cyan);
  border-radius: 50%;
  background: var(--color-secondary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 20px;
  transition: all var(--transition-normal);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.timeline-step:hover .step-circle,
.timeline-step.step-active .step-circle {
  background: var(--gradient-brand);
  border-color: transparent;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
  transform: scale(1.08);
}

.step-content {
  display: flex;
  flex-direction: column;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   15. Technology Section
   ========================================================================== */
.tech-section {
  background-color: var(--color-bg);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(12px, 1.8vw, 20px);
  max-width: 1200px;
  margin: 0 auto;
}

.tech-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-card);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
  box-sizing: border-box;
  min-height: 70px;
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.tech-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(15, 21, 56, 0.75);
  box-shadow: 0 10px 25px -5px rgba(6, 182, 212, 0.15), var(--shadow-glow);
}

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

.tech-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-cyan);
  transition: all var(--transition-normal);
}

.tech-card:hover .tech-icon-wrap {
  transform: scale(1.08);
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.3);
}

.tech-name {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.3;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: color var(--transition-normal);
}

/* Individual Tech Brand Accent Colors on Hover */
.tech-card:hover .html-icon { color: #f97316; border-color: rgba(249, 115, 22, 0.35); background: rgba(249, 115, 22, 0.12); }
.tech-card:hover .css-icon { color: #38bdf8; border-color: rgba(56, 189, 248, 0.35); background: rgba(56, 189, 248, 0.12); }
.tech-card:hover .js-icon { color: #facc15; border-color: rgba(250, 204, 21, 0.35); background: rgba(250, 204, 21, 0.12); }
.tech-card:hover .react-icon { color: #22d3ee; border-color: rgba(34, 211, 238, 0.35); background: rgba(34, 211, 238, 0.12); }
.tech-card:hover .tailwind-icon { color: #06b6d4; border-color: rgba(6, 182, 212, 0.35); background: rgba(6, 182, 212, 0.12); }
.tech-card:hover .python-icon { color: #38bdf8; border-color: rgba(56, 189, 248, 0.35); background: rgba(56, 189, 248, 0.12); }
.tech-card:hover .django-icon { color: #10b981; border-color: rgba(16, 185, 129, 0.35); background: rgba(16, 185, 129, 0.12); }
.tech-card:hover .postgres-icon { color: #60a5fa; border-color: rgba(96, 165, 250, 0.35); background: rgba(96, 165, 250, 0.12); }
.tech-card:hover .git-icon { color: #f97316; border-color: rgba(249, 115, 22, 0.35); background: rgba(249, 115, 22, 0.12); }
.tech-card:hover .figma-icon { color: #ec4899; border-color: rgba(236, 72, 153, 0.35); background: rgba(236, 72, 153, 0.12); }

/* ==========================================================================
   16. Client Benefits Section
   ========================================================================== */
.benefits {
  background-color: var(--color-secondary);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}

.benefit-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3vw, 32px);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.benefit-number {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-cyan);
  margin-bottom: 14px;
}

.benefit-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

.benefit-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   17. Pricing Section
   ========================================================================== */
.pricing {
  background-color: var(--color-bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: stretch;
}

.pricing-card {
  background: var(--color-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  padding: clamp(32px, 4vw, 44px) clamp(24px, 3vw, 32px);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-glow);
}

.pricing-featured {
  border-color: rgba(6, 182, 212, 0.5);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, rgba(15, 21, 56, 0.95) 100%);
  box-shadow: var(--shadow-glow-lg);
  transform: scale(1.03);
}

.pricing-featured:hover {
  transform: scale(1.05) translateY(-6px);
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.4);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: var(--color-white);
  padding: 4px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.pricing-header {
  text-align: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 24px;
}

.pricing-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.pricing-for {
  font-size: 0.85rem;
  color: var(--color-gray);
  margin-bottom: 16px;
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.price-amount {
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.price-currency {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-cyan);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--color-white);
  line-height: 1.45;
}

.pricing-features li svg {
  color: var(--color-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Pricing Bonus Box */
.pricing-bonus {
  margin-bottom: 28px;
  padding: 12px 16px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px dashed rgba(6, 182, 212, 0.4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition-normal);
}

.pricing-card:hover .pricing-bonus {
  background: rgba(6, 182, 212, 0.12);
  border-color: var(--color-cyan);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.2);
}

.pricing-featured .pricing-bonus {
  background: rgba(6, 182, 212, 0.14);
  border: 1px dashed rgba(6, 182, 212, 0.6);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.15);
}

.bonus-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.bonus-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bonus-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: var(--gradient-brand);
  color: var(--color-white);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  line-height: 1.2;
}

.bonus-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.3;
}

.pricing-card .btn {
  margin-top: auto;
}

/* ==========================================================================
   18. Lead Generation Form
   ========================================================================== */
.lead-section {
  background-color: var(--color-bg);
}

.lead-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.lead-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.lead-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lead-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.lead-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lead-feature-text {
  display: flex;
  flex-direction: column;
}

.lead-feature-text strong {
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: 2px;
}

.lead-feature-text span {
  font-size: 0.85rem;
  color: var(--color-gray);
}

/* Form Container */
.lead-form {
  background: var(--color-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.form-title {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.form-subtitle {
  font-size: 0.88rem;
  color: var(--color-gray);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-white);
}

.form-label .req {
  color: var(--color-cyan);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-size: 1rem; /* Avoids iOS auto-zoom on focus */
  transition: all var(--transition-normal);
  box-sizing: border-box;
}

.form-select {
  cursor: pointer;
  background-color: #0e1438;
}

.form-select option {
  background-color: #0e1438;
  color: var(--color-white);
}

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

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

.form-input.form-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-btn {
  width: 100%;
  margin-top: 8px;
}

.form-privacy-note {
  font-size: 0.75rem;
  text-align: center;
  color: var(--color-muted);
  margin-top: 12px;
  margin-bottom: 0;
}

/* Form Feedback Notification */
.form-feedback {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeInUp 0.3s ease;
}

.form-feedback.error-feedback {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.form-feedback.success-feedback {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

/* ==========================================================================
   19. FAQ Section
   ========================================================================== */
.faq {
  background-color: var(--color-secondary);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

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

.faq-question {
  width: 100%;
  text-align: left;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--color-white);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 600;
  transition: color var(--transition-normal);
}

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

.faq-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cyan);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

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

.faq-item.active .faq-question {
  color: var(--color-cyan);
}

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

.faq-answer p {
  padding-bottom: 22px;
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0;
}

/* ==========================================================================
   20. Final CTA Section
   ========================================================================== */
.cta-section {
  background-color: var(--color-secondary);
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 10vw, 130px) 0;
}

.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-glow-1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(300px, 50vw, 600px);
  height: clamp(300px, 50vw, 600px);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(6, 182, 212, 0.1) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.cta-title {
  margin-bottom: 18px;
}

.cta-desc {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
  margin-bottom: 36px;
}

.cta-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--color-gray);
  flex-wrap: wrap;
}

/* ==========================================================================
   21. Footer
   ========================================================================== */
.footer {
  background-color: var(--color-footer);
  border-top: 1px solid var(--border-glass);
  padding-top: clamp(60px, 8vw, 84px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: clamp(40px, 6vw, 64px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-desc {
  color: var(--color-gray);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-telegram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-cyan);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-pill);
  width: fit-content;
  transition: all var(--transition-normal);
}

.footer-telegram:hover {
  background: var(--color-cyan);
  color: var(--color-bg);
  transform: translateY(-2px);
}

.footer-heading {
  color: var(--color-white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li a {
  color: var(--color-gray);
  font-size: 0.92rem;
  transition: all var(--transition-normal);
  display: inline-block;
}

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

.footer-cta-text {
  font-size: 0.88rem;
  margin-top: 8px;
  margin-bottom: 14px;
}

.footer-cta-btn {
  width: fit-content;
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding: 24px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-muted);
  font-size: 0.88rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-tagline {
  color: var(--color-gray);
}

/* ==========================================================================
   22. Floating Telegram Button
   ========================================================================== */
.floating-tg {
  position: fixed;
  bottom: clamp(16px, 3vw, 28px);
  right: clamp(16px, 3vw, 28px);
  z-index: var(--z-floating);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity var(--transition-normal), visibility var(--transition-normal), transform var(--transition-spring);
  pointer-events: none;
}

.floating-tg.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.floating-tg-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
}

.floating-tg-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 28px rgba(6, 182, 212, 0.5);
}

.floating-tg-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(6, 182, 212, 0.4);
  animation: pulse-ring 2.2s infinite;
  pointer-events: none;
}

.floating-tg-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: #0f1538;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-white);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}

.floating-tg:hover .floating-tg-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==========================================================================
   23. Custom Cursor (Desktop Fine Pointer Only)
   ========================================================================== */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background-color: var(--color-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease, border 0.2s ease;
  will-change: transform;
}

.cursor-dot.cursor-hover {
  width: 28px;
  height: 28px;
  background-color: rgba(6, 182, 212, 0.15);
  border: 1.5px solid var(--color-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

/* ==========================================================================
   24. Responsive Screen Breakpoints Audit
   ========================================================================== */

/* --- Ultra-wide & 4K Displays (>= 1921px) --- */
@media (min-width: 1921px) {
  .container {
    max-width: 1540px;
  }
  .hero-mockup-wrapper {
    max-width: 640px;
  }
}

/* --- Standard Laptops & Desktops (<= 1200px) --- */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
  }
}

/* --- Tablets & Small Laptops (<= 1024px) --- */
@media (max-width: 1024px) {
  .cursor-dot {
    display: none !important;
  }

  /* Floating Header & Mobile Floating Menu */
  .header {
    top: 14px;
    padding: 0 16px;
  }

  .header-scrolled {
    top: 10px;
  }

  .header-inner {
    padding: 8px 16px;
    border-radius: 14px;
    background: rgba(10, 14, 39, 0.88);
  }

  .hamburger {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  /* Floating Mobile Menu Dropdown Card */
  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 25px rgba(6, 182, 212, 0.12);
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: calc(var(--z-header) + 1);
    max-height: calc(100vh - 90px);
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    pointer-events: none;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 1.02rem;
    font-weight: 500;
    color: var(--color-white);
    background: transparent;
    transition: color var(--transition-fast), background-color var(--transition-fast);
  }

  .nav-link:hover,
  .nav-link:active {
    color: var(--color-cyan);
    background: transparent;
  }

  .nav-link.active {
    color: var(--color-cyan);
    font-weight: 700;
    background: transparent;
  }

  .nav-link::after {
    display: none;
  }

  .nav-mobile-cta {
    display: inline-flex;
    margin-top: 10px;
    width: 100%;
    max-width: none;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 10px;
  }

  .section {
    scroll-margin-top: 80px;
  }

  /* Hero Repositioning */
  .hero {
    min-height: auto;
    padding-top: 115px;
    padding-bottom: 50px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-mockup-wrapper {
    max-width: 480px;
    margin: 0 auto;
  }

  .float-speed {
    display: none;
  }

  /* Process Timeline -> Vertical Conversion */
  .timeline {
    flex-direction: column;
    gap: 32px;
  }

  .timeline-line {
    top: 0;
    bottom: 0;
    left: 28px;
    width: 2px;
    height: auto;
  }

  .timeline-step {
    display: flex;
    text-align: left;
    align-items: flex-start;
    gap: 20px;
    padding: 0;
  }

  .step-circle {
    margin: 0;
    flex-shrink: 0;
  }

  .step-content {
    padding-top: 10px;
  }

  /* Trust bar */
  .trust-bar-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Benefits */
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
    gap: 32px;
  }

  .pricing-featured {
    transform: none;
  }

  .pricing-featured:hover {
    transform: translateY(-6px);
  }

  /* Lead form */
  .lead-content {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  /* Technology Section Responsive */
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 680px;
    gap: 14px;
  }
}

/* --- Medium & Small Tablets (<= 834px) --- */
@media (max-width: 834px) {
  .section {
    padding: clamp(60px, 8vw, 90px) 0;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 580px;
    margin: 0 auto;
  }

  .stats-inner {
    gap: 16px;
  }
}

/* --- Mobile Landscape / Large Phones (<= 768px) --- */
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .stats-inner {
    flex-direction: column;
    gap: 20px;
  }

  .stat-divider {
    width: 80px;
    height: 1px;
    margin: 0 auto;
  }

  .services-grid,
  .why-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

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

  .modal-body-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* --- Standard Phablets & Mobile (<= 600px) --- */
@media (max-width: 600px) {
  .trust-bar-inner {
    grid-template-columns: 1fr;
  }

  .float-element {
    display: none;
  }

  .mockup-phone {
    width: 110px;
    height: 210px;
    bottom: -15px;
    right: -8px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

/* --- Standard Mobile (<= 480px) --- */
@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header {
    top: 10px;
    padding: 0 12px;
  }

  .header-scrolled {
    top: 8px;
  }

  .header-inner {
    padding: 6px 12px 6px 14px;
    border-radius: 12px;
  }

  .logo-img {
    width: 34px;
    height: 34px;
  }

  .logo-name {
    font-size: 1.25rem;
  }

  .hamburger {
    width: 38px;
    height: 38px;
  }

  .hero-tag {
    font-size: 0.75rem;
    padding: 5px 12px;
  }

  .service-card,
  .why-card,
  .benefit-card,
  .pricing-card,
  .lead-form {
    padding: 22px 18px;
  }

  .floating-tg {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    right: 14px;
  }

  .floating-tg-btn {
    width: 48px;
    height: 48px;
  }

  .floating-tg-btn svg {
    width: 20px;
    height: 20px;
  }

  .mockup-laptop {
    width: 100%;
  }

  .mockup-base {
    width: 104%;
    left: -2%;
  }

  .mockup-phone {
    width: 95px;
    height: 180px;
    border-width: 4px;
    border-radius: 16px;
  }

  .phone-screen {
    padding: 10px 5px 5px;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .tech-card {
    padding: 12px 14px;
    min-height: 58px;
    gap: 10px;
  }

  .tech-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .tech-icon-wrap svg {
    width: 18px;
    height: 18px;
  }

  .tech-name {
    font-size: 0.85rem;
  }
}

/* --- Compact Mobile Devices (<= 390px, 375px, 360px, 320px) --- */
@media (max-width: 390px) {
  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .btn-lg, .btn-xl {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .portfolio-filters {
    gap: 6px;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
}

@media (max-width: 360px) {
  .header {
    top: 8px;
    padding: 0 8px;
  }

  .header-scrolled {
    top: 6px;
  }

  .header-inner {
    padding: 5px 10px;
    border-radius: 10px;
    gap: 8px;
  }

  .logo-name {
    font-size: 1.15rem;
  }

  .logo-img {
    width: 30px;
    height: 30px;
  }

  .hamburger {
    width: 36px;
    height: 36px;
    padding: 6px;
  }

  .hero {
    padding-top: 95px;
  }

  .step-circle {
    width: 46px;
    height: 46px;
    font-size: 0.95rem;
  }

  .timeline-line {
    left: 23px;
  }

  .faq-question {
    font-size: 0.95rem;
  }

  .tech-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 320px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .hero-mockup-wrapper {
    max-width: 280px;
  }

  .mockup-phone {
    display: none;
  }
}
