@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;300;400;500;700;900&display=swap');

:root {
    --primary-color: #0f172a;
    --secondary-color: #2563eb;
    --accent-color: #3b82f6;
    --bg-light: #f8fafc;
    --text-main: #475569;
    --text-dark: #0f172a;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --glass: rgba(255, 255, 255, 0.7);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease forwards;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    font-size: 15px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    padding-top: 150px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    gap: 50px;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-main);
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Services Section */
.services {
    padding: 100px 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
}

.section-title .underline {
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px;
    background: var(--bg-light);
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    background: white;
    border-color: #e2e8f0;
    box-shadow: var(--shadow-lg);
}

.service-card i {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background: var(--primary-color);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 42px;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 16px;
    opacity: 0.8;
}

/* Brands Section */
.brands {
    padding: 60px 0;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.brands-flex {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.brands-flex:hover {
    filter: grayscale(0);
    opacity: 1;
}

.brand-item img {
    height: 40px;
    width: auto;
}

/* Premium Warranty CTA */
.warranty-cta {
    padding: 120px 0;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('../assets/images/warranty_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    position: relative;
    overflow: hidden;
}

.warranty-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.warranty-content-box {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px;
    border-radius: 40px;
    text-align: center;
    color: white;
    box-shadow: 0 0 50px rgba(37, 99, 235, 0.15);
}

.warranty-content-box h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.warranty-content-box p {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.btn-glass {
    background: white;
    color: var(--primary-color);
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 50px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-glass:hover {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.05);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-about h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--accent-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-right: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }
    .nav-links.active {
        left: 0;
    }
    .contact-info-top {
        display: none;
    }
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 120px;
        padding-bottom: 40px;
    }
    .hero-content h1 {
        font-size: 28px;
    }
    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .hero-btns .btn {
        margin-right: 0 !important;
        width: 100%;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .warranty-content-box {
        padding: 40px 20px;
    }
    .warranty-content-box h2 {
        font-size: 24px;
    }
    .btn-glass {
        padding: 12px 25px;
        font-size: 16px;
        display: block;
        width: 100%;
    }
    .section-title h2 {
        font-size: 24px;
    }
    .about-section-home .container {
        flex-direction: column !important;
        text-align: center;
        gap: 30px !important;
    }
    .about-section-home img {
        width: 100%;
        max-width: 400px;
    }
    .about-section-home div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        text-align: right;
    }
}

/* Form Styles */
.form-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 40px auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
}

.form-group textarea {
    height: 150px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
}
