:root {
    --primary: #0a0e17;
    --secondary: #111827;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #1e293b;
    --card: #1a2332;
    --success: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--primary);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.8;
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 80px;
    height: 80px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.preloader-text {
    margin-top: 24px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--primary);
    font-size: 1.4rem;
}

.logo-text {
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--text);
}

.logo-text span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--accent);
    background: rgba(245, 158, 11, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: 8px;
}

/* Hero */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('images/hero.png') center/cover no-repeat;
    filter: brightness(0.3);
    transform: scale(1.1);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    to {
        transform: scale(1.2);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 14, 23, 0.9) 0%, rgba(10, 14, 23, 0.4) 50%, rgba(10, 14, 23, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 32px;
    animation: fadeInDown 1s ease;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-title .highlight {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(245, 158, 11, 0.3);
    border-radius: 4px;
    z-index: -1;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Sections Common */
section {
    padding: 100px 24px;
    position: relative;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* About */
.about {
    background: var(--secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-img-main {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s;
}

.about-img-main:hover {
    transform: scale(1.02);
}

.about-img-float {
    position: absolute;
    width: 200px;
    border-radius: 16px;
    border: 4px solid var(--secondary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s;
}

.about-img-float:hover {
    transform: scale(1.05);
}

.about-img-float.img-1 {
    bottom: -30px;
    left: -30px;
}

.about-img-float.img-2 {
    top: -30px;
    right: -30px;
    width: 160px;
}

.about-content h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.3;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(245, 158, 11, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.about-feature-text {
    font-weight: 700;
    font-size: 0.95rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 32px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent);
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    background: var(--accent);
    color: var(--primary);
    transform: rotate(-5deg) scale(1.1);
}

.service-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Projects */
.projects {
    background: var(--secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.project-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    group: project;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 14, 23, 0.95) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 800;
    transform: translateY(20px);
    transition: transform 0.4s;
}

.project-card:hover .project-title {
    transform: translateY(0);
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
    transform: translateY(20px);
    transition: transform 0.4s 0.1s;
}

.project-card:hover .project-desc {
    transform: translateY(0);
}

/* Stats */
.stats {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
    padding: 80px 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    color: rgba(10, 14, 23, 0.8);
    font-weight: 700;
    margin-top: 8px;
    font-size: 1.1rem;
}

.stat-icon {
    margin-bottom: 16px;
    color: var(--primary);
}

/* Why Us */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.why-image {
    position: relative;
}

.why-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.why-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: var(--accent);
    color: var(--primary);
    padding: 20px 28px;
    border-radius: 16px;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--card);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.why-item:hover {
    border-color: var(--accent);
    transform: translateX(-8px);
}

.why-item-icon {
    width: 48px;
    height: 48px;
    background: rgba(245, 158, 11, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.why-item-title {
    font-weight: 800;
    margin-bottom: 4px;
}

.why-item-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Contact */
.contact {
    background: var(--secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 24px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item-icon {
    width: 52px;
    height: 52px;
    background: rgba(245, 158, 11, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-item-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-item-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.contact-item-text a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item-text a:hover {
    color: var(--accent);
}

.contact-form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

.form-btn {
    width: 100%;
    justify-content: center;
}

/* Map */
.map-section {
    padding: 0;
    height: 450px;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(0.3) brightness(0.8);
}

/* Footer */
.footer {
    background: var(--primary);
    border-top: 1px solid var(--border);
    padding: 60px 24px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand-logo {
    float: right;
    margin-left: 10px;
}

.footer-brand .logo-text {
    font-size: 1.5rem;
    margin-bottom: 16px;
    display: block;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-title {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--accent);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--accent-dark);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .about-grid,
    .why-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-images {
        order: -1;
    }

    .why-image {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        border-top: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .footer-brand-logo {
        float: none;
        margin-left: initial;
        margin-bottom: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-img-float {
        display: none;
    }
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }