/*
==============
Modern Video Portfolio CSS
Author: GitHub Copilot
Version: 2.0 - Modernized
==============
*/

:root {
  /* Modern Dark Theme Color Palette */
  --primary-color: #00d4ff;
  --primary-dark: #0099cc;
  --secondary-color: #ff6b35;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-green: #10b981;
  --accent-yellow: #f59e0b;
  
  /* Dark Theme Colors */
  --bg-black: #000000;
  --bg-dark: #0a0a0a;
  --bg-card: #111111;
  --bg-surface: #1a1a1a;
  --bg-hover: #222222;
  
  /* Text Colors */
  --text-white: #ffffff;
  --text-gray-light: #e5e5e5;
  --text-gray: #a1a1a1;
  --text-gray-dark: #737373;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #ff6b35 100%);
  --gradient-hero: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
  --gradient-card: linear-gradient(145deg, #111111 0%, #1a1a1a 100%);
  --gradient-rainbow: linear-gradient(90deg, #00d4ff 0%, #8b5cf6 25%, #ec4899 50%, #10b981 75%, #f59e0b 100%);
  --gradient-overlay: linear-gradient(45deg, rgba(0, 212, 255, 0.9), rgba(255, 107, 53, 0.9));
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', serif;
  
  /* Spacing & Sizing */
  --section-padding: 120px 0;
  --container-padding: 20px;
  --border-radius: 16px;
  --border-radius-large: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadows */
  --shadow-dark: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-colored: 0 8px 32px rgba(0, 212, 255, 0.2);
  --shadow-large: 0 24px 48px rgba(0, 0, 0, 0.4);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  
  /* V2 Variables for Ultra Modern Navbar */
  --neon-cyan: #00f0ff;
  --neon-purple: #a855f7;
  --bg-card-neu: rgba(17, 17, 17, 0.8);
  --blur-ultra: 30px;
  --ultra-glass-border: rgba(0, 240, 255, 0.15);
  --ultra-glass-shadow: 0 8px 32px rgba(0, 240, 255, 0.1);
  --neu-shadow-elevated: 8px 8px 16px rgba(0, 0, 0, 0.4), -8px -8px 16px rgba(255, 255, 255, 0.03);
  --border-radius-extreme: 30px;
  --gradient-neon: linear-gradient(135deg, #00f0ff 0%, #a855f7 50%, #ff006e 100%);
  --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.5);
}

/*===========
Navigation V2 - Ultra Modern Floating Design
=============*/
.nav-v2 {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem 2rem;
  background: var(--bg-card-neu);
  backdrop-filter: blur(var(--blur-ultra));
  -webkit-backdrop-filter: blur(var(--blur-ultra));
  border: 1px solid var(--ultra-glass-border);
  border-radius: var(--border-radius-extreme);
  z-index: 1000;
  transition: all var(--transition-smooth);
  box-shadow: var(--neu-shadow-elevated), var(--ultra-glass-shadow);
  max-width: 900px;
  width: 90%;
}

.nav-v2.scrolled {
  padding: 0.8rem 1.5rem;
  box-shadow: var(--neu-shadow-elevated), 
              var(--ultra-glass-shadow),
              var(--glow-cyan);
  border-color: var(--neon-cyan);
}

.nav-v2 .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.nav-v2 .nav-brand {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Orbitron', 'Space Grotesk', sans-serif;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: all var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-v2 .nav-brand:hover {
  transform: scale(1.05);
  filter: drop-shadow(var(--glow-cyan));
}

.nav-v2 .nav-brand img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
  transition: all var(--transition-smooth);
}

.nav-v2 .nav-brand img:hover {
  filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.8));
}

.nav-v2 .nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-v2 .nav-links a {
  color: var(--text-gray-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
  transition: all var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-v2 .nav-links a::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-neon);
  transition: width var(--transition-smooth);
  box-shadow: var(--glow-cyan);
}

.nav-v2 .nav-links a::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -15px;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--neon-cyan);
  border-radius: 50%;
  opacity: 0;
  transition: all var(--transition-smooth);
  box-shadow: var(--glow-cyan);
}

.nav-v2 .nav-links a:hover,
.nav-v2 .nav-links a.active {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.nav-v2 .nav-links a:hover::before,
.nav-v2 .nav-links a.active::before {
  width: 100%;
}

.nav-v2 .nav-links a:hover::after,
.nav-v2 .nav-links a.active::after {
  opacity: 1;
  left: -20px;
}

/*===========
Global Styles
=============*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-white);
  background: var(--bg-black);
  overflow-x: hidden;
  font-weight: 400;
}

html {
  scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-white);
}

h1 { 
  font-size: clamp(3rem, 6vw, 5rem); 
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h2 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.8rem, 4vw, 2.5rem); }

p {
  margin-bottom: 1.5rem;
  color: var(--text-gray-light);
  font-weight: 300;
  line-height: 1.7;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--secondary-color);
}

/* Modern Gradient Text */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rainbow-text {
  background: var(--gradient-rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Modern Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  font-size: 1rem;
  min-width: 140px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: var(--transition-smooth);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-colored);
  border: 2px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.3);
  color: var(--text-white);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 2px solid var(--primary-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--bg-black);
  transform: translateY(-3px);
  box-shadow: var(--shadow-colored);
}

.btn-lg {
  padding: 20px 48px;
  font-size: 1.2rem;
  border-radius: var(--border-radius-large);
}

/* Sections */
.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  color: var(--text-white);
}

