*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    background: #1a1a1a;
    color: #e0e0e0;
    direction: rtl;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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



.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #222222;
    color: #e0e0e0;
    padding: 1rem 0;
    width: 100%;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.18);
}

.header .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

.main-nav {
    margin-right: 3rem;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 1000;
}

.bar1, .bar2, .bar3 {
    width: 30px;
    height: 3px;
    background-color: #e0e0e0;
    margin: 6px 0;
    transition: 0.4s;
}

/* Rotate first bar */
.change .bar1 {
    transform: translate(0, 9px) rotate(-45deg);
}

/* Fade out the second bar */
.change .bar2 {opacity: 0;}

/* Rotate last bar */
.change .bar3 {
    transform: translate(0, -9px) rotate(45deg);
}

.logo-container {
    display: flex;
    align-items: center;
    margin-right: 0;
    flex: 1;
}

.logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff;
    object-fit: contain;
    margin-left: 1rem;
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.main-nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 1rem;
}

.main-nav a:hover {
    color: #cccccc;
}

.hero {
    background: linear-gradient(90deg, #2a2a2a 0%, #1a1a1a 100%);
    text-align: center;
    padding: 4rem 1rem;
    margin-bottom: 0;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.18);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    max-width: 700px;
    padding: 0 15px;
}

.hero h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero p {
    font-size: 1.1rem;
    color: #cccccc;
    margin: 0 auto 1.5rem auto;
    max-width: 520px;
}

.cta-button {
    display: inline-block;
    background: #444444;
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #555555;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.gallery-section {
    background: #1a1a1a;
    margin-bottom: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}
.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: #ffffff;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 1;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slide {
    width: 100%;
    height: 100%;
    display: none;
    animation: fadeIn 0.7s;
    justify-content: center;
    align-items: center;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #2a2a2a;
    display: block;
    margin: 0 auto;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 14px 22px;
    margin-top: -22px;
    color: #ffffff;
    font-weight: bold;
    font-size: 2.5rem;
    border-radius: 8px;
    user-select: none;
    background: rgba(30,30,30,0.45);
    transition: background 0.2s, color 0.2s;
    z-index: 2;
    border: none;
}
.next {
    right: 0;
}
.prev {
    left: 0;
}
.prev:hover, .next:hover {
    background: rgba(30,30,30,0.85);
    color: #cccccc;
}
.dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
    background-color: rgba(0,0,0,0.3);
    padding: 10px 0;
}
.dot {
    cursor: pointer;
    height: 16px;
    width: 16px;
    margin: 0 6px;
    background-color: #333333;
    border-radius: 50%;
    display: inline-block;
    transition: background 0.3s, border 0.3s;
    border: 2px solid #555555;
}
.dot.active, .dot:hover {
    background-color: #555555;
    border-color: #777777;
}


.services-section {
    background: #222222;
    padding: 4rem 0;
    text-align: center;
}

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

.service-card {
    background: #2a2a2a;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: #cccccc;
    line-height: 1.6;
}

.contact-section {
    background: #2a2a2a;
    padding: 4rem 0;
    text-align: center;
    color: #e0e0e0;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.12);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    text-align: right;
}

.contact-icon {
    font-size: 1.8rem;
    margin-left: 1rem;
    color: #777777;
}

.contact-item h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p {
    color: #cccccc;
    margin: 0;
}

.contact-item a {
    color: #999999;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: #ffffff;
}

.footer {
    background: #1a1a1a;
    color: #cccccc;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    margin-top: 2rem;
    border-top: 1px solid #333333;
}

@media (max-width: 900px) {
    .header {
        padding: 1rem 0;
    }
    
    .header .container {
        position: relative;
    }
    
    .hamburger-menu {
        display: block;
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: #222222;
        box-shadow: -2px 0 5px rgba(0,0,0,0.2);
        transition: right 0.3s ease;
        z-index: 999;
        margin-right: 0;
        padding-top: 60px;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav li {
        width: 100%;
    }
    
    .main-nav a {
        display: block;
        padding: 15px 25px;
        border-bottom: 1px solid #333333;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h2 {
        font-size: 1.6rem;
    }
    
    .gallery-section {
        height: 80vh;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .header h1 {
        font-size: 1.2rem;
    }
    
    .main-nav ul {
        gap: 0.7rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav a {
        font-size: 0.9rem;
    }
    
    .hero h2 {
        font-size: 1.4rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .gallery-section {
        height: 100vh;
    }
    
    .prev, .next {
        padding: 10px 15px;
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .dot {
        height: 12px;
        width: 12px;
        margin: 0 4px;
    }
    
    /* Fix for horizontal scrolling on mobile */
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .services-section, .contact-section {
        padding: 3rem 0;
    }
}
