/* ============================================================
   GODDESS OPHELIA ROSE — MAIN STYLESHEET
   Gothic Dark Aesthetic with DEEP CRIMSON & BLOOD RED
   ============================================================ */

:root {
    --bg-primary: #060407;
    --bg-secondary: #0a0508;
    --bg-card: #110609;
    --bg-card-hover: #1a080c;
    --text-primary: #f0e0e4;
    --text-secondary: #b08090;
    --text-muted: #5a3040;
    --accent: #8b0000;
    --accent-light: #c0392b;
    --accent-dark: #5c0000;
    --accent-glow: rgba(139, 0, 0, 0.25);
    --red: #cc1a2a;
    --red-light: #e74c3c;
    --red-glow: rgba(192, 25, 35, 0.2);
    --rose: #6b0020;
    --rose-glow: rgba(107, 0, 32, 0.2);
    --gradient-accent: linear-gradient(135deg, var(--accent-dark), var(--accent), var(--red));
    --border: rgba(139, 0, 0, 0.2);
    --border-red: rgba(192, 25, 35, 0.15);
    --border-light: rgba(240, 224, 228, 0.06);
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.85);
    --font-heading: 'Playfair Display', 'Cormorant Garamond', serif;
    --font-body: 'Outfit', sans-serif;
    --font-accent: 'Cormorant Garamond', serif;
    --font-gothic: 'UnifrakturMaguntia', cursive;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --max-width: 1280px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(139, 0, 0, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(92, 0, 0, 0.05) 0%, transparent 60%);
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--red-light);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.accent {
    color: var(--accent-light);
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
}

.preloader-ring {
    width: 60px;
    height: 60px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-right-color: var(--red);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: preloader-spin 1s linear infinite;
    box-shadow: 0 0 20px var(--accent-glow);
}

.preloader-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

@keyframes preloader-spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Navigation --- */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: var(--transition);
    background: transparent;
}

.main-nav.scrolled {
    background: rgba(6, 4, 7, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(139, 0, 0, 0.1);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    font-size: 1.6rem;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(139, 0, 0, 0.6));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
    padding: 0.3rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gradient-accent);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-light);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient-accent) !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 2px;
    color: #fff !important;
    font-weight: 600 !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 25px var(--accent-glow), 0 4px 25px var(--red-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: scale(1.05);
    animation: hero-zoom 20s ease-in-out infinite alternate;
    filter: saturate(0.8) contrast(1.1);
}

@keyframes hero-zoom {
    0% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1.15);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(6, 4, 7, 0.5) 0%, rgba(6, 4, 7, 0.6) 35%,
            rgba(6, 4, 7, 0.88) 72%, rgba(6, 4, 7, 1) 100%),
        linear-gradient(to right, rgba(139, 0, 0, 0.12), transparent, rgba(92, 0, 0, 0.12));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-crown {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(139, 0, 0, 0.8));
    animation: crown-glow 3s ease-in-out infinite;
}

@keyframes crown-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 15px rgba(139, 0, 0, 0.6));
    }

    50% {
        filter: drop-shadow(0 0 35px rgba(192, 57, 43, 0.9)) drop-shadow(0 0 60px rgba(139, 0, 0, 0.4));
    }
}

.hero-tagline {
    font-family: var(--font-accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-light) 30%, var(--red) 55%, var(--accent) 75%, var(--text-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shimmer 6s ease-in-out infinite;
}

@keyframes text-shimmer {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 200% center;
    }
}

.hero-subtitle {
    font-family: var(--font-accent);
    font-size: 1.3rem;
    color: var(--text-secondary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 400;
    font-style: italic;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
}

.hero-scroll span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.75rem;
}

.scroll-indicator {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), var(--red), transparent);
    margin: 0 auto;
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.6);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border-radius: 1px;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow), 0 8px 30px var(--red-glow);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent-light);
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-sm {
    padding: 0.65rem 1.8rem;
    font-size: 0.75rem;
}

/* --- Section Styles --- */
.section-label {
    font-family: var(--font-accent);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent-light);
    margin-bottom: 1rem;
    font-weight: 500;
}