.section-subtitle {
  font-size: 1.3rem;
  color: var(--text-gray);
  text-align: center;
  margin-bottom: 4rem;
  font-weight: 300;
}

/* Modern Flex Containers */
.flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.flex-item {
  flex: 1;
  min-width: 300px;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

/*===========
Navigation
=============*/
.modern-nav {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.modern-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modern-nav.scrolled {
  background: rgba(0, 0, 0, 0.98);
  box-shadow: var(--shadow-dark);
  padding: 0.75rem 0;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-white);
  text-decoration: none;
  display: flex;
  align-items: center;
  height: 60px;
}

/* Text styling for nav-text span */
.nav-brand .nav-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-brand:hover {
  transform: scale(1.05);
}

/* Navigation Logo - Simple and Clean */
.nav-logo {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  margin: 0;
}

.nav-logo:hover {
  opacity: 0.8;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
  .nav-logo {
    height: 35px;
    max-width: 140px;
  }
}

@media (max-width: 480px) {
  .nav-logo {
    height: 30px;
    max-width: 120px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-gray-light);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
  position: relative;
  text-decoration: none;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-white);
  background: rgba(0, 212, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
}

.nav-links a:hover::before,
.nav-links a.active::before {
  width: 80%;
}

/* Enhanced active state */
.nav-links a.active::before {
  width: 90%;
  height: 3px;
  background: var(--gradient-primary);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
  .modern-nav {
    padding: 0.75rem 0;
    /* Keep navbar fixed and visible on mobile */
    position: fixed !important;
    top: 0 !important;
    transform: translateY(0) !important;
    transition: background-color 0.3s ease, padding 0.3s ease;
  }
  
  .modern-nav .container {
    flex-direction: column;
    gap: 1.25rem;
    padding: 0 1rem;
  }
  
  .nav-brand {
    font-size: 1.6rem;
    align-self: center;
  }
  
  .nav-logo {
    height: 35px;
    max-width: 140px;
  }
  
  .nav-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  
  .nav-links a {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 12px;
    min-width: 100px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .nav-links a:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
  }
  
  /* Mobile active state adjustments */
  .nav-links a.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--text-white);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
  }
  
  .nav-links a.active::before {
    width: 90%;
    height: 2px;
  }
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-white) !important;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo {
  max-height: 45px;
  width: auto;
}

.navbar-nav .nav-link {
  color: var(--text-gray-light) !important;
  font-weight: 500;
  margin: 0 0.75rem;
  padding: 0.75rem 1.5rem !important;
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
  position: relative;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--text-white) !important;
  background: var(--bg-surface);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
  width: 80%;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  background: var(--bg-surface);
  border-radius: var(--border-radius);
}

.navbar-toggler:focus {
  box-shadow: none;
}

/*===========
Hero Section
=============*/
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--bg-black);
  overflow: hidden;
  padding: 120px 0 80px;
  /* Enable hardware acceleration for smooth parallax */
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Hero Background Container */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%; /* Extended height for parallax effect */
  z-index: 0;
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* Hero Video Background */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: blur(1px) brightness(0.7) contrast(1.2);
  z-index: 1;
  will-change: transform;
}

/* Hero Image Background */
.hero-image {
  position: absolute;
  top: -10%; /* Start slightly above for parallax */
  left: 0;
  width: 100%;
  height: 120%; /* Extended height for parallax */
  object-fit: cover;
  filter: blur(1px) brightness(0.6) contrast(1.1);
  z-index: 1;
  will-change: transform;
}

/* Fallback Image for Video */
.hero-fallback-image {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  filter: blur(1px) brightness(0.6) contrast(1.1);
  z-index: 1;
  will-change: transform;
}

/* Default Gradient Background */
.hero-gradient-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero-gradient-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 60%, var(--primary-color) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, var(--secondary-color) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, var(--accent-purple) 0%, transparent 40%);
  opacity: 0.1;
  animation: heroAnimation 20s ease-in-out infinite;
}

@keyframes heroAnimation {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(1.1); }
}

/* Hero Overlay (configurable opacity) */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.8) 0%, 
    rgba(0, 0, 0, 0.4) 50%, 
    rgba(0, 0, 0, 0.8) 100%);
  z-index: 2;
  transition: opacity 0.3s ease;
  /* Prevent parallax interference */
  transform: translateZ(0);
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  /* Ensure content stays above parallax layers */
  transform: translateZ(0);
}

.hero-title {
  color: #ffffff !important;
  font-weight: 800;
  margin-bottom: 2rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase !important;
  /* Override gradient text */
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important;
}

.hero-subtitle {
  color: var(--text-gray-light);
  font-size: 1.4rem;
  margin-bottom: 3rem;
  font-weight: 300;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-down {
  color: var(--primary-color);
  font-size: 1.8rem;
  animation: bounce 2s infinite;
  transition: var(--transition-smooth);
}

.scroll-down:hover {
  color: var(--secondary-color);
  transform: scale(1.2);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-12px);
  }
  60% {
    transform: translateY(-6px);
  }
}

/*===========
About Section
=============*/
.about-section {
  padding: var(--section-padding);
  background: var(--bg-dark);
  position: relative;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient-rainbow);
}

.stats-row {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: var(--gradient-card);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  min-width: 200px;
  position: relative;
}

.stat-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-colored);
  border-color: var(--primary-color);
}

.stat-content {
  position: relative;
  z-index: 2;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-gray-light);
  font-size: 1rem;
  margin: 0;
  font-weight: 500;
}

