/* ========================= Font ========================= */
@font-face {
    font-family: YekanBakh;
    src:
        url('../fonts/yekanbakh/woff2/YekanBakh-Regular.woff2') format('woff2'),
        url('../fonts/yekanbakh/woff/YekanBakh-Regular.woff') format('woff'),
        url('../fonts/yekanbakh/eot/YekanBakh-Regular.eot') format('embedded-opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ======================= Design Tokens ======================= */
:root {
    /* Charcoal base */
    --bg-dark: #1a1a1d;
    --bg-elevated: #242428;
    --surface: #2d2d32;

    /* Coral accent */
    --coral: #ff7f50;
    --coral-hover: #ff9670;
    --coral-deep: #e85f30;

    /* Text */
    --text-primary: #f5f5f7;
    --text-secondary: #b8b8be;
    --text-muted: #8a8a90;

    /* Effects */
    --overlay: rgba(20, 20, 23, 0.55);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-strong: 0 8px 32px rgba(0, 0, 0, 0.5);
    --radius: 14px;
    --transition: 0.3s ease;

    /* Layout */
    --toolbar-size: 3.25rem;
    --copyright-h: 2.75rem;
    
    --primary-font: 'YekanBakh', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ======================= Reset ======================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--primary-font);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

html, body {
    height: 100%;
    overflow: hidden; /* only if page should NOT scroll at all */
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* ======================= Hero Section ======================= */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    /* fallback */
    height: 100svh;
    /* mobile-safe viewport */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ---- Slider ---- */
.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1);
    transition: opacity 0.8s ease, transform 4.3s ease-out;
    will-change: opacity, transform;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.08);
    z-index: 2;
}

/* ---- Overlay ---- */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(180deg,
            rgba(20, 20, 23, 0.35) 0%,
            rgba(20, 20, 23, 0.55) 50%,
            rgba(20, 20, 23, 0.75) 100%);
}

/* ---- Content ---- */
.hero-content {
    position: relative;
    z-index: 4;
    max-width: 620px;
    padding: 1.5rem;
    animation: fadeUp 1s ease both;
}

.hero-logo {
    width: clamp(140px, 30vw, 220px);
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.hero-slogan {
    color: var(--text-primary);
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-slogan:first-of-type {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 700;
    color: var(--coral);
}

.hero-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.85rem 2.5rem;
    background-color: var(--coral);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition),
        background-color var(--transition),
        box-shadow var(--transition);
}

.hero-btn:hover,
.hero-btn:focus-visible {
    background-color: var(--coral-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.hero-btn:active {
    transform: translateY(-1px);
    background-color: var(--coral-deep);
}

/* ======================= Sticky Social Toolbar ======================= */
.sticky-toolbar {
    position: fixed;
    top: 50%;
    inset-inline-start: 0;
    /* RTL-aware (right side in fa) */
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: var(--bg-elevated);
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow-soft);
}

.sticky-toolbar a {
    width: var(--toolbar-size);
    height: var(--toolbar-size);
    display: grid;
    place-items: center;
    color: var(--text-secondary);
    font-size: 1.4rem;
    border-radius: 10px;
    transition: color var(--transition),
        background-color var(--transition),
        transform var(--transition);
}

.sticky-toolbar a:hover,
.sticky-toolbar a:focus-visible {
    color: #fff;
    background-color: var(--coral);
    transform: scale(1.1);
}

/* ======================= Copyright Bar ======================= */
.fixed-copyright {
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 40;
    height: var(--copyright-h);
    display: grid;
    place-items: center;
    background-color: rgba(26, 26, 29, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 127, 80, 0.15);
}

.fixed-copyright p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.fixed-copyright .coral {
    color: var(--coral);
    font-weight: 700;
}

/* ======================= Animations ======================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================= Responsive ======================= */
@media (max-width: 768px) {
    .sticky-toolbar {
        flex-direction: row;
        top: auto;
        bottom: calc(var(--copyright-h) + 0.75rem);
        inset-inline-start: 50%;
        transform: translateX(50%);
        /* RTL center */
        border-radius: var(--radius);
    }

    .sticky-toolbar a {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.2rem;
    }

    .hero-content {
        padding: 1rem 1.5rem;
    }
}

/* ======================= Reduced Motion ======================= */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-slide {
        transition: opacity 0.8s ease !important;
        transform: scale(1) !important;
    }
}