: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;
}

.text-muted{
    color: #e0e0e0 !important;
}

h1, h2, h3, .navbar-brand {
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
    color: var(--primary-gold);
}

.text-styled-gold{
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
    color: var(--primary-gold);
}

.section-padding {
    padding: 100px 0;
}

/* Navbar Styling */
.navbar {
    background: rgba(5, 10, 15, 0.9);
    border-bottom: 1px solid var(--primary-gold);
    backdrop-filter: blur(10px);
}

/* Canvas Overlay */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(5,10,15,1)), url('../assets/images/cathedral-shadow-cropped.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content img {
    max-width: 600px;
    width: 100%;
    filter: drop-shadow(0 0 20px var(--fire-glow));
    border: 4px solid rgba(197, 160, 89, 0.35);
    border-radius: 16px;
    animation: heartbeat 2.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 16px rgba(197, 160, 89, 0.15);
    }
    20% {
        transform: scale(1.03);
        box-shadow: 0 0 24px rgba(197, 160, 89, 0.25);
    }
    40%, 70% {
        transform: scale(1);
        box-shadow: 0 0 14px rgba(197, 160, 89, 0.12);
    }
    80% {
        transform: scale(1.02);
        box-shadow: 0 0 20px rgba(197, 160, 89, 0.2);
    }
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(197, 160, 89, 0.2);
    color: white;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
}

.btn:hover {
    background-color: var(--primary-gold) !important;
    color: black;
    font-weight: bold;
    border-radius: 0;
    padding: 10px 30px;
}

.btn-gold {
    background-color: var(--primary-gold);
    color: black;
    font-weight: bold;
    border-radius: 0;
    padding: 10px 30px;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid var(--primary-gold);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-img:hover {
    border-color: var(--primary-gold);
    transform: scale(1.02);
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 10, 15, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1050;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 2px solid var(--primary-gold);
    box-shadow: 0 0 60px rgba(0,0,0,0.6);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2.2rem;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    user-select: none;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 3rem;
    padding: 10px 16px;
    cursor: pointer;
    user-select: none;
    text-shadow: 0 0 12px rgba(0,0,0,0.5);
    transition: color 0.2s ease, transform 0.2s ease;
}

.lightbox-arrow:hover {
    color: var(--primary-gold);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

/* Classes page styles */
#bgCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
    mix-blend-mode: screen;
}

.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;
}

.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
        );
}

.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);
}

.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) scale(1.01);
    border-color: rgba(197,160,89,0.6);
    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%;
    }
}

/* Gallery hover overlay */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.gallery-item .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: linear-gradient(180deg, rgba(5,10,15,0) 40%, rgba(5,10,15,0.8) 100%);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}
.gallery-item:hover .overlay {
    opacity: 1;
}
.gallery-item .overlay-text {
    color: #fff;
    padding: 12px 16px;
    text-align: center;
}
.gallery-item .overlay-text h5 {
    margin: 0 0 4px 0;
    font-family: 'Cinzel', serif;
    color: var(--primary-gold);
}
.gallery-item .overlay-text p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
}

/* Ensure overlay doesn't block clicks so images remain clickable */
.gallery-item .overlay,
.gallery-item .overlay * {
    pointer-events: none;
}

.class-tag {
    display: inline-block;
    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-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;
}

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition:
        opacity 1s ease,
        transform 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.class-image-placeholder {
    position: relative;
    width: 100%;
    height: 440px;
    min-height: 620px;
    overflow: none;
    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);
}

.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(0.82)
        contrast(1.1)
        saturate(1.12);
}

.class-image-column {
    display: flex;
}

.class-image-column .class-image-placeholder {
    flex: 1;
    min-height: 100%;
}

.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;
}

.class-entry:hover .class-image {
    transform: scale(1.08) translateY(-4px);
    filter:
        brightness(0.95)
        contrast(1.12)
        saturate(1.2);
}

.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);
}

@media (max-width: 991px) {
    .class-title {
        font-size: 2rem;
    }

    .class-panel {
        padding: 2rem !important;
    }
}



/* WIP Banner */
.wip-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 980px;
    margin: 1.5rem auto;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(197, 160, 89, 0.45);
    background: rgba(197, 160, 89, 0.08);
    color: #f8f1da;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
    font-family: 'Raleway', sans-serif;
  }

  .wip-banner__icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.25);
    color: #fff;
    font-size: 1.3rem;
  }

  .wip-banner__content strong {
    display: block;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #c5a059;
    margin-bottom: 0.25rem;
  }

  .wip-banner__content p {
    margin: 0;
    line-height: 1.5;
    color: #e8dfc6;
    font-size: 0.95rem;
  }

  @media (max-width: 640px) {
    .wip-banner {
      flex-direction: column;
      text-align: center;
    }

    .wip-banner__icon {
      width: 3.5rem;
      height: 3.5rem;
    }
  }