.about-visual {
  position: relative;
  background: var(--gradient-card);
  border-radius: var(--border-radius-large);
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.about-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
  opacity: 0.6;
}

.video-preview {
  width: 100px;
  height: 100px;
  background: rgba(0, 212, 255, 0.2);
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  z-index: 2;
}

.video-preview:hover {
  transform: scale(1.15);
  background: rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 40px var(--primary-color);
}

.video-preview i {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-left: 8px;
}

/*===========
Gallery Section
=============*/
.gallery-section {
  padding: var(--section-padding);
  background: var(--bg-black);
  position: relative;
}

.gallery-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient-rainbow);
}

.filter-controls {
  margin-bottom: 4rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-btn {
  background: var(--bg-card);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: var(--text-gray-light);
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transform: scale(1);
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.1;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--text-white);
  border-color: var(--primary-color);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-colored);
}

.filter-btn.filtering {
  animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: translateY(-3px) scale(1.02); }
  50% { transform: translateY(-3px) scale(1.08); }
}

.filter-btn:hover::before,
.filter-btn.active::before {
  left: 0;
  opacity: 0.2;
}

.portfolio-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 0 1rem;
  transition: all 0.3s ease;
}

.portfolio-grid.filtering {
  transform: scale(0.98);
  opacity: 0.95;
}

/* Responsive grid - adjust columns for different screen sizes */
@media (max-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.mix-container {
  display: contents;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  display: block;
  visibility: visible;
  opacity: 1;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1);
  aspect-ratio: 16/9;
  will-change: transform, opacity, filter;
}

/* Vertical video format (9:16) */
.portfolio-item.vertical-video {
  aspect-ratio: 9/16;
  grid-row: span 2;
}

/* Adjust vertical video on smaller screens */
@media (max-width: 600px) {
  .portfolio-item.vertical-video {
    grid-row: span 1; /* Don't span multiple rows on mobile */
    aspect-ratio: 9/16; /* Keep vertical aspect ratio */
  }
  
  /* Keep thumbnail vertical too */
  .portfolio-item.vertical-video .portfolio-image {
    aspect-ratio: 9/16;
  }
}

/* Remove MixItUp specific classes since we're using custom filtering */
.portfolio-item.mix {
  display: block !important;
}

.portfolio-card {
  background: var(--gradient-card);
  border-radius: var(--border-radius-large);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.1);
  will-change: transform, box-shadow;
}

.portfolio-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 212, 255, 0.3);
  border-color: var(--primary-color);
}

.portfolio-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9; /* Default for horizontal videos */
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

/* Vertical video thumbnail container */
.portfolio-item.vertical-video .portfolio-image {
  aspect-ratio: 9/16;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition-slow);
  filter: brightness(0.9) contrast(1.1);
  display: block;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.08);
  filter: brightness(0.7) contrast(1.2);
}

.portfolio-content {
  text-align: center;
  color: var(--text-white);
  position: relative;
  z-index: 2;
  padding: 1rem;
}

.portfolio-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-white);
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.portfolio-category {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portfolio-client {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: var(--text-light);
  font-weight: 400;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(0, 212, 255, 0.2);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-smooth);
  font-size: 1.2rem;
}

.portfolio-link:hover {
  background: var(--primary-color);
  color: var(--bg-black);
  transform: scale(1.1);
}

.portfolio-link span {
  display: none;
}

.portfolio-link i {
  margin-left: 4px;
}

/*===========
Footer
=============*/
.modern-footer {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 4rem 0 2rem;
  position: relative;
  margin-top: 80px;
}

.modern-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient-rainbow);
}

.footer-content {
  position: relative;
  z-index: 1;
}

.footer-brand h3 {
  color: var(--text-white);
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-description {
  color: var(--text-gray-light);
  line-height: 1.7;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 400px;
}

.copyright {
  color: var(--text-gray);
  margin: 0;
  font-size: 0.95rem;
  font-weight: 300;
}

.footer-social h4 {
  color: var(--text-white);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-gray-light);
  text-decoration: none;
  transition: var(--transition-smooth);
  font-size: 1.3rem;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-smooth);
}

.social-link:hover {
  color: var(--text-white);
  border-color: var(--primary-color);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.social-link:hover::before {
  opacity: 1;
}

.social-link i {
  position: relative;
  z-index: 2;
}

/* Footer Quick Links */
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-gray-light);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: var(--transition-fast);
  position: relative;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.footer-link:hover::after {
  width: 100%;
}

/* Responsive footer design */
@media (max-width: 768px) {
  .modern-footer {
    padding: 3rem 0 1.5rem;
    margin-top: 60px;
  }
  
  .footer-brand {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .footer-brand h3 {
    font-size: 1.7rem;
  }
  
  .footer-description {
    max-width: 100%;
    text-align: center;
  }
  
  .footer-social {
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
    margin-bottom: 1.5rem;
  }
  
  .footer-links {
    justify-content: center;
    gap: 1rem;
  }
  
  .social-link {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .modern-footer {
    padding: 2.5rem 0 1rem;
  }
  
  .footer-brand h3 {
    font-size: 1.5rem;
  }
  
  .footer-description {
    font-size: 1rem;
  }
  
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/* Portfolio Loading Animation */
.portfolio-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 255, 0.3);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-loading.show {
  opacity: 1;
}

.portfolio-loading .spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3em;
  border-color: var(--primary-color);
  border-right-color: transparent;
  animation: spinner-grow 0.8s linear infinite;
}

@keyframes spinner-grow {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.5; }
}

