:root {
    --primary-gold: #c5a059;
    --deep-bg: #050a0f;
    --accent-blue: #1a3a4a;
    --fire-glow: rgba(255, 69, 0, 0.4);
}

body {
    background-color: var(--deep-bg);
    color: #e0e0e0;
    font-family: 'Raleway', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, .navbar-brand {
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
    color: var(--primary-gold);
}

.section-padding {
    padding: 100px 0;
}

.text-muted{
    color: #e0e0e0 !important;
}

/* Navbar Styling */
.navbar {
    background: rgba(5, 10, 15, 0.9);
    border-bottom: 1px solid var(--primary-gold);
    backdrop-filter: blur(10px);
}

/* Canvas */
#bgCanvas {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0.9;
    mix-blend-mode: screen;
}


/* =========================
HERO
========================= */

.classes-hero {
    position: relative;
    min-height: 65vh;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            rgba(0,0,0,0.48),
            rgba(5,10,15,0.72)
        ),
        url('/../assets/images/cathedral-shadow-cropped.png');

    background-size: cover;
    background-position: center;

    overflow: hidden;
}

/* .classes-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(197,160,89,0.12),
            transparent 60%
        );

    animation: pulseGlow 8s ease-in-out infinite;
} */

/* @keyframes pulseGlow {

    0%, 100% {
        opacity: 0.45;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.08);
    }

} */

.classes-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.classes-hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 28px;

    text-shadow:
        0 0 30px rgba(197,160,89,0.25);

    letter-spacing: 6px;
}

.classes-hero p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.78);
    line-height: 2;
}

.classes-hero, #classes {
    position: relative;
    z-index: 2;
}


/* =========================
CLASSES SECTION
========================== */

.fog-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.75;
    mix-blend-mode: screen;
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255,255,255,0.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 80% 40%,
            rgba(197,160,89,0.10),
            transparent 35%
        ),
        radial-gradient(
            circle at 50% 80%,
            rgba(255,255,255,0.08),
            transparent 40%
        );
    filter: blur(60px);
    animation:
        fogShift 40s ease-in-out infinite alternate;
}

@keyframes fogShift {
    0% {
        transform: translateX(0px) translateY(0px);
    }
    100% {
        transform: translateX(-40px) translateY(-20px);
    }
}

#classes {
    background:
        linear-gradient(
            to bottom,
            rgba(5,10,15,0.78),
            rgba(5,10,15,0.88)
        );
}

.class-entry {
    position: relative;
    padding-bottom: 70px;
    margin-bottom: 70px;
}

.class-entry::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 1px;
    background:
        linear-gradient(
            to right,
            transparent,
            rgba(197,160,89,0.5),
            transparent
        );
}

.btn:hover {
    background-color: var(--primary-gold) !important;
    color: black;
    font-weight: bold;
    border-radius: 0;
    padding: 10px 30px;
}

.class-panel {
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.05),
            rgba(255,255,255,0.02)
        );
    border: 1px solid rgba(197,160,89,0.16);
    backdrop-filter: blur(10px);
    border-radius: 22px;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.45s ease,
        border-color 0.45s ease,
        box-shadow 0.45s ease;
    box-shadow:
        0 15px 45px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.04);
    display: grid;
    gap: 2rem;
    z-index: 6 !important;
}

@media (min-width: 992px) {
    .class-panel {
        grid-template-columns: 1.35fr 0.95fr;
        align-items: center;
    }
}

.class-panel-content {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.class-panel-media {
    width: 100%;
}

/* ==================================================
Separate Image Animation (Slides from Right)
================================================== */

/* Pre-animation state for the image container */
.slide-right {
    opacity: 0;
    transform: translateX(100px); /* Start 100px to the right */
    transition: opacity 1s ease, transform 1s ease;
}

/* Post-animation state for the image container when revealed */
.reveal.active .slide-right {
    opacity: 1;
    transform: translateX(0); /* Slide into its final position */
}

.class-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(197,160,89,0.08),
            transparent 40%
        );
    pointer-events: none;
}

.class-panel:hover {
    transform: translateY(-10px);
    box-shadow:
        0 25px 70px rgba(0,0,0,0.55),
        0 0 40px rgba(197,160,89,0.12);
}

.class-panel::after {
    content: "";
    position: absolute;
    top: -150%;
    left: -50%;
    width: 50%;
    height: 400%;
    background:
        linear-gradient(
            to right,
            transparent,
            rgba(197,160,89,0.12),
            transparent
        );
    transform: rotate(25deg);
    /* animation: borderSweep 8s linear infinite; */
}

