@font-face {
    font-family: 'Vazir';
    src: url('Vazir.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('Gilroy-Regular.ttf') format('truetype');
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --glass-bg: rgba(0, 0, 0, 0.4);
    --glass-bg-light: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --police-blue: #3b82f6;
    --police-blue-dark: #2563eb;
    --gold-color: #ffd700;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Gilroy', 'Vazir', sans-serif;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background: #000000;
    position: relative;
}

.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../Pictures/Pic1.png') no-repeat center center;
    background-size: cover;
    filter: blur(12px) brightness(0.7);
    transform: scale(1.05);
    z-index: -2;
}

.background-layer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: -1;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.header:hover {
    background: rgba(0, 0, 0, 0.7);
    border-bottom-color: rgba(59, 130, 246, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: 'Gilroy', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-primary);
}

.logo-sub {
    font-family: 'Gilroy', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 5px;
    color: var(--text-muted);
    margin-top: 4px;
}

.nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-link {
    font-family: 'Gilroy', sans-serif;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--police-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 40px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    min-width: 200px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    top: calc(100% + 10px);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu a i {
    margin-left: 10px;
    width: 20px;
    color: var(--police-blue);
}

.dropdown-menu a:hover {
    background: rgba(59, 130, 246, 0.2);
    color: var(--text-primary);
    padding-right: 25px;
}

.auth-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    font-family: 'Gilroy', sans-serif;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    border: none;
}

.btn-steam-fa {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
}

.btn-steam-fa:hover {
    background: var(--police-blue);
    color: white;
    border-color: var(--police-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.main-content {
    min-height: 100vh;
    padding-top: 100px;
}

.hero-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    min-height: calc(100vh - 100px);
}

.hero-left {
    flex: 1.2;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    font-family: 'Gilroy', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 8px 18px;
    backdrop-filter: blur(20px);
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    margin-bottom: 30px;
}

.hero-title {
    font-family: 'Gilroy', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 8px;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-family: 'Gilroy', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 6px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.police-blue {
    color: var(--police-blue);
}

.hero-description-full {
    margin-bottom: 35px;
}

.hero-description-text {
    font-family: 'Gilroy', sans-serif;
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.service-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    font-size: 0.73rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.service-tag:hover {
    background: rgba(59, 130, 246, 0.2);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.service-tag i {
    color: var(--police-blue);
    font-size: 0.78rem;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--police-blue);
    color: white;
    padding: 13px 32px;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--police-blue-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 13px 32px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Gilroy', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    letter-spacing: 1px;
}

.stat-label {
    font-family: 'Gilroy', sans-serif;
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--glass-border);
}

.hero-divider {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(180deg, transparent 0%, var(--police-blue) 25%, var(--police-blue) 75%, transparent 100%);
    flex-shrink: 0;
    opacity: 0.5;
}

.hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    max-width: 520px;
}

.forms-header-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Gilroy', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.forms-header-inline i {
    color: var(--police-blue);
    font-size: 1rem;
}

.forms-grid-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-card-inline {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.form-card-inline:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.form-icon-inline {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.form-card-inline:hover .form-icon-inline {
    transform: scale(1.1);
}

.form-card-inline span {
    font-family: 'Gilroy', sans-serif;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.form-card-inline:hover span {
    color: var(--text-primary);
}

.gallery-section {
    padding: 50px 0 70px;
}

.gallery-section-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 50px;
}

.gallery-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-family: 'Gilroy', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.gallery-label i {
    color: var(--police-blue);
    font-size: 1rem;
}

.gallery-slider {
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    position: relative;
}

.gallery-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.gallery-item {
    min-width: 100%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 18px;
}

.gallery-item img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    transition: transform 0.5s ease, filter 0.45s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-overlay i {
    font-size: 2rem;
    color: #ffffff;
    transform: scale(0.75);
    transition: transform 0.35s ease;
}

.gallery-overlay span {
    font-family: 'Gilroy', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.72);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

.gallery-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
    padding: 9px 20px;
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.gallery-prev,
.gallery-next {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 0.72rem;
}

.gallery-prev:hover,
.gallery-next:hover {
    color: var(--police-blue);
}

.gallery-dots {
    display: flex;
    gap: 7px;
    align-items: center;
}

.gallery-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.35s ease;
}

.gallery-dot.active {
    background: var(--police-blue);
    width: 22px;
    border-radius: 4px;
}

.gallery-dot:hover {
    background: rgba(59, 130, 246, 0.6);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 88vw;
    max-height: 88vh;
    animation: modalFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 16px;
    display: block;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
}

.modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 0.95rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: white;
    background: var(--police-blue);
    border-color: var(--police-blue);
    transform: rotate(90deg) scale(1.1);
}

.footer {
    padding: 28px 0;
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.4);
}

.footer-content {
    text-align: center;
}

.footer-powered {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 8px;
}

.footer-powered i {
    color: var(--police-blue);
    margin-left: 8px;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.73rem;
}

@media (max-width: 1200px) {
    .hero-section {
        flex-direction: column;
        padding: 40px 30px;
        gap: 40px;
        min-height: auto;
    }

    .hero-left {
        max-width: 100%;
    }

    .hero-right {
        max-width: 100%;
        width: 100%;
    }

    .forms-grid-inline {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .hero-divider {
        width: 80%;
        height: 1px;
        align-self: center;
        background: linear-gradient(90deg, transparent, var(--police-blue), var(--police-blue), transparent);
    }

    .service-tags {
        justify-content: center;
    }

    .hero-description-text {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-title {
        font-size: 3rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        text-align: center;
    }

    .hero-badge {
        display: block;
        text-align: center;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .gallery-section-inner {
        padding: 0 30px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 15px 20px;
    }

    .nav {
        justify-content: center;
    }

    .nav-link {
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    .hero-section {
        padding: 30px 20px;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 3px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 260px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 14px;
    }

    .stat-divider {
        width: 50px;
        height: 1px;
    }

    .forms-grid-inline {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-item img {
        height: 260px;
    }

    .gallery-section-inner {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .logo-sub {
        font-size: 0.45rem;
        letter-spacing: 3px;
    }

    .forms-grid-inline {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .form-card-inline {
        padding: 12px 13px;
        gap: 10px;
    }

    .form-icon-inline {
        width: 30px;
        height: 30px;
    }

    .form-card-inline span {
        font-size: 0.75rem;
    }

    .gallery-item img {
        height: 210px;
    }
}