/* Smooth filtering states */
.portfolio-grid.filtering .portfolio-item {
  pointer-events: none;
}

/* Add some beautiful micro-interactions */
.portfolio-overlay {
  background: linear-gradient(135deg, 
    rgba(0, 212, 255, 0.9) 0%, 
    rgba(255, 107, 53, 0.8) 100%);
}

/*===========
Enhanced Responsive Design
=============*/
@media (max-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
  }
  
  .stats-row {
    gap: 2rem;
    justify-content: center;
  }
  
  .stat-item {
    min-width: 250px;
  }
}

@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .filter-controls {
    gap: 0.75rem;
    margin-bottom: 3rem;
  }
  
  .filter-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    min-width: 120px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
    --container-padding: 15px;
  }
  
  .container {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }
  
  /* Enhanced Hero Section for Mobile */
  .hero-section {
    min-height: 90vh;
    padding: 90px 0 60px;
  }
  
  .hero-video {
    filter: blur(2px) brightness(0.5) contrast(1.3);
  }
  
  .hero-image,
  .hero-fallback-image {
    filter: blur(2px) brightness(0.5) contrast(1.2);
    transform: none !important;
  }
  
  .hero-background {
    transform: none !important;
    height: 100% !important;
  }
  
  .hero-overlay {
    background: linear-gradient(135deg, 
      rgba(0, 0, 0, 0.9) 0%, 
      rgba(0, 0, 0, 0.6) 50%, 
      rgba(0, 0, 0, 0.9) 100%);
  }
  
  .hero-content {
    padding: 0 1rem;
    text-align: center;
  }
  
  .hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
  }
  
  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  /* Enhanced Stats Section */
  .stats-row {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    margin-top: 2rem;
  }
  
  .stat-item {
    min-width: auto;
    width: 100%;
    max-width: 320px;
    padding: 2rem 1.5rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  /* Enhanced Portfolio Grid for Mobile */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
    max-width: 100%;
  }
  
  .portfolio-item {
    max-width: 100%;
  }
  
  .portfolio-card {
    border-radius: 16px;
    overflow: hidden;
  }
  
  .portfolio-image {
    aspect-ratio: 16/9;
    border-radius: 16px 16px 0 0;
  }
  
  /* Keep vertical aspect ratio for vertical videos on mobile */
  .portfolio-item.vertical-video .portfolio-image {
    aspect-ratio: 9/16;
  }
  
  .portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none; /* Remove any filters to show clear thumbnails */
  }
  
  .portfolio-title {
    font-size: 1.3rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }
  
  .portfolio-category {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .portfolio-link {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }
  
  /* Enhanced Filter Controls for Mobile */
  .filter-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
    max-width: 100%;
  }
  
  .filter-btn {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .filter-btn:hover,
  .filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
  }
  
  .filter-btn .badge {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
  }
  
  /* Enhanced About Section */
  .about-visual {
    height: 300px;
    margin-top: 2rem;
    border-radius: 16px;
  }
  
  .video-preview {
    width: 80px;
    height: 80px;
  }
  
  .video-preview i {
    font-size: 2rem;
  }
  
  /* Enhanced Section Titles */
  .section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 1rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
  }
  
  /* Enhanced Footer */
  .social-links {
    justify-content: center;
    gap: 1rem;
  }
  
  .social-link {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

/* Enhanced Small Mobile Devices */
@media (max-width: 576px) {
  :root {
    --section-padding: 60px 0;
    --container-padding: 10px;
  }
  
  .container {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }
  
  .hero-content {
    padding: 0 0.75rem;
  }
  
  .hero-title {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    margin-bottom: 1.25rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .hero-actions .btn {
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    max-width: 260px;
  }
  
  .section-title {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    margin-bottom: 1rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }
  
  .nav-brand {
    font-size: 1.4rem;
  }
  
  .nav-logo {
    height: 30px;
    max-width: 120px;
  }
  
  .nav-links a {
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    min-width: 85px;
  }
  
  .stats-row {
    gap: 1.25rem;
  }
  
  .stat-item {
    padding: 1.75rem 1.25rem;
    max-width: 280px;
  }
  
  .stat-number {
    font-size: 2.2rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
  
  .portfolio-grid {
    gap: 1.25rem;
    padding: 0 0.25rem;
  }
  
  .portfolio-card {
    border-radius: 14px;
  }
  
  .portfolio-image {
    border-radius: 14px 14px 0 0;
  }
  
  .portfolio-title {
    font-size: 1.2rem;
  }
  
  .portfolio-category {
    font-size: 0.85rem;
  }
  
  .portfolio-link {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
  
  .filter-controls {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }
  
  .filter-btn {
    padding: 0.875rem 0.75rem;
    font-size: 0.85rem;
    min-height: 48px;
  }
  
  .about-visual {
    height: 250px;
  }
  
  .video-preview {
    width: 70px;
    height: 70px;
  }
  
  .video-preview i {
    font-size: 1.8rem;
  }
}

/* Extra Small Devices */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  .hero-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    max-width: 240px;
  }
  
  .section-title {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }
  
  .nav-brand {
    font-size: 1.2rem;
  }
  
  .nav-links a {
    padding: 0.6rem 0.875rem;
    font-size: 0.8rem;
    min-width: 75px;
  }
  
  .stat-item {
    padding: 1.5rem 1rem;
    max-width: 260px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .filter-controls {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
    min-height: 44px;
  }
  
  .portfolio-title {
    font-size: 1.1rem;
  }
  
  .portfolio-category {
    font-size: 0.8rem;
  }
  
  .about-visual {
    height: 220px;
  }
}

/* Landscape Orientation Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
    padding: 60px 0 40px;
  }
  
  .hero-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 0.75rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-actions {
    flex-direction: row;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .hero-actions .btn {
    max-width: 200px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .filter-btn {
    min-height: 48px;
  }
  
  .portfolio-link {
    min-width: 48px;
    min-height: 48px;
  }
  
  /* Make portfolio overlays hidden by default on touch devices */
  .portfolio-overlay {
    opacity: 0;
    background: linear-gradient(135deg, 
      rgba(0, 212, 255, 0.8) 0%, 
      rgba(255, 107, 53, 0.7) 100%);
  }
  
  /* Show overlay only when tapped/clicked */
  .portfolio-card:active .portfolio-overlay {
    opacity: 1;
  }
  
  /* Remove hover effects that don't work on touch */
  .portfolio-card:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.1);
  }
  
  .portfolio-card:hover .portfolio-image img {
    transform: none;
    filter: brightness(0.9) contrast(1.1);
  }
}

