/* Revolutionary Cosmic Background Enhancements */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* GitHub Pages Optimization */
* {
    box-sizing: border-box;
}

/* OPTIMIZED VIDEO PERFORMANCE */
video {
    max-width: 100%;
    height: auto;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    /* Prevent video lag */
    contain: layout style paint;
    /* Hardware acceleration */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    /* Reduce memory usage */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Lazy loading for videos */
video[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

video[loading="lazy"].loaded {
    opacity: 1;
}

/* OPTIMIZED THUMBNAIL SYSTEM */
.video-thumbnail {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* LQIP (Low Quality Image Placeholder) */
.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #1a1a1a 25%, transparent 25%), 
                linear-gradient(-45deg, #1a1a1a 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #1a1a1a 75%), 
                linear-gradient(-45deg, transparent 75%, #1a1a1a 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.3;
    z-index: 1;
}

.video-thumbnail.loaded::before {
    opacity: 0;
}

/* Video container optimization */
.video-container {
    position: relative;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
}

/* Loading animation */
.video-thumbnail:not(.loaded) {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* PERFORMANCE OPTIMIZATIONS */
/* Reduce repaints */
.portfolio-container {
    contain: layout style paint;
    will-change: transform;
}

/* Optimize video containers */
.video-container {
    contain: layout style paint;
    will-change: transform;
    transform: translateZ(0);
}

/* Prevent layout shifts */
.portfolio-item {
    contain: layout style paint;
    min-height: 200px;
}

/* Optimize animations */
@media (prefers-reduced-motion: reduce) {
    .video-thumbnail,
    .portfolio-item,
    .video-container {
        animation: none !important;
        transition: none !important;
    }
}

/* Performance optimizations */
.cosmos-container canvas {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Main sections adjustment for cosmic background */
main {
    position: relative;
    background: transparent !important;
    z-index: 1;
}

section {
    position: relative;
    background: transparent !important;
    z-index: 1;
}

/* Hero section cosmic integration */
.hero-section {
    background: transparent;
    backdrop-filter: blur(1px);
}

/* About section cosmic integration */
.about-section {
    background: transparent;
}

/* Portfolio section cosmic integration */
.portfolio-section {
    background: transparent;
}

/* Contact section cosmic integration */
.contact-section {
    background: transparent;
}

/* Remove old liquid background */
.liquid-bg {
    display: none;
}

/* Glass cards cosmic enhancement */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation cosmic enhancement - NO STATIC BLUR */
.nav-glass {
    background: rgba(10, 10, 35, 0.8);
    backdrop-filter: none; /* Remove static blur */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    position: relative;
    transition: backdrop-filter 0.3s ease;
}

/* Dynamic blur only on scroll */
.nav-glass.scrolled {
    backdrop-filter: blur(20px) saturate(150%);
}

/* Cosmic loading animation */
@keyframes cosmicLoad {
    0% {
        opacity: 0;
        filter: blur(20px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

.cosmos-container {
    animation: cosmicLoad 2s ease-out;
}

/* Responsive cosmic adjustments */
@media (max-width: 768px) {
    .cosmos-container {
        transform: scale(1.1);
    }
    
    /* MOBILE VIDEO OPTIMIZATION */
video {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    /* Prevent lag on mobile */
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    /* Reduce memory usage */
    contain: layout style paint;
}

.portfolio-video {
    max-width: 320px;
    max-height: 569px;
    /* Prevent layout shifts */
    min-height: 200px;
    contain: layout style paint;
}

/* Tablet optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .portfolio-video {
        max-width: 480px;
        max-height: 270px;
    }
}

/* Desktop optimization */
@media (min-width: 1025px) {
    .portfolio-video {
        max-width: 640px;
        max-height: 360px;
    }
}
}

/* Tablet optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    video {
        max-width: 100%;
        height: auto;
    }
    
    .portfolio-video {
        max-width: 480px;
        max-height: 270px;
    }
}

/* Desktop optimization */
@media (min-width: 1025px) {
    video {
        max-width: 100%;
        height: auto;
    }
    
    .portfolio-video {
        max-width: 640px;
        max-height: 360px;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cosmos-container * {
        animation: none !important;
        transition: none !important;
    }
}

:root {
    /* Liquid Glossy Colors */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --liquid-gold: var(--electric-gradient); /* ELECTRIC BLUE TRANSFORMATION */
    --liquid-silver: linear-gradient(135deg, #C0C0C0 0%, #E6E6FA 50%, #B0C4DE 100%);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --glass-backdrop: none; /* No static blur */
    
    /* 🔥 ELECTRIC BLUE NEON COLORS */
    --electric-blue: #00BFFF;
    --dark-electric: #1E90FF;
    --cyan-accent: #00FFFF;
    --light-blue: #87CEEB;
    --electric-gradient: linear-gradient(135deg, #00BFFF 0%, #1E90FF 50%, #00FFFF 100%);
    --neon-glow: 0 0 20px #00BFFF, 0 0 40px #1E90FF, 0 0 80px #00FFFF;
    --electric-shimmer: linear-gradient(90deg, transparent 0%, #00FFFF 50%, transparent 100%);
    
    /* Dark mode glass */
    --dark-glass: rgba(0, 0, 0, 0.3);
    --dark-border: rgba(255, 255, 255, 0.1);
    
    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-liquid: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-slow: all 1s cubic-bezier(0.23, 1, 0.32, 1);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-weight-thin: 100;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 50%;

    /* Vibrant/Neomorphic + Glassmorphism Palettes */
    --vibrant-start: #0ea5e9; /* cyan-500 */
    --vibrant-mid: #22d3ee;   /* cyan-400 */
    --vibrant-end: #8b5cf6;   /* violet-500 */
    --glass-tint: rgba(255,255,255,0.06);
    --glass-stroke: rgba(255,255,255,0.12);

    /* Neomorphic (dark) shadows */
    --neo-dark: rgba(0, 0, 0, 0.55);
    --neo-light: rgba(255, 255, 255, 0.08);
    --neo-stroke: rgba(255, 255, 255, 0.06);
}

/* Particles Canvas - Enhanced Constellation System */
.particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
    mix-blend-mode: screen;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    /* Minimal, eleganckie tło inspirowane Apple/Tesla */
    background: 
        radial-gradient(1200px 800px at 75% -10%, rgba(14,165,233,0.10), rgba(14,165,233,0) 40%),
        radial-gradient(900px 700px at -10% 70%, rgba(139,92,246,0.08), rgba(139,92,246,0) 45%),
        linear-gradient(180deg, #0b0f1a 0%, #0a0f1c 50%, #0a0e17 100%) !important;
    background-attachment: fixed !important;
    min-height: 80vh;
    color: #fff;
    overflow-x: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

/* Safe-area for notched phones */
@supports(padding:max(env(safe-area-inset-top))) {
  body { padding-left: max(env(safe-area-inset-left), 0px); padding-right: max(env(safe-area-inset-right), 0px); }
}

/* Vibrant/Neomorphic + Glassmorphism background gradient */
.bg-vibrant-glass {
  background:
    radial-gradient(1200px 800px at 75% -10%, rgba(14,165,233,0.10), rgba(14,165,233,0) 40%),
    radial-gradient(900px 700px at -10% 70%, rgba(139,92,246,0.08), rgba(139,92,246,0) 45%),
    linear-gradient(120deg, var(--vibrant-start) 0%, var(--vibrant-mid) 35%, var(--vibrant-end) 100%);
  background-attachment: fixed;
}

/* Stylish Mesh Gradient layer (blended under aurora & particles) */
.hub-gradient-layer {
  position: fixed;
  inset: 0;
  z-index: -0; /* pod canvas, nad body::before */
  pointer-events: none;
  background:
    radial-gradient(140% 140% at 25% -10%, rgba(99, 132, 255, 0.55), transparent 55%),
    radial-gradient(180% 160% at 110% -10%, rgba(12, 32, 82, 0.85), transparent 55%),
    radial-gradient(120% 120% at -10% 100%, rgba(0, 164, 255, 0.18), transparent 60%),
    linear-gradient(135deg, #0e1330 0%, #0b0f1f 45%, #0a0e18 100%);
  filter: saturate(118%) contrast(110%);
  animation: hubGradientShift 16s ease-in-out infinite alternate;
}

@keyframes hubGradientShift {
  0% { filter: saturate(115%) contrast(108%); }
  100% { filter: saturate(125%) contrast(112%); }
}

/* Optional: glass panels style utility to match background */
.glass-surface {
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  border: 1px solid var(--glass-stroke);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.35), inset 0 1px 0 rgba(255,255,255,0.14);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

/* Neomorphic utilities (optimized for dark vibrant background) */
.neo-raised {
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--neo-stroke);
  box-shadow:
    14px 14px 28px var(--neo-dark),
    -14px -14px 28px var(--neo-light);
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease;
}

.neo-inset {
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--neo-stroke);
  box-shadow:
    inset 10px 10px 22px rgba(0,0,0,0.6),
    inset -10px -10px 22px rgba(255,255,255,0.05);
}

.neo-hover:hover {
  transform: translateY(-4px);
  box-shadow:
    18px 18px 36px rgba(0,0,0,0.6),
    -18px -18px 36px rgba(255,255,255,0.09);
}

.neo-pill {
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid var(--neo-stroke);
  box-shadow:
    8px 8px 16px var(--neo-dark),
    -8px -8px 16px var(--neo-light);
}

.neo-focus {
  outline: 2px solid rgba(14,165,233,0.25);
  outline-offset: 3px;
}

#hero-video-cosmos-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.8;
  filter: blur(0.5px) brightness(1.08);
  background: transparent !important;
}

.video-container-hero {
  max-width: 1200px !important;
  margin: 0 0 0 auto !important;
  border-radius: 40px !important;
  box-shadow: 0 0 120px 40px #00f2fe55, 0 20px 80px rgba(0,0,0,0.7) !important;
  background: transparent !important;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

#hero-video {
  border-radius: 40px !important;
  box-shadow: 0 0 120px 30px #00f2fe55 !important;
  background: transparent !important;
  object-fit: cover;
  aspect-ratio: 16/9;
  max-height: 95vh;
  width: 100%;
  transition: box-shadow 0.7s cubic-bezier(0.23,1,0.32,1), filter 0.7s;
}
#hero-video.playing {
  animation: heroPulse 2.2s infinite alternate;
      box-shadow: 0 0 180px 60px #00BFFF99, 0 0 120px 40px #00FFFF88;
  filter: brightness(1.08) saturate(1.12);
}
@keyframes heroPulse {
  0% { box-shadow: 0 0 120px 30px #00f2fe55; filter: brightness(1.08) saturate(1.12); }
  100% { box-shadow: 0 0 180px 60px #00BFFF99, 0 0 120px 40px #00f2fe88; filter: brightness(1.18) saturate(1.22); }
}

/* Mobile video responsiveness */
@media (max-width: 768px) {
  .video-container-hero { border-radius: 20px !important; }
  #hero-video { border-radius: 20px !important; aspect-ratio: 16/9; height: auto; max-height: 60vh; }
  video { max-width: 100%; height: auto; }
}

/* Better inline video UX on mobile */
video[playsinline] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* Ensure portfolio videos scale inside cards */
.video-wrapper video, .video-card video, .portfolio video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

/* Prevent layout flash while loading metadata */
video { background-color: transparent; }

/* Usuwam style dla kategorii/filtrów portfolio */
.portfolio-filters, .filter-btn { display: none !important; }

/* Portfolio nie znika przy scrollu */
.portfolio-slider, .portfolio-slider-wrapper, .portfolio-slider-container {
  opacity: 1 !important;
  display: flex !important;
}

/* Minimalne akcenty świetlne – statyczne, bez rozpraszających animacji */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1; /* canvas będzie nad tym, ale pod treścią */
  pointer-events: none;
  background: 
    radial-gradient(800px 600px at 85% 10%, rgba(56,189,248,0.06), transparent 45%),
    radial-gradient(700px 600px at 10% 80%, rgba(147,51,234,0.05), transparent 50%);
  opacity: 1;
}

/* Subtelna winieta dla lepszego kontrastu treści */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 900px at 50% -20%, rgba(255,255,255,0.016), transparent 35%),
    radial-gradient(1200px 900px at 120% 120%, rgba(255,255,255,0.012), transparent 40%),
    linear-gradient(rgba(0,0,0,0.22), rgba(0,0,0,0.22));
}

/* Liquid Background */
.liquid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: var(--radius-full);
    filter: blur(120px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-gradient);
    top: -300px;
    left: -300px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary-gradient);
    top: 50%;
    right: -250px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--accent-gradient);
    bottom: -200px;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -100px) scale(1.1); }
    66% { transform: translate(-100px, 100px) scale(0.9); }
}

/* Navigation */
.nav-glass {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4000; /* ponad całą treścią na mobile */
    background: var(--glass-bg);
    backdrop-filter: none; /* No static blur */
    border-bottom: 1px solid var(--glass-border);
    padding: 8px 0;
    transition: var(--transition-smooth);
}

/* Dynamic blur on scroll */
.nav-glass.scrolled {
    backdrop-filter: blur(20px) saturate(150%);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--space-lg);
    gap: 0;
}

.logo-liquid {
    position: relative;
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    background: var(--liquid-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    white-space: nowrap; /* utrzymaj imię i nazwisko w jednej linii */
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 2px;
    background: var(--liquid-gold);
    filter: blur(8px);
    opacity: 0.7;
    animation: pulse 2s infinite;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    align-items: center;
    margin: 0;
    padding: 0;
    white-space: nowrap; /* nie łamie linków typu "O mnie" */
    background: transparent !important; /* bez ciemnego prostokąta */
    overflow: visible; /* usuwa pasek scrollbar */
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 10001; /* klikalne nad tłem */
    padding: 10px 12px; /* większy hit-area */
    line-height: 1; /* stabilna wysokość */
    border-radius: 12px; /* miękki premium look */
    white-space: nowrap; /* nie łam linków (np. "O mnie") */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--liquid-gold);
    transition: var(--transition-smooth);
}

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

/* Usuwam szarą linię pod linkami */
.nav-link::after {
    display: none !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    position: relative;
    z-index: 5000; /* zawsze nad menu */
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: var(--transition-smooth);
}

/* Main Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

section {
    padding: var(--space-3xl) 0;
    position: relative;
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.hero-title {
    font-size: clamp(2rem, 4.8vw, 3.2rem);
    font-weight: var(--font-weight-thin);
    line-height: 1.1;
    margin-bottom: 2.8rem;
    position: relative;
    z-index: 3;
}

.title-line {
    display: block;
    line-height: 1.08;
    margin-bottom: 0.1em;
}

.title-line.liquid-text {
    margin-bottom: 0.7em;
    font-size: 2.8rem;
    line-height: 1.1;
    position: relative;
    z-index: 3;
}

.liquid-text {
    background: var(--liquid-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: var(--font-weight-semibold);
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cccccc;
    margin-bottom: var(--space-xl);
    animation: slideInUp 1s ease-out 0.2s both;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    animation: slideInUp 1s ease-out 0.4s both;
}

.btn-primary, .btn-secondary {
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: var(--transition-liquid);
    position: relative;
    overflow: hidden;
}

/* Laser sweep only on main buttons (stable) */
.btn-primary::after, .btn-secondary::after, .btn-holographic::after {
  content: '';
  position: absolute;
  top: -150%; left: -150%;
  width: 300%; height: 300%;
  background: linear-gradient(60deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.btn-primary:hover::after, .btn-secondary:hover::after, .btn-holographic:hover::after {
  transform: translateX(0%);
}

/* Universal sweep (robust) */
.sweepable {
  position: relative;
  overflow: hidden;
}
.sweepable::before {
  content: '';
  position: absolute;
  top: -150%; left: -150%;
  width: 300%; height: 300%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 45%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 55%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.sweepable:hover::before {
  transform: translateX(120%);
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05) translateZ(0);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    color: #ffffff;
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-backdrop);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05) translateZ(0);
}

.btn-liquid {
    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-liquid);
}

.btn-primary:hover .btn-liquid,
.btn-secondary:hover .btn-liquid {
    left: 100%;
}

/* Glass Cards */
.glass-card {
    background: rgba(30,34,54,0.55);
    backdrop-filter: blur(16px) saturate(1.2);
    border-radius: 32px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18);
    padding: var(--space-xl);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-liquid);
}

.glass-card:hover {
    transform: scale(1.02) translateZ(0);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-card {
    max-width: none;
    text-align: center;
    animation: slideInRight 1s ease-out 0.6s both;
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.floating-icon {
    width: 60px;
    height: 60px;
    background: var(--liquid-gold);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    animation: float 3s ease-in-out infinite;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-3xl);
    background: rgba(30,34,54,0.55);
    backdrop-filter: blur(16px) saturate(1.2);
    border-radius: 32px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-thin);
    margin-bottom: var(--space-md);
}

.title-decoration {
    width: 100px;
    height: 4px;
    background: var(--liquid-gold);
    margin: 0 auto;
    border-radius: var(--radius-sm);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

/* Revolutionary About Section */
.about-content-revolutionary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
    align-items: center;
    min-height: 80vh;
}

.about-visual-quantum {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: var(--space-xl);
    align-self: start; /* raise avatar vertically on desktop */
}

.profile-hologram {
    position: relative;
    width: 560px;
    height: 560px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: quantumFadeIn 2s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes quantumFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-50px) scale(0.9) rotateY(-15deg);
    }
    50% {
        transform: translateX(-10px) scale(1.02) rotateY(-5deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1) rotateY(0deg);
    }
}

