/*
Theme Name: Elite Agency Theme
Theme URI: https://elite-theme.com
Author: Elite Designer
Author URI: https://elite-theme.com
Description: Epic web design agency theme with jaw-dropping animations and effects
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elite-theme
Tags: modern, agency, web-design, IT-services, portfolio
*/

/* ============================================
   ELITE DESIGN SYSTEM - FOUNDATION
   ============================================ */
:root {
  /* Locked Neon Cyber Theme Colors for AlbDesk */
  --theme-primary: #00ff88;
  --theme-secondary: #00d9ff;
  --theme-accent: #ff0080;

  /* Premium Color Palette */
  --color-bg-dark: #0a0a0a;
  --color-bg-darker: #050505;
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-muted: rgba(255, 255, 255, 0.5);

  /* Elite Gradients (Now using theme variables) */
  --gradient-cosmic: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 50%, var(--theme-accent) 100%);
  --gradient-ocean: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
  --gradient-fire: linear-gradient(135deg, var(--theme-accent) 0%, var(--theme-primary) 100%);
  --gradient-nature: linear-gradient(135deg, var(--theme-secondary) 0%, var(--theme-accent) 50%, var(--theme-primary) 100%);
  --gradient-sunset: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-accent) 50%, var(--theme-secondary) 100%);
  --gradient-royal: linear-gradient(135deg, #141e30 0%, #243b55 100%);
  --gradient-neon: linear-gradient(135deg, var(--theme-accent) 0%, var(--theme-secondary) 100%);

  /* Mesh Gradient */
  --gradient-mesh:
    radial-gradient(at 40% 20%, hsla(280,100%,70%,0.3) 0px, transparent 50%),
    radial-gradient(at 80% 0%, hsla(189,100%,56%,0.3) 0px, transparent 50%),
    radial-gradient(at 0% 50%, hsla(340,100%,76%,0.3) 0px, transparent 50%),
    radial-gradient(at 80% 50%, hsla(240,100%,70%,0.3) 0px, transparent 50%),
    radial-gradient(at 0% 100%, hsla(22,100%,77%,0.3) 0px, transparent 50%),
    radial-gradient(at 80% 100%, hsla(260,100%,70%,0.3) 0px, transparent 50%);

  /* Spacing System */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;
  --space-3xl: 12rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-2xl: 48px;
  --radius-round: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.3);
  --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.5);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  --transition-base: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  --transition-slow: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  --transition-elastic: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-primary);
  background: var(--color-bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

h1 { font-size: clamp(2.5rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 6vw, 4rem); }
h3 { font-size: clamp(1.75rem, 4vw, 3rem); }
h4 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h5 { font-size: clamp(1.25rem, 2.5vw, 2rem); }
h6 { font-size: clamp(1rem, 2vw, 1.5rem); }

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  line-height: 1.8;
}

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

/* ============================================
   ELITE HERO SECTION
   ============================================ */
.elite-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-bg-darker);
}

.elite-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  animation: liquid-morph 25s ease-in-out infinite;
  opacity: 0.8;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: blob-morph 15s ease-in-out infinite;
  mix-blend-mode: screen;
  will-change: transform;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.blob-2 {
  width: 700px;
  height: 700px;
  background: linear-gradient(135deg, #f093fb, #f5576c);
  bottom: 10%;
  right: 10%;
  animation-delay: 3s;
}

.blob-3 {
  width: 650px;
  height: 650px;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  top: 50%;
  left: 50%;
  animation-delay: 6s;
}

@keyframes blob-morph {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  25% {
    border-radius: 40% 60% 50% 50% / 50% 60% 40% 60%;
    transform: translate(100px, -100px) scale(1.15) rotate(90deg);
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    transform: translate(-100px, 100px) scale(1.1) rotate(180deg);
  }
  75% {
    border-radius: 50% 50% 60% 40% / 60% 40% 60% 40%;
    transform: translate(100px, 100px) scale(1.05) rotate(270deg);
  }
}

@keyframes liquid-morph {
  0%, 100% { transform: translate(0%, 0%) rotate(0deg) scale(1); }
  25% { transform: translate(-5%, 5%) rotate(90deg) scale(1.1); }
  50% { transform: translate(5%, -5%) rotate(180deg) scale(0.95); }
  75% { transform: translate(-5%, -5%) rotate(270deg) scale(1.05); }
}

.elite-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1400px;
  padding: var(--space-lg);
}

