/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #0A0A0A;
    --dark-black: #1A1A1A;
    --medium-black: #2A2A2A;
    --forest-green: #1A4D2E;
    --light-green: #2E8B57;
    --gold: #D4AF37;
    --light-gold: #F4E4A6;
    --white: #FFFFFF;
    --light-gray: #E5E5E5;
    --medium-gray: #8B8B8B;
    --dark-gray: #444444;
}
@font-face {
    font-family: 'Iran Sans';
    src: url('fonts/irsans.ttf') format('.ttf'), url('fonts/iran-sans-300.woff') format('woff'), url('fonts/iran-sans-300.woff2') format('woff2') url('fonts/IRANSansWeb.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'vazir';
    src: url('fonts/vazir.ttf') format('.ttf'), url('fonts/vazir-300.woff') format('woff'), url('fonts/vazir-300.woff2') format('woff2') ;
    font-weight: normal;
    font-style: normal;
}
body {
    font-family: 'Iran Sans', 'vazir', sans-serif;
    line-height: 1.6;
    color: var(--white);
    background-color: var(--black);
    direction: rtl;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--dark-gray);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--gold);
}

.nav-link.active::after {
    width: 100%;
}

.cta-button {
    background: var(--forest-green);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazir';
    font-size: 0.9rem;
    font-weight: 500;
}

.cta-button:hover {
    background: var(--gold);
    color: var(--black);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Slider */
.hero-slider {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    z-index: 3;
    text-align: right;
    max-width: 600px;
    background: rgba(10, 10, 10, 0.8);
    padding: 3rem;
    backdrop-filter: blur(10px);
    border-right: 3px solid var(--gold);
}

.slide-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.slide-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--light-gold);
}

.slide-cta {
    background: var(--gold);
    color: var(--black);
    padding: 1rem 2.5rem;
    border: none;
    cursor: pointer;
    font-family: 'Vazir';
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.4s ease;
}

.slide-cta:hover {
    background: var(--forest-green);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(26, 77, 46, 0.4);
}

.slide-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slide-image::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10,10,10,0.8) 0%, rgba(10,10,10,0.4) 50%, transparent 100%);
}

.slider-controls {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.slider-prev, .slider-next {
    background: rgba(26, 77, 46, 0.8);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.slider-prev:hover, .slider-next:hover {
    background: var(--gold);
    color: var(--black);
}

.slider-dots {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border: 2px solid var(--forest-green);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--gold);
    border-color: var(--gold);
}

/* Section Styles - برای صفحه اصلی */
section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background: var(--gold);
}

.gold-line {
    width: 100px;
    height: 3px;
    background: var(--gold);
    margin: 1rem auto 0;
}

/* About Section - صفحه اصلی */
.about-section {
    background: var(--dark-black);
    position: relative;
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light-gray);
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--medium-black);
    border: 1px solid var(--dark-gray);
    transition: all 0.4s ease;
}

    .stat-item:hover {
        transform: translateY(-10px);
        border-color: var(--forest-green);
        box-shadow: 6px 12px 19px 3px rgb(65 127 90 / 30%);
    }

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--light-gray);
    font-size: 0.9rem;
}

.about-image {
    position: relative;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

    .about-image:hover img {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(74, 222, 128, 0.2);
        border-color: #4ade80;
    }

/* Products Section - صفحه اصلی */
.products-section {
    background: var(--black);
    position: relative;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--dark-black);
    border: 1px solid var(--dark-gray);
    transition: all 0.5s ease;
    overflow: hidden;
}

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(74, 222, 128, 0.2);
        border-color: #4ade80;
    }

.product-image {
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.15);
}

.product-content {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--light-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.feature {
    background: var(--forest-green);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.product-card:hover .feature {
    background: var(--gold);
    color: var(--black);
}

/* Gallery Section - صفحه اصلی */
.gallery-section {
    background: var(--dark-black);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 77, 46, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-overlay span {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: bold;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(26, 77, 46, 0.4);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Blog Section - صفحه اصلی */
.blog-section {
    background: var(--black);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--dark-black);
    border: 1px solid var(--dark-gray);
    transition: all 0.5s ease;
    overflow: hidden;
}

    .blog-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(74, 222, 128, 0.2);
        border-color: #4ade80;
    }

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.15);
}

.blog-content {
    padding: 1.5rem;
}

.blog-title {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.blog-excerpt {
    color: var(--light-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size:small;
}

.blog-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-link:hover {
    color: var(--light-gold);
}

/* Contact Section - صفحه اصلی */
.contact-section {
    background: var(--dark-black);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--medium-black);
    border: 1px solid var(--dark-gray);
    transition: all 0.4s ease;
}

.contact-item:hover {
    transform: translateX(-10px);
    border-color: var(--forest-green);
    box-shadow: 0 10px 25px rgba(26, 77, 46, 0.3);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--gold);
}

.contact-details h4 {
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-details p {
    color: var(--light-gray);
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    background: var(--medium-black);
    border: 1px solid var(--dark-gray);
    padding: 1rem;
    color: var(--white);
    font-family: 'Vazir';
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--medium-gray);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--forest-green);
    box-shadow: 0 0 0 2px rgba(26, 77, 46, 0.3);
}

.submit-btn {
    background: var(--forest-green);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
    font-family: 'Vazir';
    font-size: 1rem;
    transition: all 0.4s ease;
}

.submit-btn:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

/* Footer */
.footer {
    background: var(--dark-black);
    border-top: 1px solid var(--dark-gray);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--light-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--gold);
}

.footer-section h4 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    background: var(--medium-black);
    border: 1px solid var(--dark-gray);
    padding: 0.5rem;
    color: var(--white);
    font-family: 'Vazir';
}

.newsletter-form button {
    background: var(--forest-green);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: 'Vazir';
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--gold);
    color: var(--black);
}

.footer-bottom {
    border-top: 1px solid var(--dark-gray);
    padding-top: 1rem;
    text-align: center;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* استایل‌های صفحات مجزا - فقط برای صفحات مربوطه */
.about-detail,
.products-page,
.gallery-page {
    display: none;
}

/* Page Header - فقط برای صفحات مجزا */
.page-header {
    background: linear-gradient(rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.7)), 
                url('https://images.unsplash.com/photo-1447933601403-0c6688de566e?ixlib=rb-4.0.3');
    background-size: cover;
    background-position: center;
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 70px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-title {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--light-gold);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* استایل‌های فیلتر - فقط برای صفحات محصولات و گالری */
.products-filter,
.gallery-filter {
    display: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .values-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid-large {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--black);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        z-index: 1001;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .slide-content {
        position: absolute;
        top: 50%;
        right: 0;
        left: 0;
        transform: translateY(-50%);
        text-align: center;
        max-width: 100%;
        padding: 2rem;
        background: rgba(10, 10, 10, 0.9);
        border-right: none;
        border-bottom: 3px solid var(--gold);
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-subtitle {
        font-size: 1.1rem;
    }
    
    .slider-controls {
        left: 1rem;
        transform: translateY(-50%) scale(0.8);
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .gallery-item.large {
        grid-column: 1;
        grid-row: 1;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .products-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.6rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}