:root {
    --color-dark-bg: #1A1A2E;
    --color-dark-bg-light: #2C2C40;
    --color-accent-gold: #FFD700; /* Gold */
    --color-text-light: #E0E0E0;
    --color-text-medium: #A0A0A0;
    --color-shadow: rgba(0, 0, 0, 0.4);
    --font-heading: 'Cinzel Decorative', serif;
    --font-body: 'Montserrat', sans-serif;
    --gradient-hero: linear-gradient(180deg, rgba(26, 26, 46, 0.7) 0%, rgba(26, 26, 46, 0.95) 100%);
    --gradient-shadowloom: linear-gradient(0deg, rgba(26, 26, 46, 0.7) 0%, rgba(26, 26, 46, 0.95) 100%);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-light);
    background-color: var(--color-dark-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--color-accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent-purple);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-accent-gold);
    margin-bottom: 1rem;
    font-weight: 700;
}

h2 {
    font-size: 3rem;
    text-align: center;
    text-shadow: 0 0 10px var(--color-accent-purple);
}

h3 {
    font-size: 1.8rem;
    color: var(--color-text-light);
}

p {
    margin-bottom: 1rem;
    font-weight: 300;
}

blockquote {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    text-align: center;
    margin: 2rem auto;
    padding: 1rem 2rem;
    max-width: 800px;
    color: var(--color-text-light);
    border-left: 5px solid var(--color-accent-gold);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

/* Header & Navigation */
.main-header {
    background-color: rgba(26, 26, 46, 0.9);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px var(--color-shadow);
    backdrop-filter: blur(5px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.brand-logo {
    font-size: 2.5rem;
    color: var(--color-accent-gold);
    letter-spacing: 2px;
    text-shadow: 0 0 8px var(--color-accent-purple);
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-list li {
    margin-left: 2.5rem;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-text-light);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-gold);
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Section Styling */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden; /* Ensure reveal animations don't bleed */
}

.section-title {
    margin-bottom: 4rem;
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--color-accent-gold);
    box-shadow: 0 0 10px var(--color-accent-purple);
}

/* Hero Section: Whispers of the Veil */
.section-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('images/image_13.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 0;
    margin: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h2 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--color-accent-gold);
    text-shadow: 0 0 20px var(--color-accent-purple), 0 0 30px rgba(255, 215, 0, 0.5);
    animation: glow-pulse 3s infinite alternate;
}

.hero-content p {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--color-text-light);
    letter-spacing: 1px;
}

/* Arcane Assemblage & Nocturne Craft Card Grids */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background-color: var(--color-dark-bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--color-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.5);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card h3 {
    margin: 1.5rem 1.5rem 0.5rem 1.5rem;
    font-size: 1.6rem;
    color: var(--color-accent-gold);
    text-shadow: 0 0 5px var(--color-accent-purple);
}

.card p {
    font-size: 0.95rem;
    color: var(--color-text-medium);
    margin: 0 1.5rem 1.5rem 1.5rem;
    line-height: 1.7;
}

/* Ethereal Echoes Section */
.section-ethereal {
    background-image: url('images/image_14.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
}

.section-ethereal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.85); /* Darker overlay */
    z-index: 1;
}

.ethereal-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background-color: rgba(44, 44, 64, 0.8);
    border-radius: 15px;
    box-shadow: 0 0 30px var(--color-shadow);
}

.ethereal-content h2 {
    color: var(--color-accent-gold);
    margin-bottom: 2.5rem;
    font-size: 3.2rem;
    text-shadow: 0 0 15px var(--color-accent-purple);
}

.ethereal-content p {
    font-size: 1.15rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Shadow Loom Section */
.section-shadowloom {
    background-image: url('images/image_15.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0;
    margin: 0;
}

.shadowloom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-shadowloom);
    z-index: 1;
}

.shadowloom-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
    border-radius: 15px;
    background-color: rgba(44, 44, 64, 0.7);
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.5);
    animation: subtle-pulse 5s infinite alternate;
}

.shadowloom-content h2 {
    font-size: 4rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px var(--color-accent-purple);
}

.shadowloom-content blockquote p {
    font-size: 2.2rem;
    line-height: 1.4;
    color: var(--color-accent-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.shadowloom-content blockquote {
    border-left: none;
    border-bottom: 3px solid var(--color-accent-gold);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: none;
}

.shadowloom-content p {
    font-size: 1.15rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-top: 2rem;
}

/* Footer */
.main-footer {
    background-color: var(--color-dark-bg);
    color: var(--color-text-medium);
    text-align: center;
    padding: 3rem 1rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

/* Animations */
@keyframes glow-pulse {
    0% {
        text-shadow: 0 0 15px var(--color-accent-purple), 0 0 25px rgba(255, 215, 0, 0.5);
    }
    100% {
        text-shadow: 0 0 25px var(--color-accent-purple), 0 0 40px rgba(255, 215, 0, 0.8);
    }
}

@keyframes subtle-pulse {
    0% {
        box-shadow: 0 0 30px rgba(138, 43, 226, 0.4);
    }
    50% {
        box-shadow: 0 0 50px rgba(138, 43, 226, 0.7);
    }
    100% {
        box-shadow: 0 0 30px rgba(138, 43, 226, 0.4);
    }
}

/* Reveal on Scroll (JavaScript driven) */
.reveal {
    opacity: 1;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .navbar {
        padding: 0 1.5rem;
    }

    .nav-list li {
        margin-left: 1.5rem;
    }

    .hero-content h2 {
        font-size: 4rem;
    }

    .hero-content p {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ethereal-content h2, .shadowloom-content h2 {
        font-size: 2.8rem;
    }
    .shadowloom-content blockquote p {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
    }

    .brand-logo {
        margin-bottom: 1rem;
    }

    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-list li {
        margin: 0.5rem 1rem;
    }

    .hero-content h2 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

    .section-title::after {
        width: 80px;
    }

    .card-grid {
        grid-template-columns: 1fr; /* Stacks to 1 column */
    }

    .card {
        max-width: 400px; /* Constrain width for better readability on narrow screens */
        margin: 0 auto;
    }

    .section-ethereal, .section-shadowloom {
        padding: 5rem 1rem;
    }

    .ethereal-content, .shadowloom-content {
        padding: 1.5rem;
    }

    .ethereal-content h2, .shadowloom-content h2 {
        font-size: 2.2rem;
    }
    .shadowloom-content blockquote p {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 0.5rem 0;
    }
    .brand-logo {
        font-size: 2rem;
    }
    .nav-list {
        flex-direction: column;
    }
    .nav-list li {
        margin: 0.3rem 0;
    }
    .hero-content h2 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.4rem;
    }
    blockquote {
        font-size: 1.2rem;
        padding: 0.8rem 1rem;
    }
    .card h3 {
        font-size: 1.3rem;
    }
    .card p {
        font-size: 0.85rem;
    }
}

/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