/*===========
Modern Animations & Effects
=============*/
.floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.floating-elements::before,
.floating-elements::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.03;
  animation: float 20s ease-in-out infinite;
}

.floating-elements::before {
  width: 300px;
  height: 300px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-elements::after {
  width: 200px;
  height: 200px;
  bottom: 20%;
  right: 10%;
  animation-delay: 10s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
  }
}

/* Glowing text effect */
.glow-text {
  text-shadow: 0 0 10px var(--primary-color),
               0 0 20px var(--primary-color),
               0 0 30px var(--primary-color);
}

/* Gradient border animation - simplified */
.gradient-border {
  position: relative;
  border-radius: var(--border-radius);
  background: var(--bg-card);
  border: 2px solid;
  border-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) 1;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Smooth page transitions */
.page-transition {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-slow);
}

.page-transition.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Selection styling */
::selection {
  background: var(--primary-color);
  color: var(--bg-black);
}

/* ===== SECTION SEPARATORS & STANDALONE SECTIONS ===== */

/* Visual separator between major sections */
.section-separator {
  height: 120px;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-surface) 50%, transparent 100%);
  position: relative;
  margin: 80px 0;
}

.section-separator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  opacity: 0.6;
}

/* Standalone section styling */
.standalone-section {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--bg-black) 0%, var(--bg-dark) 50%, var(--bg-black) 100%);
  position: relative;
  isolation: isolate;
}

.standalone-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.03) 0%, transparent 70%);
  z-index: -1;
}

/* Section divider within standalone sections */
.section-divider {
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  margin: 30px auto 0;
  opacity: 0.8;
}

/* ===== VIDEO PAGE STYLING ===== */

/* Floating elements for cinematic background */
.single-project .floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.single-project .floating-elements::before,
.single-project .floating-elements::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.03;
  animation: float 25s ease-in-out infinite;
}

.single-project .floating-elements::before {
  width: 400px;
  height: 400px;
  top: 15%;
  right: 10%;
  animation-delay: 0s;
}

.single-project .floating-elements::after {
  width: 300px;
  height: 300px;
  bottom: 25%;
  left: 5%;
  animation-delay: 12s;
}

/* Video page specific styles */
.single-project {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--bg-black) 0%, var(--bg-dark) 50%, var(--bg-black) 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.single-project::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 60%, rgba(0, 212, 255, 0.02) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(255, 107, 53, 0.02) 0%, transparent 50%);
  z-index: 0;
}

.single-project .container {
  position: relative;
  z-index: 1;
}

/* Video page section title */
.single-project .section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.single-project .section-title::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.single-project .section-title h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.single-project .section-title p {
  font-size: 1.3rem;
  color: var(--text-gray);
  font-weight: 300;
  margin: 0;
}

/* Enhanced video player container */
.project-holder {
  position: relative;
  margin-bottom: 60px;
  border-radius: var(--border-radius-large);
  overflow: hidden;
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 
              0 0 60px rgba(0, 212, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: var(--transition-slow);
  /* Enforce 16:9 aspect ratio */
  aspect-ratio: 16 / 9;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.project-holder:hover {
  transform: translateY(-5px);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.6), 
              0 0 80px rgba(0, 212, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.3);
}

.project-holder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0.05;
  z-index: 1;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.project-holder:hover::before {
  opacity: 0.08;
}

/* Video player styling with proper 16:9 ratio */
.project-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-large);
  z-index: 2;
  background: var(--bg-black);
  border: none;
  object-fit: cover;
  transition: var(--transition-smooth);
}

/* Custom video controls styling */
.project-video::-webkit-media-controls-panel {
  background: linear-gradient(to bottom, 
    rgba(0, 0, 0, 0) 0%, 
    rgba(0, 0, 0, 0.7) 100%);
  border-radius: 0 0 var(--border-radius-large) var(--border-radius-large);
}

.project-video::-webkit-media-controls-play-button {
  background-color: var(--primary-color);
  border-radius: 50%;
}

/* Project details styling */
.project-details {
  background: var(--gradient-card);
  border-radius: var(--border-radius-large);
  padding: 60px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: var(--transition-slow);
}

.project-details:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 212, 255, 0.2);
}

.project-details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0.02;
  z-index: 0;
}

.project-details > .row {
  position: relative;
  z-index: 1;
}

/* Left details styling */
.details-left h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 30px;
  line-height: 1.2;
  position: relative;
}

