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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #faf9f7;
}

/* Color Variables */
:root {
    --primary-beige: #f5f2ed;
    --warm-white: #faf9f7;
    --soft-brown: #8b7355;
    --dark-brown: #5d4e37;
    --charcoal: #2c2c2c;
    --light-gray: #f8f8f8;
    --text-gray: #666;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 300;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 400;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-brown);
}

h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--soft-brown);
}

p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: none;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: none;
    box-shadow: none;
}

.nav-logo h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 400;
}

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

.nav-list a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-list a:hover {
    color: white;
}

.nav-list a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-list a:hover:after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/homepage/134011769155382_.pic_hd.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.hero-text h2 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.cta-button {
    background: var(--soft-brown);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.cta-button:hover {
    background: var(--dark-brown);
    transform: translateY(-2px);
}

/* Section Spacing */
section {
    padding: 5rem 0;
}

/* About Section */
.about-section {
    background: white;
}

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

.about-text {
    text-align: center;
    max-width: 750px;
}

/* Services Section */
.services-section {
    background: var(--light-gray);
}

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

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

.service-card {
    background: white;
    padding: 2.5rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

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

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

/* Portfolio Section */
.portfolio-section {
    background: var(--light-gray);
    padding: 5rem 0;
}

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

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 0;
}

.project-item h4 {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--charcoal);
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.project-image {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #e8e3dd 0%, #f0ebe5 50%, #d4c9bf 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(139, 115, 85, 0.6);
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
}

/* Homepage project specific styling */
.homepage-project:nth-child(1) .project-image {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/projects/600%20Main%20Hume%20Lux%20Gym/07292024_Hume_0235_V1.jpg');
}

.homepage-project:nth-child(2) .project-image {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/projects/678%20Polaris%20Joshua%20Tree%20Airbnb/1.png');
}

.homepage-project:nth-child(3) .project-image {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/projects/3003%20Canfield%20SFD%2BADU/SF%2BADU_1.jpg');
}

.homepage-project:nth-child(4) .project-image {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/projects/1775%20Lincoln%20TI/1.png');
}

.project-image:hover {
    transform: scale(1.02);
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
}

.project-image:hover::before {
    background: rgba(0,0,0,0.1);
}

.view-gallery {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.project-image:hover .view-gallery {
    opacity: 1;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Contact Section */
.contact-section {
    background: var(--primary-beige);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background: white;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--soft-brown);
}

.contact-form button {
    background: var(--soft-brown);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form button:hover {
    background: var(--dark-brown);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    max-width: 400px;
    background: var(--charcoal);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    z-index: 1001;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.cookie-consent p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.accept-btn {
    background: var(--soft-brown);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: background 0.3s ease;
    width: 100%;
}

.accept-btn:hover {
    background: var(--dark-brown);
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
}

.gallery-modal.active {
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.gallery-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    margin: 2.5% auto;
    background: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gallery-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    border: none;
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s ease;
}

.gallery-close:hover {
    background: rgba(0,0,0,0.9);
}

.gallery-header {
    padding: 2rem;
    background: var(--charcoal);
    color: white;
    text-align: center;
}

.gallery-header h3 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery-description {
    margin-top: 1rem;
}

.gallery-description p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-main {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    background: #f8f8f8;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: rgba(0,0,0,0.9);
}

.gallery-prev {
    left: 1rem;
}

.gallery-next {
    right: 1rem;
}

.gallery-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    min-height: 0; /* Important for flex containers */
}

.gallery-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 4px;
    display: block;
}

.gallery-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.gallery-thumbnails {
    padding: 1rem;
    background: white;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    border-top: 1px solid #eee;
}

.gallery-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    background: #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
    border: 2px solid transparent;
}

.gallery-thumbnail:hover {
    transform: scale(1.05);
    border-color: var(--soft-brown);
}

.gallery-thumbnail.active {
    border-color: var(--dark-brown);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Gallery Modal Responsive */
@media (max-width: 768px) {
    .gallery-content {
        width: 95%;
        height: 95%;
        margin: 2.5% auto;
    }
    
    .gallery-header {
        padding: 1rem;
    }
    
    .gallery-header h3 {
        font-size: 1.2rem;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .gallery-prev {
        left: 0.5rem;
    }
    
    .gallery-next {
        right: 0.5rem;
    }
    
    .gallery-image-container {
        padding: 1rem;
    }
    
    .gallery-thumbnails {
        padding: 0.5rem;
    }
    
    .gallery-thumbnail {
        width: 60px;
        height: 45px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        transition: 0.3s;
        padding: 2rem;
        z-index: 999;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .nav-list a {
        color: #000000 !important;
        font-size: 1.2rem !important;
        text-decoration: none !important;
        font-weight: 500 !important;
        padding: 1rem !important;
        display: block !important;
        border-radius: 8px;
        transition: all 0.3s ease;
        background: transparent;
        text-transform: none !important;
    }
    
    .nav-list a:hover,
    .nav-list a.active {
        background: rgba(0, 0, 0, 0.05);
        transform: translateY(-2px);
    }
    
    .hero-text h2 {
        font-size: 2.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-gallery {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .project-image {
        height: 400px;
    }
    
    .project-item h4 {
        font-size: 1.5rem;
    }
    
    .cookie-consent {
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
        max-width: none;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .navbar {
        padding: 1rem;
    }
}

.nav-logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-logo img {
    height: 60px;
    width: auto;
    display: block;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}