.elite-hero-title {
  font-size: clamp(3rem, 12vw, 10rem);
  font-weight: 900;
  line-height: 0.85;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.05em;
  position: relative;
}

.holographic {
  background: linear-gradient(
    135deg,
    var(--theme-primary) 0%,
    var(--theme-secondary) 25%,
    var(--theme-accent) 50%,
    var(--theme-secondary) 75%,
    var(--theme-primary) 100%
  );
  background-size: 300% 300%;
  animation: holographic-shift 10s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  transition: background 0.5s ease;
}

@keyframes holographic-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.elite-hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  letter-spacing: 0.02em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   MAGNETIC BUTTONS
   ============================================ */
.magnetic-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 4rem;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  border: none;
  border-radius: var(--radius-round);
  cursor: pointer;
  transition: all var(--transition-elastic);
  box-shadow: 0 10px 40px color-mix(in srgb, var(--theme-primary) 40%, transparent);
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.magnetic-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.8s, height 0.8s;
}

.magnetic-button:hover::before {
  width: 400px;
  height: 400px;
}

.magnetic-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 60px color-mix(in srgb, var(--theme-primary) 60%, transparent);
}

.magnetic-button:active {
  transform: translateY(-2px) scale(1.02);
}

/* ============================================
   ELITE CARDS
   ============================================ */
.elite-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-xl);
  overflow: hidden;
  transition: all var(--transition-slow);
}

.elite-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  transition: all 0.8s;
}

.elite-card:hover::before {
  left: 100%;
}

.elite-card:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(102, 126, 234, 0.4),
    inset 0 0 60px rgba(255, 255, 255, 0.05);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.elite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-2xl) var(--space-md);
  max-width: 1600px;
  margin: 0 auto;
}

/* ============================================
   NEON TEXT EFFECT
   ============================================ */
.neon-text {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fff;
  text-shadow:
    0 0 10px rgba(102, 126, 234, 1),
    0 0 20px rgba(102, 126, 234, 0.8),
    0 0 40px rgba(102, 126, 234, 0.6),
    0 0 80px rgba(102, 126, 234, 0.4),
    0 0 120px rgba(102, 126, 234, 0.2);
  animation: neon-pulse 3s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
  from {
    text-shadow:
      0 0 10px rgba(102, 126, 234, 0.8),
      0 0 20px rgba(102, 126, 234, 0.6),
      0 0 40px rgba(102, 126, 234, 0.4);
  }
  to {
    text-shadow:
      0 0 20px rgba(102, 126, 234, 1),
      0 0 40px rgba(102, 126, 234, 0.9),
      0 0 60px rgba(102, 126, 234, 0.7),
      0 0 100px rgba(102, 126, 234, 0.5),
      0 0 140px rgba(102, 126, 234, 0.3);
  }
}

/* ============================================
   GRADIENT BORDERS
   ============================================ */
.gradient-border {
  position: relative;
  padding: 4px;
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #4facfe);
  background-size: 400% 400%;
  animation: gradient-rotate 10s ease infinite;
  border-radius: var(--radius-xl);
}

.gradient-border-inner {
  background: var(--color-bg-dark);
  border-radius: calc(var(--radius-xl) - 4px);
  padding: var(--space-lg);
}