.details-left h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.details-left p {
  font-size: 1.2rem;
  color: var(--text-gray-light);
  line-height: 1.8;
  margin-bottom: 0;
}

/* Right details styling */
.details-right {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  position: relative;
  transition: var(--transition-smooth);
}

.details-right:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateX(5px);
}

.details-right ul {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none;
  transition: var(--transition-smooth);
}

.details-right ul:hover {
  padding-left: 10px;
  border-bottom-color: var(--primary-color);
}

.details-right ul:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.details-right ul li:first-child {
  font-weight: 600;
  color: var(--text-gray);
  min-width: 80px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.details-right ul li.devider {
  color: var(--primary-color);
  margin: 0 15px;
  font-weight: 700;
}

.details-right ul li:last-child {
  color: var(--text-white);
  font-weight: 500;
  font-size: 1.05rem;
  flex: 1;
}

/* Project buttons styling */
.project-btns {
  margin-top: 50px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.project-btns .btn {
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border: 2px solid;
  min-width: 160px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.project-btns .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: var(--transition-smooth);
}

.project-btns .btn:hover::before {
  left: 100%;
}

/* Back button */
.project-btns .btn-invert {
  background: transparent;
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.project-btns .btn-invert:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-white);
  color: var(--text-white);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

/* Navigation buttons (Previous/Next) */
.project-btns .btn:not(.btn-invert) {
  background: var(--gradient-primary);
  color: var(--text-white);
  border-color: transparent;
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.project-btns .btn:not(.btn-invert):hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 212, 255, 0.4);
  color: var(--text-white);
}

/* Button icons */
.project-btns .btn i {
  transition: var(--transition-fast);
}

.project-btns .btn:hover i {
  transform: scale(1.1);
}

/* Responsive design for video page */
@media (max-width: 1200px) {
  .project-details {
    padding: 40px;
  }
  
  .details-right {
    margin-top: 40px;
    padding: 30px 25px;
  }
  
  .single-project .floating-elements::before {
    width: 300px;
    height: 300px;
  }
  
  .single-project .floating-elements::after {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .single-project {
    padding: 100px 0 60px;
  }
  
  .project-holder {
    margin-bottom: 40px;
    /* Maintain 16:9 aspect ratio on mobile */
    aspect-ratio: 16 / 9;
    max-width: 100%;
  }
  
  .project-video {
    /* Keep absolute positioning for proper 16:9 ratio */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .project-details {
    padding: 30px 20px;
  }
  
  .details-left h2 {
    margin-bottom: 20px;
  }
  
  .details-left p {
    font-size: 1.1rem;
  }
  
  .details-right {
    margin-top: 30px;
    padding: 25px 20px;
  }
  
  .details-right ul {
    padding: 12px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .details-right ul li:first-child {
    min-width: auto;
  }
  
  .details-right ul li.devider {
    display: none;
  }
  
  .project-btns {
    margin-top: 30px;
    flex-direction: column;
    gap: 15px;
  }
  
  .project-btns .btn {
    width: 100%;
    max-width: 300px;
    padding: 14px 28px;
  }
  
  /* Hide floating elements on mobile for performance */
  .single-project .floating-elements {
    display: none;
  }
}

@media (max-width: 480px) {
  .single-project .section-title {
    margin-bottom: 40px;
  }
  
  .project-holder {
    /* Ensure 16:9 aspect ratio is maintained even on small screens */
    aspect-ratio: 16 / 9;
  }
  
  .project-details {
    padding: 25px 15px;
  }
  
  .details-right {
    padding: 20px 15px;
  }
  
  .project-btns .btn {
    padding: 12px 24px;
    font-size: 1rem;
  }
}

/* ===== ENHANCED CONTACT SECTION ===== */

/* Contact section specific styling */
.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-section .section-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

.contact-section .section-subtitle {
  font-size: 1.25rem;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Contact info styling */
.contact-info {
  margin-top: 60px;
}

.contact-item {
  background: var(--gradient-card);
  padding: 40px 30px;
  border-radius: var(--border-radius-large);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.contact-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: -1;
}

.contact-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
  border-color: var(--primary-color);
}

.contact-item:hover::before {
  opacity: 0.1;
}

.contact-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.contact-item:hover .contact-icon {
  color: var(--text-white);
  transform: scale(1.1);
}

.contact-item h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 15px;
}

.contact-item p {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin: 0;
}

.contact-item a {
  color: var(--text-gray);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.contact-item:hover a {
  color: var(--text-white);
}

/* Contact CTA button */
.contact-cta {
  margin-top: 60px;
}

.contact-cta .btn {
  padding: 18px 40px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  background: var(--gradient-primary);
  border: none;
  color: var(--text-white);
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.contact-cta .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition-smooth);
}

.contact-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 212, 255, 0.4);
}

.contact-cta .btn:hover::before {
  left: 100%;
}

/* Responsive design for contact section */
@media (max-width: 768px) {
  .standalone-section {
    padding: 80px 0;
  }
  
  .section-separator {
    height: 80px;
    margin: 60px 0;
  }
  
  .contact-section .section-title {
    font-size: 2.5rem;
  }
  
  .contact-item {
    padding: 30px 20px;
    margin-bottom: 30px;
  }
  
  .contact-icon {
    font-size: 2.5rem;
  }
  
  .contact-cta .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .contact-section .section-title {
    font-size: 2rem;
  }
  
  .contact-section .section-subtitle {
    font-size: 1.1rem;
  }
  
  .section-divider {
    width: 60px;
    height: 3px;
  }
}

/*=======================
Partner/Client Logos Section
=========================*/
.partners-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-black) 50%, var(--bg-dark) 100%);
  position: relative;
  overflow: hidden;
}