.section-label.center {
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-title.text-left {
    text-align: left;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem;
    line-height: 1.7;
}

/* --- Social Section --- */
.social-section {
    padding: 7rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.social-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--red), var(--accent), transparent);
}

.social-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rose), var(--accent-dark), var(--rose), transparent);
    opacity: 0.5;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.social-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: var(--transition);
}

.social-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center top, rgba(139, 0, 0, 0.06), transparent 70%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.social-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--accent-glow);
    background: var(--bg-card-hover);
}

.social-card:hover::before {
    opacity: 1;
}

.social-card:hover::after {
    opacity: 1;
}

.social-icon {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    color: var(--accent-light);
}

.social-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.social-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- About Section --- */
.about-section {
    padding: 8rem 0;
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 0;
    width: 300px;
    height: 600px;
    background: radial-gradient(ellipse at right, rgba(139, 0, 0, 0.05), transparent 70%);
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 5rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.about-image-wrapper img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    filter: contrast(1.05) saturate(0.9);
    transition: var(--transition);
    border-radius: 2px;
}

.about-image-wrapper:hover img {
    filter: contrast(1.1) saturate(1.0);
}

.about-image-border {
    position: absolute;
    inset: 15px -15px -15px 15px;
    border: 1px solid var(--accent);
    z-index: -1;
    transition: var(--transition);
    border-radius: 2px;
}

.about-image-accent {
    position: absolute;
    inset: -15px 15px 15px -15px;
    border: 1px solid var(--red);
    z-index: -1;
    transition: var(--transition);
    border-radius: 2px;
    opacity: 0.4;
}

.about-image-wrapper:hover .about-image-border {
    inset: 10px -10px -10px 10px;
    box-shadow: 0 0 30px var(--accent-glow);
}

.about-image-wrapper:hover .about-image-accent {
    inset: -10px 10px 10px -10px;
    opacity: 0.7;
    box-shadow: 0 0 20px var(--red-glow);
}

.about-content {
    position: relative;
}

.about-role {
    font-family: var(--font-accent);
    font-size: 1rem;
    color: var(--accent-light);
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    font-style: italic;
}

.about-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.about-roles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.role-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.role-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: var(--transition);
}

.role-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    background: var(--bg-card-hover);
}

.role-card:hover::after {
    opacity: 1;
}

.role-card h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--accent-light);
    margin-bottom: 0.5rem;
}

.role-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Core Sections --- */
.sections-area {
    padding: 7rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.sections-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-dark), transparent);
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.section-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.section-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px var(--accent-glow);
}

.section-card-img {
    position: absolute;
    inset: 0;
}

.section-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    filter: brightness(0.4) saturate(0.7);
}

.section-card:hover .section-card-img img {
    transform: scale(1.08);
    filter: brightness(0.5) saturate(0.9);
}

.section-card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    background: linear-gradient(to top, rgba(6, 4, 7, 0.97) 0%, transparent 100%);
    width: 100%;
}

.section-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-card-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Impact / Stats --- */
.impact-section {
    padding: 7rem 0;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: var(--transition);
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 0, 0, 0.05), transparent 70%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.stat-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
    background: var(--bg-card-hover);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.stat-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* --- Quotes Section --- */
.quotes-section {
    padding: 7rem 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.quotes-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--red), var(--accent), transparent);
}

.quotes-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(139, 0, 0, 0.05), transparent 70%);
    pointer-events: none;
}

.quotes-carousel {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    min-height: 120px;
    position: relative;
}

.quote-card {
    display: none;
    text-align: center;
    animation: fade-in 0.5s ease;
}

.quote-card.active {
    display: block;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quote-card blockquote p {
    font-family: var(--font-accent);
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 300;
}

.quote-card cite {
    display: block;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--accent-light);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.quote-dots {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.quote-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.quote-dot.active {
    background: var(--accent-light);
    border-color: var(--accent-light);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* --- CTA Section --- */
.cta-section {
    position: relative;
    padding: 8rem 0;
    text-align: center;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3) saturate(0.6);
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(6, 4, 7, 0.6), rgba(6, 4, 7, 0.4), rgba(6, 4, 7, 0.7)),
        linear-gradient(to right, rgba(139, 0, 0, 0.15), transparent, rgba(92, 0, 0, 0.15));
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Page Header --- */
.page-header {
    padding: 10rem 0 4rem;
    text-align: center;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--red), var(--accent), transparent);
}