@keyframes gradient-rotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in-up {
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   PAGE HERO SECTIONS
   ============================================ */
.page-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
  overflow: hidden;
  padding: 8rem 2rem 4rem;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

.breadcrumb-nav a {
  color: var(--theme-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
  color: var(--theme-secondary);
}

.page-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.gradient-text {
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary), var(--theme-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientFlow 8s ease infinite;
}

.page-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,0.7);
  margin-bottom: 3rem;
  line-height: 1.8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--theme-primary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(10px); }
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 14px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-cosmic);
  border-radius: 7px;
  border: 2px solid var(--color-bg-darker);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-ocean);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4rem;
    --space-2xl: 5rem;
  }

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

@media (max-width: 768px) {
  .blob {
    width: 300px !important;
    height: 300px !important;
  }

  .elite-hero-content {
    padding: var(--space-md);
  }
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

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

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

/* ============================================
   EPIC WEB DESIGN AGENCY STYLES
   ============================================ */

/* EPIC ANIMATED BACKGROUND */
.epic-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  overflow: hidden;
  padding-top: 100px; /* Space for fixed navigation */
}

.epic-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, color-mix(in srgb, var(--theme-primary) 30%, transparent), transparent 50%),
    radial-gradient(circle at 80% 80%, color-mix(in srgb, var(--theme-secondary) 30%, transparent), transparent 50%),
    radial-gradient(circle at 40% 20%, color-mix(in srgb, var(--theme-accent) 30%, transparent), transparent 50%);
  animation: epic-bg-shift 15s ease infinite;
}

@keyframes epic-bg-shift {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
  50% { transform: scale(1.1) rotate(5deg); opacity: 1; }
}

/* FLOATING GEOMETRIC SHAPES */
.geo-shape {
  position: absolute;
  border: 2px solid color-mix(in srgb, var(--theme-primary) 30%, transparent);
  animation: float-rotate 20s ease-in-out infinite;
  backdrop-filter: blur(2px);
}

.geo-shape:nth-child(1) {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 5%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation-delay: 0s;
}

.geo-shape:nth-child(2) {
  width: 200px;
  height: 200px;
  top: 60%;
  right: 10%;
  border-radius: 50%;
  animation-delay: 3s;
}

.geo-shape:nth-child(3) {
  width: 250px;
  height: 250px;
  bottom: 10%;
  left: 50%;
  border-radius: 20%;
  transform: rotate(45deg);
  animation-delay: 6s;
}

@keyframes float-rotate {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
    border-color: color-mix(in srgb, var(--theme-primary) 30%, transparent);
  }
  25% {
    transform: translate(50px, -50px) rotate(90deg);
    border-color: color-mix(in srgb, var(--theme-secondary) 30%, transparent);
  }
  50% {
    transform: translate(-30px, 30px) rotate(180deg);
    border-color: color-mix(in srgb, var(--theme-accent) 30%, transparent);
  }
  75% {
    transform: translate(30px, 50px) rotate(270deg);
    border-color: color-mix(in srgb, var(--theme-secondary) 30%, transparent);
  }
}

/* EPIC TEXT REVEAL */
.epic-title {
  font-size: clamp(3rem, 15vw, 12rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.epic-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: word-reveal 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.epic-title .word:nth-child(1) { animation-delay: 0.1s; }
.epic-title .word:nth-child(2) { animation-delay: 0.3s; }
.epic-title .word:nth-child(3) { animation-delay: 0.5s; }

@keyframes word-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* GLITCH TEXT EFFECT */
.glitch {
  position: relative;
  color: white;
  font-weight: 900;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.glitch::before {
  color: #00f3ff;
  animation: glitch-anim-1 2s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch::after {
  color: #ff006e;
  animation: glitch-anim-2 3s infinite;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-anim-1 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-3px, 3px); }
  40% { transform: translate(-3px, -3px); }
  60% { transform: translate(3px, 3px); }
  80% { transform: translate(3px, -3px); }
}

@keyframes glitch-anim-2 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(3px, -3px); }
  40% { transform: translate(3px, 3px); }
  60% { transform: translate(-3px, -3px); }
  80% { transform: translate(-3px, 3px); }
}

