/* ==================== HOME PAGE SPECIFIC STYLES ==================== */
/* Design System: DM Sans, Primary Red #ff0000 */

/* ==================== PAGE ENTRANCE ==================== */

body {
    font-family: var(--font-family, 'DM Sans', sans-serif);
}

/* Smooth page load */
section {
    animation: pageFadeIn 600ms cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Staggered section animations */
section>*:nth-child(1) {
    animation-delay: 0ms;
}

section>*:nth-child(2) {
    animation-delay: 100ms;
}

section>*:nth-child(3) {
    animation-delay: 200ms;
}

section>*:nth-child(4) {
    animation-delay: 300ms;
}

section>*:nth-child(5) {
    animation-delay: 400ms;
}

section>*:nth-child(6) {
    animation-delay: 500ms;
}

/* ==================== SCROLL REVEAL ANIMATIONS ==================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* ==================== SECTION HEADINGS ==================== */

.home-section-heading {
    font-family: var(--font-family, 'DM Sans', sans-serif);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    animation: headingEntrance 800ms cubic-bezier(0.4, 0, 0.2, 1) backwards;
    color: var(--secondary-950, #1E1E1E);
}

@keyframes headingEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-600, #ff0000);
    animation: underlineExpand 600ms cubic-bezier(0.4, 0, 0.2, 1) 400ms backwards;
}

@keyframes underlineExpand {
    from {
        width: 0;
    }

    to {
        width: 60px;
    }
}

/* ==================== FLOATING ELEMENTS ==================== */

.floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1080px) {
    .home-section-heading {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 767px) {
    .home-section-heading {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    section>*:nth-child(n) {
        animation-delay: 0ms !important;
    }
}

@media (max-width: 480px) {
    .home-section-heading {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .home-section-heading::after {
        width: 40px;
        height: 3px;
    }
}

/* ==================== ACCESSIBILITY ==================== */

@media (prefers-reduced-motion: reduce) {

    section,
    section>*,
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale,
    .floating,
    .home-section-heading,
    .home-section-heading::after {
        animation: none !important;
        transition: none !important;
    }
}