/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light brown color palette */
    --primary-brown: #C4A77D;
    --light-brown: #E8DCC4;
    --dark-brown: #8B7355;
    --accent-brown: #D4B896;
    --text-dark: #3E2723;
    --white: #FFFFFF;
    --off-white: #FAF8F5;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Georgia', serif;
    color: var(--text-dark);
    background-color: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 5%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 1rem 5%;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.logo img {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
    margin: 0;
    padding: 0;
}

.logo img:hover {
    transform: scale(1.05);
}

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

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary-brown);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--dark-brown);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-logo {
    display: none;
    margin-bottom: 3rem;
}

.mobile-logo img {
    height: 60px;
    width: auto;
}

/* ===== PROJECT HEADER ===== */
.project-header {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, rgba(196, 167, 125, 0.3) 0%, rgba(250, 248, 245, 0.5) 100%), url('https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?w=1600&q=80') center/cover no-repeat;
    padding: 0 5%;
    margin-top: 80px;
    overflow: hidden;
}

.header-content {
    max-width: 800px;
    z-index: 2;
}

.breadcrumb {
    font-size: 0.95rem;
    color: var(--dark-brown);
    margin-bottom: 2rem;
    letter-spacing: 1px;
    animation: slideInDown 0.8s ease-out;
}

.breadcrumb a {
    color: var(--dark-brown);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-brown);
}

.breadcrumb span {
    margin: 0 1rem;
}

.project-title {
    font-size: 4rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
    animation: slideInUp 0.8s ease-out 0.2s both;
    line-height: 1.2;
}

.project-subtitle {
    font-size: 1.3rem;
    color: var(--dark-brown);
    font-style: italic;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator::before {
    content: '';
    display: block;
    width: 2px;
    height: 40px;
    background: var(--primary-brown);
    margin: 0 auto 10px;
}

/* ===== PROJECT HERO IMAGE ===== */
.project-hero {
    padding: 0;
    background: var(--white);
    overflow: hidden;
}

.project-hero img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
    animation: zoomIn 1.2s ease-out;
    transition: transform 0.6s ease;
}

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

/* ===== PROJECT OVERVIEW ===== */
.project-overview {
    padding: 6rem 5%;
    background: var(--white);
}

.overview-container {
    max-width: 1400px;
    margin: 0 auto;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
}

.overview-item {
    text-align: center;
    padding: 3rem 2.5rem;
    background: linear-gradient(135deg, rgba(196, 167, 125, 0.08) 0%, rgba(232, 220, 196, 0.05) 100%);
    border: 1px solid rgba(196, 167, 125, 0.2);
    border-radius: 12px;
    animation: slideInUp 0.8s ease-out;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
}

