/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --app-height: 100vh;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: radial-gradient(circle at top, #181829 0, #050509 55%, #000000 100%);
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 10, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo .logo {
    height: 50px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-logo .logo:hover {
    transform: scale(1.06);
    filter: brightness(1.2) invert(0.9);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 3px;
    border-radius: 999px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-link {
    color: #f5f5f5;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffd700, #ff6b35);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffd700;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Home Section */
.home-section {
    position: relative;
    padding: 130px 0 0;
    min-height: var(--app-height, 100vh);
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 215, 0, 0.07) 0, transparent 45%),
        radial-gradient(circle at 90% 20%, rgba(110, 190, 255, 0.07) 0, transparent 50%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* overlay gradient (for mobile – activated in media query) */
.home-section::before {
    opacity: 1;
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 215, 0, 0.10) 0, transparent 40%),
        radial-gradient(circle at 90% 20%, rgba(110, 190, 255, 0.12) 0, transparent 55%),
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.65)); 
}


.home-content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    gap: 60px;
    align-items: center;
}

.home-text {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.home-heading {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 640px;
}

.home-title {
    font-family: 'Cinzel', serif;
    font-size: 3.4rem;
    font-weight: 700;
    color: #ffd700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 18px;
    text-shadow:
        0 0 22px rgba(255, 215, 0, 0.4),
        0 0 60px rgba(255, 255, 255, 0.18);
}

.home-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: #fdfdfd;
    margin-bottom: 26px;
    font-weight: 400;
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.3);
}

.home-description {
    font-size: 1.02rem;
    color: #dedede;
    margin-bottom: 18px;
    line-height: 1.9;
    max-width: 640px;
    font-weight: 300;
    text-shadow: 0 0 14px rgba(0, 0, 0, 0.7);
}

.home-description-extra {
    display: inline;
}

.home-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.home-button {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
    min-width: 190px;
    text-align: center;
}

.home-button.primary {
    background: linear-gradient(135deg, #ffd700, #ff6b35);
    color: #111111;
    box-shadow:
        0 8px 25px rgba(255, 215, 0, 0.3),
        0 0 40px rgba(255, 140, 60, 0.3);
}

.home-button.primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 32px rgba(255, 215, 0, 0.45),
        0 0 50px rgba(255, 140, 60, 0.4);
}

.home-button.secondary {
    background: transparent;
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.7);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.home-button.secondary:hover {
    background: rgba(255, 215, 0, 0.08);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Home Media – Desktop */
.home-media {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    height: 100%;
}

.home-hero-video {
    width: 100%;
    max-width: 460px;
    height: auto;
    max-height: calc(100vh - 130px);
    object-fit: contain;
    object-position: center bottom;
    mix-blend-mode: normal;
    filter: none;
}

/* Which hero video is visible by default (desktop) */
.hero-desktop {
    display: block;
}

.hero-mobile {
    display: none;
}

/* Story Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.38);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(10, 10, 10, 0.1) 0, rgba(10, 10, 20, 0.7) 55%, rgba(3, 3, 8, 0.98) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 2.1rem;
    margin-bottom: 26px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow:
        0 0 30px rgba(255, 215, 0, 0.45),
        0 0 80px rgba(255, 255, 255, 0.2);
}

.hero-description {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    color: #e3e3e3;
    max-width: 720px;
    margin: 0 auto 42px;
    line-height: 1.9;
    font-weight: 400;
    text-shadow: 0 0 16px rgba(0, 0, 0, 0.75);
}

.hero-button {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ff6b35);
    color: #111111;
    padding: 14px 36px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow:
        0 8px 26px rgba(255, 215, 0, 0.35),
        0 0 42px rgba(255, 140, 60, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 34px rgba(255, 215, 0, 0.45),
        0 0 52px rgba(255, 140, 60, 0.45);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 54px;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 16px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-shadow: 0 0 22px rgba(255, 215, 0, 0.4);
}

.section-description {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    color: #cccccc;
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.9;
    font-weight: 400;
}

/* Characters Section */
.characters-section {
    padding: 96px 0;
    background:
        radial-gradient(circle at 90% 10%, rgba(120, 200, 255, 0.06) 0, transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(255, 215, 0, 0.06) 0, transparent 55%),
        #050509;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 42px;
}

.character-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.85));
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.character-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 215, 0, 0.35);
}

.character-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.character-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%; /* تمرکز روی سر */
    transition: transform 0.4s ease;
}

