/* ==================== VARIABLES ==================== */
:root {
    /* رنگ‌بندی جدید بر اساس تصویر */
    --primary-blue: #0a2463;      /* آبی تیره اصلی */
    --secondary-blue: #1e3a8a;    /* آبی متوسط */
    --accent-gold: #d4af37;       /* طلایی */
    --light-gold: #f4e4b3;        /* طلایی روشن */
    --dark-navy: #05192d;         /* سرمه‌ای تیره */
    --light-navy: #1a365d;        /* سرمه‌ای روشن */
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e9ecef;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --text-dark: #212529;
    --text-light: #495057;
    
    /* اندازه‌ها */
    --border-radius: 6px;
    --border-radius-lg: 10px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --box-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--off-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), var(--light-gold));
    color: var(--dark-navy);
    border: 1px solid var(--accent-gold);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--light-gold), var(--accent-gold));
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--accent-gold), var(--light-gold));
    color: var(--dark-navy);
    border: 1px solid var(--accent-gold);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--light-gold), var(--accent-gold));
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 10px 24px;
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
}

/* ==================== HEADER ==================== */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: static;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--dark-navy);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.certification-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    border-left: 3px solid var(--accent-gold);
}

.badge i {
    color: var(--accent-gold);
}

.header-contacts {
    display: flex;
    gap: 20px;
}

.contact-link {
    color: var(--light-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-link:hover {
    color: var(--accent-gold);
}

.header-main {
    padding: 15px 0;
}

.header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.brand-section {
    flex-shrink: 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--dark-navy);
}

.brand-logo img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--accent-gold);
    padding: 3px;
    background: var(--white);
}

.company-name {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-blue);
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.company-tagline {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin: 0;
}

/* ==================== NAVIGATION ==================== */
.main-nav {
    flex-grow: 1;
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius);
    position: relative;
}

.nav-link i {
    font-size: 1rem;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-blue);
    color: var(--white);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    width: 10px;
    height: 10px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.header-widgets {
    display: flex;
    align-items: center;
    gap: 20px;
}

.datetime-widget {
    background: var(--light-gray);
    padding: 10px 18px;
    border-radius: var(--border-radius);
    text-align: center;
    border-right: 3px solid var(--accent-gold);
}

.time-display {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.date-display {
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-line {
    width: 25px;
    height: 2px;
    background: var(--primary-blue);
    transition: var(--transition);
}

/* ==================== HERO BANNER ==================== */
.hero-banner {
    background: linear-gradient(135deg, var(--dark-navy), var(--primary-blue));
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('/images/background/Construction\ site.gif') center/cover no-repeat;
    opacity: 0.1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: var(--border-radius);
    border-top: 3px solid var(--accent-gold);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--light-gray);
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    border: 5px solid rgba(212, 175, 55, 0.3);
}

.hero-image img {
    width: 100%;
    height: 630px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

/* ==================== SECTIONS ==================== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--medium-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== CERTIFICATES ==================== */
.certificates-section {
    background: var(--white);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.certificate-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    border-top: 4px solid var(--accent-gold);
    transition: var(--transition);
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.certificate-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--light-gold), var(--accent-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--dark-navy);
    font-size: 1.8rem;
}

.certificate-card h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.certificate-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* ==================== SERVICES ==================== */
.services-section {
    background: var(--off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-right: 4px solid var(--primary-blue);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
    border-right-color: var(--accent-gold);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--white);
    font-size: 1.5rem;
}

.service-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--light-gray);
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.service-list li::before {
    content: '✓';
    color: var(--accent-gold);
    font-weight: bold;
    margin-left: 10px;
}

