@import url('https://fonts.googleapis.com/css2?family=Lalezar&family=Vazirmatn:wght@300;400;700;900&display=swap');

:root {
    --bg-color: #050505;
    --surface-color: #111111;
    --surface-light: #1a1a1a;
    --primary-color: #FEB801;
    --primary-glow: rgba(254, 184, 1, 0.5);
    --secondary-color: #1D0833;
    --secondary-glow: rgba(29, 8, 51, 0.5);
    --text-color: #f0f0f0;
    --text-muted: #a0a0a0;
    --font-heading: 'Lalezar', cursive;
    --font-body: 'Vazirmatn', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    direction: rtl;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(29, 8, 51, 0.9), transparent);
    transition: 0.3s;
}

header.scrolled {
    background: rgba(29, 8, 51, 0.95);
    border-bottom: 1px solid rgba(254, 184, 1, 0.3);
    padding: 15px 40px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: 0.3s;
}

.logo-img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px var(--primary-glow));
}

.hero-logo {
    width: 400px;
    height: 400px;
    object-fit: contain;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.desktop-nav a {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: 0.3s;
    box-shadow: 0 0 5px var(--primary-color);
}

.desktop-nav a:hover::after {
    width: 100%;
}

.desktop-nav a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-glow);
}

/* Mobile Menu */
.hamburger-menu {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(29, 8, 51, 0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transform: translateY(-100%);
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav ul {
    list-style: none;
    text-align: center;
}

.mobile-nav li {
    margin: 20px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s;
}

.mobile-nav.active li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav a {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-color);
}

.mobile-nav a:hover {
    color: var(--primary-color);
}

.close-menu {
    position: absolute;
    top: 30px;
    left: 30px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.4);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(29, 8, 51, 0.3) 0%, #050505 90%);
    z-index: -1;
}

.hero-content {
    z-index: 1;
    padding: 20px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-glow), 0 0 40px var(--primary-glow);
    margin-bottom: 10px;
    animation: glowPulse 3s infinite alternate;
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #ccc;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.cta-btn {
    display: inline-block;
    padding: 15px 50px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 0 10px var(--primary-glow);
    z-index: 1;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: 0.3s;
    z-index: -1;
}

.cta-btn:hover::before {
    left: 0;
}

.cta-btn:hover {
    color: #000;
    box-shadow: 0 0 30px var(--primary-glow);
}

/* Sections */
section {
    padding: 100px 20px;
    position: relative;
}

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--text-color);
    margin-bottom: 60px;
    position: relative;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 10px auto 0;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #1D0833 0%, #2a0f4d 100%);
    border-top: 1px solid rgba(254, 184, 1, 0.2);
    border-bottom: 1px solid rgba(254, 184, 1, 0.2);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: rgba(0, 0, 0, 0.4);
    padding: 40px 20px;
    text-align: center;
    border: 2px solid rgba(254, 184, 1, 0.2);
    position: relative;
    transition: 0.3s;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(254, 184, 1, 0.3);
    transform: translateY(-10px);
    background: rgba(29, 8, 51, 0.6);
}

.stat-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 15px var(--primary-glow);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--primary-color);
    line-height: 1;
    text-shadow: 0 0 10px var(--primary-glow);
}

.stat-label {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Provincial Stats */
.province-container {
    max-width: 1400px;
    margin: 0 auto;
}

.province-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.province-item {
    background: rgba(29, 8, 51, 0.3);
    padding: 20px;
    border-left: 3px solid var(--primary-color);
    transition: 0.3s;
    border-radius: 8px;
}

.province-item:hover {
    background: rgba(29, 8, 51, 0.6);
    border-left-color: var(--primary-color);
    padding-right: 30px;
    box-shadow: 0 0 20px rgba(254, 184, 1, 0.2);
}

.province-name {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.province-data {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

/* Media Gallery */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.media-card {
    position: relative;
    height: 300px;
    overflow: hidden;
    border: 1px solid rgba(254, 184, 1, 0.2);
    cursor: pointer;
    border-radius: 10px;
    transition: 0.3s;
}

.media-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(254, 184, 1, 0.3);
    transform: translateY(-5px);
}

.media-card img,
.media-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.media-card:hover img,
.media-card:hover video {
    transform: scale(1.05);
}

.media-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6));
    transition: 0.3s;
}

.media-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Media Modal */
.media-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.media-modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.modal-content img,
.modal-content video {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(254, 184, 1, 0.3);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2.5rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.modal-title {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-glow);
}

/* Footer */
footer {
    background: linear-gradient(to top, #1D0833, #000);
    padding: 60px 20px;
    text-align: center;
    border-top: 2px solid rgba(254, 184, 1, 0.3);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin: 0 15px;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Eitaa Buttons Hover */
footer a[href*="eitaa"]:hover {
    background: rgba(29, 8, 51, 0.8) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 20px rgba(254, 184, 1, 0.3);
    transform: translateY(-3px);
}

/* Designo Logo */
footer img[alt="دیزاینو"] {
    transition: 0.3s;
    filter: brightness(0.8);
}

footer img[alt="دیزاینو"]:hover {
    filter: brightness(1.2) drop-shadow(0 0 8px #08A896);
    transform: scale(1.05);
}

/* Designo Link Hover */
footer a[href*="dizyno.ir"]:hover {
    color: #0ac4af !important;
    text-shadow: 0 0 8px rgba(8, 168, 150, 0.5);
}

footer a[href*="dizyno.ir"]:hover img {
    filter: brightness(1.2) drop-shadow(0 0 10px #08A896);
    transform: scale(1.1);
}

/* Animations */
@keyframes glowPulse {
    from {
        text-shadow: 0 0 20px var(--primary-glow);
    }

    to {
        text-shadow: 0 0 40px var(--primary-glow), 0 0 10px white;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .desktop-nav {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .logo-img {
        width: 60px;
        height: 60px;
    }

    .hero-logo {
        width: 300px;
        height: 300px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
    }

    .modal-title {
        font-size: 1.3rem;
        bottom: -40px;
    }
}