@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=JetBrains+Mono:wght@300;400;500;600;700&display=swap');
@import './modern-dark.css';
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    /* Advanced Color System */
    /* Updated primary gradient to meet WCAG 2.1 AA contrast requirements (4.5:1) */
    --primary-gradient: linear-gradient(135deg, #526ad6 0%, #764ba2 100%);
    --primary-gradient-accessible: linear-gradient(135deg, #526ad6 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --danger-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --dark-gradient: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.2);
    --backdrop-blur: blur(20px);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-neon: 0 0 40px rgba(82, 106, 214, 0.4);
    
    /* 3D Transform Variables */
    --rotate-x: 0deg;
    --rotate-y: 0deg;
    --rotate-z: 0deg;
    --translate-z: 0px;
    --perspective: 1000px;
    --transform-style: preserve-3d;
    
    /* Enhanced Glassmorphism */
    --glass-bg-light: rgba(255, 255, 255, 0.12);
    --glass-bg-dark: rgba(0, 0, 0, 0.4);
    --glass-border-light: rgba(255, 255, 255, 0.3);
    --glass-border-glow: rgba(82, 106, 214, 0.5);
    --backdrop-blur-strong: blur(30px);
    
    /* Gradient Effects - Updated for accessibility */
    --gradient-glow: linear-gradient(135deg, #526ad6 0%, #764ba2 50%, #f093fb 100%);
    --gradient-shimmer: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    --gradient-text-glow: linear-gradient(135deg, #ffffff 0%, #526ad6 50%, #764ba2 100%);
    
    /* Animation Timings */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --duration-fast: 0.2s;
    --duration-normal: 0.3s;
    --duration-slow: 0.6s;
    --elevator-progress: 0;
  }

  html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
    scrollbar-color: #526ad6 #050509;
    scrollbar-width: thin;
  }

  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
  }

  * {
    box-sizing: border-box;
  }

  ::selection {
    background: rgba(82, 106, 214, 0.3);
    color: #ffffff;
  }

  ::-webkit-scrollbar {
    width: 18px;
  }

  ::-webkit-scrollbar-track {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 18% 82%, rgba(255, 255, 255, 0.12)),
      repeating-linear-gradient(180deg, #050509 0 30px, #0d1020 30px 32px);
    border-left: 1px solid rgba(82, 106, 214, 0.3);
  }

  ::-webkit-scrollbar-thumb {
    border: 3px solid #050509;
    border-radius: 8px;
    background:
      linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, 0.65) 48% 52%, transparent 53%),
      linear-gradient(180deg, rgba(147, 197, 253, 0.95), rgba(82, 106, 214, 0.9) 48%, rgba(240, 147, 251, 0.78));
    box-shadow:
      inset 0 0 12px rgba(255, 255, 255, 0.25),
      0 0 18px rgba(82, 106, 214, 0.75);
  }

  ::-webkit-scrollbar-thumb:hover {
    background:
      linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, 0.8) 48% 52%, transparent 53%),
      linear-gradient(180deg, #bfdbfe, #526ad6 48%, #f093fb);
  }
}

/* Scroll-linked elevator experience */
.site-shell {
  min-height: 100vh;
}

.hero-elevator {
  overflow: hidden;
  padding-top: 6rem;
}

.hero-image-layer {
  transform: scale(calc(1.06 + (var(--elevator-progress) * 0.06)));
  transform-origin: center;
}

.hero-overlay {
  background:
    radial-gradient(circle at 50% 22%, rgba(82, 106, 214, 0.28), transparent 32%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.28) 48%, rgba(0, 0, 0, 0.78)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.34), #050509 92%);
}

