/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2d2d2d;
    --accent-color: #4a5d23;
    --accent-hover: #5a6d33;
    --text-color: #e0e0e0;
    --light-bg: #121212;
    --white: #ffffff;
    --dark-overlay: rgba(0, 0, 0, 0.75);
    --accent-transparent: rgba(74, 93, 35, 0.1);
}

body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background: linear-gradient(rgba(26, 26, 26, 0.95), rgba(26, 26, 26, 0.95)),
                url('/pouyeshgar/images/header-bg.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--accent-transparent);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, 
        rgba(74, 93, 35, 0.1),
        rgba(74, 93, 35, 0.05) 50%,
        rgba(74, 93, 35, 0.1)
    );
    backdrop-filter: blur(5px);
}

.logo img {
    height: 60px;
    transition: transform 0.3s ease;
}

.logo {
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 5px;
    background: linear-gradient(45deg, 
        rgba(74, 93, 35, 0.1),
        rgba(74, 93, 35, 0.05)
    );
}

.logo:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, 
        rgba(74, 93, 35, 0.2),
        rgba(74, 93, 35, 0.1)
    );
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--accent-color), var(--accent-hover));
    transition: width 0.3s ease;
    box-shadow: 0 1px 3px rgba(74, 93, 35, 0.3);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: linear-gradient(var(--dark-overlay), var(--dark-overlay)), 
                      url('/pouyeshgar/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--accent-transparent), transparent);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: var(--white);
}

.hero p {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    color: var(--text-color);
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.cta-button:hover::before {
    transform: translateX(100%);
}

/* About Section */
.about {
    padding: 8rem 0;
    background-color: var(--secondary-color);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

/* Services Section */
.services {
    padding: 8rem 0;
    background-color: var(--primary-color);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.service-card {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid var(--accent-transparent);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--accent-transparent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.service-card p {
    color: var(--text-color);
}

/* Projects Section */
.projects {
    padding: 8rem 0;
    background-color: var(--secondary-color);
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.projects-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--light-bg);
    -webkit-overflow-scrolling: touch;
}

.projects-slider::-webkit-scrollbar {
    height: 8px;
}

.projects-slider::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 4px;
}

.projects-slider::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.project-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: var(--secondary-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s, background 0.3s;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--accent-transparent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 24px rgba(74,93,35,0.15);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.project-card:hover::before {
    opacity: 1;
}

.project-card img, .project-info {
    position: relative;
    z-index: 2;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.project-category {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.project-location {
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.8;
}

.project-location i {
    margin-left: 0.5rem;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background-color: var(--primary-color);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid var(--accent-transparent);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.contact-info p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.contact-info i {
    color: var(--accent-color);
    margin-left: 1rem;
    font-size: 1.2rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1.2rem;
    border: 1px solid var(--accent-transparent);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--secondary-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(74, 93, 35, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(224, 224, 224, 0.6);
}

.submit-button {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--white);
    padding: 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.submit-button:hover::before {
    transform: translateX(100%);
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 4rem 0 1rem;
    border-top: 1px solid rgba(74, 93, 35, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 1.5rem;
}

.footer-links h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-bottom: 0.8rem;
    display: inline-block;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-social h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(74, 93, 35, 0.2);
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 0.5rem;
    }

    .logo {
        margin-bottom: 1rem;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 0.5rem;
        padding: 0.5rem 0;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 0.8rem;
        border-radius: 5px;
        background: linear-gradient(90deg, 
            rgba(74, 93, 35, 0.1),
            rgba(74, 93, 35, 0.05)
        );
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        cursor: pointer;
        color: var(--white);
        font-size: 1.5rem;
    }

    /* Hero Section */
    .hero {
        margin-top: 60px;
        height: 80vh;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    /* Sections Padding */
    .about, .services, .projects, .contact {
        padding: 4rem 0;
    }

    /* Grid Layouts */
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Project Cards */
    .project-card img {
        height: 250px;
    }

    /* Contact Form */
    .contact-form input,
    .contact-form textarea {
        padding: 1rem;
        font-size: 1rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .social-links {
        justify-content: center;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .project-card img {
        height: 200px;
    }
}

/* استایل‌های دکمه مشاهده جزئیات */
.btn-details {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

.btn-details:hover {
    background-color: #b69121;
}

/* استایل‌های پاپ‌آپ (modal) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.modal-category {
    color: var(--accent-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.modal-description {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-details {
    margin-bottom: 1rem;
}

.modal-details p {
    margin-bottom: 0.5rem;
}

.modal-gallery {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    margin-top: 1rem;
}

.modal-gallery img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
}

.modal-gallery img:hover {
    transform: scale(1.1);
}

.image-modal-content {
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    max-width: 98vw;
    max-height: 98vh;
}

.modal-big-image {
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    background: #222;
    display: block;
    object-fit: contain;
} 