/* Design System & Variables */
:root {
    --primary: #064e3b; /* Deep Emerald Green */
    --primary-light: #10b981;
    --primary-teal: #43a083; /* Requested color */
    --secondary: #0f172a; /* Slate Blue/Gray */
    --accent: #d97706; /* Amber/Gold */
    --bg-light: #f8fafc;
    --white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

[dir="ltr"] {
    font-family: 'Outfit', sans-serif;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 65px;
    height: 65px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    background-color: #128c7e;
}

@keyframes pulse-wa {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.subtitle {
    display: block;
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(67, 160, 131, 0.3);
}

.btn-outline {
    border-color: var(--primary-teal);
    color: var(--primary-teal);
}

.btn-outline:hover {
    background-color: var(--primary-teal);
    color: var(--white);
}

/* Sections */
section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

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

.logo img {
    height: 90px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-teal);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switch {
    background: var(--bg-light);
    border: 1px solid #e2e8f0;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* Slider Styles */
.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(255,255,255,0.9) 30%, rgba(255,255,255,0.2) 100%);
    z-index: 1;
}

html[dir="ltr"] .hero-overlay {
    background: linear-gradient(to right, rgba(255,255,255,0.9) 30%, rgba(255,255,255,0.2) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
    min-height: 80vh;
}

/* Key Logos Section */
.key-logos {
    padding: 6rem 0;
    background: var(--white);
    position: relative;
    z-index: 5;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.key-logos-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    flex-wrap: wrap;
}

.key-logo img {
    height: 250px;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.1));
}

.key-logo img:hover {
    transform: translateY(-10px) scale(1.05);
    filter: drop-shadow(0 25px 40px rgba(0,0,0,0.15));
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1.5rem;
    margin-top: 3rem;
}

.bento-item {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-item:nth-child(1) { grid-column: span 2; grid-row: span 1; background: var(--primary); color: var(--white); }
.bento-item:nth-child(2) { grid-column: span 1; grid-row: span 1; }
.bento-item:nth-child(3) { grid-column: span 1; grid-row: span 1; }
.bento-item:nth-child(4) { grid-column: span 1; grid-row: span 1; }
.bento-item:nth-child(5) { grid-column: span 2; grid-row: span 1; }
.bento-item:nth-child(6) { grid-column: span 1; grid-row: span 1; background: var(--secondary); color: var(--white); }

.bento-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Banner Sections */
.full-width-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
    margin: 4rem 0;
}

.banner-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Split Screen */
.split-screen {
    display: flex;
    min-height: 500px;
}

.split-left, .split-right {
    flex: 1;
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-left { background: var(--bg-light); }
.split-right { background: var(--white); border-right: 1px solid #e2e8f0; }

/* Timeline Twist */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--primary-light);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: var(--white);
    border: 4px solid var(--primary-light);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-left { left: 0; text-align: left; }
.timeline-right { left: 50%; text-align: left; }
.timeline-right::after { left: -10px; }

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-light);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.floating-map {
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Stats Section */
.stats {
    background: var(--secondary);
    padding: 4rem 0;
    color: var(--white);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: 20px;
    margin-inline: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin: 0.5rem 0;
    color: var(--primary-light);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* Services Section */
.services {
    padding: 8rem 0;
    background: var(--bg-light);
}

.about-intro {
    background: var(--white);
    position: relative;
    z-index: 5;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(6, 78, 59, 0.05);
    color: var(--primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
}

/* About Section */
.about {
    padding: 8rem 0;
}

.about-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary) !important;
}

.about-text p {
    color: var(--text-main) !important;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
}

.features-list {
    margin: 2rem 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.features-list i {
    color: var(--primary-light);
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: #f1f5f9;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.contact-form-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: var(--shadow-md);
}

.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.contact-info {
    padding: 2rem 0;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 0.25rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropdown-btn {
    background: transparent;
    border: 1px solid var(--primary-teal);
    color: var(--primary-teal);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-dropdown-btn:hover {
    background: var(--primary-teal);
    color: var(--white);
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    background-color: var(--white);
    min-width: 120px;
    box-shadow: var(--shadow-md);
    border-radius: 5px;
    z-index: 1000;
    overflow: hidden;
}

[dir="ltr"] .lang-dropdown-content {
    right: auto;
    left: 0;
}

.lang-dropdown-content.show {
    display: block;
}

.lang-option {
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    color: var(--text-main);
    transition: var(--transition);
    text-align: right;
}

[dir="ltr"] .lang-option {
    text-align: left;
}

.lang-option:hover, .lang-option.active {
    background-color: rgba(67, 160, 131, 0.1);
    color: var(--primary-teal);
}


/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-teal);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(67, 160, 131, 0.1);
    color: var(--primary-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary-teal);
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-teal) 0%, #2f7a62 100%);
    padding: 6rem 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.btn-cta {
    background: var(--white);
    color: var(--primary-teal);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    box-shadow: var(--shadow-md);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--secondary);
    color: var(--white);
}

/* Footer */
.footer {
    padding: 5rem 0 2rem;
    background: var(--secondary);
    color: var(--white);
    border-top: 4px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-light);
}

.footer-col p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.8;
}

.footer-logo {
    height: 80px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-list a {
    font-size: 0.95rem;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links-list a:hover {
    opacity: 1;
    color: var(--primary-light);
    transform: translateX(-5px);
}

.footer-contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-contact-item i {
    color: var(--primary-light);
    margin-top: 3px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--white);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

/* Scroll Animations */
[data-reveal] {
    opacity: 0;
    transition: all 1s ease;
}

[data-reveal="left"] { transform: translateX(50px); }
[data-reveal="right"] { transform: translateX(-50px); }
[data-reveal="bottom"] { transform: translateY(50px); }

[data-reveal].active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 { font-size: 2.5rem; }
    .hero-text p { margin-inline: auto; }
    .hero-btns { justify-content: center; }
    .hero-image { order: -1; }
    
    .about-flex { grid-template-columns: 1fr; gap: 3rem; }
    .about-image { order: 1; }
    
    .contact-grid { grid-template-columns: 1fr; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: 4rem;
        transition: 0.5s;
    }
    
    .nav-links.active { left: 0; }
    
    .menu-toggle { display: flex; }
    
    .stats-grid { grid-template-columns: 1fr; gap: 3rem; }
    
    .features-grid { grid-template-columns: 1fr; gap: 2rem; }
    
    .cta-content h2 { font-size: 2rem; }

    .key-logos-flex {
        gap: 3rem;
        flex-direction: column;
    }
    
    .key-logo img {
        height: 180px;
    }

    .section-header h2 { font-size: 2rem; }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom { 
        flex-direction: column; 
        gap: 1.5rem; 
        text-align: center; 
    }
}