.hero-grid {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-copy {
  width: min(100%, 1180px);
}

.hero-layout {
  position: relative;
  min-height: 340px;
}

.hero-main {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.hero-title-wrap {
  display: flex;
  width: 100%;
  justify-content: center;
}

.hero-title-flash {
  display: flex;
  flex-direction: column;
  min-height: 2.35em;
  width: 100%;
  font-size: clamp(2.15rem, 6.2vw, 6.35rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow: 0 0 36px rgba(82, 106, 214, 0.28);
}

.hero-static {
  color: #ffffff;
}

.animated-text-shell {
  display: inline-grid;
  grid-template-areas: "stack";
  justify-items: center;
  max-width: 100%;
  white-space: nowrap;
}

.animated-text-sizer,
.animated-text-live {
  grid-area: stack;
}

.animated-text-sizer {
  visibility: hidden;
}

.animated-text-live {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  min-width: 100%;
}

.hero-lede {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.7vw, 1.45rem);
  line-height: 1.55;
  letter-spacing: 0;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.featured-project-wrap {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.featured-project-about {
  margin-left: 0;
  margin-right: auto;
}

.featured-carousel-heading-wrap {
  margin-bottom: 0.65rem;
}

.featured-carousel-heading {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(196, 211, 246, 0.82);
}

.featured-carousel-heading-underline {
  display: block;
  margin-top: 0.36rem;
  width: 104px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(100, 156, 255, 0.95), rgba(136, 122, 255, 0.55));
}

.featured-project-hero {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: min(40vw, 460px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 0;
}

.featured-carousel-shell {
  position: relative;
  isolation: isolate;
}

.featured-carousel-fade-wrap {
  position: relative;
  width: 100%;
}

.featured-carousel-glow {
  position: absolute;
  inset: -14px -10px;
  z-index: -1;
  border-radius: 18px;
  background:
    radial-gradient(circle at 16% 22%, rgba(66, 160, 255, 0.22), transparent 50%),
    radial-gradient(circle at 82% 80%, rgba(126, 109, 255, 0.18), transparent 45%);
  filter: blur(24px);
  opacity: 0.7;
  pointer-events: none;
}

.featured-project-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  padding: 1.25rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(82, 106, 214, 0.08)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  backdrop-filter: blur(18px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.featured-carousel-card {
  position: relative;
  overflow: hidden;
  width: 620px;
  max-width: 100%;
  height: 100%;
  border-radius: 14px;
  border: 1px solid rgba(156, 178, 244, 0.33);
  background:
    linear-gradient(120deg, rgba(24, 38, 62, 0.88), rgba(28, 34, 58, 0.82)),
    rgba(255, 255, 255, 0.02);
  box-shadow: 0 18px 44px rgba(0, 8, 28, 0.4);
  padding: 1.45rem 1.05rem 0.8rem;
}

.featured-carousel-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.11) 50%, transparent 80%);
  transform: translateX(-135%);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.featured-carousel-card:hover::before {
  transform: translateX(135%);
}

.featured-carousel-meta {
  position: absolute;
  top: 0.72rem;
  left: 1.2rem;
  right: 1.2rem;
  display: flex;
  justify-content: flex-end;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(204, 217, 246, 0.7);
}

.featured-carousel-body {
  position: relative;
  min-height: 82px;
  padding-left: 98px;
  width: 100%;
}

.featured-carousel-body .logo-orb-modern {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.featured-carousel-copy {
  margin: 0;
}

.featured-carousel-category {
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(146, 183, 255, 0.9);
}

.logo-orb-modern {
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.featured-project-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 999px;
  padding: 0.82rem;
}

.featured-carousel-fade-card {
  width: 100%;
}

.featured-carousel-description {
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-project-about .featured-carousel-fade-wrap {
  height: 208px;
  min-height: 208px;
  max-height: 208px;
}

.featured-project-about .featured-carousel-card {
  height: 100%;
}

.featured-project-about .featured-carousel-copy {
  min-height: 78px;
}

.featured-project-about .featured-carousel-copy h3 {
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}



.featured-project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(82, 106, 214, 0.7);
  box-shadow: 0 22px 70px rgba(82, 106, 214, 0.28);
}


@keyframes floor-ping {
  0%, 100% {
    opacity: 0.32;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.35);
  }
}

@layer components {
  /* Enhanced Visual Effects Utilities */
  .glass-effect {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
  }
  
  .glass-effect-strong {
    background: var(--glass-bg-light);
    backdrop-filter: var(--backdrop-blur-strong);
    border: 1px solid var(--glass-border-light);
  }
  
  /* Custom border-radius utilities for consistent design system */
  .rounded-card {
    border-radius: 20px;
  }
  
  .rounded-input {
    border-radius: 12px;
  }
  
  .rounded-button {
    border-radius: 50px;
  }
  
  .gradient-text {
    background: var(--gradient-text-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .gradient-text-animated {
    background: var(--gradient-glow);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
  }

  /* Visible Focus Indicators - WCAG 2.1 AA Compliant */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible,
  [tabindex]:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
  }

  /* Enhanced focus for navigation links */
  .nav-link:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 4px;
    background: rgba(59, 130, 246, 0.1);
  }

  /* Focus for form inputs */
  .form-input-revolutionary:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  }

  /* Focus for buttons */
  .cta-primary:focus-visible,
  .cta-secondary:focus-visible,
  .submit-btn-revolutionary:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
  }

  /* Focus for service cards and interactive elements */
  .service-card-3d:focus-within {
    outline: none;
  }

  /* Skip to content link (for keyboard navigation) */
  .skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: #3b82f6;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 9999;
    border-radius: 0 0 4px 0;
  }

  .skip-to-content:focus {
    top: 0;
  }
  
  .shimmer-effect {
    position: relative;
    overflow: hidden;
  }
  
  .shimmer-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-shimmer);
    animation: shimmer 3s ease-in-out infinite;
    transform: translateX(-100%);
  }
  
  .glow-border {
    position: relative;
  }
  
  .glow-border::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: var(--gradient-glow);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-smooth);
    filter: blur(10px);
  }
  
  .glow-border:hover::after {
    opacity: 0.8;
  }
  
  .transform-3d {
    transform-style: var(--transform-style);
    perspective: var(--perspective);
  }
  
  .card-3d {
    transition: transform var(--duration-slow) var(--ease-smooth);
    will-change: transform;
  }
  
  .card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg) translateZ(20px);
  }

  /* Revolutionary Navigation */
  .nav-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 8px 24px;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-container:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: var(--shadow-neon);
  }

  .nav-logo {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
  }

  .nav-link {
    position: relative;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-decoration: none;
  }

  .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
  }

  .nav-link:hover::after {
    width: 80%;
  }

  /* Revolutionary Hero Section */
  .hero-revolution {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(82, 106, 214, 0.15) 0%, transparent 50%),
                linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
    perspective: var(--perspective);
  }

  /* Advanced Background System with 3D Motion */
  .bg-orbs {
    position: absolute;
    inset: 0;
    z-index: 1;
    perspective: var(--perspective);
    transform-style: var(--transform-style);
  }

  .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: float-3d 20s ease-in-out infinite;
    will-change: transform;
    transform-style: var(--transform-style);
  }

  .orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(82, 106, 214, 0.5) 0%, rgba(82, 106, 214, 0.2) 40%, transparent 70%);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
  }

  .orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.4) 0%, rgba(240, 147, 251, 0.15) 40%, transparent 70%);
    bottom: -5%;
    left: -5%;
    animation-delay: -5s;
  }

  .orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.45) 0%, rgba(79, 172, 254, 0.2) 40%, transparent 70%);
    top: 30%;
    left: 20%;
    animation-delay: -10s;
  }

  .orb-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(250, 112, 154, 0.35) 0%, rgba(250, 112, 154, 0.15) 40%, transparent 70%);
    top: 20%;
    right: 30%;
    animation-delay: -15s;
  }
  
  .orb-5 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.4) 0%, rgba(118, 75, 162, 0.15) 40%, transparent 70%);
    bottom: 20%;
    right: 15%;
    animation-delay: -7s;
  }

  /* 3D Grid Background with Perspective */
  .grid-3d {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: 
      linear-gradient(rgba(82, 106, 214, 0.15) 2px, transparent 2px),
      linear-gradient(90deg, rgba(82, 106, 214, 0.15) 2px, transparent 2px);
    background-size: 60px 60px;
    transform: perspective(800px) rotateX(60deg) scale(2);
    transform-origin: center center;
    opacity: 0.4;
    animation: grid-pulse 4s ease-in-out infinite;
    will-change: opacity, transform;
    pointer-events: none;
  }
  
  .grid-3d::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
  }

  /* Hero Content */
  .hero-content-revolutionary {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
  }

  .hero-title-revolutionary {
    font-size: clamp(2rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #526ad6 50%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.05em;
    animation: title-glow 3s ease-in-out infinite;
    will-change: opacity;
    position: relative;
  }
  
  .hero-title-revolutionary::before {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background: var(--gradient-text-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(20px);
    opacity: 0.6;
    z-index: -1;
    animation: glow-pulse 2s ease-in-out infinite;
  }

  .hero-subtitle {
    font-size: clamp(0.875rem, 2.5vw, 2rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.4;
  }

  .hero-cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
  }

  .cta-primary {
    position: relative;
    padding: 16px 32px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-smooth);
    box-shadow: 0 10px 30px rgba(82, 106, 214, 0.3);
    will-change: transform, box-shadow;
  }

  .cta-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(82, 106, 214, 0.5);
  }

  .cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-shimmer);
    transition: transform 0.6s var(--ease-smooth);
    animation: shimmer 3s ease-in-out infinite;
    transform: translateX(-100%);
  }

  .cta-primary:hover::before {
    transform: translateX(100%);
  }
  
  .cta-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 2px;
    background: var(--gradient-glow);
    -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 var(--duration-normal) var(--ease-smooth);
  }
  
  .cta-primary:hover::after {
    opacity: 0.6;
  }

  .cta-secondary {
    position: relative;
    padding: 16px 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    backdrop-filter: var(--backdrop-blur);
    transition: all 0.3s ease;
  }

  .cta-secondary:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
  }

  /* Floating Stats */
  .floating-stats {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3rem;
  }

  .stat-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    text-align: center;
    min-width: 120px;
    transition: all 0.3s ease;
  }

  .stat-card:hover {
    transform: translateY(-5px) rotateY(5deg);
    background: rgba(255, 255, 255, 0.12);
  }

  .stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
  }

  .stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    margin-top: 0.5rem;
  }

  /* Revolutionary Sections */
  .section-revolutionary {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }

  /* Futuristic Section Dividers */
  .section-revolutionary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
      transparent 0%, 
      rgba(59, 130, 246, 0.5) 20%, 
      rgba(147, 51, 234, 0.8) 50%, 
      rgba(59, 130, 246, 0.5) 80%, 
      transparent 100%
    );
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.5);
  }

  .section-revolutionary::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.3) 0%, transparent 70%);
    transform: translateX(-50%);
    animation: pulse-glow 3s ease-in-out infinite;
    pointer-events: none;
  }

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

  .section-dark {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 100%);
    position: relative;
    z-index: 1;
  }

  .section-gradient {
    background: linear-gradient(135deg, #526ad6 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    z-index: 1;
  }

  /* Revolutionary Contact Section */
  .contact-revolutionary {
    background: radial-gradient(ellipse at center, rgba(240, 147, 251, 0.15) 0%, transparent 50%),
                linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 100%);
    padding: 8rem 0;
    position: relative;
    isolation: isolate;
  }

  /* 3D Service Cards */
  .services-revolutionary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    max-width: 980px;
    margin: 0 auto;
    perspective: 1000px;
  }

  .service-card-3d {
    position: relative;
    height: 400px;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    outline: none;
  }

  .service-card-3d:focus {
    outline: none;
  }

  .service-card-3d:hover {
    transform: rotateY(10deg) rotateX(5deg) translateZ(30px) scale(1.05);
  }

  .service-card-face {
    position: absolute;
    inset: 0;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backface-visibility: hidden;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
  }

  .service-card-face::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(147, 51, 234, 0.5));
    -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.4s ease;
  }

  .service-card-3d:hover .service-card-face::before {
    opacity: 1;
  }

  .service-card-3d:hover .service-card-face {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.4),
                0 0 80px rgba(147, 51, 234, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  .service-icon-3d {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
  }

  .service-card-3d:hover .service-icon-3d {
    transform: scale(1.1) rotateZ(-5deg);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.6);
  }

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

  .service-card-3d:hover .service-icon-3d::before {
    transform: translateX(100%);
  }

  .service-title-3d {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
  }

  .service-description-3d {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
  }

  .service-link-3d {
    margin-top: auto;
    padding: 12px 24px;
    background: var(--secondary-gradient);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .service-link-3d:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 20px rgba(240, 147, 251, 0.3);
  }

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

  .about-content {
    position: relative;
  }

  .about-title {
    font-size: clamp(1.75rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #526ad6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
  }

  .about-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.7;
  }

  .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
  }

  .tech-tag {
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: var(--backdrop-blur);
    transition: all 0.3s ease;
  }

  .tech-tag:hover {
    background: var(--primary-gradient);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(82, 106, 214, 0.3);
  }

  /* 3D Skills Visualization */
  .skills-3d {
    position: relative;
    height: 500px;
    perspective: 1000px;
  }

  .skill-orb {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: float-skill 6s ease-in-out infinite;
  }

  .skill-orb:hover {
    transform: translateZ(30px) scale(1.1);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-neon);
  }

  .skill-orb:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
  }

  .skill-orb:nth-child(2) {
    top: 30%;
    right: 10%;
    animation-delay: -1s;
  }

  .skill-orb:nth-child(3) {
    bottom: 30%;
    left: 10%;
    animation-delay: -2s;
  }

  .skill-orb:nth-child(4) {
    bottom: 10%;
    right: 30%;
    animation-delay: -3s;
  }

  .skill-orb:nth-child(5) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -4s;
  }

  /* Terminal Window */
  .terminal-window {
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15),
                0 0 0 1px rgba(59, 130, 246, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
  }

  .terminal-window::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(147, 51, 234, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
    animation: border-glow 3s ease-in-out infinite;
  }

  @keyframes border-glow {
    0%, 100% {
      opacity: 0.6;
    }
    50% {
      opacity: 1;
    }
  }

  .terminal-header {
    background: rgba(45, 45, 45, 0.3);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  }

  .terminal-buttons {
    display: flex;
    gap: 8px;
  }

  .terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
  }

  .terminal-button.close {
    background: #ff5f56;
    box-shadow: 0 0 15px #ff5f56;
  }

  .terminal-button.minimize {
    background: #ffbd2e;
    box-shadow: 0 0 15px #ffbd2e;
  }

  .terminal-button.maximize {
    background: #27c93f;
    box-shadow: 0 0 15px #27c93f;
  }

  .terminal-title {
    color: rgba(59, 130, 246, 0.9);
    font-size: 0.875rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
  }

  .terminal-body {
    padding: 24px;
    font-size: 0.9375rem;
    line-height: 1.8;
    color: #e0e0e0;
    background: rgba(0, 0, 0, 0.2);
  }

  .terminal-line {
    margin-bottom: 8px;
    display: flex;
    gap: 12px;
    animation: terminal-fade-in 0.5s ease-out forwards;
    opacity: 0;
  }

  .terminal-line:nth-child(1) {
    animation-delay: 0.2s;
  }

  .terminal-line:nth-child(2) {
    animation-delay: 0.8s;
  }

  .terminal-line:nth-child(3) {
    animation-delay: 1.4s;
  }

  .terminal-line:nth-child(4) {
    animation-delay: 2s;
  }

  .terminal-line:nth-child(5) {
    animation-delay: 2.6s;
  }

  .terminal-line:nth-child(6) {
    animation-delay: 3.2s;
  }

  .terminal-prompt {
    color: #3b82f6;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
  }

  .terminal-command {
    color: #10b981;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
  }

  .terminal-output {
    color: rgba(255, 255, 255, 0.8);
  }

  .terminal-output.success {
    color: #10b981;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
  }

  .terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
    animation: cursor-blink 1s step-end infinite;
    margin-left: 2px;
  }

  @keyframes terminal-fade-in {
    from {
      opacity: 0;
      transform: translateX(-10px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes cursor-blink {
    0%, 50% {
      opacity: 1;
    }
    51%, 100% {
      opacity: 0;
    }
  }

  /* Revolutionary Contact Section */
  .contact-revolutionary {
    background: radial-gradient(ellipse at center, rgba(240, 147, 251, 0.1) 0%, transparent 50%),
                linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 100%);
    padding: 8rem 0;
    position: relative;
  }

  .contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }

  .contact-info {
    position: relative;
  }

  .contact-form-revolutionary {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
  }

  .contact-form-revolutionary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(82, 106, 214, 0.1), transparent);
    animation: rotate-border 8s linear infinite;
    z-index: -1;
  }

  .form-group-revolutionary {
    margin-bottom: 2rem;
    position: relative;
  }

  .form-input-revolutionary {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
  }

  .form-input-revolutionary:focus {
    outline: none;
    border-color: rgba(82, 106, 214, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(82, 106, 214, 0.2);
  }

  .form-input-revolutionary::placeholder {
    color: rgba(255, 255, 255, 0.5);
  }

  .form-label-revolutionary {
    position: absolute;
    top: -10px;
    left: 12px;
    background: #0a0a0a;
    padding: 2px 12px;
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    background: linear-gradient(to bottom, #0a0a0a 0%, #0a0a0a 100%);
    border-radius: 4px;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    z-index: 10;
  }

  .submit-btn-revolutionary {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .submit-btn-revolutionary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(82, 106, 214, 0.4);
  }

  .submit-btn-revolutionary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: transform 0.5s;
    transform: translateX(-100%);
  }

  .submit-btn-revolutionary:hover::before {
    transform: translateX(100%);
  }
}

