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

:root {
    --primary-brown: #5D4037;
    --dark-brown: #3E2723;
    --coffee: #6D4C41;
    --light-brown: #8D6E63;
    --beige: #D7CCC8;
    --cream: #F5F5DC;
    --off-white: #FAFAFA;
    --white: #FFFFFF;
    --text-dark: #4A4A4A;
    --text-light: #757575;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

/* ========== Navigation ========== */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-brown);
}

.logo i {
    font-size: 1.8rem;
    color: var(--coffee);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-brown);
    border-bottom-color: var(--primary-brown);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-brown);
    transition: 0.3s;
}

/* ========== Hero Section ========== */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(61, 39, 35, 0.5), rgba(93, 64, 55, 0.5)), 
                url('https://images.unsplash.com/photo-1600210492493-0946911123ea?w=1600') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    color: var(--white);
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ========== Buttons ========== */
.btn {
    padding: 0.9rem 2rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--dark-brown);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(93, 64, 55, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-brown);
}

/* ========== Section Headers ========== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-brown);
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ========== Services Preview ========== */
.services-preview {
    padding: 5rem 0;
    background-color: var(--off-white);
}

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

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(93, 64, 55, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-brown);
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--dark-brown);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
}

/* ========== Featured Portfolio ========== */
.featured-portfolio {
    padding: 5rem 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    height: 300px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(93, 64, 55, 0.9), transparent);
    padding: 2rem;
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.portfolio-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.text-center {
    text-align: center;
}

/* ========== Page Header ========== */
.page-header {
    background: linear-gradient(rgba(93, 64, 55, 0.8), rgba(62, 39, 35, 0.8)),
                url('https://images.unsplash.com/photo-1615874959474-d609969a20ed?w=1600') center/cover;
    padding: 5rem 0;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    font-weight: 300;
}

/* ========== About Page ========== */
.about-story {
    padding: 5rem 0;
}

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

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

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.mission-vision {
    padding: 5rem 0;
    background-color: var(--off-white);
}

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

.mv-card {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.mv-icon {
    width: 70px;
    height: 70px;
    background-color: var(--beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--primary-brown);
}

.mv-card h3 {
    font-size: 1.8rem;
    color: var(--dark-brown);
    margin-bottom: 1rem;
}

.mv-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.team-section {
    padding: 5rem 0;
}

.team-workspace {
    margin-bottom: 3rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.value-item {
    text-align: center;
    padding: 1.5rem;
}

.value-item i {
    font-size: 2.5rem;
    color: var(--primary-brown);
    margin-bottom: 1rem;
}

.value-item h4 {
    font-size: 1.2rem;
    color: var(--dark-brown);
    margin-bottom: 0.5rem;
}

.value-item p {
    color: var(--text-light);
}

/* ========== Services Page ========== */
.services-detailed {
    padding: 5rem 0;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
}

.service-detail.reverse {
    direction: rtl;
}

.service-detail.reverse > * {
    direction: ltr;
}

.service-detail-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-detail-content {
    position: relative;
}

.service-number {
    font-size: 5rem;
    font-weight: 700;
    color: var(--beige);
    position: absolute;
    top: -30px;
    left: -10px;
    z-index: -1;
}

.service-detail-content h2 {
    font-size: 2rem;
    color: var(--dark-brown);
    margin-bottom: 1rem;
}

.service-detail-content p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-dark);
}

.service-features i {
    color: var(--primary-brown);
    margin-right: 0.8rem;
}

/* ========== Testimonials ========== */
.testimonials-section {
    padding: 5rem 0;
    background-color: var(--off-white);
}

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

.testimonial-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: var(--beige);
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--dark-brown);
    margin-bottom: 0.3rem;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.rating i {
    color: #FFA000;
    font-size: 0.9rem;
}

/* ========== Portfolio Page ========== */
.portfolio-section {
    padding: 5rem 0;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background-color: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--beige);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-brown);
    color: var(--white);
    border-color: var(--primary-brown);
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(93, 64, 55, 0.95), transparent);
    padding: 1.5rem;
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ========== Lightbox ========== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from {transform: translate(-50%, -50%) scale(0.8)}
    to {transform: translate(-50%, -50%) scale(1)}
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-close:hover {
    color: var(--beige);
}

.lightbox-caption {
    text-align: center;
    color: var(--white);
    padding: 15px;
    position: absolute;
    bottom: 20px;
    width: 100%;
    font-size: 1.1rem;
}

/* ========== Contact Page ========== */
.contact-section {
    padding: 5rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
}

.contact-form-container {
    background-color: var(--off-white);
    padding: 3rem;
    border-radius: 10px;
}

.consultation-badge {
    background-color: var(--primary-brown);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.contact-form-container h2 {
    color: var(--dark-brown);
    margin-bottom: 0.5rem;
}

.contact-form-container > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-brown);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid var(--beige);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-brown);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background-color: #D4EDDA;
    color: #155724;
    display: block;
}

.form-message.error {
    background-color: #F8D7DA;
    color: #721C24;
    display: block;
}

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

.contact-info-container h2 {
    color: var(--dark-brown);
    margin-bottom: 0.5rem;
}

.contact-info-container > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

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

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

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-brown);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-details h4 {
    color: var(--dark-brown);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-dark);
    line-height: 1.8;
}

.contact-social {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--beige);
}

.contact-social h4 {
    color: var(--dark-brown);
    margin-bottom: 1rem;
}

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

.social-links a {
    width: 45px;
    height: 45px;
    background-color: var(--beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-brown);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-brown);
    color: var(--white);
    transform: translateY(-3px);
}

.map-section {
    padding: 3rem 0 5rem;
}

.map-section h2 {
    text-align: center;
    color: var(--dark-brown);
    margin-bottom: 2rem;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ========== CTA Sections ========== */
.cta-section {
    background: linear-gradient(rgba(93, 64, 55, 0.9), rgba(62, 39, 35, 0.9)),
                url('https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?w=1600') center/cover;
    padding: 5rem 0;
    text-align: center;
    color: var(--white);
}

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

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.cta-banner {
    background-color: var(--beige);
    padding: 2rem 0;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-brown);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.cta-text {
    flex: 1;
}

.cta-text h3 {
    color: var(--dark-brown);
    margin-bottom: 0.3rem;
}

.cta-text p {
    color: var(--text-light);
}

/* ========== Footer ========== */
.footer {
    background-color: var(--dark-brown);
    color: var(--white);
    padding: 4rem 0 2rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--beige);
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 0.5rem 0;
    opacity: 0.9;
}

.footer-section ul li a {
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--beige);
}

.footer-section ul li i {
    margin-right: 0.5rem;
    color: var(--beige);
}

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

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: var(--coffee);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--beige);
    color: var(--dark-brown);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--coffee);
    opacity: 0.8;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.1);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .about-content,
    .service-detail,
    .contact-wrapper,
    .cta-content {
        grid-template-columns: 1fr;
    }

    .service-detail.reverse {
        direction: ltr;
    }

    .mv-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid,
    .portfolio-gallery {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .cta-content {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-filters {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }
    .contact-wrapper {
        display: block;
    }
    .contact-info-container {
        padding: 80px 0;
    }
}