/* 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) {
    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: clamp(0.95rem, 3vw, 1.25rem);
    }

    .hero-content {
        padding: 0 var(--spacing-md);
    }

    .hero {
        min-height: 80vh;
    }
}

/* 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);
}
