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

:root {
    /* Color Palette */
    --brown-rust: #ab5f35;
    --white-linen: #f8f0e4;
    --tan: #cca183;
    --bone: #dfc6b1;
    --contessa: #c0846c;
    --antique-brass: #c89461;
    --eunry: #d6b3a4;
    --wafer: #dcd0c4;
    --teak: #b48c6c;
    --bone-light: #e6ccc4;
    
    /* Semantic Color Variables */
    --primary-color: #ab5f35; /* brown-rust */
    --secondary-color: #c0846c; /* contessa */
    --accent-color: #c89461; /* antique-brass */
    --light-bg: #f5ece0; /* white-linen */
    --section-bg: #dcd0c4; /* wafer */
    --text-dark: #2c2c2c;
    --text-light: #666666;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

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

/* Navigation */
.navbar {
    background: var(--white-linen);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 20px;
}

.nav-brand h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.nav-brand .logo {
    height: 100px;
    width: auto;
    display: block;
}

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

.nav-menu a {
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

/* Individual nav link colors */
.nav-home { color: var(--brown-rust); }
.nav-about { color: var(--contessa); }
.nav-services { color: var(--teak); }
.nav-portfolio { color: var(--antique-brass); }
.nav-contact { color: var(--tan); }

.nav-menu a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('images/getty-images-yidbLm7q1ZI-unsplash.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.1;
    z-index: 1;
}

.hero-logo-img {
    width: 400px;
    height: auto;
    filter: brightness(0) invert(1);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
    color: var(--white-linen);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

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

.section-header p {
    font-size: 1.1rem;
}

/* Individual section header colors */
#about .section-header h2 { color: var(--brown-rust); }
#about .section-header p { color: var(--tan); }

#services .section-header h2 { color: var(--contessa); }
#services .section-header p { color: var(--antique-brass); }

#portfolio .section-header h2 { color: var(--teak); }
#portfolio .section-header p { color: var(--eunry); }

#contact .section-header h2 { color: var(--antique-brass); }
#contact .section-header p { color: var(--bone); }

/* About Section */
.about {
    background: var(--bone-light);
}

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

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

.about-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-logo-img {
    width: 250px;
    height: auto;
    opacity: 0.9;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stat h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Individual stat box colors */
.stat:nth-child(1) {
    background: var(--bone);
}
.stat:nth-child(1) h3 { color: var(--brown-rust); }
.stat:nth-child(1) p { color: var(--teak); }

.stat:nth-child(2) {
    background: var(--wafer);
}
.stat:nth-child(2) h3 { color: var(--contessa); }
.stat:nth-child(2) p { color: var(--antique-brass); }

.stat:nth-child(3) {
    background: var(--eunry);
}
.stat:nth-child(3) h3 { color: var(--wafer); }
.stat:nth-child(3) p { color: var(--white-linen); }

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

.service-card {
    text-align: center;
    padding: 2rem;
    background: var(--white-linen);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

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

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

.service-card h3 {
    margin-bottom: 1rem;
}

/* Individual service card colors */
.service-card:nth-child(1) {
    background: var(--bone-light);
}
.service-card:nth-child(1) .service-icon { color: var(--brown-rust); }
.service-card:nth-child(1) h3 { color: var(--teak); }

.service-card:nth-child(2) {
    background: var(--wafer);
}
.service-card:nth-child(2) .service-icon { color: var(--contessa); }
.service-card:nth-child(2) h3 { color: var(--brown-rust); }

.service-card:nth-child(3) {
    background: var(--eunry);
}
.service-card:nth-child(3) .service-icon { color: var(--antique-brass); }
.service-card:nth-child(3) h3 { color: var(--teak); }

.service-card:nth-child(4) {
    background: var(--bone);
}
.service-card:nth-child(4) .service-icon { color: var(--tan); }
.service-card:nth-child(4) h3 { color: var(--contessa); }

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

/* Portfolio Section */
.portfolio {
    background: var(--wafer);
}

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

.portfolio-item {
    background: var(--white-linen);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
}

.portfolio-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Zoom transition overlay */
.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--white-linen);
    display: none;
    z-index: 9999;
    overflow: hidden;
}

.zoom-overlay.active {
    display: block;
}

.zoom-image {
    position: absolute;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.zoom-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out 0.6s;
    background: var(--white-linen);
    display: flex;
    justify-content: center;
    align-items: center;
}

.zoom-content.show {
    opacity: 1;
}

.zoom-loading {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--brown-rust);
}

.portfolio-image {
    overflow: hidden;
    height: 250px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    font-style: italic;
}

/* Individual portfolio item colors */
.portfolio-item:nth-child(1) .portfolio-info h3 { color: var(--brown-rust); }
.portfolio-item:nth-child(1) .portfolio-info p { color: var(--eunry); }

.portfolio-item:nth-child(2) .portfolio-info h3 { color: var(--contessa); }
.portfolio-item:nth-child(2) .portfolio-info p { color: var(--tan); }

.portfolio-item:nth-child(3) .portfolio-info h3 { color: var(--teak); }
.portfolio-item:nth-child(3) .portfolio-info p { color: var(--antique-brass); }

.portfolio-item:nth-child(4) .portfolio-info h3 { color: var(--antique-brass); }
.portfolio-item:nth-child(4) .portfolio-info p { color: var(--bone); }

.portfolio-item:nth-child(5) .portfolio-info h3 { color: var(--brown-rust); }
.portfolio-item:nth-child(5) .portfolio-info p { color: var(--wafer); }

.portfolio-item:nth-child(6) .portfolio-info h3 { color: var(--contessa); }
.portfolio-item:nth-child(6) .portfolio-info p { color: var(--eunry); }

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-item {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.contact-item strong {
    color: var(--contessa);
    display: block;
    margin-bottom: 0.5rem;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    transform: scale(1.2);
}

/* Contact Form */
.contact-form {
    background: var(--bone);
    padding: 2rem;
    border-radius: 8px;
}

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

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

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

/* Footer */
.footer {
    background: var(--teak);
    color: var(--white-linen);
    text-align: center;
    padding: 2rem 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-logo-img {
        width: 150px;
        margin-top: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        margin-top: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

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