/* Advanced Animations with GPU Acceleration */
/* Optimized: Removed filter changes, using only transform for GPU acceleration */
@keyframes float-3d {
  0%, 100% { 
    transform: translate3d(0, 0, 0) rotateY(0deg) rotateX(0deg);
  }
  25% { 
    transform: translate3d(-30px, -40px, 20px) rotateY(90deg) rotateX(10deg);
  }
  50% { 
    transform: translate3d(-20px, -20px, 40px) rotateY(180deg) rotateX(-10deg);
  }
  75% { 
    transform: translate3d(30px, -50px, 20px) rotateY(270deg) rotateX(10deg);
  }
}

/* Optimized: Using only opacity and transform for GPU acceleration */
@keyframes grid-pulse {
  0%, 100% { 
    opacity: 0.4;
    transform: perspective(800px) rotateX(60deg) scale(2);
  }
  50% { 
    opacity: 0.6;
    transform: perspective(800px) rotateX(60deg) scale(2.05);
  }
}

/* Optimized: Replaced filter with opacity for GPU acceleration */
@keyframes title-glow {
  0%, 100% { 
    opacity: 0.9;
  }
  50% { 
    opacity: 1;
  }
}

@keyframes glow-pulse {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
}

/* Optimized: Using transform instead of left property for GPU acceleration */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  50%, 100% {
    transform: translateX(100%);
  }
}

