/* ==================== ULTRA PREMIUM "VAY BE!" SİSTEMİ ==================== */

/* ==================== 1. ULTRA PREMIUM BUTONLAR ==================== */

/* Magnetic Button Effect */
.btn-primary,
.btn-secondary,
button[class*="btn"],
.submit-btn {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Liquid Fill Effect */
.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: -1;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    height: 100%;
}

/* Glow Pulse */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(234, 179, 8, 0.4),
                    0 0 40px rgba(234, 179, 8, 0.2),
                    0 0 60px rgba(234, 179, 8, 0.1);
    }
    50% {
        box-shadow: 0 0 40px rgba(234, 179, 8, 0.8),
                    0 0 80px rgba(234, 179, 8, 0.4),
                    0 0 120px rgba(234, 179, 8, 0.2);
    }
}

.btn-primary:hover {
    animation: glowPulse 2s ease-in-out infinite;
    transform: translateY(-4px) scale(1.05);
}

/* Particle Explosion on Click */
@keyframes particleExplode {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* 3D Tilt Effect */
.btn-primary:hover,
.btn-secondary:hover {
    transform: rotateX(5deg) rotateY(5deg) translateY(-4px) scale(1.05);
}

/* ==================== 2. SECTION GEÇİŞ ANİMASYONLARI ==================== */

/* Ana Sayfa → Araçlar: Slide + Zoom + Rotate */
section[data-transition="slide-zoom"] {
    opacity: 0;
    transform: translateX(-100%) scale(0.8) rotate(-10deg);
    transition: all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

section[data-transition="slide-zoom"].visible {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(0);
}

/* Araçlar → Hizmetler: Flip */
section[data-transition="flip"] {
    opacity: 0;
    transform: rotateY(-90deg) scale(0.9);
    transform-origin: center;
    transition: all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

section[data-transition="flip"].visible {
    opacity: 1;
    transform: rotateY(0) scale(1);
}

/* Hizmetler → Kampanyalar: Curtain */
section[data-transition="curtain"] {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1s cubic-bezier(0.77, 0, 0.175, 1);
}

section[data-transition="curtain"].visible {
    clip-path: inset(0 0 0 0);
}

/* Kampanyalar → Yorumlar: Wave */
@keyframes wave {
    0% {
        clip-path: polygon(
            0 0,
            100% 0,
            100% 0,
            0 0
        );
    }
    50% {
        clip-path: polygon(
            0 0,
            100% 0,
            100% 60%,
            0 40%
        );
    }
    100% {
        clip-path: polygon(
            0 0,
            100% 0,
            100% 100%,
            0 100%
        );
    }
}

section[data-transition="wave"] {
    opacity: 0;
    animation: wave 1.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

section[data-transition="wave"].visible {
    opacity: 1;
}

/* Yorumlar → Hakkımızda: Diagonal Wipe */
section[data-transition="diagonal"] {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    transition: clip-path 1s cubic-bezier(0.77, 0, 0.175, 1);
}

section[data-transition="diagonal"].visible {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Hakkımızda → SSS: Zoom Spiral */
section[data-transition="spiral"] {
    opacity: 0;
    transform: scale(0) rotate(-360deg);
    transition: all 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

section[data-transition="spiral"].visible {
    opacity: 1;
    transform: scale(1) rotate(0);
}

/* SSS → İletişim: Liquid */
section[data-transition="liquid"] {
    opacity: 0;
    filter: blur(20px);
    transform: scale(1.2);
    transition: all 1s ease-out;
}

section[data-transition="liquid"].visible {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

/* ==================== 3. NAVBAR SCROLL MAGIC ==================== */

.navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Blur + Shrink on Scroll */
.navbar.scrolled {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 0.5rem 0 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Section Indicator */
.section-indicator {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.section-indicator .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.section-indicator .dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid rgba(234, 179, 8, 0);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.section-indicator .dot.active {
    background: #eab308;
    transform: scale(1.5);
}

.section-indicator .dot.active::before {
    border-color: rgba(234, 179, 8, 0.5);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Color Morph per Section */
body[data-section="hero"] .navbar {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(15, 23, 42, 0.95));
}

body[data-section="vehicles"] .navbar {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(30, 58, 138, 0.95));
}

body[data-section="services"] .navbar {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(30, 58, 138, 0.95));
}

/* ==================== 4. CARD ANIMATIONS ==================== */

/* Stagger Wave */
.features-grid .feature-card,
.vehicles-grid .vehicle-card,
.service-grid .service-card {
    opacity: 0;
    transform: translateY(50px) rotateX(30deg);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.features-grid.visible .feature-card:nth-child(1) { transition-delay: 0.1s; }
.features-grid.visible .feature-card:nth-child(2) { transition-delay: 0.2s; }
.features-grid.visible .feature-card:nth-child(3) { transition-delay: 0.3s; }
.features-grid.visible .feature-card:nth-child(4) { transition-delay: 0.4s; }

.features-grid.visible .feature-card,
.vehicles-grid.visible .vehicle-card,
.service-grid.visible .service-card {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

/* 3D Flip on Hover */
.vehicle-card,
.service-card,
.feature-card {
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vehicle-card:hover,
.service-card:hover,
.feature-card:hover {
    transform: rotateY(5deg) rotateX(5deg) scale(1.05) translateZ(20px);
    box-shadow: 0 30px 80px rgba(234, 179, 8, 0.4),
                0 0 60px rgba(234, 179, 8, 0.2);
}

/* Holographic Shine */
.vehicle-card::after,
.service-card::after,
.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 75%,
        transparent 100%
    );
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
}

.vehicle-card:hover::after,
.service-card:hover::after,
.feature-card:hover::after {
    opacity: 1;
    animation: holographicShine 1.5s ease-in-out infinite;
}

@keyframes holographicShine {
    0% {
        background-position: -100% -100%;
    }
    100% {
        background-position: 200% 200%;
    }
}

/* Float & Bounce */
@keyframes floatBounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-10px);
    }
    50% {
        transform: translateY(0);
    }
    75% {
        transform: translateY(-5px);
    }
}

.feature-icon,
.service-icon {
    animation: floatBounce 3s ease-in-out infinite;
}

/* ==================== 5. MICRO INTERACTIONS ==================== */

/* Icon Explosion on Hover */
i,
.icon,
svg {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

i:hover,
.icon:hover {
    animation: iconExplode 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes iconExplode {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.5) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

/* Text Shimmer */
h1,
h2,
h3,
.section-header h2 {
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #eab308 25%,
        #ffffff 50%,
        #eab308 75%,
        #ffffff 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 3s ease-in-out infinite;
}

@keyframes textShimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Cursor Trail */
.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.8), transparent);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    animation: trailFade 0.5s ease-out forwards;
}

@keyframes trailFade {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* ==================== 6. SCROLL VELOCITY EFFECTS ==================== */

/* Fast Scroll Blur */
body.fast-scroll section {
    filter: blur(2px);
    transition: filter 0.1s ease;
}

body:not(.fast-scroll) section {
    filter: blur(0);
    transition: filter 0.3s ease;
}

/* ==================== 7. LOADING ANIMATIONS ==================== */

/* Skeleton Screen */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Progressive Reveal */
.progressive-reveal {
    clip-path: inset(0 0 100% 0);
    animation: progressiveReveal 1s ease-out forwards;
}

@keyframes progressiveReveal {
    to {
        clip-path: inset(0 0 0 0);
    }
}

/* ==================== 8. SPECIAL EFFECTS ==================== */

/* Magnetic Hover (Cards çeker) */
.vehicle-card,
.service-card,
.feature-card {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Glass Morph Effect */
.glass-morph {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Neon Glow */
.neon-glow {
    text-shadow: 0 0 10px rgba(234, 179, 8, 0.8),
                 0 0 20px rgba(234, 179, 8, 0.6),
                 0 0 30px rgba(234, 179, 8, 0.4),
                 0 0 40px rgba(234, 179, 8, 0.2);
    animation: neonFlicker 3s ease-in-out infinite;
}

@keyframes neonFlicker {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    75% {
        opacity: 1;
    }
    85% {
        opacity: 0.9;
    }
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    /* Reduce animation complexity on mobile */
    section[data-transition] {
        transition-duration: 0.5s !important;
    }
    
    .section-indicator {
        display: none;
    }
    
    /* Disable 3D transforms on mobile for performance */
    .vehicle-card:hover,
    .service-card:hover,
    .feature-card:hover {
        transform: scale(1.05) !important;
    }
}

/* ==================== PERFORMANCE OPTIMIZATIONS ==================== */

/* GPU Acceleration */
.vehicle-card,
.service-card,
.feature-card,
.btn-primary,
.btn-secondary,
section {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Reduce Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