.hologram-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hologram-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid;
    border-radius: 50%;
    opacity: 0.6;
}

.ring-1 {
    width: 110%;
    height: 110%;
    border-color: #00BFFF;
    animation: hologramRotate 20s linear infinite;
}

.ring-2 {
    width: 120%;
    height: 120%;
    border-color: #1E90FF;
    animation: hologramRotate 25s linear infinite reverse;
}

.ring-3 {
    width: 130%;
    height: 130%;
    border-color: #00FFFF;
    animation: hologramRotate 30s linear infinite;
}

@keyframes hologramRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.profile-image-futuristic {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 
        0 0 50px rgba(0, 191, 255, 0.5),
        0 0 100px rgba(0, 191, 255, 0.3),
        0 0 150px rgba(0, 191, 255, 0.1),
        inset 0 0 50px rgba(0, 191, 255, 0.2);
    border: 3px solid rgba(0, 191, 255, 0.5);
    animation: profileGlow 3s ease-in-out infinite alternate;
}

@keyframes profileGlow {
    0% { 
        box-shadow: 
            0 0 30px rgba(0, 191, 255, 0.5),
            0 0 60px rgba(30, 144, 255, 0.3),
            0 0 90px rgba(0, 255, 255, 0.1);
    }
    100% { 
        box-shadow: 
            0 0 50px rgba(0, 191, 255, 0.8),
            0 0 100px rgba(30, 144, 255, 0.5),
            0 0 150px rgba(0, 255, 255, 0.3);
    }
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-image-futuristic:hover .profile-photo {
    transform: scale(1.1);
}

.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#neural-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.quantum-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.quantum-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #00BFFF, #1E90FF);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

.quantum-particles .particle:nth-child(1) {
    top: 10%;
    left: 20%;
    animation: quantumFloat 6s ease-in-out infinite;
}

.quantum-particles .particle:nth-child(2) {
    top: 70%;
    left: 80%;
    animation: quantumFloat 8s ease-in-out infinite reverse;
}

.quantum-particles .particle:nth-child(3) {
    top: 30%;
    left: 90%;
    animation: quantumFloat 7s ease-in-out infinite;
}

.quantum-particles .particle:nth-child(4) {
    top: 80%;
    left: 10%;
    animation: quantumFloat 9s ease-in-out infinite reverse;
}

.quantum-particles .particle:nth-child(5) {
    top: 50%;
    left: 50%;
    animation: quantumFloat 5s ease-in-out infinite;
}

@keyframes quantumFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% { 
        transform: translate(30px, -30px) scale(1.5);
        opacity: 1;
    }
    50% { 
        transform: translate(-20px, 20px) scale(0.8);
        opacity: 0.5;
    }
    75% { 
        transform: translate(40px, 10px) scale(1.2);
        opacity: 0.8;
    }
}