.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(139, 0, 0, 0.08), transparent 70%);
    pointer-events: none;
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 4rem 0 6rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.gallery-item:first-child {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

.gallery-item:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-3px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
    filter: saturate(0.85) contrast(1.05);
}

.gallery-item:hover img {
    transform: scale(1.06);
    filter: saturate(1.0) contrast(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(6, 4, 7, 0.97) 0%, transparent 100%);
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.gallery-caption p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(6, 4, 7, 0.97);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 2rem;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1.5rem;
    width: 46px;
    height: 46px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    background: var(--bg-card);
}

.lightbox-content {
    max-width: 80vw;
    max-height: 75vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border: 1px solid var(--border);
}

.lightbox-caption {
    margin-top: 1.5rem;
    text-align: center;
}

.lightbox-caption h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.lightbox-caption p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Contracts --- */
.contracts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 4rem 0 6rem;
}

.contract-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contract-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: var(--transition);
}

.contract-card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    box-shadow: 0 10px 40px var(--accent-glow);
}

.contract-card:hover::before {
    opacity: 1;
}

.contract-icon {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 0 8px rgba(139, 0, 0, 0.5));
}

.contract-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contract-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.contract-rules {
    list-style: none;
    margin-top: 1.5rem;
}

.contract-rules li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.5;
}

.contract-rules li::before {
    content: '✦';
    color: var(--accent);
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.contract-rules li:last-child {
    border-bottom: none;
}

/* --- Slaves / Servants --- */
.slaves-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 4rem 0 6rem;
}

.slave-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: var(--transition);
    overflow: hidden;
}

.slave-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px var(--accent-glow);
}

.slave-card-img {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.slave-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.5s ease;
    filter: saturate(0.8) contrast(1.05);
}

.slave-card:hover .slave-card-img img {
    transform: scale(1.05);
    filter: saturate(0.95) contrast(1.1);
}

.slave-rank {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(6, 4, 7, 0.9);
    border: 1px solid var(--accent);
    color: var(--accent-light);
    font-size: 0.72rem;
    font-family: var(--font-accent);
    letter-spacing: 0.1em;
    padding: 0.3rem 0.8rem;
    backdrop-filter: blur(8px);
}

.slave-card-content {
    padding: 2rem;
}

.slave-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.slave-title {
    font-size: 0.8rem;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: var(--font-accent);
    font-style: italic;
    margin-bottom: 1rem !important;
}

.slave-card-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Slave Placeholder Cards --- */
.slave-placeholder {
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(139, 0, 0, 0.04);
    border: 1px dashed var(--accent);
    gap: 0.5rem;
    position: relative;
}

.slave-placeholder .placeholder-emoji {
    font-size: 3rem;
    filter: grayscale(0.3);
}

.slave-placeholder .placeholder-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-family: var(--font-accent);
}

/* --- Footer --- */
.main-footer {
    background: var(--bg-secondary);
    padding: 5rem 0 0;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--red), var(--accent), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    padding-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand .logo-icon {
    font-size: 1.8rem;
}

.footer-brand .logo-text {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 600;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-cta h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.footer-cta p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* --- Animations for reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in {
    animation: animate-fade-in 1s ease forwards;
}

.animate-fade-in-delay {
    animation: animate-fade-in 1s 0.3s ease forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: animate-fade-in 1s 0.6s ease forwards;
    opacity: 0;
}

.animate-fade-in-delay-3 {
    animation: animate-fade-in 1s 0.9s ease forwards;
    opacity: 0;
}

@keyframes animate-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item:first-child {
        grid-column: span 2;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(6, 4, 7, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid var(--border);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-roles {
        grid-template-columns: 1fr;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .sections-grid {
        grid-template-columns: 1fr;
    }

    .contracts-grid {
        grid-template-columns: 1fr;
    }

    .slaves-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item:first-child {
        grid-column: span 1;
        aspect-ratio: 3/4;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .slaves-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}