/* ==================== PROJECTS ==================== */
.projects-section {
    background: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.project-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 36, 99, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-navy);
    font-size: 1.2rem;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: var(--light-gray);
    color: var(--primary-blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ==================== CONTACT ==================== */
.contact-section {
    background: linear-gradient(135deg, var(--dark-navy), var(--primary-blue));
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info .section-title,
.contact-info .section-subtitle {
    color: var(--white);
}

.contact-info .section-title::after {
    background: var(--accent-gold);
}

.contact-details {
    margin: 40px 0;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h4 {
    color: var(--accent-gold);
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--light-gray);
    margin: 0;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-gold);
    color: var(--dark-navy);
    transform: translateY(-5px);
}

.contact-map {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
}

.map-container {
    height: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border: none;
}

/* ==================== FOOTER ==================== */
.main-footer {
    background: var(--dark-navy);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    padding: 2px;
    background: var(--white);
}

.footer-brand h3 {
    color: var(--white);
    margin: 0 0 5px;
    font-size: 1.3rem;
}

.footer-brand p {
    color: var(--light-gray);
    font-size: 0.9rem;
    margin: 0;
}

.footer-description {
    color: var(--light-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-title {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-gold);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--light-gray);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-gold);
    transform: translateX(-5px);
}

.footer-links a i {
    font-size: 0.8rem;
    color: var(--accent-gold);
}