.about-text-revolutionary {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    opacity: 0;
    animation: slideInFromRight 1.5s ease-out forwards;
    animation-delay: 1s;
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.greeting-massive {
    font-size: clamp(4rem, 8vw, 6rem);
    font-weight: 900;
    background: linear-gradient(135deg, #00BFFF 0%, #1E90FF 25%, #00FFFF 50%, #00BFFF 75%, #1E90FF 100%);
    background-size: 200% 200%;
    animation: liquidGradientFlow 4s ease-in-out infinite, glowPulse 2.5s infinite alternate;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 2.5rem;
    margin-bottom: 2.2rem;
    letter-spacing: -0.02em;
    text-shadow: 0 0 18px #00BFFF, 0 0 32px #1E90FF, 0 0 8px #fff;
    text-align: center;
    width: 100%;
    filter: drop-shadow(0 0 8px #00BFFF) drop-shadow(0 0 12px #1E90FF);
}

@keyframes glowPulse {
    0% {
        text-shadow: 0 0 8px #00BFFF, 0 0 16px #1E90FF, 0 0 2px #fff;
        filter: drop-shadow(0 0 4px #00BFFF) drop-shadow(0 0 8px #1E90FF);
    }
    100% {
        text-shadow: 0 0 18px #00BFFF, 0 0 32px #1E90FF, 0 0 8px #fff;
        filter: drop-shadow(0 0 8px #00BFFF) drop-shadow(0 0 12px #1E90FF);
    }
}

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

.about-description-pro {
    font-size: 1rem;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: var(--space-xl);
    position: relative;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(0, 191, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skills-infographics {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: nowrap;
}

.infographic-card {
    background: rgba(30,34,54,0.55);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18);
    transition: transform 0.5s cubic-bezier(0.23,1,0.32,1), box-shadow 0.5s, background 0.5s;
    will-change: transform, box-shadow, background;
    position: relative;
    overflow: hidden;
}
.infographic-card:hover {
    background: rgba(30,34,54,0.82);
    box-shadow: 0 20px 60px 0 #00BFFF55, 0 1.5px 8px 0 #00f2fe55;
    z-index: 2;
}
.infographic-card::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: radial-gradient(circle, #00BFFF33 0%, transparent 80%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: width 0.5s, height 0.5s, opacity 0.5s;
    opacity: 0.18;
    pointer-events: none;
    z-index: 1;
}
.infographic-card:hover::after {
    width: 180px; height: 180px;
    opacity: 0.32;
}

.infographic-icon {
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
}

.infographic-icon i {
    font-size: 2.3rem;
    background: var(--liquid-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.infographic-content h3 {
    font-size: 0.9rem;
    font-weight: var(--font-weight-bold);
    color: #ffffff;
    margin-bottom: var(--space-xs);
}

.infographic-content p {
    color: #cccccc;
    font-size: 0.7rem;
    line-height: 1.2;
    margin: 0;
}

.cta-quantum {
    margin-top: var(--space-xl);
    text-align: center;
}

.btn-holographic {
    position: relative;
    padding: 20px 50px;
    background: linear-gradient(45deg, #00BFFF, #1E90FF, #00FFFF, #00BFFF);
    background-size: 300% 300%;
    animation: holographicShift 3s ease-in-out infinite;
    border: none;
    border-radius: 50px;
    color: #000;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

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

.btn-holographic:hover {
    transform: scale(1.08) translateZ(0);
    box-shadow: 
        0 10px 30px rgba(0, 191, 255, 0.5),
        0 20px 50px rgba(255, 140, 0, 0.3);
}

.btn-energy {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-holographic:hover .btn-energy {
    opacity: 1;
}

.btn-particles span {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #ffffff;
    border-radius: 50%;
    opacity: 0;
}

.btn-holographic:hover .btn-particles span {
    animation: particleBurst 1s ease-out forwards;
}

.btn-particles span:nth-child(1) { top: 50%; left: 50%; animation-delay: 0s; }
.btn-particles span:nth-child(2) { top: 50%; left: 50%; animation-delay: 0.1s; }
.btn-particles span:nth-child(3) { top: 50%; left: 50%; animation-delay: 0.2s; }

@keyframes particleBurst {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(calc(-50% + var(--x, 50px)), calc(-50% + var(--y, -50px))) scale(1);
        opacity: 0;
    }
}

.btn-particles span:nth-child(1) { --x: -80px; --y: -80px; }
.btn-particles span:nth-child(2) { --x: 80px; --y: -80px; }
.btn-particles span:nth-child(3) { --x: 0px; --y: 100px; }

/* Mobile responsive */
@media (max-width: 768px) {
    .about-content-revolutionary {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
    }
    
    .about-visual-quantum {
        margin-right: 0;
        order: -1;
    }
    
    .profile-hologram { width: 300px; height: 300px; margin: 0 auto; }
    .profile-image-futuristic { width: 220px; height: 220px; }
    
    .greeting-massive {
        font-size: clamp(3rem, 10vw, 5rem);
    }
    
    .skills-infographics {
        gap: var(--space-sm);
    }
    
    .infographic-card {
        padding: var(--space-xs);
        min-width: 100px;
        max-width: 130px;
    }
}

.about-intro {
    font-size: 1.5rem;
    font-weight: var(--font-weight-light);
    margin-bottom: var(--space-lg);
    color: var(--liquid-gold);
}

.about-description {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.skill-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.skill-item:hover {
    transform: scale(1.05) translateZ(0);
    background: rgba(255, 255, 255, 0.15);
}

.skill-item i {
    font-size: 1.5rem;
    background: var(--liquid-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.profile-image {
    margin-bottom: var(--space-md);
}

.image-placeholder {
    width: 120px;
    height: 120px;
    background: var(--glass-bg);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 2px solid var(--glass-border);
}

.image-placeholder i {
    font-size: 2rem;
    color: var(--liquid-gold);
}

/* Portfolio Section - Nowoczesny design */
.portfolio-section {
    width: 100%;
    max-width: 100%;
    min-height: 80vh;
    background: transparent;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.portfolio-section::before {
    display: none;
}

.portfolio-slider-container {
    width: 100%;
    max-width: 1400px;
    min-height: 70vh;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portfolio-slider {
    width: 100%;
    min-height: 600px;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    justify-content: center;
    align-items: center;
}

.portfolio-item {
    width: 280px;
    height: 500px;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    border-radius: 20px;
    background: transparent;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    flex-shrink: 0;
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02) rotateX(5deg);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 191, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.portfolio-item.active {
    transform: scale(1.05) translateY(-15px);
    z-index: 10;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(0, 191, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(0, 191, 255, 0.6);
}

.portfolio-video {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-video::before {
    opacity: 1;
}

.portfolio-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 1;
    display: block;
}

.portfolio-item:not(.active) .portfolio-video {
    filter: brightness(0.8) contrast(1.1) saturate(0.9);
    transform: scale(0.95);
}

.portfolio-item.active .portfolio-video {
    filter: none;
    transform: scale(1);
}

/* ===== NOWOCZESNE KONTROLE WIDEO ===== */
.video-controls-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        transparent 30%,
        transparent 70%,
        rgba(0, 0, 0, 0.7) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

.portfolio-item:hover .video-controls-overlay,
.portfolio-item.active .video-controls-overlay {
    opacity: 1;
    pointer-events: all;
}

.play-button-modern {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 191, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 32px rgba(0, 191, 255, 0.4);
    backdrop-filter: blur(10px);
}

.play-button-modern:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 191, 255, 0.6);
}

.play-button-modern::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid #000;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

.play-button-modern.playing::before {
    content: '';
    width: 6px;
    height: 24px;
    background: #000;
    margin-left: 0;
    border-radius: 2px;
    box-shadow: 8px 0 0 #000;
}

/* ===== NOWOCZESNE NAWIGACJA ===== */
.portfolio-navigation {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 20;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-dot.active {
    background: #00BFFF;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.6);
    transform: scale(1.2);
}

.nav-dot:hover {
    background: rgba(0, 191, 255, 0.6);
    transform: scale(1.1);
}

/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 768px) {
    .portfolio-slider {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .portfolio-item {
        width: 250px;
        height: 450px;
    }
    
    .play-button-modern {
        width: 60px;
        height: 60px;
    }
    
    .play-button-modern::before {
        border-left-width: 15px;
        border-top-width: 10px;
        border-bottom-width: 10px;
    }
}

/* ===== ANIMACJE ===== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.portfolio-item {
    animation: slideIn 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 191, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 191, 255, 0.8);
    }
}

.portfolio-item.active {
    animation: pulse 2s infinite;
}

/* ===== LEGACY STYLES (REMOVED PROJECTS AND FILMS SECTIONS) ===== */
.projects-section,
.films-section {
    display: none;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.hero-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.subtitle-animated {
    font-size: 1.15rem;
    z-index: 2;
    position: relative;
    margin-top: -0.2em;
    margin-bottom: 1.6em;
}

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

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.animated-contact {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: #cccccc;
    transition: var(--transition-liquid);
    cursor: pointer;
}

.animated-contact:hover {
    transform: translateX(10px);
    color: var(--liquid-gold);
}

.animated-contact i {
    color: var(--liquid-gold);
    width: 20px;
    transition: var(--transition-smooth);
}

.animated-contact:hover i {
    transform: scale(1.2);
}

.hero-title .liquid-text {
    background: linear-gradient(45deg, #00BFFF, #1E90FF, #00FFFF);
    background-size: 200% 200%;
    animation: liquidFlow 3s ease-in-out infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.contact-info p {
    color: #cccccc;
    margin-bottom: var(--space-xl);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: #cccccc;
}

.contact-item i {
    color: var(--liquid-gold);
    width: 20px;
}

.contact-form {
    padding: var(--space-xl);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-family: var(--font-primary);
    transition: var(--transition-smooth);
    resize: none; /* kontrola przez JS (auto-resize) */
    overflow: auto;
}

/* Consent & legal notes – compact, readable */
.form-consent {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 520px;
  font-size: 12px;
  line-height: 1.45;
  margin: 6px auto 12px auto; /* bliżej pola wiadomości */
}
/* zmniejsz przerwę nad zgodą – tylko dla grupy z wiadomością poprzedzającej zgodę */
.contact-form .form-group:has(+ .form-consent) { margin-bottom: 6px; }
.form-consent label { user-select: none; }
.consent-control { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.consent-control input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.checkmark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)); border: 1px solid var(--glass-stroke); box-shadow: inset 0 3px 8px rgba(0,0,0,0.45), 0 0 0 2px rgba(14,165,233,0.12); display: inline-flex; align-items: center; justify-content: center; transition: transform .14s ease, box-shadow .2s ease, background .2s ease; position: relative; overflow: hidden; }
.checkmark::before { content: ''; position: absolute; inset: -40% -40% auto auto; width: 0; height: 0; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.35), rgba(255,255,255,0)); transform: translateX(-120%); transition: transform .5s ease; }
.checkmark::after { content: ''; width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(180deg, rgba(14,165,233,0.9), rgba(139,92,246,0.9)); opacity: 0; transform: scale(0.6); transition: opacity .2s ease, transform .2s ease; box-shadow: 0 0 12px rgba(14,165,233,0.45); }
.consent-control:hover .checkmark { transform: translateY(-1px); box-shadow: inset 0 3px 10px rgba(0,0,0,0.5), 0 0 0 2px rgba(14,165,233,0.18); }
.consent-control:active .checkmark { transform: scale(0.96); }
.consent-control input[type="checkbox"]:focus + .checkmark { outline: 2px solid rgba(14,165,233,0.35); outline-offset: 3px; }
.consent-control input[type="checkbox"]:checked + .checkmark { box-shadow: inset 0 3px 8px rgba(0,0,0,0.45), 0 0 0 3px rgba(14,165,233,0.2); }
.consent-control input[type="checkbox"]:checked + .checkmark::after { opacity: 1; transform: scale(1); }
.consent-control input[type="checkbox"]:checked + .checkmark::before { transform: translateX(120%); }
.consent-block { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; }
.consent-text { font-size: 14px; line-height: 1; }
.consent-sep { display: none; }
.consent-link { color: #fff; text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,0.35); padding-bottom: 1px; transition: color .2s ease, border-color .2s ease, text-shadow .2s ease; }
.consent-link:hover { color: #00BFFF; border-color: rgba(0,191,255,0.6); text-shadow: 0 0 10px rgba(0,191,255,0.5); }

@media (max-width: 560px) {
  .form-consent { max-width: 95%; }
  .consent-sep { display: none; }
}
.form-legal-note {
  max-width: 560px;
  font-size: 12px;
  opacity: 0.85;
  margin: -2px 0 10px 0;
}

/* Cookie consent modal */
.cookie-modal-overlay[aria-hidden="true"] { display: none; }
.cookie-modal-overlay {
  position: fixed; inset: 0; z-index: 3500; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.5);
}
.cookie-modal {
  width: min(680px, 92vw);
  background: rgba(14,19,48,.98);
  color: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; padding: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.cookie-modal h3 { margin: 0 0 8px 0; font-size: 20px; }
.cookie-modal .rows { display: flex; flex-direction: column; gap: 10px; }
.cookie-modal .row { display: flex; align-items: center; gap: 10px; }
.cookie-modal .note { font-size: 12px; opacity: .85; margin-top: 8px; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--liquid-gold);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #cccccc;
}

/* Footer */
.footer {
    background: var(--dark-glass);
    border-top: 1px solid var(--dark-border);
    padding: var(--space-lg) 0;
    text-align: center;
    color: #cccccc;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Elegancka, kompaktowa nawigacja */
    .nav-container { padding: 0 12px; gap: 0; justify-content: space-between; align-items: center; }
    .logo-text { font-size: 0.9rem; }
    .nav-menu { position: static; inset: auto; padding-top: 0; width: auto; height: auto; background: transparent !important; -webkit-backdrop-filter: none; backdrop-filter: none; display: flex; flex-direction: row; justify-content: flex-end; align-items: center; gap: 12px; transform: none; opacity: 1; visibility: visible; z-index: 1000; overflow: visible; white-space: nowrap; margin-left: 20px; padding-bottom: 0; }
    .nav-menu li { flex: 0 0 auto; }
    .nav-link { font-size: 12px; padding: 5px 6px; }
    .nav-menu.active { transform: none; }
    .nav-toggle { display: none !important; }

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

    .about-content {
        grid-template-columns: 1fr;
    }

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
    }

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

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

    .tab-nav {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }

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

    .glass-card {
        padding: var(--space-md);
    }

    .hero-content {
        padding: 0 var(--space-sm);
    }
    
    .portfolio-section h2, .portfolio-section .ultimate-neon-header {
        text-align: center !important;
        margin: 0 auto !important;
        max-width: 100vw !important;
        overflow: visible !important;
        font-size: clamp(2.5rem, 10vw, 3.5rem) !important;
        position: relative !important;
    }
    

}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-liquid);
}

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

/* Enhanced Greeting without glitch */
.greeting-massive {
    position: relative;
    transition: var(--transition-smooth);
}

.greeting-massive:hover {
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(0, 191, 255, 0.5);
}

/* Skill Cubes Initial State */
.skill-cube {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Typewriter cursor effect */
.about-description-pro.typed::after {
    content: '|';
    animation: blink 1s infinite;
    color: #00BFFF;
    font-weight: bold;
    margin-left: 2px;
}

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

.about-description-pro {
    position: relative;
    overflow: hidden;
}

.about-description-pro.typing {
    border-right: 2px solid #00BFFF;
    animation: typing 0.1s steps(1) infinite;
}

/* Enhanced profile image effects */
.profile-hologram {
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out;
}

.profile-image-futuristic {
    position: relative;
}

.profile-image-futuristic::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #00BFFF, #1E90FF, #00FFFF, #00BFFF);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-image-futuristic:hover::before {
    opacity: 1;
}

/* Quantum particle enhanced effects */
.quantum-particles .particle {
    filter: blur(0.5px);
    mix-blend-mode: screen;
}

/* Button enhanced effects */
.btn-holographic {
    position: relative;
    isolation: isolate;
}

.btn-holographic::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00BFFF, #1E90FF, #00FFFF, #00BFFF);
    border-radius: 50px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    filter: blur(5px);
}

.btn-holographic:hover::before {
    opacity: 1;
}

/* About section responsive enhancements */
@media (max-width: 1024px) {
    .about-content-revolutionary {
        gap: var(--space-xl);
    }
    
    .profile-hologram {
        width: 350px;
        height: 350px;
    }
    
    .profile-image-futuristic {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .greeting-massive {
        font-size: 3rem;
    }
    
    .profile-hologram {
        width: 250px;
        height: 250px;
    }
    
    .profile-image-futuristic {
        width: 180px;
        height: 180px;
    }
    
    .skills-infographics {
        gap: var(--space-xs);
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .infographic-card {
        padding: var(--space-xs);
        min-width: 80px;
        max-width: 110px;
    }
    
    .infographic-icon i {
        font-size: 1.2rem;
    }
    
    .infographic-content h3 {
        font-size: 0.8rem;
    }
    
    .infographic-content p {
        font-size: 0.6rem;
    }
}

/* Skeuomorphic effects */
.glass-morph {
    position: relative;
    overflow: hidden;
}

.glass-morph::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    pointer-events: none;
}

/* Liquid hover effects */
.liquid-hover {
    position: relative;
    overflow: hidden;
}

.liquid-hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transition: var(--transition-liquid);
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.liquid-hover:hover::after {
    width: 300px;
    height: 300px;
}

.about-description-pro .greeting-massive {
    font-size: 2.5rem;
    margin: 0 0 1.2rem 0;
    text-align: center;
    background: linear-gradient(135deg, #00BFFF 0%, #1E90FF 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 6px #00BFFF;
    animation: liquidGradientFlow 4s ease-in-out infinite;
    font-weight: 900;
    letter-spacing: -0.01em;
    filter: none;
}

@keyframes bounceGlow {
    0% {
        transform: scale(1) translateY(0);
        text-shadow: 0 0 2px #00BFFF, 0 0 4px #1E90FF;
    }
    60% {
        transform: scale(1.08) translateY(-6px);
        text-shadow: 0 0 8px #00BFFF, 0 0 12px #1E90FF;
    }
    100% {
        transform: scale(1) translateY(0);
        text-shadow: 0 0 2px #00BFFF, 0 0 4px #1E90FF;
    }
}

.type-cursor {
    display: inline-block;
    color: #00BFFF;
    font-weight: bold;
    font-size: 1.1em;
    margin-left: 2px;
    animation: blink 1s steps(1) infinite;
    vertical-align: baseline;
}

.contact-infographics {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2.5rem 0 2rem 0;
    flex-wrap: wrap;
}

.contact-card {
    background: rgba(255,255,255,0.07);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    border: 1.5px solid rgba(255,215,0,0.13);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    min-width: 220px;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.contact-card:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 8px 32px rgba(255,215,0,0.13), 0 2px 16px rgba(0,0,0,0.22);
}
.contact-icon {
    font-size: 2.2rem;
    color: #00BFFF;
    margin-bottom: 0.7rem;
}
.contact-label {
    font-size: 1.1rem;
    color: #00BFFF;
    font-weight: 700;
    margin-bottom: 0.3rem;
    letter-spacing: 0.02em;
}
.contact-value {
    font-size: 1.05rem;
    color: #fff;
    word-break: break-all;
    text-align: center;
}
.contact-value a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s, text-shadow 0.2s;
}
.contact-value a:hover {
    color: #00BFFF;
    text-shadow: 0 0 8px #00BFFF99;
    text-decoration: underline;
}
@media (max-width: 800px) {
    .contact-infographics {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .contact-card {
        min-width: 180px;
        max-width: 350px;
        width: 100%;
    }
}

.contact-big-title {
    text-align: center;
    font-family: 'Inter', 'Poppins', 'Montserrat', Arial, sans-serif;
    font-size: 3.2rem;
    font-weight: 900;
    padding: 1.1em 2em 1em 2em;
    margin: 0 auto 2.5rem auto;
    border-radius: 2.2rem;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    color: #181818;
    letter-spacing: 0.04em;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.contact-big-title::before { display: none !important; }
.contact-big-title span {
    background: linear-gradient(135deg, #00BFFF 0%, #1E90FF 25%, #00FFFF 50%, #00BFFF 75%, #1E90FF 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: unset !important;
    font-weight: 900;
    text-shadow: 0 2px 8px #00BFFF33, 0 1px 2px #1E90FF33;
    filter: none;
    display: inline-block;
    position: relative;
    z-index: 2;
    transition: transform 0.35s cubic-bezier(.4,2,.3,1), text-shadow 0.3s, filter 0.3s, background-position 0.5s;
}
.contact-big-title:hover span {
    animation: liquidGradientFlow 2.5s linear infinite;
    background-position: 100% 50%;
    transform: scale(1.08) perspective(300px) rotateX(8deg) rotateY(-6deg);
    text-shadow: 0 6px 24px #00BFFF99, 0 2px 8px #1E90FF66;
    filter: drop-shadow(0 2px 12px #00BFFF88);
}
@media (max-width: 600px) {
    /* Ujednolicenie nagłówka KONTAKT do rozmiaru jak w PORTFOLIO na mobile */
    .contact-big-title {
        font-size: clamp(2rem, 8.5vw, 3rem);
        padding: 0.8em 0.9em 0.7em 0.9em;
        border-radius: 1.1rem;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    /* Karty kontaktowe wyrównane i szerokością jak formularz */
    .contact-infographics {
        width: 94vw;
        max-width: 94vw;
        margin-left: auto;
        margin-right: auto;
        align-items: stretch;
    }
    .contact-card {
        width: 100%;
        max-width: 94vw;
        text-align: center;
    }
    .contact-icon, .contact-label, .contact-value {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

.contact-form {
    max-width: 340px;
    margin: 2.5rem auto 0 auto;
    background: rgba(255,255,255,0.07);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
    border: 1.5px solid rgba(255,215,0,0.13);
    padding: 1.2rem 1.2rem 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
@media (max-width: 600px) {
    .contact-form {
        max-width: 98vw;
        padding: 0.7rem 0.2rem 0.5rem 0.2rem;
    }
}

/* —— Mobile polish: comfortable tap targets, perfect width, no iOS zoom —— */
@media (max-width: 600px) {
  .container { padding: 0 12px; }
  section { padding: var(--space-xl) 0; }
  .contact-form { max-width: 94vw; padding: 0.9rem 0.6rem 0.8rem 0.6rem; gap: 0.9rem; }
  .contact-form .btn-primary { width: 100%; padding: 14px 18px; font-size: 16px; }
  .form-group input, .form-group textarea { font-size: 16px; padding: 14px; }
  .form-group textarea { min-height: 180px; }
  .form-consent { max-width: 94vw; margin: 6px auto 12px auto; }
  .consent-control { gap: 10px; align-items: center; }
  .consent-block { align-items: center; text-align: center; }
  /* Sticky CTA na mobile */
  .sticky-mobile { position: sticky; bottom: max(env(safe-area-inset-bottom), 12px); z-index: 20; backdrop-filter: blur(12px) saturate(120%); -webkit-backdrop-filter: blur(12px) saturate(120%); box-shadow: 0 12px 30px rgba(0,0,0,.35), 0 0 22px rgba(0,191,255,.25); border: 1px solid rgba(255,255,255,.15); }
  .contact-form { padding-bottom: 12px; }
  /* Nawigacja i bezpieczne odstępy */
  .nav-glass { min-height: 52px; padding: 8px 0; }
  .nav-menu { z-index: 1500; background: transparent !important; gap: 12px; overflow: visible; white-space: nowrap; margin-left: 20px; }
  .hero-section { padding-top: 80px; }
  /* Mniejsze typografie hero i CTA */
  .hero-title { font-size: 1.8rem; }
  .title-line.liquid-text { font-size: 2rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .btn-primary, .btn-secondary { padding: 14px 20px; font-size: 1.1rem; min-width: 160px; text-align: center; }
  /* Centrowanie nagłówków sekcji */
  .section-title, .contact-big-title { text-align: center; margin-left: auto; margin-right: auto; }
  .portfolio-section .section-title, .portfolio-section h2, .portfolio-section .greeting-massive { text-align: center !important; margin-left: auto; margin-right: auto; }
  .portfolio-section h2, .portfolio-section .ultimate-neon-header { text-align: center !important; margin: 0 auto !important; max-width: 100vw !important; overflow: visible !important; }
  .greeting-massive { font-size: clamp(1.8rem, 6.5vw, 2.2rem) !important; }
  /* Karty kontaktowe bardziej kompaktowe */
  .contact-card { padding: 1.3rem 1rem 1rem 1rem; }
}

@media (max-width: 380px) {
  .contact-form { max-width: 96vw; }
  .contact-form .btn-primary { padding: 13px 16px; font-size: 15px; }
  .consent-text { font-size: 13px; }
}

.video-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    margin: 0 auto;
}
.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    border: none;
}

.video-responsive video {
    width: 100% !important;
    height: 100% !important;
    display: block;
    border-radius: 18px;
    background: #000;
}

/* AI Voice Command Button */
.voice-command-btn {
    position: fixed;
    bottom: 20px;
    right: 80px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    animation: float 3s ease-in-out infinite;
}

.voice-command-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
}

.voice-command-btn.recording {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    animation: pulse 1s infinite;
}

/* 3D Card Effects */
.glass-card[data-tilt] {
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.glass-card[data-tilt]:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Quantum Ripple Effect */
.quantum-ripple {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.3) 0%, transparent 70%);
    transition: all 1s ease-out;
}

/* Smart Navigation Active States */
.nav-link.active {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.2), rgba(30, 144, 255, 0.2));
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

/* Gesture Indicator */
.gesture-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1001;
    pointer-events: none;
}

.gesture-indicator.show {
    opacity: 1;
}

/* Particle Interaction Effects */
.quantum-particles .particle:hover {
    transform: scale(2);
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.8);
    transition: all 0.3s ease;
}

/* Multi-layer Parallax */
.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    pointer-events: none;
}

.parallax-layer-1 { transform: translateZ(0); }
.parallax-layer-2 { transform: translateZ(-1px); }
.parallax-layer-3 { transform: translateZ(-2px); }

/* Advanced Card Hover Effects */
.card-glow-enhanced {
    position: relative;
    overflow: hidden;
}

.card-glow-enhanced::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.3) 0%, transparent 70%);
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.card-glow-enhanced:hover::after {
    width: 200px;
    height: 200px;
}

/* Interactive Video Controls */
.video-controls-enhanced {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-video:hover .video-controls-enhanced {
    opacity: 1;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: rgba(0, 191, 255, 0.3);
    transform: scale(1.1);
}

/* Advanced Scroll Effects */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Hover Effects */
.liquid-hover-enhanced {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.liquid-hover-enhanced::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: left 0.5s ease;
}

.liquid-hover-enhanced:hover::before {
    left: 100%;
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .voice-command-btn {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .gesture-indicator {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .voice-command-btn {
        bottom: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}

.glow-innovative {
    box-shadow: 0 0 40px 8px #00BFFF33, 0 0 20px 4px #fff70011, 0 10px 30px rgba(0,0,0,0.5) !important;
    animation: innovativeGlow 2.5s infinite alternate;
}

@keyframes innovativeGlow {
    0% { box-shadow: 0 0 40px 8px #00BFFF33, 0 0 20px 4px #fff70011; }
    100% { box-shadow: 0 0 60px 12px #00BFFF55, 0 0 30px 6px #fff70022; }
}

.play-overlay-innovative {
    opacity: 1 !important;
    background: radial-gradient(circle, rgba(255,215,0,0.22) 0%, rgba(0,0,0,0.55) 100%) !important;
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 10;
    pointer-events: auto;
}

.play-button-innovative {
    width: 100px;
    height: 100px;
    border: none;
    outline: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 0 40px 10px #00BFFF88, 0 0 0 0 #fff0;
    animation: playBtnPulse 1.5s infinite alternate;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.play-button-innovative:hover {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 0 60px 20px #00BFFFcc, 0 0 0 0 #fff0;
}

@keyframes playBtnPulse {
    0% { box-shadow: 0 0 40px 10px #00BFFF88; }
    100% { box-shadow: 0 0 80px 30px #00BFFFcc; }
}

.play-button-innovative svg {
    display: block;
    filter: drop-shadow(0 0 12px #00BFFF88);
}

.play-button-innovative:focus {
    outline: 2px solid #00BFFF;
    outline-offset: 4px;
}

.video-bg-innovative {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    min-height: 600px;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
    filter: blur(0.5px) brightness(1.05);
}

#hero-video-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.7;
    filter: blur(8px) brightness(1.1);
}

.orb-hero-1 {
    position: absolute;
    width: 320px;
    height: 320px;
    left: 60%;
    top: 18%;
    background: radial-gradient(circle at 60% 40%, #00BFFF 0%, #1E90FF 60%, transparent 100%);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.22;
    animation: orbHeroMove1 8s ease-in-out infinite alternate;
    z-index: 2;
}

.orb-hero-2 {
    position: absolute;
    width: 180px;
    height: 180px;
    right: 10%;
    bottom: 18%;
    background: radial-gradient(circle at 40% 60%, #00f2fe 0%, #4facfe 60%, transparent 100%);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.13;
    animation: orbHeroMove2 10s ease-in-out infinite alternate;
    z-index: 2;
}

@keyframes orbHeroMove1 {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-40px) scale(1.08); }
}
@keyframes orbHeroMove2 {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(40px) scale(1.12); }
}

/* Stare style usunięte - strzałki są teraz po bokach */

.portfolio-item.blurred {
    filter: blur(8px) grayscale(0.5) brightness(0.7) saturate(0.7);
    opacity: 0.7;
    transform: scale(0.88) translateY(30px);
    z-index: 1;
}

.portfolio-item.active {
    filter: none;
    opacity: 1;
    z-index: 5;
    transition: filter 0.5s, opacity 0.5s;
}

.slider-indicators-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 2.5rem;
    z-index: 10;
    padding: 0 1rem;
    flex-wrap: wrap;
}

.slider-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(0, 191, 255, 0.4);
    box-shadow: 0 2px 8px rgba(0, 191, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    flex-shrink: 0;
}

.slider-dot.active {
    background: linear-gradient(135deg, #00BFFF 0%, #00f2fe 100%);
    box-shadow: 0 4px 16px rgba(0, 191, 255, 0.6);
    border-color: #00f2fe;
    transform: scale(1.25);
}

.slider-dot:hover {
    background: linear-gradient(135deg, #00BFFF 0%, #00f2fe 100%);
    box-shadow: 0 0 12px 2px rgba(0, 191, 255, 0.5), 0 1.5px 8px 0 rgba(0, 242, 254, 0.5);
    border-color: #00BFFF;
    transform: scale(1.15);
}

.slider-dot:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .slider-indicators-modern {
        gap: 14px;
        margin-top: 2rem;
    }
    
    .slider-dot {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .slider-indicators-modern {
        gap: 12px;
        margin-top: 1.5rem;
    }
    
    .slider-dot {
        width: 16px;
        height: 16px;
    }
}

/* Nowoczesne, zaawansowane particles na tło */
#global-particles-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
  filter: blur(0.5px) brightness(1.08);
  background: transparent !important;
}

/* WYŁĄCZENIE zbędnych efektów tła dla minimalistycznego stylu */
.cosmos-container,
.hero-particles,
#global-particles-bg,
.parallax-bg,
#hero-video-cosmos-bg,
.particles-canvas,
#particle-canvas {
  display: none !important;
}

/* Neon Electric Blue tło – nowy canvas */
#neon-bg-canvas {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.45; /* wyraźniejszy efekt WOW */
  background: transparent !important;
}

/* Aurora + Grid overlay in style of a premium studio landing */
.bg-aurora-layer {
  position: fixed;
  inset: 0;
  z-index: 0; /* pod treścią, nad body::before */
  pointer-events: none;
}
.bg-aurora-layer::after {
  /* delikatny proceduralny noise dla jakościowego looku */
  content: '';
  position: absolute; inset: 0;
  opacity: 0.04; pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="128" height="128" filter="url(%23n)" opacity="0.55"/></svg>');
  background-size: 200px 200px;
  mix-blend-mode: overlay;
}
.aurora {
  position: absolute;
  filter: blur(100px);
  opacity: 0.12;
  mix-blend-mode: screen;
  transform: translateZ(0);
  will-change: transform, opacity;
  animation: auroraDrift 32s ease-in-out infinite alternate;
}
.aurora-1 {
  width: 55vw; height: 55vw;
  left: -10vw; top: -10vh;
  background: radial-gradient(circle at 40% 40%, rgba(0,191,255,0.35), rgba(0,242,254,0.0) 60%) !important;
}
.aurora-2 {
  width: 45vw; height: 45vw;
  right: -8vw; top: 20vh;
  background: radial-gradient(circle at 60% 60%, rgba(0,242,254,0.28), rgba(30,144,255,0.0) 60%) !important;
  animation-delay: 4s;
}
.aurora-3 {
  width: 60vw; height: 60vw;
  left: 20vw; bottom: -15vh;
  background: radial-gradient(circle at 50% 50%, rgba(30,144,255,0.25), rgba(0,191,255,0.0) 60%) !important;
  animation-delay: 8s;
}
.aurora-4 {
  width: 50vw; height: 50vw;
  right: 10vw; bottom: -10vh;
  background: radial-gradient(circle at 40% 60%, rgba(0,191,255,0.22), rgba(0,242,254,0.0) 60%) !important;
  animation-delay: 12s;
}
.aurora-5 {
  width: 40vw; height: 40vw;
  left: 60vw; top: -15vh;
  background: radial-gradient(circle at 50% 50%, rgba(139,92,246,0.18), rgba(0,191,255,0.0) 60%) !important;
  animation-delay: 16s;
}
.aurora-6 {
  width: 35vw; height: 35vw;
  left: 10vw; top: 35vh;
  background: radial-gradient(circle at 50% 50%, rgba(0,242,254,0.16), rgba(30,144,255,0.0) 60%) !important;
  animation-delay: 20s;
}
@keyframes auroraDrift {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(2vw,-2vh,0) scale(1.05); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px) !important;
  background-size: 80px 80px, 80px 80px;
  background-position: center center;
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
  opacity: 0.12;
}

/* Subtelny parallax na tło */
.parallax-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  background: radial-gradient(circle at 60% 40%, #00BFFF33 0%, transparent 80%),
              radial-gradient(circle at 30% 70%, #00f2fe33 0%, transparent 80%);
  animation: parallaxMove 18s linear infinite alternate;
}
@keyframes parallaxMove {
  0% { background-position: 60% 40%, 30% 70%; }
  100% { background-position: 65% 45%, 25% 75%; }
}

/* INFOKARTY – układ poziomy, glass, subtelny glow */
.infographics-row, .contact-infographics {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: center;
  align-items: stretch;
  margin: 2.5rem 0;
}
.infographic-card {
  background: rgba(30,34,54,0.55);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18);
  transition: box-shadow 0.5s, background 0.5s;
  will-change: box-shadow, background;
  position: relative;
  overflow: hidden;
  min-width: 160px;
  max-width: 220px;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.2rem 1.2rem 1.2rem 1.2rem;
}
.infographic-card:hover {
  background: rgba(30,34,54,0.82);
  box-shadow: 0 20px 60px 0 #00BFFF33, 0 1.5px 8px 0 #00f2fe33;
  z-index: 2;
}
.infographic-card::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: radial-gradient(circle, #00BFFF22 0%, transparent 80%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  transition: width 0.5s, height 0.5s, opacity 0.5s;
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
}
.infographic-card:hover::after {
  width: 120px; height: 120px;
  opacity: 0.22;
}
@media (max-width: 900px) {
  .infographics-row, .contact-infographics {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
  .infographic-card {
    min-width: 0;
    max-width: 100%;
  }
}

/* Strzałki po bokach slidera - na środku ekranu */
.slider-side {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000 !important;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.18);
    color: #00BFFF;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 24px 0 #00BFFF33, 0 1.5px 8px 0 #00f2fe33;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s;
    backdrop-filter: blur(8px) saturate(1.2);
    outline: none;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.slider-prev.slider-side {
    left: 5vw;
}

.slider-next.slider-side {
    right: 5vw;
}

@media (max-width: 768px) {
    .slider-side {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .slider-prev.slider-side {
        left: 3vw;
    }
    
    .slider-next.slider-side {
        right: 3vw;
    }
}

@media (max-width: 480px) {
    .slider-side {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
    
    .slider-prev.slider-side {
        left: 2vw;
    }
    
    .slider-next.slider-side {
        right: 2vw;
    }
}

/* Portfolio wrapper z pozycją względną dla strzałek */
.portfolio-slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 2rem 0;
    min-height: 600px;
    background: rgba(30,34,54,0.55);
    backdrop-filter: blur(16px) saturate(1.2);
    border-radius: 32px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18);
}

/* Kropki pod sliderem - poprawione style */
.slider-indicators-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 2.5rem;
    z-index: 10;
    padding: 0 1rem;
    flex-wrap: wrap;
}

.slider-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(0, 191, 255, 0.4);
    box-shadow: 0 2px 8px rgba(0, 191, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    flex-shrink: 0;
}

.slider-dot.active {
    background: linear-gradient(135deg, #00BFFF 0%, #00f2fe 100%);
    box-shadow: 0 4px 16px rgba(0, 191, 255, 0.6);
    border-color: #00f2fe;
    transform: scale(1.25);
}

.slider-dot:hover {
    background: linear-gradient(135deg, #00BFFF 0%, #00f2fe 100%);
    box-shadow: 0 0 12px 2px rgba(0, 191, 255, 0.5), 0 1.5px 8px 0 rgba(0, 242, 254, 0.5);
    border-color: #00BFFF;
    transform: scale(1.15);
}

.slider-dot:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .slider-indicators-modern {
        gap: 14px;
        margin-top: 2rem;
    }
    
    .slider-dot {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .slider-indicators-modern {
        gap: 12px;
        margin-top: 1.5rem;
    }
    
    .slider-dot {
        width: 16px;
        height: 16px;
    }
}

/* Hover efekty dla przycisków play */
.portfolio-video:hover::before {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 191, 255, 0.6);
}

.portfolio-video:hover::after {
    transform: translate(-50%, -50%) scale(1.1);
}

.portfolio-video.playing:hover::before,
.portfolio-video.playing:hover::after {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
}

/* Portfolio item hover effects */
.portfolio-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 191, 255, 0.2);
    border-color: rgba(0, 191, 255, 0.3);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 191, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

/* Kropki pod sliderem - na dole ekranu */
.slider-indicators-modern {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 5vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    z-index: 1001;
    padding: 0 1rem;
    flex-wrap: wrap;
}

.portfolio-item .portfolio-video {
    filter: blur(3px) grayscale(0.6) brightness(0.5) saturate(0.5);
    pointer-events: none;
    transition: filter 0.5s, box-shadow 0.5s;
}

.portfolio-item.active .portfolio-video {
    filter: none !important;
    pointer-events: auto !important;
    z-index: 10;
}

.portfolio-item.active {
  z-index: 10 !important;
}

/* Strzałki zawsze po obu stronach */
.slider-side {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Centrowanie aktywnego filmu */
.portfolio-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    gap: 2vw;
    padding: 0;
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: visible !important;
}
.portfolio-item.active {
    min-width: 900px;
    max-width: 1200px;
    opacity: 1;
    z-index: 10;
    transform: scale(1.2) translateY(0);
    filter: none;
    box-shadow: 0 0 150px 60px #00BFFF44, 0 30px 100px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
}

/* Ultra-Modern Portfolio React Integration Styles */
#portfolio-root {
    position: relative;
    z-index: 10;
}

/* Ensure portfolio section takes full width */
.portfolio-section {
    width: 100%;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

/* Custom scrollbar styles for the React slider */
#portfolio-root .scrollbar-hide {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#portfolio-root .scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Enhanced glassmorphism effects for React components */
#portfolio-root .backdrop-blur-3xl {
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

/* Custom animations for React components */
@keyframes letterAnimation {
    0% {
        opacity: 0;
        transform: translateY(30px) rotateX(90deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 242, 254, 0.8);
    }
}

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

/* Ensure React components don't conflict with existing styles */
#portfolio-root * {
    box-sizing: border-box;
}

#portfolio-root .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Responsive adjustments for React portfolio */
@media (max-width: 768px) {
    #portfolio-root .text-6xl {
        font-size: 3rem;
    }
    
    #portfolio-root .text-8xl {
        font-size: 4rem;
    }
    
    #portfolio-root .h-64 {
        height: 12rem;
    }
    
    #portfolio-root .h-80 {
        height: 16rem;
    }
    
    #portfolio-root .h-96 {
        height: 18rem;
    }
}

@media (max-width: 480px) {
    #portfolio-root .text-6xl {
        font-size: 2.5rem;
    }
    
    #portfolio-root .text-8xl {
        font-size: 3rem;
    }
    
    #portfolio-root .h-48 {
        height: 8rem;
    }
    
    #portfolio-root .h-64 {
        height: 10rem;
    }
}

/* Ensure smooth transitions for React components */
#portfolio-root .transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#portfolio-root .duration-300 {
    transition-duration: 300ms;
}

#portfolio-root .duration-500 {
    transition-duration: 500ms;
}

/* Enhanced glow effects for React components */
#portfolio-root .shadow-cyan-500\/25 {
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.25);
}

#portfolio-root .shadow-cyan-500\/40 {
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.4);
}

