/* ================= HISTORY PAGE STYLES ================= */
:root {
    --gold: #c5a059;
    --emerald: #064e3b;
    --dark: #0f172a;
    --light-bg: #f8fafc;
}

.history-roadmap {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    background: var(--light-bg);
}

.gold-text {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
}

/* ===== HERO ===== */
.roadmap-hero {
    height: 60vh;
    min-height: 500px;
    background: url('/images/4.webp') center bottom/cover no-repeat fixed;
    position: relative;
    border-radius: 0 0 100px 100px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(6, 78, 59, 0.7));
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 28px;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 0.85rem;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 15px;
}

.hero-lead {
    font-size: 1.25rem;
    color: #d1fae5;
    max-width: 700px;
    font-weight: 500;
}

.gold-line {
    width: 80px;
    height: 5px;
    background: var(--gold);
    border-radius: 10px;
}

/* ===== INTRO ===== */
.profile-intro {
    padding: 0 0 100px;
    margin-top: -80px;
    position: relative;
    z-index: 5;
}

.intro-card {
    background: white;
    padding: 60px;
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.section-badge {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--gold);
    display: block;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--emerald);
    line-height: 1.2;
    margin-bottom: 25px;
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #475569;
    max-width: 900px;
    margin: 0 auto;
}

.intro-subtext {
    font-size: 1.05rem;
    color: #64748b;
    max-width: 900px;
    margin: 20px auto 0;
}

/* ===== TRUE STACKING ROADMAP ===== */
.roadmap-stack-section {
    position: relative;
    background: #ffffff;
    height: 800vh;
    /* Increased for smoother scroll */
    margin-top: 50px;
}

.stack-sticky-viewport {
    position: sticky;
    top: 85px;
    /* Account for navbar height */
    height: calc(100vh - 85px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.roadmap-header-stack {
    text-align: center;
    margin-bottom: 2rem;
    z-index: 100;
}

.cards-stack-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 550px;
    /* Slightly taller */
    margin: 0 auto;
}

.roadmap-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 40px;
    padding: 60px;
    border: 1px solid rgba(6, 78, 59, 0.1);
    /* Subtle emerald border */
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
    /* Smooth but responsive */
    overflow: hidden;
    transform-origin: center center;
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
}

/* Clean backgrounds for all cards */
.roadmap-card:nth-child(even) {
    background: white;
}

.roadmap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--emerald), var(--gold));
    opacity: 0.8;
}

.card-number {
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 10rem;
    font-weight: 900;
    color: rgba(6, 78, 59, 0.03);
    line-height: 1;
    z-index: 1;
    pointer-events: none;
    font-family: 'Outfit', sans-serif;
}

.roadmap-card .milestone-icon {
    width: 80px;
    height: 80px;
    background: var(--emerald);
    color: white;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    box-shadow: 0 15px 30px rgba(6, 78, 59, 0.2);
}

.roadmap-card .milestone-icon.gold {
    background: var(--gold);
    box-shadow: 0 15px 30px rgba(197, 160, 89, 0.2);
}

.roadmap-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--emerald);
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
    letter-spacing: -1px;
}

.roadmap-card p {
    color: #475569;
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 0;
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.roadmap-card .stat-value {
    font-size: 4rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 8px !important;
    line-height: 1;
    font-family: 'Outfit', sans-serif;
}

.roadmap-card .stat-value small {
    font-size: 1.2rem;
    color: #94a3b8;
    font-weight: 600;
}

.production-breakdown {
    width: 100%;
    max-width: 500px;
    margin-top: 20px;
}

.prod-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.prod-label {
    font-size: 1rem;
    color: #64748b;
    min-width: 100px;
    font-weight: 700;
}

.prod-bar {
    flex: 1;
    height: 12px;
    background: #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.prod-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--emerald), var(--gold));
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.3);
}

.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.cert-badge {
    background: white;
    color: var(--emerald);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.95rem;
    border: 1px solid rgba(6, 78, 59, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
}

.cert-badge:hover {
    background: var(--emerald);
    color: white;
    transform: translateY(-3px);
}

/* ===== GALLERY ===== */
.gallery-section {
    padding: 120px 0;
    background: var(--light-bg);
}

.gallery-card {
    height: 320px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    transition: all 0.5s;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 78, 59, 0.9), transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 30px;
    color: white;
    font-weight: 800;
    font-size: 1.3rem;
}

/* ===== ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
