/* ==========================================================================
   CLEVIX TECH - DESIGN SYSTEM & CORE STYLES (ENHANCED PALETTE & 80% WIDTH)
   ========================================================================== */

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

:root {
  /* Color Palette - Vibrant Tech Overhaul */
  --bg-primary: #070a13;
  --bg-secondary: #0d1222;
  --bg-surface: #141c30;
  --bg-surface-elevated: #1e2942;
  --bg-card: rgba(20, 28, 48, 0.7);
  --bg-light: #f8fafc;
  --bg-white: #ffffff;

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-inverse: #070a13;

  /* Accent & Vibrant Gradients */
  --accent-primary: #3b82f6;        /* Electric Blue */
  --accent-secondary: #8b5cf6;      /* Electric Violet */
  --accent-cyan: #06b6d4;           /* Tech Cyan */
  --accent-pink: #ec4899;           /* Neon Pink Accent */
  --accent-emerald: #10b981;        /* Success green */
  --accent-amber: #f59e0b;          /* Warning amber */
  
  --gradient-brand: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-brand-subtle: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 50%, rgba(236, 72, 153, 0.1) 100%);
  --gradient-glow: linear-gradient(135deg, rgba(59, 130, 246, 0.4) 0%, rgba(139, 92, 246, 0.3) 100%);
  --gradient-surface: linear-gradient(180deg, rgba(20, 28, 48, 0.8) 0%, rgba(13, 18, 34, 0.95) 100%);
  --gradient-accent-border: linear-gradient(135deg, rgba(59, 130, 246, 0.6) 0%, rgba(139, 92, 246, 0.6) 50%, rgba(236, 72, 153, 0.6) 100%);
  
  /* Borders & Glassmorphism */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(59, 130, 246, 0.35);
  --glass-bg: rgba(13, 18, 34, 0.8);
  --glass-blur: blur(18px);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 28px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 48px -8px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px -5px rgba(59, 130, 246, 0.35);
  --shadow-glow-purple: 0 0 40px -5px rgba(139, 92, 246, 0.35);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing & Layout - 80% SCREEN WIDTH */
  --container-width: 82%;
  --container-max: 1600px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --header-height: 80px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

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

ul, ol {
  list-style: none;
}

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

/* Container - Responsive 80% Screen Width */
.container {
  width: var(--container-width);
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (max-width: 1200px) {
  .container {
    width: 88%;
  }
}

@media (max-width: 768px) {
  .container {
    width: 94%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Typography Helpers - Standardized Responsive Scale */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  word-break: break-word;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.35;
}

h4 {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  font-weight: 700;
  line-height: 1.4;
}

h5 {
  font-size: 1.05rem;
  font-weight: 600;
}

h6 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(1.85rem, 6.8vw, 2.35rem);
    line-height: 1.2;
  }

  h2 {
    font-size: clamp(1.5rem, 5.5vw, 1.85rem);
    line-height: 1.25;
  }

  h3 {
    font-size: 1.22rem;
    line-height: 1.32;
  }

  h4 {
    font-size: 1.1rem;
  }
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  padding: 0.4rem 1rem;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-full);
  margin-bottom: 1.15rem;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
  max-width: 100%;
}

@media (max-width: 640px) {
  .eyebrow {
    font-size: 0.72rem;
    padding: 0.32rem 0.75rem;
    letter-spacing: 0.05em;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
}

.section-header {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 3.8rem;
}

.section-title {
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

/* Section Spacing */
.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-secondary);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(59, 130, 246, 0.18);
  color: var(--accent-primary);
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.badge-green {
  background: rgba(16, 185, 129, 0.18);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.badge-popular {
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.45);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 4px 22px rgba(59, 130, 246, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline {
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.05);
}

.btn-outline:hover {
  background: var(--accent-primary);
  color: #fff;
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.86rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.08rem;
  border-radius: var(--radius-md);
}

/* Glowing Tech Ambience */
.bg-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 20%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 20%, #000 40%, transparent 100%);
}

.glow-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

.glow-orb-blue {
  background: #3b82f6;
  top: 8%;
  left: -80px;
}

.glow-orb-purple {
  background: #8b5cf6;
  top: 25%;
  right: -80px;
}

.glow-orb-pink {
  background: #ec4899;
  bottom: 10%;
  left: 20%;
  width: 450px;
  height: 450px;
  opacity: 0.2;
}

/* ==========================================================================
   SCROLL REVEAL / SLIDE ANIMATIONS
   "our edge", "how we work", "our principles"
   ========================================================================== */
.reveal-slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-active {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

/* ==========================================================================
   MOBILE VIEW ANIMATIONS (ALL SECTIONS & CARD VIEWS)
   ========================================================================== */
@media (max-width: 768px) {
  /* Smooth entrance and subtle breathing neon ambiance for all mobile cards */
  .service-card-3d,
  .gallery-card,
  .process-step-card,
  .pricing-card,
  .testimonial-card,
  .value-card,
  .contact-card-box,
  .feature-box {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  }

  /* Interactive tactile tap feedback on touch */
  .service-card-3d:active,
  .gallery-card:active,
  .process-step-card:active,
  .pricing-card:active,
  .testimonial-card:active,
  .value-card:active,
  .feature-box:active,
  .contact-card-box:active,
  .tech-badge:active {
    transform: scale(0.98);
    transition: transform 0.12s ease;
  }

  /* Subtle mobile neon breathing glow on card borders */
  .gallery-card,
  .pricing-card,
  .contact-card-box,
  .feature-box {
    position: relative;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6), 0 0 14px rgba(59, 130, 246, 0.12);
  }

  .gallery-card-web {
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6), 0 0 16px rgba(6, 182, 212, 0.18);
  }

  .gallery-card-app {
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6), 0 0 16px rgba(168, 85, 247, 0.18);
  }

  .gallery-card-seo {
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6), 0 0 16px rgba(16, 185, 129, 0.18);
  }

  /* Eyebrows subtle neon shine pulse on mobile */
  .eyebrow {
    display: inline-flex;
    animation: mobileEyebrowPulse 3s ease-in-out infinite;
  }

  @keyframes mobileEyebrowPulse {
    0%, 100% {
      filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.4));
    }
    50% {
      filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.7));
    }
  }

  /* Staggered reveal timing on mobile for swift responsiveness */
  .reveal-slide-up,
  .reveal-slide-left,
  .reveal-slide-right {
    transition-duration: 0.5s !important;
  }
}

/* Prefers 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;
  }
  .reveal-slide-up, .reveal-slide-left, .reveal-slide-right {
    opacity: 1 !important;
    transform: none !important;
  }
}
