/* Scroll Position Indicator */
.scroll-indicator {
    position: fixed;
    top: 120px; /* Below header */
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    z-index: 1001;
    font-family: 'SF Pro Text', sans-serif;
    font-size: 12px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.scroll-value {
    text-align: center;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.scroll-bar {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.scroll-progress {
    height: 100%;
    background: linear-gradient(90deg, #0071e3, #ff6b35);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease-out;
}

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

/* Parallax effects */
.hero-overlay {
    transition: opacity 0.1s ease-out;
    will-change: opacity;
}

.hero-image {
    transition: filter 0.1s ease-out;
    will-change: filter;
}

/* Fade in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Apply animations to sections */
.section {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.section:nth-child(1) { animation-delay: 0.2s; }
.section:nth-child(2) { animation-delay: 0.4s; }
.section:nth-child(3) { animation-delay: 0.6s; }
.section:nth-child(4) { animation-delay: 0.8s; }

/* Hero specific animations */
.hero h1 {
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.hero p {
    animation: fadeInUp 1s ease-out 0.5s forwards;
    opacity: 0;
}

.hero .btn {
    animation: fadeIn 1s ease-out 0.7s forwards;
    opacity: 0;
}

/* Card hover effects enhancement */
.card {
    cursor: pointer;
}

.card:hover h3 {
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scroll-indicator {
        top: 100px;
        right: 10px;
        padding: 8px;
        transform: scale(0.8);
        transform-origin: top right;
    }

    .scroll-value {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .scroll-bar {
        width: 50px;
        height: 3px;
    }
}

/* Smooth focus transitions */
a:focus,
button:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--light-text);
}
