/* Section Tracking Styles */

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #1E3A8A, #3B82F6);
    z-index: 9999;
    transition: width 0.1s ease;
    pointer-events: none;
}

/* Active Section Indicator in Navigation */
.nav-link.active-section {
    color: #3B82F6 !important;
    font-weight: 600;
    position: relative;
}

.nav-link.active-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #3B82F6;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* Section'ların görünümde olduğunda animasyonlar */
section.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Body data attribute'e göre stil değişiklikleri */
body[data-active-section="hero"] .navbar {
    background: rgba(30, 58, 138, 0.9);
}

body[data-active-section="hero"] .navbar-brand {
    color: white;
}

body[data-active-section^="cta"] .navbar {
    background: rgba(30, 58, 138, 1);
}

/* Section geçiş animasyonları */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Section highlight on focus (accessibility) */
section:target {
    animation: sectionHighlight 2s ease-in-out;
}

@keyframes sectionHighlight {
    0% {
        background-color: rgba(59, 130, 246, 0.1);
    }
    50% {
        background-color: rgba(59, 130, 246, 0.05);
    }
    100% {
        background-color: transparent;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .scroll-progress {
        height: 2px;
    }
    
    .nav-link.active-section::after {
        width: 4px;
        height: 4px;
    }
}

/* Print styles */
@media print {
    .scroll-progress {
        display: none;
    }
}