/* ==================== PERFECT PAGE TRANSITIONS ==================== */
/* Dünya standartı sayfa geçişleri ve scroll animasyonları */

/* ===== 1. ULTRA SMOOTH SCROLL BEHAVIOR ===== */
html {
    scroll-behavior: smooth !important;
    scroll-padding-top: 80px !important; /* Navbar height */
}

/* ===== 2. SECTION REVEAL ANIMATIONS ===== */
section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

section.visible,
section.in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Hero section instant visible */
section.hero {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 3. NAVBAR ACTIVE LINK HIGHLIGHT ===== */
.nav-menu a {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #eab308, #f59e0b);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a.active::before,
.nav-menu a:hover::before {
    width: 100%;
}

.nav-menu a.active {
    color: #eab308 !important;
}

/* ===== 4. SECTION TRANSITION EFFECTS ===== */
/* Fade & Slide */
.transition-fade {
    animation: sectionFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scale & Fade */
.transition-scale {
    animation: sectionScaleIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes sectionScaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Blur Reveal */
.transition-blur {
    animation: sectionBlurIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes sectionBlurIn {
    from {
        opacity: 0;
        filter: blur(20px);
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

/* ===== 5. SCROLL PROGRESS INDICATOR ===== */
.scroll-progress-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    z-index: 9998;
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #eab308, #f59e0b, #eab308);
    background-size: 200% 100%;
    animation: progressGradient 3s linear infinite;
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.6);
    transition: width 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes progressGradient {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

/* ===== 6. SECTION NAVIGATION DOTS ===== */
.section-nav-dots {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: none !important; /* DISABLED - User prefers normal scroll */
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    animation: dotsSlideIn 0.6s ease 1s forwards;
}

@keyframes dotsSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.section-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(234, 179, 8, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.section-nav-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.section-nav-dot:hover::before {
    border-color: rgba(234, 179, 8, 0.4);
    animation: dotPulse 1s ease infinite;
}

.section-nav-dot.active {
    background: linear-gradient(135deg, #eab308, #f59e0b);
    border-color: #eab308;
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.6);
    width: 16px;
    height: 16px;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

/* Dot tooltip */
.section-nav-dot[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 1rem);
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.section-nav-dot:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ===== 7. SCROLL SNAP (Optional - Premium Feel) ===== */
.scroll-snap-enabled {
    scroll-snap-type: y proximity;
}

.scroll-snap-enabled section {
    scroll-snap-align: start;
}

/* ===== 8. PARALLAX SECTION BACKGROUNDS ===== */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: translateZ(0);
    will-change: transform;
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 9. SECTION DIVIDERS ===== */
.section-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(234, 179, 8, 0.3) 20%, 
        rgba(234, 179, 8, 0.6) 50%, 
        rgba(234, 179, 8, 0.3) 80%, 
        transparent 100%);
    margin: 4rem 0;
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-divider.visible {
    opacity: 1;
    transform: scaleX(1);
}

/* ===== 10. BACK TO TOP BUTTON ENHANCED ===== */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #eab308, #f59e0b) !important;
    color: #0f172a !important;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(234, 179, 8, 0.4);
}

#backToTop.show {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

#backToTop:hover {
    transform: scale(1.1) rotate(0deg) !important;
    box-shadow: 0 12px 40px rgba(234, 179, 8, 0.6) !important;
}

#backToTop::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eab308, #f59e0b);
    opacity: 0;
    z-index: -1;
    animation: buttonPulse 2s ease infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.2);
    }
}

/* ===== 11. SMOOTH PAGE LOAD ANIMATION ===== */
body {
    animation: pageLoad 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pageLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== 12. SECTION TRANSITION INDICATORS ===== */
.section-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: indicatorFade 1s ease 2s forwards;
}

@keyframes indicatorFade {
    to { opacity: 0.7; }
}

.section-indicator span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-indicator i {
    font-size: 1.5rem;
    color: #eab308;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .section-nav-dots {
        display: none;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 60px !important;
    }

    #backToTop {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .scroll-progress-wrapper {
        height: 3px;
    }
}

/* ===== PERFORMANCE OPTIMIZATION ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    section,
    .transition-fade,
    .transition-scale,
    .transition-blur {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .scroll-progress-bar {
        animation: none !important;
    }
}