#portfolio-root .shadow-cyan-500\/50 {
    box-shadow: 0 0 40px rgba(0, 242, 254, 0.5);
}

/* Ensure proper z-index stacking for React components */
#portfolio-root .z-10 {
    z-index: 10;
}

#portfolio-root .z-20 {
    z-index: 20;
}

#portfolio-root .z-30 {
    z-index: 30;
}

/* Custom gradient backgrounds for React components */
#portfolio-root .bg-gradient-to-br {
    background: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

#portfolio-root .from-cyan-500\/5 {
    --tw-gradient-from: rgba(0, 242, 254, 0.05);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 242, 254, 0));
}

#portfolio-root .to-purple-600\/5 {
    --tw-gradient-to: rgba(147, 51, 234, 0.05);
}

/* Ensure proper aspect ratios for videos */
#portfolio-root video {
    aspect-ratio: auto;
}

/* 🔥⚡ SPECTACULAR ELECTRIC BLUE NEON EFFECTS ⚡🔥 */

/* NEON PULSING ANIMATION FOR HEADERS */
@keyframes neonPulse {
    0%, 100% { 
        text-shadow: var(--neon-glow);
        filter: brightness(1);
    }
    50% { 
        text-shadow: 0 0 40px #00BFFF, 0 0 80px #1E90FF, 0 0 120px #00FFFF;
        filter: brightness(1.5);
    }
}