.partners-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.3;
}

.partners-section .section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.partners-section .section-subtitle {
  color: var(--text-gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Carousel Wrapper with Fade Edges */
.partners-carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 40px 0;
}

.partners-carousel-wrapper::before,
.partners-carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.partners-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-dark) 0%, transparent 100%);
}

.partners-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(90deg, transparent 0%, var(--bg-dark) 100%);
}

/* Carousel Track with Infinite Scroll Animation */
.partners-carousel {
  overflow: hidden;
  position: relative;
}

.partners-track {
  display: flex;
  gap: 60px;
  align-items: center;
  animation: scrollLogos 40s linear infinite;
  width: fit-content;
}

/* Pause animation on hover (default behavior) */
.partners-carousel:hover .partners-track:not(.no-pause) {
  animation-play-state: paused;
}

/* Don't pause if no-pause class is present */
.partners-track.no-pause {
  animation-play-state: running !important;
}

@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===== STYLE VARIATIONS ===== */

/* Static Grid Style (No Animation) */
.partners-track.style-static {
  animation: none !important;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.partners-track.style-static .partner-logo-item:nth-child(n+7) {
  display: none; /* Hide duplicates in static mode */
}

/* Fade In/Out Style */
.partners-track.style-fade {
  animation: none !important;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.partners-track.style-fade .partner-logo-item {
  animation: fadeInOut 4s ease-in-out infinite;
}

.partners-track.style-fade .partner-logo-item:nth-child(2n) {
  animation-delay: 2s;
}

.partners-track.style-fade .partner-logo-item:nth-child(3n) {
  animation-delay: 1s;
}

.partners-track.style-fade .partner-logo-item:nth-child(n+7) {
  display: none; /* Hide duplicates in fade mode */
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0.5;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== SIZE VARIATIONS ===== */

/* Small Size */
.partners-track.size-small .partner-logo-item {
  width: 140px;
  height: 90px;
}

/* Medium Size (Default) */
.partner-logo-item {
  flex-shrink: 0;
  width: 200px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-smooth);
}

.partners-track.size-medium .partner-logo-item {
  width: 200px;
  height: 120px;
}

/* Large Size */
.partners-track.size-large .partner-logo-item {
  width: 260px;
  height: 150px;
}

.partner-logo-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

/* Gradient border effect on hover */
.partner-logo-container::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  z-index: -1;
}

.partner-logo-container:hover::before {
  opacity: 1;
}

.partner-logo-container:hover {
  transform: translateY(-5px);
  background: var(--bg-surface);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15);
  border-color: var(--primary-color);
}

/* ===== VISUAL EFFECT VARIATIONS ===== */

/* Default Logo Styles */
.partner-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: all var(--transition-smooth);
}

/* Grayscale Effect (Default) */
.partners-track.effect-grayscale .partner-logo {
  filter: grayscale(100%) brightness(0.8) contrast(1.2);
  opacity: 0.7;
}

.partners-track.effect-grayscale .partner-logo-container:hover .partner-logo {
  filter: grayscale(0%) brightness(1) contrast(1);
  opacity: 1;
  transform: scale(1.05);
}

/* Full Color Effect */
.partners-track.effect-color .partner-logo {
  filter: none;
  opacity: 1;
}

.partners-track.effect-color .partner-logo-container:hover .partner-logo {
  transform: scale(1.08);
  filter: brightness(1.1);
}

/* Opacity/Dim Effect */
.partners-track.effect-opacity .partner-logo {
  filter: brightness(0.6);
  opacity: 0.6;
}

.partners-track.effect-opacity .partner-logo-container:hover .partner-logo {
  filter: brightness(1);
  opacity: 1;
  transform: scale(1.05);
}