/* Optimized: Using transform scale instead of background-position for better performance */
@keyframes gradient-shift {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.95;
  }
}

@keyframes float-skill {
  0%, 100% { 
    transform: translateY(0px) rotateX(0deg);
  }
  33% { 
    transform: translateY(-15px) rotateX(15deg);
  }
  66% { 
    transform: translateY(-5px) rotateX(-10deg);
  }
}

@keyframes rotate-border {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes particle-drift {
  0% { 
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: scale(1);
  }
  90% {
    opacity: 1;
  }
  100% { 
    transform: translateY(-10vh) translateX(100px) scale(0);
    opacity: 0;
  }
}

/* Premium contact form treatment */
.contact-revolutionary {
  background:
    radial-gradient(circle at 20% 20%, rgba(82, 106, 214, 0.2), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(240, 147, 251, 0.14), transparent 26%),
    linear-gradient(135deg, #06070d 0%, #10111f 48%, #07070b 100%);
  overflow: hidden;
}

.contact-revolutionary::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(82, 106, 214, 0.08) 12.2%, transparent 12.4% 87.6%, rgba(240, 147, 251, 0.06) 87.8%, transparent 88%),
    repeating-linear-gradient(180deg, transparent 0 92px, rgba(255, 255, 255, 0.035) 93px);
  pointer-events: none;
}