/* HOLOGRAPHIC WAVE EFFECT */
@keyframes holographicWave {
    0% { 
        background-position: -200% 0;
        color: var(--electric-blue);
    }
    25% { 
        color: var(--dark-electric);
    }
    50% { 
        background-position: 200% 0;
        color: var(--cyan-accent);
    }
    75% { 
        color: var(--light-blue);
    }
    100% { 
        background-position: -200% 0;
        color: var(--electric-blue);
    }
}

/* ELECTRIC TREMBLING HOVER EFFECT */
@keyframes electricTrembling {
    0%, 100% { 
        transform: translateX(0);
        text-shadow: 0 0 10px var(--cyan-accent);
    }
    10% { 
        transform: translateX(-1px);
        text-shadow: -2px 0 10px var(--cyan-accent);
    }
    20% { 
        transform: translateX(1px);
        text-shadow: 2px 0 10px var(--cyan-accent);
    }
    30% { 
        transform: translateX(-1px);
        text-shadow: -1px 0 15px var(--cyan-accent);
    }
    40% { 
        transform: translateX(1px);
        text-shadow: 1px 0 15px var(--cyan-accent);
    }
    50% { 
        transform: translateX(0);
        text-shadow: 0 0 20px var(--cyan-accent);
    }
    60% { 
        transform: translateX(-0.5px);
        text-shadow: -1px 0 15px var(--cyan-accent);
    }
    70% { 
        transform: translateX(0.5px);
        text-shadow: 1px 0 15px var(--cyan-accent);
    }
    80% { 
        transform: translateX(-0.5px);
        text-shadow: -0.5px 0 12px var(--cyan-accent);
    }
    90% { 
        transform: translateX(0.5px);
        text-shadow: 0.5px 0 12px var(--cyan-accent);
    }
}

