@font-face {
    font-family: "Brando Arabic Bold";
    src: url(/fonts/Brando\ Arabic\ Bold.otf) format("opentype");
}

:root {
    --accent-a: #f8f9fa;
    --accent-b: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Brando Arabic Bold";
    direction: ltr;
}

body {
    background-color: #000814;
    color: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
}

/* ----- HEADER ----- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 70px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

body.loaded header {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    color: #f1f5f9;
}

.logo img {
    width: 40px;
    height: 40px;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    text-decoration: none;
    color: #ccc;
    transition: 0.3s;
}

.nav a:hover {
    color: var(--accent-a);
    text-shadow: 0 0 10px var(--accent-b);
}

/* ----- MENU TOGGLE ----- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------------------- */
/* Glass Box Center Area  */
/* ---------------------- */
.glass-container.hero {
    position: relative;
    margin: 0 auto;
    margin-top: 120px;
    width: 90%;
    max-width: 650px;
    padding: 45px 35px;
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #edf6f9;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(20px);
    animation: glassFade 1s ease forwards;
}

@keyframes glassFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-container .title span {
    font-size: 2.2rem;
    font-weight: 700;
    color: #edf6f9;
    text-shadow: 0 1 12px #6c757d;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
}

.glass-container .subtitle {
    max-height: 100vh;
    max-width: 100vh;
    margin-top: 18px;
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.9;
    padding-bottom: 15px;
    direction: rtl;
    text-align: right;
    unicode-bidi: embed;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.8s;
}

/* ----- Skills Section ----- */
.skills-section {
    margin-top: 40px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.2s;
}

.skills-section h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #edf6f9;
    text-shadow: 0 0 8px rgba(0, 255, 195, 0.2);
    display: inline-block;
    padding: 0 10px;
    direction: rtl;
    unicode-bidi: embed;
}

.skills {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.skills span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 255, 195, 0.1);
    transition: 0.3s;
    cursor: default;
    font-weight: 500;
}

.skills span:hover {
    background: var(--accent-a);
    color: #000;
    box-shadow: 0 0 15px var(--accent-b);
    transform: translateY(-3px) scale(1.05);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----- FOOTER ----- */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #bbb;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

body.loaded footer {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.3s;
}

/* ----- INTRO OVERLAY ----- */
.intro-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.95));
    opacity: 1;
    z-index: 9999;
    pointer-events: none;
    transition: opacity 1s ease;
}

body.loaded .intro-overlay {
    opacity: 0;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 600px) {
    .glass-container {
        width: 92%;
        padding: 35px 25px;
    }

    .glass-container .title span {
        font-size: 1.7rem;
    }

    .glass-container .subtitle {
        font-size: 0.95rem;
    }

    .skills-section h2 {
        font-size: 1.1rem;
    }

    .skills span {
        padding: 6px 14px;
        font-size: 0.9rem;
    }
}

/* ===========================
   RESPONSIVE NAV FOR MOBILE
   =========================== */
@media (max-width: 900px) {

    /* مخفی کردن منوی معمولی */
    .nav {
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: 0.3s ease;
        z-index: 999;
    }

    /* وقتی منو باز شد */
    .nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav a {
        padding: 18px 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        text-align: right;
        width: 100%;
        font-size: 16px;
    }

    /* فعال کردن منوی همبرگری */
    .menu-toggle {
        display: flex;
        z-index: 1000;
    }

    /* فاصله دادن به هدر که همپوشانی نشه */
    header {
        padding: 20px 25px;
        z-index: 999;
    }
}