/* ===========================================
   BASE — Reset, Fonts, Body, Utilities
   =========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Optimus';
    src: url('../fonts/Optimus.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Hero';
    src: url('../fonts/Hero.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

body {
    font-family: 'Hero', 'Georgia', serif;
    color: #f5f5f5;
    background-color: #1a1a1a;
    line-height: 1.7;
    overflow-x: clip;
    animation: pageFadeIn 0.4s ease-out;
}

body.page-leaving {
    animation: pageFadeOut 0.25s ease-in forwards;
}

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pageFadeOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-8px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #b59567);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

.section-title {
    font-size: 44px;
    color: #d4af37;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(
        90deg,
        #d4af37 0%,
        #b59567 45%,
        rgba(100, 90, 70, 0.25) 55%,
        rgba(100, 90, 70, 0.25) 100%
    );
    background-size: 250% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* When a subtitle follows the title, tighten the gap */
.section-title + .section-subtitle {
    margin-top: -24px;
}

.section-subtitle {
    text-align: center;
    font-size: 17px;
    color: #c0b8a8;
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

/* Section dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    margin: 0;
    border: none;
}

/* Shared keyframes */
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5)); }
    50%      { filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.8)); }
}

/* --- Directional reveal animations --- */
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
}

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
}

.reveal-down {
    opacity: 0;
    transform: translateY(-40px);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
}

.reveal-left.visible,
.reveal-right.visible,
.reveal-up.visible,
.reveal-down.visible,
.reveal-scale.visible {
    opacity: 1;
    transform: translate(0) scale(1);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