.newsletter-text {
    color: var(--light-gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.newsletter-form {
    margin-top: 20px;
}

.form-group {
    display: flex;
    position: relative;
}

.form-input {
    flex-grow: 1;
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-family: inherit;
    font-size: 0.95rem;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-gold);
}

.form-submit {
    background: var(--accent-gold);
    color: var(--dark-navy);
    border: none;
    padding: 0 25px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.form-submit:hover {
    background: var(--light-gold);
}

.footer-bottom {
    
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    place-content: center;
    flex-wrap: wrap;
    gap: 20px;
    
}

.copyright {
    color: var(--light-gray);
    font-size: 0.9rem;
    
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--light-gray);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--accent-gold);
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-gold);
    color: var(--dark-navy);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--light-gold);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 400px) {
    .header-top {
        padding: 8px 0;
    }
    
    .header-top-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .certification-badges {
        justify-content: center;
        gap: 8px;
    }
    
    .badge {
        padding: 4px 8px;
        font-size: 0.7rem;
        border-left: 2px solid var(--accent-gold);
    }
    
    .header-contacts {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        text-align: center;
    }
    
    .contact-link {
        font-size: 0.8rem;
        justify-content: center;
    }
    
    .header-main {
        padding: 10px 0;
    }
    
    .header-main-content {
        flex-direction: column;
        gap: 15px;
        padding: 0 10px;
    }
    
    .brand-logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .brand-logo img {
        width: 50px;
        height: 50px;
    }
    
    .company-name {
        font-size: 1.2rem;
    }
    
    .company-tagline {
        font-size: 0.8rem;
    }
    
    .hamburger-menu {
        position: absolute;
        top: 20px;
        left: 15px;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 20px 20px;
        transition: all 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-link {
        padding: 15px;
        border-radius: 0;
        border-bottom: 1px solid var(--light-gray);
        justify-content: flex-start;
        font-size: 0.9rem;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .header-widgets {
        position: absolute;
        top: 20px;
        right: 15px;
        flex-direction: column-reverse;
        gap: 10px;
    }
    
    .datetime-widget {
        padding: 8px 12px;
        border-right: 2px solid var(--accent-gold);
    }
    
    .time-display {
        font-size: 1rem;
    }
    
    .date-display {
        font-size: 0.8rem;
    }
    
    /* Backdrop for mobile menu */
    .menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    
    .menu-backdrop.active {
        display: block;
    }
}
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .nav-list {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .main-nav.active .nav-list {
        display: flex;
        flex-direction: column;
        position: absolute;
        top:25%;
        right: 0;
        background: var(--white);
        width: 300px;
        box-shadow: var(--box-shadow-lg);
        border-radius: var(--border-radius);
        padding: 20px;
        z-index: 1000;
    }
}

@media (max-width: 768px) {
    .header-top-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .certification-badges {
        justify-content: center;
    }
    
    .header-contacts {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }
    
    .footer-title::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .certificates-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .back-to-top {
        left: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ==================== DARK MODE SUPPORT ==================== */
@media (prefers-color-scheme: dark) {
    :root {
        --off-white: #1a1a1a;
        --white: #2d2d2d;
        --light-gray: #3d3d3d;
        --text-dark: #f0f0f0;
        --text-light: #d0d0d0;
    }
    
    body {
        background: var(--off-white);
        color: var(--text-dark);
    }
    
    .header-top {
        background: var(--dark-navy);
    }
    
    .service-card,
    .certificate-card,
    .project-card {
        background: var(--white);
    }
    
    .form-input {
        background: var(--light-gray);
        color: var(--text-dark);
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .header-top,
    .hero-actions,
    .back-to-top,
    .social-links,
    .newsletter-form,
    .footer-bottom-links {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    section {
        padding: 40px 0 !important;
        page-break-inside: avoid;
    }
    
    .hero-banner {
        background: white !important;
        color: black !important;
        padding: 40px 0 !important;
    }
    
    .hero-title {
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
}
@media (max-width: 400px) {
    .hero-banner {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
        padding: 0 10px;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 25px 0;
    }
    
    .stat-item {
        padding: 12px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 10px;
        padding: 0 10px;
    }
    
    .btn {
        width: 100%;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero-image img {
        height: 400px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    .certificates-grid,
    .services-grid,
    .projects-grid {
        gap: 20px;
        padding: 0 10px;
    }
    
    .certificate-card,
    .service-card {
        padding: 25px 15px;
        border-radius: 6px;
    }
    
    .certificate-icon,
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .project-card {
        border-radius: 6px;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .contact-details {
        margin: 25px 0;
    }
    
    .contact-item {
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .map-container iframe {
        min-height: 300px;
    }
    
    .footer-content {
        gap: 30px;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .footer-bottom {
        padding-top: 20px;
        gap: 15px;
        padding: 0 10px;
    }
    
    .back-to-top {
        left: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
/* ==================== HAMBURGER MENU FIX ==================== */
@media (max-width: 992px) {
    .hamburger-menu {
        display: flex;
        z-index: 1002;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: var(--white);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 1001;
        padding: 80px 20px 40px;
        display: block !important;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-link {
        padding: 18px 15px;
        border-radius: 0;
        border-bottom: 1px solid var(--light-gray);
        justify-content: flex-start;
        font-size: 1rem;
        color: var(--text-dark);
        transition: all 0.3s ease;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
        color: var(--white);
        padding-right: 25px;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .nav-link i {
        margin-left: 12px;
        font-size: 1.1rem;
        width: 25px;
        text-align: center;
    }
    
    /* Backdrop overlay */
    .menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(3px);
    }
    
    .menu-backdrop.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
    /* Adjust header for mobile */
    .header-main {
        position: relative;
    }
    
    .brand-logo img {
        width: 50px;
        height: 50px;
    }
    
    .company-name {
        font-size: 1.3rem;
    }
    
    .company-tagline {
        font-size: 0.8rem;
    }
}

/* برای دستگاه‌های خیلی کوچک */
@media (max-width: 400px) {
    .main-nav {
        width: 90%;
        padding: 70px 15px 30px;
    }
    
    .header-widgets {
        position: absolute;
        top: 15px;
        left: 15px;
        flex-direction: row;
        gap: 10px;
    }
    
    .datetime-widget {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .time-display {
        font-size: 1rem;
    }
    
    .date-display {
        font-size: 0.8rem;
    }
    
    .hamburger-menu {
        padding: 6px;
        margin-left: 10px;
    }
    
    .hamburger-line {
        width: 22px;
        height: 2px;
    }
}
/* برای iOS Safari */
@supports (padding-top: env(safe-area-inset-top)) {
    .main-nav {
        padding-top: calc(10px + env(safe-area-inset-top));
    }
    
    .hamburger-menu {
        margin-top: env(safe-area-inset-top);
    }
}