/* SERVICES CARDS - ULTRA MODERN */
.service-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(147, 51, 234, 0.2),
    transparent
  );
  transition: left 0.8s;
}

.service-card:hover::before {
  left: 100%;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary), var(--theme-accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.6s;
}

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

.service-card:hover {
  transform: translateY(-20px) scale(1.02);
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 30px 90px color-mix(in srgb, var(--theme-primary) 30%, transparent),
    0 0 100px color-mix(in srgb, var(--theme-primary) 20%, transparent),
    inset 0 0 60px color-mix(in srgb, var(--theme-primary) 10%, transparent);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.service-icon::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: icon-shine 3s linear infinite;
}

@keyframes icon-shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 20px 40px color-mix(in srgb, var(--theme-primary) 50%, transparent);
}

/* CHECKMARK BADGES */
.checkmark-badge {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* SPLIT SCREEN EFFECT */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  position: relative;
}

.split-left {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  position: relative;
  overflow: hidden;
}

.split-right {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  position: relative;
}

.split-divider {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--theme-primary), var(--theme-secondary), var(--theme-accent));
  transform: translateX(-50%);
  box-shadow: 0 0 30px color-mix(in srgb, var(--theme-primary) 80%, transparent);
  animation: divider-pulse 2s ease-in-out infinite;
}

@keyframes divider-pulse {
  0%, 100% { box-shadow: 0 0 30px color-mix(in srgb, var(--theme-primary) 80%, transparent); }
  50% { box-shadow: 0 0 60px var(--theme-primary); }
}

/* TECH STACK SHOWCASE */
.tech-item {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  margin: 0.5rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.tech-item:hover {
  transform: translateY(-5px) scale(1.1);
  background: color-mix(in srgb, var(--theme-primary) 20%, transparent);
  border-color: color-mix(in srgb, var(--theme-primary) 50%, transparent);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--theme-primary) 40%, transparent);
}

/* ANIMATED UNDERLINE */
.animated-link {
  position: relative;
  display: inline-block;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
}

.animated-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--theme-primary), var(--theme-secondary));
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animated-link:hover::after {
  width: 100%;
}

/* NUMBER COUNTER DISPLAY */
.stat-number {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary), var(--theme-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}

/* INFINITY SCROLL MARQUEE */
.infinite-scroll {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  background: rgba(0, 0, 0, 0.3);
}

.scroll-content {
  display: flex;
  gap: 3rem;
  animation: scroll-infinite 30s linear infinite;
  width: fit-content;
}

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

/* CTA BUTTON - EPIC */
.epic-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 4rem;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 40px color-mix(in srgb, var(--theme-primary) 40%, transparent);
}

.epic-cta::before {
  content: '';
  position: absolute;
  inset: -100%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.epic-cta:hover::before {
  transform: translateX(100%);
}

.epic-cta:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 60px color-mix(in srgb, var(--theme-primary) 60%, transparent);
}

.epic-cta .arrow {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.epic-cta:hover .arrow {
  transform: translateX(10px);
}

/* PORTFOLIO HOVER EFFECT */
.portfolio-item {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/10;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.9), rgba(59, 130, 246, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s;
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.2);
}

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

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================ */

/* Tablet & Desktop (1024px and up) */
@media (max-width: 1200px) {
  .epic-hero {
    padding: 8rem 1.5rem 6rem;
  }

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

  .split-left, .split-right {
    padding: 3rem;
  }
}

/* Tablet Portrait (1024px and below) */
@media (max-width: 1024px) {
  .split-section {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .split-divider {
    display: none;
  }

  .geo-shape {
    display: none;
  }

  .epic-title {
    font-size: clamp(2.5rem, 10vw, 5rem);
  }

  .epic-hero {
    padding: 9rem 1.5rem 5rem;
  }

  /* Disable custom cursor on tablets */
  .custom-cursor,
  .cursor-follower {
    display: none !important;
  }

  /* Reduce particle count */
  #particles-canvas {
    opacity: 0.3;
  }
}