/* Partner Count */
.partners-count {
  color: var(--text-gray);
  font-size: 1rem;
  margin: 0;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.partners-count strong {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.partners-count i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .partners-track {
    gap: 50px;
  }
  
  .partner-logo-item {
    width: 180px;
    height: 110px;
  }
}

@media (max-width: 992px) {
  .partners-section {
    padding: 80px 0;
  }
  
  .partners-track {
    gap: 40px;
  }
  
  .partner-logo-item {
    width: 160px;
    height: 100px;
  }
  
  .partners-carousel-wrapper::before,
  .partners-carousel-wrapper::after {
    width: 100px;
  }
}

@media (max-width: 768px) {
  .partners-section {
    padding: 60px 0;
  }
  
  .partners-carousel-wrapper {
    padding: 30px 0;
  }
  
  .partners-track {
    gap: 30px;
    animation: scrollLogos 30s linear infinite;
  }
  
  .partner-logo-item {
    width: 140px;
    height: 90px;
  }
  
  .partner-logo-container {
    padding: 15px;
  }
  
  .partners-carousel-wrapper::before,
  .partners-carousel-wrapper::after {
    width: 60px;
  }
  
  .partners-count {
    font-size: 0.9rem;
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .partners-section {
    padding: 50px 0;
  }
  
  .partners-section .section-title {
    font-size: 1.8rem;
  }
  
  .partners-section .section-subtitle {
    font-size: 1rem;
  }
  
  .partners-track {
    gap: 25px;
    animation: scrollLogos 25s linear infinite;
  }
  
  .partner-logo-item {
    width: 120px;
    height: 80px;
  }
  
  .partner-logo-container {
    padding: 12px;
  }
  
  .partners-carousel-wrapper::before,
  .partners-carousel-wrapper::after {
    width: 40px;
  }
}

/* Alternative Animation: Fade In-Out (Optional) */
@keyframes fadeInOut {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Apply fade animation to logos (can be toggled) */
.partners-track.fade-animation .partner-logo {
  animation: fadeInOut 3s ease-in-out infinite;
}

.partners-track.fade-animation .partner-logo-item:nth-child(2n) .partner-logo {
  animation-delay: 1.5s;
}


/* ===============================
   V2 Navbar Mobile Responsive
   =============================== */
@media (max-width: 768px) {
  .nav-v2 {
    top: 10px;
    width: 95%;
    padding: 0.8rem 1.5rem;
  }
  
  .nav-v2 .nav-links {
    gap: 1.5rem;
  }
  
  .nav-v2 .nav-links a {
    font-size: 0.85rem;
  }
  
  .nav-v2 .nav-brand {
    font-size: 1.2rem;
  }
  
  .nav-v2 .nav-brand img {
    height: 32px;
  }
}

@media (max-width: 480px) {
  .nav-v2 {
    padding: 0.6rem 1rem;
  }
  
  .nav-v2 .nav-links {
    gap: 1rem;
  }
  
  .nav-v2 .nav-links a {
    font-size: 0.75rem;
  }
  
  .nav-v2 .nav-brand {
    font-size: 1rem;
  }
  
  .nav-v2 .nav-brand img {
    height: 28px;
  }
}

/* ===============================
   Classic Color Override for V2 Navbar
   (Only affects classic page, V2 keeps cyan colors)
   =============================== */
body.classic-design .nav-v2 {
  /* Classic color scheme: cyan/orange gradient */
  border-color: rgba(0, 212, 255, 0.15);
  background: rgba(17, 17, 17, 0.85);
}

body.classic-design .nav-v2.scrolled {
  border-color: var(--primary-color);
  box-shadow: var(--neu-shadow-elevated), 
              var(--ultra-glass-shadow),
              0 0 20px rgba(0, 212, 255, 0.4);
}

body.classic-design .nav-v2 .nav-brand {
  /* Classic gradient: cyan to orange */
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.classic-design .nav-v2 .nav-brand:hover {
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.6));
}

body.classic-design .nav-v2 .nav-brand img {
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

body.classic-design .nav-v2 .nav-brand img:hover {
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8));
}

body.classic-design .nav-v2 .nav-links a {
  color: var(--text-gray-light);
}

body.classic-design .nav-v2 .nav-links a::before {
  /* Classic gradient underline */
  background: var(--gradient-primary);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

body.classic-design .nav-v2 .nav-links a::after {
  /* Classic cyan dot */
  background: var(--primary-color);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

body.classic-design .nav-v2 .nav-links a:hover,
body.classic-design .nav-v2 .nav-links a.active {
  /* Classic cyan color on hover */
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

/* ===============================
   V2 Navbar Responsive (for V1 Classic)
   =============================== */


/* Tablet & Large Mobile */
@media (max-width: 992px) {
  .nav-v2 .container {
    justify-content: space-between;
    gap: 1rem;
  }
  
  .nav-v2 .nav-links {
    gap: 0.8rem;
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  
  .nav-v2 .nav-links a {
    font-size: 0.85rem;
    padding: 0.6rem 0.9rem;
  }
}

/* Mobile & Small Tablets */
@media (max-width: 768px) {
  .nav-v2 {
    top: 10px;
    width: 95%;
    padding: 0.5rem 1rem;
  }
  
  .nav-v2 .container {
    justify-content: space-between;
    gap: 0.5rem;
  }
  
  .nav-v2 .nav-links {
    gap: 0.4rem;
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  
  .nav-v2 .nav-links a {
    font-size: 0.7rem;
    padding: 0.45rem 0.65rem;
    letter-spacing: -0.02em;
  }
  
  .nav-v2 .nav-links a::before {
    height: 2px;
  }
  
  .nav-v2 .nav-links a::after {
    width: 4px;
    height: 4px;
    left: -10px;
  }
  
  .nav-v2 .nav-brand {
    font-size: 0.95rem;
    flex-shrink: 0;
  }
  
  .nav-v2 .nav-brand img {
    height: 26px !important;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .nav-v2 {
    padding: 0.4rem 0.7rem;
    width: 98%;
  }
  
  .nav-v2 .container {
    gap: 0.3rem;
  }
  
  .nav-v2 .nav-links {
    gap: 0.25rem;
  }
  
  .nav-v2 .nav-links a {
    font-size: 0.62rem;
    padding: 0.4rem 0.5rem;
    letter-spacing: -0.03em;
  }
  
  .nav-v2 .nav-links a::after {
    width: 3px;
    height: 3px;
    left: -8px;
  }
  
  .nav-v2 .nav-brand {
    font-size: 0.85rem;
  }
  
  .nav-v2 .nav-brand img {
    height: 22px !important;
  }
}

/* Extra Small Devices */
@media (max-width: 380px) {
  .nav-v2 {
    padding: 0.35rem 0.5rem;
  }
  
  .nav-v2 .nav-links a {
    font-size: 0.58rem;
    padding: 0.35rem 0.4rem;
    letter-spacing: -0.04em;
  }
  
  .nav-v2 .nav-links a::after {
    display: none;
  }
  
  .nav-v2 .nav-brand {
    font-size: 0.8rem;
  }
  
  .nav-v2 .nav-brand img {
    height: 20px !important;
  }
}