.contact-container {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: stretch;
}

.contact-info {
  min-height: 100%;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.contact-kicker,
.contact-form-eyebrow {
  display: inline-flex;
  color: #93c5fd;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact-info-title {
  margin-top: 1.1rem;
  color: #ffffff;
  font-size: clamp(1.8rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.contact-info-copy {
  margin-top: 1.35rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  line-height: 1.7;
}

.contact-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin: 2rem 0;
}

.contact-proof-grid div {
  min-height: 82px;
  padding: 0.85rem;
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.contact-proof-grid strong,
.contact-proof-grid span {
  display: block;
  font-family: 'Audiowide', sans-serif;
  letter-spacing: 0;
}

.contact-proof-grid strong {
  color: #ffffff;
  font-size: 1.15rem;
}

.contact-proof-grid span {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.contact-links {
  display: grid;
  gap: 0.9rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-height: 56px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.contact-link:hover {
  transform: translateY(-2px);
  border-color: rgba(82, 106, 214, 0.52);
  background: rgba(82, 106, 214, 0.12);
}

.contact-link svg {
  color: #93c5fd;
}

.contact-form-revolutionary {
  border-radius: 8px;
  padding: clamp(1.4rem, 3vw, 3rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    radial-gradient(circle at 80% 0%, rgba(82, 106, 214, 0.22), transparent 34%),
    rgba(3, 5, 12, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(82, 106, 214, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.contact-form-revolutionary::before {
  inset: -1px;
  width: auto;
  height: auto;
  background: linear-gradient(135deg, rgba(82, 106, 214, 0.52), transparent 32%, rgba(240, 147, 251, 0.34));
  opacity: 0.42;
  animation: none;
  z-index: -1;
}

.contact-form-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-form-title {
  margin-top: 0.55rem;
  color: #ffffff;
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: 0;
}

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

.form-label-revolutionary {
  position: static;
  display: inline-flex;
  margin-bottom: 0.45rem;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  text-transform: uppercase;
  text-shadow: none;
}

.form-input-revolutionary {
  min-height: 58px;
  padding: 1rem 1.05rem;
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.15);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

textarea.form-input-revolutionary {
  min-height: 150px;
}

.form-input-revolutionary:focus {
  border-color: rgba(147, 197, 253, 0.76);
  background:
    linear-gradient(180deg, rgba(82, 106, 214, 0.14), rgba(255, 255, 255, 0.045)),
    rgba(0, 0, 0, 0.2);
  box-shadow:
    0 0 0 3px rgba(82, 106, 214, 0.18),
    0 0 32px rgba(82, 106, 214, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.form-input-revolutionary::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.submit-btn-revolutionary {
  min-height: 60px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 18% 82%, rgba(255, 255, 255, 0.12)),
    linear-gradient(135deg, #526ad6 0%, #764ba2 58%, #f093fb 100%);
  box-shadow: 0 18px 50px rgba(82, 106, 214, 0.36);
}

.submit-btn-revolutionary:disabled {
  cursor: wait;
  opacity: 0.72;
}

.contact-alert {
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.contact-alert-success {
  border: 1px solid rgba(16, 185, 129, 0.38);
  background: rgba(16, 185, 129, 0.14);
  color: #86efac;
}

.contact-alert-error {
  border: 1px solid rgba(248, 113, 113, 0.42);
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
}

@media (max-width: 768px) {
  .contact-info,
  .contact-form-revolutionary {
    padding: 1.35rem;
  }

  .contact-proof-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-header {
    flex-direction: column;
  }

  .contact-link {
    width: 100%;
    min-width: 0;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .nav-container {
    top: 10px;
    padding: 6px 20px;
  }

  .hero-title-revolutionary {
    font-size: clamp(1.75rem, 7vw, 5rem);
  }

  .hero-subtitle {
    font-size: clamp(0.875rem, 2.5vw, 1.5rem);
  }

  /* Stack multi-column layouts into single columns */
  .about-revolutionary {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Adjust service card grid - 2 columns on tablet */
  .services-revolutionary {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }

  /* Adjust section padding for tablet */
  .section-revolutionary {
    padding: 5rem 0;
  }

  /* Adjust hero content padding */
  .hero-content-revolutionary {
    padding: 0 1.5rem;
  }

  /* Stack floating stats */
  .floating-stats {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  /* Reduce skill orb sizes */
  .skills-3d {
    height: 400px;
  }

  .skill-orb {
    width: 100px;
    height: 100px;
    font-size: 0.8rem;
  }

  /* Adjust about text size */
  .about-text {
    font-size: 1rem;
  }

  /* Adjust contact form padding */
  .contact-form-revolutionary {
    padding: 2.5rem;
  }

  /* Adjust service card height */
  .service-card-3d {
    height: 380px;
  }
}

@media (max-width: 768px) {
  .hero-elevator {
    min-height: auto;
    padding: 7rem 0 4rem;
  }

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

  .hero-layout {
    min-height: auto;
    gap: 1.15rem;
  }

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

  .hero-title-wrap,
  .hero-cta-row {
    justify-content: center;
  }

  .hero-title-flash {
    min-height: 3.15em;
    font-size: clamp(1.75rem, 8vw, 3.2rem);
    align-items: center;
  }

  .hero-lede {
    margin: 0 auto;
  }

  .featured-project-wrap {
    margin-left: auto;
    margin-right: auto;
  }

  .featured-project-hero {
    position: static;
    transform: none;
    width: 100%;
    align-items: center;
    margin-top: 0.4rem;
  }

  .featured-project-about {
    margin-left: auto;
    margin-right: auto;
  }

  .featured-carousel-heading-wrap {
    text-align: left;
  }

  .featured-project-card {
    gap: 0.9rem;
    padding: 1.15rem 0.85rem 0.65rem;
  }

  .featured-project-card .text-left {
    text-align: left;
  }

  .featured-carousel-meta {
    top: 0.45rem;
    left: 0.8rem;
    right: 0.8rem;
    font-size: 0.58rem;
  }

  .featured-carousel-body {
    width: 100%;
    min-height: 72px;
    padding-left: 90px;
  }

  .featured-project-about .featured-carousel-fade-wrap {
    height: 194px;
    min-height: 194px;
    max-height: 194px;
  }

  .featured-project-about .featured-carousel-copy {
    min-height: 74px;
  }

  /* Mobile Navigation Adjustments */
  .nav-modern {
    padding: 12px 0;
  }

  /* Hero Section Mobile Adjustments */
  .hero-title-revolutionary {
    font-size: clamp(1.5rem, 10vw, 3rem);
    margin-bottom: 1.5rem;
  }

  .hero-subtitle {
    font-size: clamp(0.875rem, 4vw, 1.25rem);
    margin-bottom: 2rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
  }

  .cta-primary, .cta-secondary {
    width: 100%;
    max-width: 300px;
    min-height: 44px;
    min-width: 44px;
    padding: 14px 28px;
    font-size: 1rem;
  }

  /* Services Grid - Single Column */
  .services-revolutionary {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Service Cards - Reduced 3D Effects on Mobile */
  .service-card-3d {
    height: auto;
    min-height: 320px;
  }

  .service-card-3d:hover {
    transform: translateY(-5px) scale(1.02);
  }

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

  .service-icon-3d {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
  }

  .service-title-3d {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .service-description-3d {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
  }

  /* Skill Orbs - Smaller on Mobile */
  .skills-3d {
    height: 350px;
  }

  .skill-orb {
    width: 90px;
    height: 90px;
    font-size: 0.75rem;
    min-height: 44px;
    min-width: 44px;
  }

  /* Tech Stack - Centered */
  .tech-stack {
    justify-content: center;
  }

  /* Tech Tags - Touch-Friendly */
  .tech-tag {
    min-height: 44px;
    min-width: 44px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
  }

  /* Section Padding - Reduced */
  .section-revolutionary {
    padding: 3rem 0;
  }

  /* Typography Scaling */
  .about-title {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
    margin-bottom: 1.5rem;
  }

  .about-text {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
  }

  /* Contact Form - Full Width with Reduced Padding */
  .contact-form-revolutionary {
    padding: 1.5rem;
  }

  .form-group-revolutionary {
    margin-bottom: 1.5rem;
  }

  .form-input-revolutionary {
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
  }

  .submit-btn-revolutionary {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }

  /* ========================================
     TOUCH-FRIENDLY INTERACTION TARGETS
     All interactive elements meet 44×44px minimum
     per WCAG 2.1 AA and Requirement 4.6
     ======================================== */

  /* All Buttons - Base Touch Target */
  button {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 16px;
  }

  /* All Links - Base Touch Target */
  a {
    min-height: 44px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
  }

  /* Submit Buttons */
  .submit-btn-revolutionary {
    min-height: 44px;
    min-width: 44px;
    padding: 14px 24px;
  }

  /* Service Links */
  .service-link-3d {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 24px;
  }

  /* Form Inputs - Touch-Friendly with iOS Zoom Prevention */
  .form-input-revolutionary,
  input[type="text"],
  input[type="email"],
  textarea {
    min-height: 44px;
    padding: 12px 16px;
    font-size: 16px; /* Prevents iOS auto-zoom */
  }

  /* Navigation Links */
  .nav-link,
  .link-underline {
    min-height: 44px;
    padding: 12px 18px;
  }

  /* Technology Tags */
  .tech-tag {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 20px;
  }

  /* CTA Buttons */
  .cta-primary,
  .cta-secondary,
  .btn-magnetic {
    min-height: 44px;
    min-width: 44px;
    padding: 14px 28px;
  }

  /* Social Media Links */
  a[href*="github.com"],
  a[href*="linkedin.com"] {
    min-height: 44px;
    min-width: 44px;
    padding: 12px;
  }

  /* Mobile Menu Links */
  .mobile-menu a {
    min-height: 44px;
    padding: 12px 16px;
  }

  /* Contact Section Links */
  .contact-info a {
    min-height: 44px;
    padding: 12px 16px;
  }

  /* Featured Project Card - Touch-Friendly */
  .logo-orb-modern {
    width: 60px !important;
    height: 60px !important;
  }

  /* Hero Content - Adjust Spacing */
  .hero-content-revolutionary {
    padding: 0 1rem;
    max-width: 100%;
  }

  /* ========================================
     MOBILE ANIMATION OPTIMIZATIONS
     Reduce or disable performance-intensive animations
     while maintaining essential user feedback
     ======================================== */

  /* Background Orbs - Significantly Reduced */
  .orb {
    animation-duration: 40s; /* Slower animation */
    filter: blur(40px); /* Less blur for better performance */
    opacity: 0.4; /* Slightly more visible since blur is reduced */
    will-change: auto; /* Remove will-change to reduce GPU memory */
  }

  /* Disable complex 3D transforms in orb animation */
  @keyframes float-3d {
    0%, 100% { 
      transform: translate3d(0, 0, 0);
    }
    50% { 
      transform: translate3d(-20px, -30px, 0);
    }
  }

  /* 3D Grid Background - Disabled */
  .grid-3d {
    display: none; /* Completely remove for mobile performance */
  }

  /* Hero Title Glow - Simplified */
  .hero-title-revolutionary {
    animation: none; /* Disable title glow animation */
    filter: none; /* Remove filter effects */
  }

  .hero-title-revolutionary::before {
    display: none; /* Remove glow pseudo-element */
  }

  /* Button Shimmer - Disabled */
  .cta-primary::before {
    animation: none; /* Disable shimmer animation */
    display: none; /* Remove shimmer element */
  }

  .cta-primary::after {
    display: none; /* Remove rotating border effect */
  }

  /* Service Icon Shimmer - Disabled */
  .service-icon-3d::before {
    display: none; /* Remove shimmer on service icons */
  }

  /* Skill Orb Float Animation - Simplified */
  .skill-orb {
    animation: none; /* Disable floating animation */
  }

  /* Contact Form Rotating Border - Disabled */
  .contact-form-revolutionary::before {
    animation: none; /* Disable rotating border */
    display: none;
  }

  /* Gradient Text Animation - Static */
  .gradient-text-animated {
    animation: none; /* Disable gradient shift */
    background-position: 0% 50%; /* Static position */
  }

  /* Glow Border Effects - Simplified */
  .glow-border::after {
    filter: none; /* Remove blur from glow */
    opacity: 0; /* Keep hidden by default */
  }

  /* Section Divider Animation - Disabled */
  .section-revolutionary::before {
    animation: none; /* Disable pulse glow */
    opacity: 0.5; /* Static opacity */
  }

  /* Disable 3D transforms on mobile for performance */
  .card-3d:hover {
    transform: translateY(-5px) scale(1.02); /* Simple 2D transform only */
  }

  .service-card-3d:hover {
    transform: translateY(-5px) scale(1.02); /* Simple 2D transform only */
  }

  /* Stat Cards - Simplified Hover */
  .stat-card:hover {
    transform: translateY(-3px); /* Simple 2D transform only */
  }

  /* Tech Tags - Simplified Hover */
  .tech-tag:hover {
    transform: translateY(-2px); /* Simple 2D transform only */
  }

  /* Logo Orb - Simplified */
  .logo-orb-modern::before {
    animation: none; /* Disable shimmer */
  }

  .logo-orb-modern:hover {
    transform: scale(1.05); /* Reduced scale */
  }

  /* Maintain Essential User Feedback Animations */
  /* These animations are kept for usability and user feedback */
  
  /* Button hover feedback - KEEP */
  .cta-primary:hover,
  .cta-secondary:hover,
  .submit-btn-revolutionary:hover {
    transform: translateY(-2px); /* Subtle feedback */
    transition: transform 0.2s ease; /* Quick response */
  }

  /* Form input focus - KEEP */
  .form-input-revolutionary:focus {
    border-color: rgba(82, 106, 214, 0.5);
    box-shadow: 0 0 15px rgba(82, 106, 214, 0.2); /* Reduced glow */
    transition: all 0.2s ease;
  }

  /* Navigation link hover - KEEP */
  .nav-link:hover,
  .link-underline:hover {
    color: #ffffff;
    transition: color 0.2s ease;
  }

  /* Scroll reveal animations - KEEP but simplified */
  .reveal {
    transition-duration: 0.5s; /* Faster transitions */
  }

  .reveal.active {
    transition-duration: 0.5s;
  }

  /* Remove stagger delays on mobile for faster perceived load */
  .reveal:nth-child(1),
  .reveal:nth-child(2),
  .reveal:nth-child(3),
  .reveal:nth-child(4),
  .reveal:nth-child(5),
  .reveal:nth-child(6),
  .reveal:nth-child(7),
  .reveal:nth-child(8) {
    transition-delay: 0s; /* All reveal at once */
  }

  /* Stat Cards - Stack Vertically */
  .floating-stats {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
  }

  .stat-card {
    width: 100%;
    max-width: 200px;
    padding: 1.25rem 1.5rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .stat-label {
    font-size: 0.8125rem;
  }

  /* About Section - Stack Content */
  .about-revolutionary {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Contact Section - Stack Content */
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info h3 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .contact-info p {
    font-size: 0.9375rem;
  }

  /* Adjust hero section height for mobile */
  .hero-revolution {
    min-height: 100vh;
    padding: 4rem 0 2rem;
  }

  /* Navigation spacing */
  .nav-modern .max-w-7xl {
    padding: 0 1rem;
  }
}

/* Tablet Specific Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Services Grid - 2 Columns on Tablet */
  .services-revolutionary {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Hero Section - Adjust Spacing */
  .hero-content-revolutionary {
    max-width: 700px;
    padding: 0 2rem;
  }

  .hero-title-revolutionary {
    font-size: clamp(2rem, 7vw, 4.5rem);
  }

  .hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.75rem);
  }

  /* About Section - Stack to Single Column */
  .about-revolutionary {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Contact Section - Stack to Single Column */
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Section Padding */
  .section-revolutionary {
    padding: 5rem 0;
  }

  /* Service Cards */
  .service-card-3d {
    height: 380px;
  }

  .service-card-face {
    padding: 2.5rem 2rem;
  }

  /* Skills Section */
  .skills-3d {
    height: 400px;
  }

  .skill-orb {
    width: 110px;
    height: 110px;
    font-size: 0.875rem;
  }

  /* Contact Form */
  .contact-form-revolutionary {
    padding: 2.5rem;
  }

  /* About Text */
  .about-text {
    font-size: 1.0625rem;
  }

  /* Reduce Animation Intensity */
  .orb {
    animation-duration: 25s;
    filter: blur(50px);
  }

  /* Tech Stack */
  .tech-stack {
    gap: 0.875rem;
  }

  .tech-tag {
    padding: 10px 18px;
    font-size: 0.875rem;
  }
}

/* ========================================
   TOUCH-FRIENDLY INTERACTION TARGETS
   Ensures all interactive elements meet WCAG 2.1 AA
   minimum touch target size of 44×44 pixels
   ======================================== */

/* Mobile viewport - Apply to all devices below 768px */
@media (max-width: 768px) {
  /* Navigation Links */
  .nav-link {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Mobile Menu Toggle Button */
  .md\:hidden button {
    min-height: 44px;
    min-width: 44px;
    padding: 10px;
  }

  /* Mobile Menu Links */
  .mobile-menu nav a {
    min-height: 44px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
  }

  /* Primary and Secondary CTA Buttons */
  .cta-primary,
  .cta-secondary,
  .btn-magnetic {
    min-height: 44px;
    min-width: 44px;
    padding: 14px 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Featured Project Card Link */
  .logo-orb-modern {
    min-height: 44px;
    min-width: 44px;
  }

  /* Social Links in Hero Section */
  a[href*="github.com"],
  a[href*="linkedin.com"] {
    min-height: 44px;
    min-width: 44px;
    padding: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Service Cards - Entire card should be tappable */
  .service-card-3d {
    min-height: 44px;
  }

  .service-link-3d {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Technology Tags */
  .tech-tag {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
  }

  /* Skill Orbs */
  .skill-orb {
    min-height: 44px;
    min-width: 44px;
    width: 90px;
    height: 90px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Contact Form Inputs */
  .form-input-revolutionary {
    min-height: 44px;
    padding: 12px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Contact Form Submit Button */
  .submit-btn-revolutionary {
    min-height: 44px;
    min-width: 44px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Contact Section Email and Social Links */
  .contact-info a {
    min-height: 44px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Explicitly left-align */
    gap: 12px;
    width: fit-content; /* Shrink to content width */
  }

  /* Contact Form Popup Close Button */
  button[aria-label*="Close"] {
    min-height: 44px;
    min-width: 44px;
    padding: 10px;
  }

  /* Contact Form Popup Inputs */
  #contact-name,
  #contact-email,
  #contact-message {
    min-height: 44px;
    padding: 12px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Ensure adequate spacing between interactive elements */
  .hero-cta-group {
    gap: 16px;
  }

  .tech-stack {
    gap: 12px;
  }

  /* Mobile Menu Social Links */
  .mobile-menu a[href*="github.com"],
  .mobile-menu a[href*="linkedin.com"] {
    min-height: 44px;
    min-width: 44px;
    padding: 12px;
  }
}

/* Touch Device Specific - Applies to any touch-capable device */
@media (hover: none) and (pointer: coarse) {
  /* Ensure all interactive elements are at least 44x44px */
  button,
  a,
  input,
  textarea,
  select,
  .nav-link,
  .tech-tag,
  .skill-orb,
  .service-link-3d,
  .cta-primary,
  .cta-secondary,
  .btn-magnetic {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 16px;
  }

  /* Specific adjustments for form elements */
  input[type="text"],
  input[type="email"],
  textarea {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Disable hover effects on touch devices */
  .service-card-3d:hover,
  .card-3d:hover,
  .skill-orb:hover {
    transform: none;
  }

  /* Simplify animations for touch devices */
  .orb {
    animation: none;
    opacity: 0.3;
  }

  .grid-3d {
    display: none;
  }

  /* Increase tap target for small icons */
  svg {
    pointer-events: none; /* Let parent handle clicks */
  }

  /* Ensure links with icons have proper touch targets */
  a svg {
    margin: 0;
  }
}

/* Scroll Reveal Animation System */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

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

/* Staggered animation delays for multiple reveal elements */
.reveal:nth-child(1) {
  transition-delay: 0s;
}

.reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.reveal:nth-child(4) {
  transition-delay: 0.3s;
}

.reveal:nth-child(5) {
  transition-delay: 0.4s;
}

.reveal:nth-child(6) {
  transition-delay: 0.5s;
}

.reveal:nth-child(7) {
  transition-delay: 0.6s;
}

.reveal:nth-child(8) {
  transition-delay: 0.7s;
}

/* Alternative reveal animations */
.reveal-fade {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.reveal-fade.active {
  opacity: 1;
}

.reveal-slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-slide-up.active {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-image-layer {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

.reveal-slide-left {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-slide-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-slide-right {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-slide-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Smooth easing functions for different animation styles */
.reveal-smooth {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-bounce {
  transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.reveal-ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.reveal-ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
}

/* Performance Optimizations and Accessibility */
@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;
  }
  
  /* Disable all keyframe animations */
  .orb,
  .grid-3d,
  .hero-title-revolutionary,
  .cta-primary::before,
  .service-icon::before,
  .skill-orb,
  .contact-form::before {
    animation: none !important;
  }
  
  /* Disable animated pseudo-elements */
  .hero-title-revolutionary::before,
  .cta-primary::before,
  .service-icon::before {
    display: none;
  }
  
  /* Disable scroll reveal animations for reduced motion */
  .reveal,
  .reveal-fade,
  .reveal-slide-up,
  .reveal-slide-left,
  .reveal-slide-right,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  
  /* Disable 3D transforms */
  .card-3d,
  .service-card,
  .stat-card,
  .flip-card {
    transform: none !important;
    transition: none !important;
  }
  
  /* Keep hover effects but remove transitions */
  .card-3d:hover,
  .service-card:hover,
  .stat-card:hover,
  .tech-tag:hover,
  .cta-primary:hover,
  .cta-secondary:hover {
    transition: none !important;
  }
  
  /* Disable gradient animations */
  .gradient-text,
  .hero-title-revolutionary {
    animation: none !important;
    background-position: 0% 50% !important;
  }
  
  /* Disable particle effects */
  .particle,
  .particle-drift {
    display: none !important;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-gradient);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #4a5fc4 0%, #526ad6 100%);
}

/* Screen Reader Only Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only:focus,
.focus\:not-sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}
