/* 
  Brand Colors:
  Primary Red: #A70000
  Accent Yellow: #E5A91E
  Dark/Black: #151515
  Light Grey: #F5F5F5
*/

:root {
    --primary-color: #A70000;
    --accent-color: #E5A91E;
    --dark-color: #151515;
    --light-bg: #ffffff;
    --white: #ffffff;
    --text-color: #333333;
    --font-family: 'Vazirmatn', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
}

.header.hidden {
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo h1 span {
    color: var(--primary-color);
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--accent-color);
}

.lang-switch a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
}
.lang-switch a.active {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    background: url('../images/05-bannerlent.jpeg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(21, 21, 21, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-slogan-text {
    transition: opacity 0.5s ease-in-out;
    min-height: 35px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.2s;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: #8c0000;
    transform: translateY(-2px);
}

/* Typography & Titles */
.section-title {
    margin-bottom: 40px;
    position: relative;
}

.section-title.center {
    text-align: center;
}

.section-title h3 {
    font-size: 2.5rem;
    color: var(--dark-color);
    font-weight: 800;
    display: inline-block;
}

.section-title h3 span {
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px 0 0;
}
.section-title.center::after {
    margin: 10px auto 0;
}

/* About */
.about {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(229,169,30,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Banner Divider */
.banner-divider {
    width: 100%;
    height: 350px;
    background: url('../images/07-factory.jpeg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    border-top: 5px solid var(--primary-color);
    border-bottom: 5px solid var(--accent-color);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

/* Products */
.products {
    padding: 40px 0 80px 0;
    background-color: var(--light-bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Product Card - Inspired by Brochure Design */
.product-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.product-code {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-color);
}

.product-type {
    font-size: 0.9rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
}

.product-features {
    list-style: none;
    margin-bottom: 20px;
}

.product-features li {
    position: relative;
    padding-inline-start: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.product-features li::before {
    content: '■';
    color: var(--primary-color);
    position: absolute;
    inset-inline-start: 0;
    font-size: 0.8rem;
    top: 3px;
}

.product-cars {
    margin-top: auto;
    background: var(--light-bg);
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--dark-color);
    font-weight: bold;
}

/* Theme Divider */
.theme-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60%;
    margin: 0 auto;
    padding: 10px 0;
}
.theme-divider .line {
    flex-grow: 1;
    height: 1px;
}
.theme-divider .line-left {
    background: linear-gradient(90deg, transparent, var(--primary-color));
}
.theme-divider .line-right {
    background: linear-gradient(270deg, transparent, var(--accent-color));
}
.theme-divider .icon {
    margin: 0 15px;
    color: var(--accent-color);
    font-size: 0.8rem;
    transform: rotate(45deg);
}

/* Agency */
.agency {
    padding: 80px 0 40px 0;
    background-color: var(--light-bg);
    text-align: center;
}

.agency-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-top: 4px solid var(--accent-color);
}

.agency-content p {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.8;
}

.agency-contact {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    white-space: nowrap;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(167, 0, 0, 0.3);
    transition: transform 0.3s;
}

.agency-contact:hover {
    transform: translateY(-3px);
}

.agency-contact strong {
    font-weight: 900;
    letter-spacing: 2px;
}

/* Contact */
.contact {
    padding: 80px 0;
    background: url('../images/06-banner2.jpeg') no-repeat center center/cover;
    position: relative;
    color: var(--white);
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(167, 0, 0, 0.85); /* Primary red overlay */
}

.contact-box {
    position: relative;
    z-index: 2;
    background: rgba(21, 21, 21, 0.9);
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
    /* Slanted design element */
    border-right: 6px solid var(--accent-color);
}

.contact-box h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
}

.contact-info p strong {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: #888;
    text-align: center;
    padding: 20px 0;
    border-top: 3px solid var(--primary-color);
}

/* Animations */
.slide-in {
    animation: slideIn 1s ease-out forwards;
}

.fade-in {
    animation: fadeIn 1.5s ease-in forwards;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .nav a {
        font-size: 0.95rem;
    }
    
    .agency-contact {
        font-size: 1.05rem;
        padding: 12px 20px;
    }
    
    .about-container {
        flex-direction: column;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
}

/* Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); 
}
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoom 0.3s ease;
}
@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.modal-close:hover,
.modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