/* SHIMMER FLASH EFFECT */
@keyframes shimmerFlash {
    0% { 
        background-position: -100% 0;
        opacity: 0;
    }
    50% { 
        opacity: 1;
    }
    100% { 
        background-position: 100% 0;
        opacity: 0;
    }
}

/* 🔥 FORCE ELECTRIC BLUE HEADER CLASSES */
.electric-header {
    background: var(--electric-gradient) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: neonPulse 3s ease-in-out infinite, holographicWave 4s linear infinite !important;
    position: relative !important;
    display: inline-block !important;
}

.electric-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--electric-shimmer);
    background-size: 200% 100%;
    animation: shimmerFlash 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* ELECTRIC HOVER EFFECT */
.electric-hover {
    transition: all 0.3s ease;
    color: var(--light-blue);
}

.electric-hover:hover {
    animation: electricTrembling 0.5s ease-in-out;
    color: var(--cyan-accent) !important;
    text-shadow: var(--neon-glow);
}

/* 🔥 FORCE ELECTRIC TEXT WITH SUBTLE GLOW */
.electric-text {
    color: var(--light-blue) !important;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.3) !important;
}

/* ELECTRIC ICONS */
.infographic-icon i,
.contact-icon i {
    color: var(--electric-blue) !important;
    text-shadow: var(--neon-glow);
    animation: neonPulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.infographic-icon:hover i,
.contact-icon:hover i {
    color: var(--cyan-accent) !important;
    text-shadow: 0 0 30px #00FFFF, 0 0 60px #00BFFF;
    transform: scale(1.1);
}

/* ELECTRIC SHIMMER FOR NAVIGATION */
.electric-shimmer {
    position: relative;
    overflow: hidden;
}

.electric-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--electric-shimmer);
    background-size: 200% 100%;
    animation: shimmerFlash 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

#portfolio-root .aspect-9-16 {
    aspect-ratio: 9 / 16;
}

#portfolio-root .aspect-16-9 {
    aspect-ratio: 16 / 9;
}
