/* ================================================
   VOLMASTER - PREMIUM UI/UX ENHANCEMENTS
   Visual Improvements & Micro-Interactions
   ================================================ */

/* ============================================ */
/* SMOOTH SCROLL & PERFORMANCE */
/* ============================================ */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

* {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================ */
/* ADVANCED BUTTON MICRO-INTERACTIONS */
/* ============================================ */

.btn-primary,
.btn-secondary,
.btn-large {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

/* Ripple effect on click */
.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::before,
.btn-secondary:active::before {
    width: 300px;
    height: 300px;
}

/* Magnetic hover effect */
.btn-primary:hover,
.btn-large:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.6),
                0 0 60px rgba(255, 215, 0, 0.3);
    filter: brightness(1.1);
}

.btn-primary:active,
.btn-large:active {
    transform: translateY(-1px) scale(0.98);
    transition: transform 0.1s ease;
}

/* Shine effect on hover */
.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 20px;
    height: 200%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.5), 
        transparent);
    transform: rotate(20deg);
    transition: right 0.5s ease;
}

.btn-primary:hover::after {
    right: 150%;
    transition: right 0.7s ease;
}

/* ============================================ */
/* CARD HOVER EFFECTS - 3D TRANSFORMS */
/* ============================================ */

[class*="card"],
.speaker-card,
.benefit-card,
.testimonial-card,
.target-card {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

[class*="card"]:hover,
.speaker-card:hover,
.benefit-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(255, 215, 0, 0.3),
                0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Inner shadow on press */
[class*="card"]:active {
    transform: translateY(-8px) scale(1);
    transition: transform 0.1s ease;
}

/* ============================================ */
/* GLASSMORPHISM PREMIUM */
/* ============================================ */

.nav,
.cta-box,
.price-card {
    background: rgba(10, 20, 53, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 215, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Glow border effect */
.cta-box,
.target-card:hover {
    position: relative;
}

.cta-box::before,
.target-card:hover::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, 
        #FFD700, 
        #FFA500, 
        #FFD700, 
        #FFA500);
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderGlow 3s ease infinite;
}

.cta-box:hover::before,
.target-card:hover::before {
    opacity: 1;
}

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

/* ============================================ */
/* PARALLAX SCROLL EFFECTS */
/* ============================================ */

.hero,
.video-presentation,
.speakers-section {
    position: relative;
    overflow: hidden;
}

.hero-bg,
[class*="background-layer"] {
    transform: translateZ(0);
    will-change: transform;
}

/* Parallax floating elements */
.floating-shape {
    animation: floatParallax 20s ease-in-out infinite;
    will-change: transform;
}

@keyframes floatParallax {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% { 
        transform: translate(30px, -30px) rotate(5deg) scale(1.05);
    }
    50% { 
        transform: translate(-20px, -50px) rotate(-5deg) scale(0.95);
    }
    75% { 
        transform: translate(25px, -25px) rotate(3deg) scale(1.02);
    }
}

/* ============================================ */
/* LOADING STATES & SKELETON */
/* ============================================ */

/* Pulse loading effect */
.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* Skeleton shimmer */
.skeleton {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 215, 0, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================ */
/* IMPROVED SCROLL REVEAL ANIMATIONS */
/* ============================================ */

[data-aos] {
    transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, opacity;
}

/* Fade in with bounce */
@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    60% {
        opacity: 1;
        transform: translateY(-10px) scale(1.02);
    }
    80% {
        transform: translateY(5px) scale(0.99);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

.fade-in-bounce {
    animation: fadeInBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Slide in with fade */
@keyframes slideInFade {
    0% {
        opacity: 0;
        transform: translateX(-60px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-fade {
    animation: slideInFade 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ============================================ */
/* IMAGE HOVER EFFECTS */
/* ============================================ */

img {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.4s ease;
}

.speaker-card img:hover,
.gallery-item img:hover {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.05);
}

/* Image overlay on hover */
.speaker-card,
.gallery-item {
    position: relative;
    overflow: hidden;
}

.speaker-card::after,
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 215, 0, 0.2) 0%,
        rgba(255, 165, 0, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.speaker-card:hover::after,
.gallery-item:hover::after {
    opacity: 1;
}

/* ============================================ */
/* TEXT SELECTION STYLING */
/* ============================================ */

::selection {
    background: rgba(255, 215, 0, 0.3);
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

::-moz-selection {
    background: rgba(255, 215, 0, 0.3);
    color: #fff;
}

/* ============================================ */
/* SCROLL PROGRESS BAR */
/* ============================================ */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
    z-index: 9999;
    transition: width 0.2s ease-out;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

/* ============================================ */
/* CURSOR TRAIL EFFECT */
/* ============================================ */

.cursor-dot {
    width: 8px;
    height: 8px;
    background: #FFD700;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease-out;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9997;
    transition: transform 0.2s ease-out, width 0.3s ease, height 0.3s ease;
}

/* Cursor hover states */
a:hover ~ .cursor-ring,
button:hover ~ .cursor-ring {
    width: 60px;
    height: 60px;
    border-color: rgba(255, 215, 0, 1);
}

/* ============================================ */
/* TOOLTIP ENHANCEMENT */
/* ============================================ */

[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(10, 20, 53, 0.97);
    color: #FFD700;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* ============================================ */
/* RESPONSIVE REFINEMENTS */
/* ============================================ */

@media (max-width: 768px) {
    /* Disable heavy effects on mobile for performance */
    .floating-shape {
        animation: none;
    }
    
    [class*="card"]:hover {
        transform: translateY(-8px) scale(1.01);
    }
    
    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================ */
/* PREMIUM FOCUS STATES (ACCESSIBILITY) */
/* ============================================ */

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(255, 215, 0, 0.8);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ============================================ */
/* PRINT STYLES */
/* ============================================ */

@media print {
    .nav,
    .floating-shape,
    .scroll-progress,
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}