/* Mobile Landscape & Small Tablets (768px and below) */
@media (max-width: 768px) {
  /* Typography scaling */
  .epic-title {
    font-size: clamp(2rem, 12vw, 3.5rem);
    line-height: 1.1;
  }

  /* Hero section */
  .epic-hero {
    padding: 8rem 1rem 4rem;
    min-height: auto;
  }

  .epic-bg {
    opacity: 0.4;
  }

  /* Service cards - single column */
  .elite-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }

  .service-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  /* Buttons */
  .epic-cta {
    padding: 1rem 2rem;
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
  }

  /* Split sections */
  .split-left, .split-right {
    padding: 3rem 1.5rem;
    min-height: auto;
  }

  /* Stats section */
  .stat-number {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  /* Tech marquee */
  .tech-item {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    margin: 0.25rem;
  }

  /* Infinite scroll speed */
  .scroll-content {
    animation-duration: 15s;
  }

  /* Sections padding */
  section {
    padding: 4rem 1rem !important;
  }

  /* Disable magnetic effect on mobile */
  .magnetic-button {
    transition: transform 0.3s ease !important;
  }

  /* Checkmarks */
  .checkmark-badge {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}

/* Mobile Portrait (480px and below) */
@media (max-width: 480px) {
  /* Extra small text adjustments */
  .epic-title {
    font-size: clamp(1.75rem, 12vw, 2.5rem);
  }

  .epic-hero {
    padding: 7rem 1rem 3rem;
  }

  /* Stats layout */
  .epic-hero > div > div {
    gap: 2rem !important;
  }

  .stat-number {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  /* Service cards */
  .service-card {
    padding: 1.5rem 1rem;
  }

  .service-card h3 {
    font-size: 1.5rem !important;
  }

  .service-card p {
    font-size: 1rem !important;
  }

  /* Buttons */
  .epic-cta {
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
  }

  /* Split sections */
  .split-left, .split-right {
    padding: 2.5rem 1rem;
  }

  /* Blog grid */
  article.service-card {
    padding: 1.5rem 1rem;
  }

  /* Footer */
  footer {
    padding: 3rem 1rem 1.5rem !important;
  }

  footer > div > div {
    gap: 2rem !important;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Disable hover-dependent effects */
  .custom-cursor,
  .cursor-follower {
    display: none !important;
  }

  /* Larger touch targets - WCAG AA standard (48x48px) */
  .nav-link,
  .nav-links a {
    padding: 0.75rem;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .epic-cta,
  .magnetic-button,
  button {
    min-height: 48px;
    min-width: 120px;
    -webkit-tap-highlight-color: transparent;
  }

  /* Touch feedback for buttons */
  .epic-cta:active,
  .magnetic-button:active,
  button:active {
    transform: scale(0.97);
    opacity: 0.9;
  }

  /* Simplify animations for performance */
  .service-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  }

  .service-card:active {
    transform: scale(0.98);
  }

  /* Remove magnetic effect */
  .magnetic-button:hover {
    transform: translateY(-2px) scale(1.02) !important;
  }

  /* Simplify glitch effect */
  .glitch::before,
  .glitch::after {
    display: none;
  }

  /* Better touch scrolling */
  * {
    -webkit-overflow-scrolling: touch;
  }

  /* Prevent text selection on UI elements */
  button,
  .theme-toggle,
  .nav-link,
  .theme-option {
    -webkit-user-select: none;
    user-select: none;
  }

  /* Links should have active states for touch */
  a:active {
    opacity: 0.7;
  }

  /* Service cards touch feedback */
  .service-card:active {
    background: rgba(255, 255, 255, 0.12) !important;
  }

  /* Tech items touch feedback */
  .tech-item:active {
    transform: scale(0.95) !important;
  }
}