/* @keyframes borderSweep {
    0% {
        left: -60%;
    }
    100% {
        left: 160%;
    }
} */

.class-tag {
    display: inline-block;
    width: fit-content;
    margin-bottom: 18px;
    padding: 6px 14px;
    border: 1px solid rgba(197,160,89,0.4);
    color: var(--primary-gold);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(197,160,89,0.06);
}

.class-phase {
    display: inline-block;
    width: fit-content;
    margin-bottom: 18px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 58, 24, 0.4);
    color: var(--fire-glow);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(255, 58, 24, 0.06);
}

.class-title {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.class-role {
    color: rgba(255,255,255,0.72);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.ability-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ability-list li {
    margin-bottom: 18px;
    padding-left: 22px;
    position: relative;
    color: rgba(255,255,255,0.82);
    line-height: 1.7;
}

.ability-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-gold);
    box-shadow: 0 0 10px rgba(197,160,89,0.7);
}

.ability-list strong {
    display: block;
    color: var(--primary-gold);
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

/* =========================
Animations section pop ups
========================== */

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition:
        opacity 1s ease,
        transform 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
IMAGE PLACEHOLDERS
========================== */

.class-image-placeholder {
    position: relative;
    width: 100%;
    max-width: 350px;
    aspect-ratio: 53 / 79;
    min-height: auto;
    max-height: 480px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(197,160,89,0.25);
    background: #050a0f;
    box-shadow:
        inset 0 0 80px rgba(0,0,0,0.55),
        0 0 30px rgba(0,0,0,0.35);
    margin: 0 auto;
}

@media (max-width: 992px) {
    .class-image-placeholder {
        max-width: 300px;
        max-height: 380px;
    }
}

@media (max-width: 576px) {
    .class-image-placeholder {
        max-width: 100%;
    }
}

/* .class-image-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at center,
            rgba(197,160,89,0.08),
            transparent 65%
        );
} */

.class-image-placeholder span {
    position: relative;
    z-index: 2;
    color: rgba(255,255,255,0.35);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.class-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* object-fit: cover;
    object-position: center center; */
    
    /* transform: scale(1.02);
    transition:
        transform 1.2s ease,
        filter 0.8s ease; */
    filter:
        brightness(1)
        contrast(1.1)
        saturate(1.12);

    border: 2px solid var(--primary-gold);

    border-radius: 50px;
        background: #c5a059;
        box-shadow:  11px 11px 22px #c5a059,
                    -11px -11px 22px #c5a059;
}

.class-image-column {
    display: flex;
}

.class-image-column .class-image-placeholder {
    flex: 1;
    min-height: 100%;
}
        


/* Cinematic overlay */ 
.class-image-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.05),
            rgba(0,0,0,0.25)
        );
    pointer-events: none;
}

/* Hover effect */
/* .class-entry:hover .class-image {
    transform: translateY(-4px);
    filter:
        brightness(0.95)
        contrast(1.12)
        saturate(1.2);
} */




/* =========================
SPECIAL GLOWS
========================== */

.fire-glow {
    box-shadow:
        inset 0 0 60px rgba(255,80,0,0.18),
        0 0 30px rgba(255,80,0,0.08);
    animation: firePulse 4s ease-in-out infinite;
}

@keyframes firePulse {
    0%,100% {
        box-shadow:
            inset 0 0 60px rgba(255,80,0,0.18),
            0 0 30px rgba(255,80,0,0.08);
    }
    50% {
        box-shadow:
            inset 0 0 90px rgba(255,120,0,0.28),
            0 0 50px rgba(255,120,0,0.15);
    }
}

.purple-glow {
    box-shadow:
        inset 0 0 60px rgba(140,0,255,0.18),
        0 0 30px rgba(140,0,255,0.08);
}

.blue-glow {
    box-shadow:
        inset 0 0 60px rgba(0,120,255,0.18),
        0 0 30px rgba(0,120,255,0.08);
}

.stealth-glow {
    box-shadow:
        inset 0 0 60px rgba(120,120,120,0.16),
        0 0 30px rgba(255,255,255,0.04);
}

/* =========================
RESPONSIVE
========================== */

@media (max-width: 991px) {

    .class-title {
        font-size: 2rem;
    }

    .class-panel {
        padding: 2rem !important;
    }

}