.overview-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-brown), var(--accent-brown));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.overview-item:hover {
    background: linear-gradient(135deg, rgba(196, 167, 125, 0.15) 0%, rgba(232, 220, 196, 0.1) 100%);
    border-color: rgba(196, 167, 125, 0.35);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.overview-item:hover::before {
    transform: scaleX(1);
}

.overview-item h3 {
    font-size: 0.8rem;
    color: var(--dark-brown);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.overview-item p {
    font-size: 1.4rem;
    color: var(--text-dark);
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* ===== PROJECT DESCRIPTION ===== */
.project-description {
    padding: 8rem 5%;
    background: var(--off-white);
}

.description-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.description-text h2 {
    font-size: 3rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.description-text p {
    font-size: 1.1rem;
    color: var(--dark-brown);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.description-image {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: var(--shadow-lg);
}

.description-image img,
.description-image video {
    width: 100%;
    height: 290px;
    /* object-fit: cover; */
    object-fit: contain;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
}

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

.description-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border: 2px solid var(--primary-brown);
    z-index: -1;
}

/* ===== PROJECT GALLERY ===== */
.project-gallery {
    padding: 8rem 5%;
    background: var(--white);
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 4rem;
    letter-spacing: 2px;
    animation: slideInUp 0.8s ease-out;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    animation: fadeIn 1s ease-out 0.2s both;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 2px;
    height: 400px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(62, 39, 35, 0.95), transparent);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

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

.gallery-overlay h3 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Stagger animation for gallery items */
.gallery-item-1 {
    animation: slideInUp 0.6s ease-out 0.1s both;
}

.gallery-item-2 {
    animation: slideInUp 0.6s ease-out 0.2s both;
}

.gallery-item-3 {
    animation: slideInUp 0.6s ease-out 0.3s both;
}

.gallery-item-4 {
    animation: slideInUp 0.6s ease-out 0.4s both;
}

.gallery-item-5 {
    animation: slideInUp 0.6s ease-out 0.5s both;
}

.gallery-item-6 {
    animation: slideInUp 0.6s ease-out 0.6s both;
}

/* ===== LIGHTBOX MODAL ===== */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
    animation: fadeIn 0.3s ease-out;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-modal img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
}

.lightbox-modal img.fade-in {
    /* animation: fadeInImage 0.4s ease-in-out forwards; */
    animation: fadeInImage 0.4s ease-in-out forwards;
    opacity: 1;
}

.lightbox-modal img.fade-out {
    /* animation: fadeOutImage 0.2s ease-in-out forwards; */
    animation: fadeOutImage 0.2s ease-in-out forwards;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOutImage {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.close-button {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--white);
    font-size: 40px;
    font-weight: 300;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 2002;
}

.close-button:hover {
    transform: scale(1.2);
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 28px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 2002;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.prev-button {
    left: 40px;
}

.next-button {
    right: 40px;
}

/* ===== PROJECT PROCESS ===== */
.project-process {
    padding: 8rem 5%;
    background: var(--white);
}

.process-container {
    max-width: 1000px;
    margin: 0 auto;
}

.process-timeline {
    position: relative;
    padding: 2rem 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-brown), transparent);
}

.timeline-item {
    margin-bottom: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.timeline-item:nth-child(even) {
    direction: rtl;
}

.timeline-item:nth-child(even) .timeline-content {
    direction: ltr;
}

.timeline-marker {
    position: relative;
    width: 20px;
    height: 20px;
    background: var(--primary-brown);
    border: 3px solid var(--off-white);
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 0 0 4px rgba(196, 167, 125, 0.2);
    transition: all 0.4s ease;
}

.timeline-item:hover .timeline-marker {
    width: 30px;
    height: 30px;
    box-shadow: 0 0 0 8px rgba(196, 167, 125, 0.2);
}

.timeline-content {
    padding: 2rem;
    background: var(--off-white);
    border-radius: 2px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: 1px;
    font-weight: 400;
}

.timeline-content p {
    color: var(--dark-brown);
    font-size: 1rem;
    line-height: 1.7;
}

/* Stagger animations for timeline items */
.timeline-item-1 {
    animation: slideInUp 0.6s ease-out 0.1s both;
}

.timeline-item-2 {
    animation: slideInUp 0.6s ease-out 0.2s both;
}

.timeline-item-3 {
    animation: slideInUp 0.6s ease-out 0.3s both;
}

.timeline-item-4 {
    animation: slideInUp 0.6s ease-out 0.4s both;
}

/* ===== PROJECT CTA ===== */
.project-cta {
    padding: 8rem 5%;
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--accent-brown) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.project-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.project-cta::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite 2s;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 300;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    animation: slideInUp 0.8s ease-out;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--white);
    color: var(--primary-brown);
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid var(--white);
    font-weight: 500;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.cta-button:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ===== FOOTER ===== */
footer {
    padding: 3rem 5%;
    background: var(--text-dark);
    color: var(--light-brown);
    text-align: center;
}

footer p {
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* ===== ANIMATIONS ===== */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(20px);
    }
}

/* Fade-in animation class for scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: var(--off-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.5s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.6s;
    }
    .nav-links.active li:nth-child(5) {
        transition-delay: 0.7s;
    }

    .nav-links a {
        font-size: 1.3rem;
        color: var(--text-dark);
        font-weight: 300;
        letter-spacing: 3px;
        position: relative;
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 1px;
        background: var(--primary-brown);
        transition: width 0.3s ease;
    }

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

    .menu-toggle {
        display: flex;
    }

    .mobile-logo {
        display: block;
        text-align: center;
        animation: fadeInUp 0.6s ease-out both;
    }

    .mobile-logo img {
        height: 80px;
    }

    .mobile-social-links {
        display: flex;
        gap: 2rem;
        justify-content: center;
        align-items: center;
        margin-top: 2rem;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.3s ease;
    }

    .nav-links.active .mobile-social-links {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.7s;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        border: 2px solid var(--primary-brown);
        color: var(--primary-brown);
        transition: all 0.3s ease;
        text-decoration: none;
        line-height: 1;
    }

    .social-icon i {
        font-size: 18px;
    }

    .social-icon svg {
        width: 20px;
        height: 20px;
    }

    .social-icon:hover {
        background-color: var(--primary-brown);
        color: var(--white);
        transform: translateY(-3px);
    }
    .project-header {
        height: 60vh;
        margin-top: 60px;
    }

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

    .project-subtitle {
        font-size: 1rem;
    }

    .breadcrumb {
        font-size: 0.85rem;
    }

    /* Project Hero */
    .project-hero img {
        height: 300px;
    }

    /* Overview */
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .overview-item {
        padding: 1.5rem;
    }

    /* Description */
    .description-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .description-text h2 {
        font-size: 2rem;
    }

    .description-image {
        height: 300px;
    }

    .description-image img,
    .description-image video {
        height: 300px;
    }

    .description-image::before {
        display: none;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-item {
        height: 300px;
    }

    /* Process Timeline */
    .process-timeline::before {
        display: none;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }

    .timeline-item:nth-child(even) {
        direction: ltr;
    }

    .timeline-marker {
        width: 16px;
        height: 16px;
        order: -1;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    /* CTA */
    .project-cta {
        padding: 4rem 5%;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    /* Section Title */
    .section-title {
        font-size: 2rem;
    }

    /* Padding adjustments */
    .project-overview,
    .project-description,
    .project-gallery,
    .project-process {
        padding: 4rem 5%;
    }

    /* Lightbox mobile styles */
    .lightbox-modal img {
        max-width: 95%;
        max-height: 75vh;
    }

    .close-button {
        top: 15px;
        right: 15px;
        font-size: 30px;
    }

    .nav-button {
        width: 45px;
        height: 45px;
        font-size: 22px;
        background: rgba(255, 255, 255, 0.25);
        border: 2px solid rgba(255, 255, 255, 0.5);
    }

    .prev-button {
        left: 10px;
    }

    .next-button {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .project-header {
        height: 50vh;
        margin-top: 50px;
    }

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

    .project-subtitle {
        font-size: 0.95rem;
    }

    nav {
        padding: 1rem 5%;
    }

    .logo img {
        height: 70px;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }

    .overview-item p {
        font-size: 1.1rem;
    }

    .description-text h2 {
        font-size: 1.5rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

    /* Lightbox mobile styles for very small screens */
    .lightbox-modal img {
        max-width: 98%;
        max-height: 70vh;
    }

    .close-button {
        top: 10px;
        right: 10px;
        font-size: 28px;
    }

    .nav-button {
        width: 42px;
        height: 42px;
        font-size: 20px;
        background: rgba(255, 255, 255, 0.3);
        border: 2px solid rgba(255, 255, 255, 0.6);
    }

    .prev-button {
        left: 5px;
    }

    .next-button {
        right: 5px;
    }
}