.character-media.has-video {
    position: relative;
}

.character-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%;
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
    border: 0;
    opacity: 0;
}

.character-media.video-ready .character-video {
    opacity: 1;
}

.character-media.video-ready .character-image {
    opacity: 0;
    visibility: hidden;
}

.webm-fallback .character-media .character-image {
    opacity: 1 !important;
    visibility: visible !important;
}

.webm-fallback .character-media .character-video {
    display: none !important;
}

.character-card:hover .character-image,
.character-card:hover .character-video {
    transform: scale(1.05);
}

.character-media.lumi-offset .character-image,
.character-media.lumi-offset .character-video {
    object-position: 50% 35%;
}

.character-info {
    padding: 22px;
    text-align: center;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.character-name {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: #ffd700;
    margin-bottom: 10px;
}

.character-description {
    font-size: 0.98rem;
    color: #d5d5d5;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .character-card .character-hint {
        position: absolute;
        top: 45%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.94);
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        border-radius: 999px;
        background: rgba(5, 8, 20, 0.78);
        border: 1px solid rgba(255, 215, 0, 0.4);
        color: #ffe7b0;
        font-size: 0.85rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease, transform 0.4s ease;
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55);
    }

    .character-card .character-hint .hint-icon {
        font-size: 0.9rem;
    }

    body.show-character-hints .character-card .character-hint {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@media (min-width: 992px) {
    #heroes .characters-grid,
    #guardians .characters-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Contact Section */
.contact-section {
    padding: 96px 0;
    background: radial-gradient(circle at top, #1a1a2e 0, #050509 65%);
}

.contact-content {
    display: flex;
    justify-content: center;
    margin-top: 42px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    justify-content: center;
}


.contact-item h3 {
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: 0.14em;

    background: linear-gradient(
        180deg,
        #e8ecff 0%,
        #c7d2ff 45%,
        #9aa9e8 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow:
        0 0 6px rgba(150, 170, 230, 0.22),
        0 2px 6px rgba(0, 0, 0, 0.5);

    margin-bottom: 4px;
}

.contact-link {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    padding: 13px 26px;
    border-radius: 999px;
    min-width: 180px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.contact-link.primary {
    background: linear-gradient(135deg, #ffd700, #ff6b35);
    color: #050505;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
    border: none;
    box-shadow:
        0 8px 25px rgba(255, 215, 0, 0.3),
        0 0 40px rgba(255, 140, 60, 0.3);
}

.contact-link.primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 32px rgba(255, 215, 0, 0.45),
        0 0 50px rgba(255, 140, 60, 0.4);
}

.contact-link.secondary {
    border: 1px solid rgba(255, 215, 0, 0.7);
    color: #ffe9c0;
    background: rgba(3, 4, 8, 0.92);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.65);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.contact-link.secondary:hover {
    background: rgba(255, 215, 0, 0.08);
    color: #ffffff;
    transform: translateY(-1px);
}


/* Contact Form */
.form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 13px 16px;
    color: #ffffff;
    font-size: 0.98rem;
    font-family: 'Raleway', sans-serif;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.25);
    background: rgba(255, 255, 255, 0.07);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(135deg, #ffd700, #ff6b35);
    color: #111111;
    border: none;
    padding: 13px 26px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'Raleway', sans-serif;
    box-shadow: 0 10px 26px rgba(255, 215, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(255, 215, 0, 0.4);
}

/* Footer */
.footer {
    background: rgba(3, 3, 6, 0.98);
    padding: 26px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer p {
    color: #888888;
    font-size: 0.9rem;
}

/* Character Modal – base (desktop two-column) */
.character-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.character-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.character-modal-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.98));
    backdrop-filter: blur(12px);
}

.character-modal-content {
    position: relative;
    z-index: 1;
    width: min(900px, 90%);
    max-height: 90vh;
    background: linear-gradient(145deg, rgba(15, 15, 25, 0.98), rgba(3, 3, 8, 0.98));
    border-radius: 24px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
    padding: 24px 28px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 28px;
    overflow: hidden;
}

.modal-image-wrap {
    border-radius: 18px;
    overflow: hidden;
    background: transparent;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-wrap img,
.modal-image-wrap video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 18px;
}

.modal-video {
    display: none;
    background: #000;
}

.modal-text {
    position: static;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;  /* 👈 به جای center */
    gap: 12px;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 4px;
    padding-bottom: 12px;       /* 👈 برای اینکه به کف بچسبه‌تر بشه */
}

#modalName {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


#modalDescription {
    font-size: 1rem;
    color: #e0e0e0;
    line-height: 1.8;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.contact-no-form {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   RUNIC MAGIC – default titles & contact
   ========================================== */

/* عمومی: استوری، گاردین‌ها، کانتکت، گاردین نیم‌ها، تیتر مودال گاردین‌ها */
.hero-subtitle,              
.section-title,              
#guardians .character-name,  
#contact .section-title,     
.contact-item h3,            
.character-modal.guardian-modal #modalName {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;

    background: linear-gradient(
        180deg,
        #e8ecff 0%,
        #c7d2ff 45%,
        #9aa9e8 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow:
        0 0 6px rgba(150, 170, 230, 0.22),
        0 2px 6px rgba(0, 0, 0, 0.5);

    filter: none;
}



/* ==========================================
   GOLDEN ARCANE – special titles
   ========================================== */

/* عنوان Heroes + اسم هیروها + تیتر مودال هیرو */
#heroes .section-title,      
#heroes .character-name,
.character-modal.hero-modal #modalName {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;

    background: linear-gradient(
        180deg,
        #fff3c4 0%,
        #ffd26f 40%,
        #e3a842 75%,
        #b97a28 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow:
        0 0 5px rgba(255, 210, 130, 0.30),
        0 2px 6px rgba(0, 0, 0, 0.6);

    filter: none;
}



/* ---------- Responsive ---------- */

/* Modal – overlay mode for narrower widths */
@media (max-width: 1100px) {

    
    .character-modal-content {
        width: min(900px, 95%);
        max-height: 90vh;
        padding: 0;
        display: block;
        border-radius: 24px;
        overflow: hidden;
    }

    .modal-image-wrap {
        position: relative;
        max-height: 90vh;
        border-radius: 24px;
    }

    .modal-image-wrap::after {
        content: '';
        position: absolute;
        inset: auto 0 0 0;
        height: 55%;
        background: linear-gradient(180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(4, 4, 10, 0.55) 30%,
            rgba(2, 2, 6, 0.9) 100%);
        pointer-events: none;
        z-index: 1;
    }

    .modal-image-wrap img,
    .modal-image-wrap video {
        width: 100%;
        height: 100%;
        max-height: 90vh;
        object-fit: cover;
        object-position: 50% 20%; /* تمرکز روی سر کاراکتر */
        filter: none;
        border-radius: 24px;
    }

    .modal-text {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 20px 22px 26px;
        background: none;
        max-height: 65%;
        overflow-y: auto;
        z-index: 2;
        text-shadow: 0 4px 18px rgba(0, 0, 0, 0.65);
    }
}

/* Home / general responsive */
@media (max-width: 1100px) {
    /* سکشن هوم: ارتفاع دقیقاً برابر ارتفاع واقعی دستگاه */
    .home-section {
        padding-top: 80px;   /* فاصله از زیر نوار ثابت */
        padding-bottom: 0;
        height: var(--app-height, 100vh);
        min-height: var(--app-height, 100vh);
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: stretch;
    }

    .home-section::before {
        opacity: 1;
        background:
            radial-gradient(circle at 10% 0%,
                rgba(255, 215, 0, 0.10) 0,
                transparent 40%),
            radial-gradient(circle at 90% 20%,
                rgba(110, 190, 255, 0.12) 0,
                transparent 55%),
            radial-gradient(circle at bottom,
                rgba(5, 8, 20, 0.95) 0,
                rgba(0, 0, 0, 0.9) 80%);
    }

    /* محتوا: متن و دکمه‌ها کمی پایین‌تر از بالا قرار بگیرن */
    .home-content {
        position: relative;
        z-index: 2;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        padding-top: 30vh;   /* 👈 ارتفاع متن؛ اگر زیاد/کم بود فقط همینو کم‌وزیاد کن */
    }

    .home-text {
        text-align: center;
        padding: 0 20px 32px;
    }

    .home-buttons {
        justify-content: center;
    }

    .home-media {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;

        z-index: 1;
        pointer-events: none;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        overflow: visible;      /* اگر از چپ و راست زد بیرون، مشکلی نیست */
        min-height: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .home-hero-video {
        height: 100%;           /* ارتفاع = ارتفاع کل سکشن */
        width: auto;
        max-width: none;
        object-fit: cover;
        object-position: center bottom;
        opacity: 0.45;
        filter: brightness(0.65);
        transform: none;
        margin: 0 auto;
    }

    /* فقط ویدیو موبایل نمایش داده شود */
    .hero-desktop {
        display: none;
    }

    .hero-mobile {
        display: block;
    }

    /* بقیه سکشن‌ها مثل قبل */
    .hero-section {
        height: auto;
        padding: 120px 0 96px;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }

    .characters-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-content {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-height: 640px) {
    .home-description-extra,
    .home-description.secondary {
        display: none;
    }

    .home-description.primary {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .home-buttons {
        gap: 10px;
    }

    .home-button {
        min-width: 0;
        padding: 11px 18px;
        font-size: 0.85rem;
        letter-spacing: 0.06em;
    }
}

/* Landscape-specific overrides removed to keep layout consistent */



@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(5, 5, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .contact-info {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .contact-link {
        text-align: center;
        width: 100%;
    }

    .home-description.secondary {
        display: none;
    }

}

@media (max-width: 520px) {
    .home-title,
    .section-title {
        font-size: 2.3rem;
        letter-spacing: 0.12em;
    }

    #modalName {
        font-size: 1.7rem;
    }

    .home-buttons {
        justify-content: center;
        gap: 10px;
    }
}

@media (max-width: 380px) {
    .home-buttons {
        display: none;
    }
}

@media (max-width: 1100px) and (orientation: landscape) {
    .home-buttons {
        display: none;
    }
}

/* Ultra-Wide Screens: Bigger Character */
@media screen and (min-aspect-ratio: 10/9) {
    .home-media {
        transform: scale(1.5);      /* 👈 اندازه کرکتر بیشتر */
        transform-origin: center; /* 👈 از پایین بزرگ شود */
    }
}

/* Super Ultra-Wide (32:9) */
@media screen and (min-aspect-ratio: 32/9) {
    .home-media {
        transform: scale(1.45);
        transform-origin: bottom center;
    }
}

#heroes,
#guardians {
    min-height: calc(100vh - 120px); /* 120px تقریباً ارتفاع منو و یه حاشیه کوچیک */
}

/* Center Heroes & Guardians vertically on desktop / ultra-wide */
@media (min-width: 1024px) {
    #heroes,
    #guardians {
        display: flex;
        flex-direction: column;
        justify-content: center; /* محتوا وسط عمودی */
    }
}

.nav-logo .logo {
    /* اگر حس کردی یک ذره پایینه، اینو کم‌وزیاد کن */
    transform: translateY(4px);
}

/* HOME TITLES – کاملاً پررنگ و سالید روی همه‌ دیوایس‌ها */
.home-title {
    font-family: 'Cinzel', serif;
    font-size: 3.4rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;

    color: #ffe7a3;                    /* طلایی روشن و پررنگ */
    background: none;                  /* گرادیان پشت متن حذف شد */
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    -webkit-text-stroke: 0;            /* حذف استروک شفاف */
    filter: none;                      /* حذف فیلترهای قبلی */

    text-shadow:
        0 0 6px rgba(0, 0, 0, 0.75),   /* کنتراست با بک */
        0 0 18px rgba(0, 0, 0, 0.9);

    margin-bottom: 18px;
}

.home-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 400;

    color: #fdf5d4;                    /* یه درجه روشن‌تر برای ساب‌تایتل */
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    -webkit-text-stroke: 0;
    filter: none;

    text-shadow:
        0 0 5px rgba(0, 0, 0, 0.7),
        0 0 14px rgba(0, 0, 0, 0.85);

    margin-bottom: 26px;
}

/* Particle trail */
.particle-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3000;
    mix-blend-mode: screen;
}

.particle {
    position: absolute;
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
    filter: blur(0.4px);
    animation: particleFloat 1.2s ease-out forwards;
}

@keyframes particleFloat {
    0% {
        opacity: 0.85;
        transform: translate(-50%, -50%) scale(0.3);
    }
    60% {
        opacity: 0.35;
        transform:
            translate(calc(-50% + var(--drift-x, 0px)),
                      calc(-50% + var(--drift-y, -40px)))
            scale(1);
    }
    100% {
        opacity: 0;
        transform:
            translate(calc(-50% + var(--drift-x, 0px)),
                      calc(-50% + var(--drift-y, -80px)))
            scale(0.3);
    }
}
