html { overflow-x: hidden; width: 100%;  }
/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #2F3622;
    --bg-secondary: #3A432A;
    --text-color: #F8F4E6;
    --accent-color: #D3C4A3;
    --accent-hover: #E8DECC;
    --font-main: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a, button, .menu-btn, .menu-close, .view-more-btn, .gallery-item, .project-image-wrapper {
    cursor: none;
}

a {
    color: #ffffff;
    text-decoration: none;
}

a:visited {
    color: #ffffff;
}

a:hover, a:focus {
    color: #ffffff;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
}

/* Custom Aesthetic Circle Cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 999999;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 999998;
    mix-blend-mode: difference;
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), height 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease, border-color 0.3s ease;
}

.cursor-follower.hover {
    width: 65px;
    height: 65px;
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.preloader-text {
    font-size: 2rem;
    font-weight: 200;
    letter-spacing: 0.5em;
    margin-bottom: 2rem;
}

.progress-bar {
    width: 200px;
    height: 1px;
    background-color: #333;
    position: relative;
    overflow: hidden;
}

.progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--text-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference; /* Ensures visibility over images */
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.menu-btn {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: none;
}

/* Full Screen Menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-secondary);
    color: var(--text-color);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
}

.menu-close {
    position: absolute;
    top: 2rem;
    right: 5vw;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-color);
    cursor: none;
    transition: color 0.3s ease;
}

.menu-close:hover {
    color: var(--accent-hover);
}

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

.menu-links li {
    margin: 2rem 0;
    overflow: hidden;
}

.menu-links a, 
.menu-links a:visited,
.menu-links a:focus {
    font-size: 4rem;
    font-weight: 400;
    text-transform: uppercase;
    display: inline-block;
    color: var(--text-color) !important;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.menu-links a:hover {
    color: var(--accent-hover) !important;
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    mix-blend-mode: screen;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 5vw;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    mix-blend-mode: difference;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.scroll-indicator .line {
    width: 50px;
    height: 1px;
    background-color: var(--text-color);
}

/* Philosophy Section */
.philosophy {
    padding: 20vh 0;
    background-color: var(--bg-color);
}

.philosophy p {
    font-size: clamp(2rem, 4vw, 5rem);
    font-weight: 200;
    line-height: 1.2;
    color: rgba(175, 221, 229, 0.3); /* Un-revealed text */
}

/* Business DNA Section */
.dna {
    padding: 10vh 0;
    background-color: var(--bg-color);
}

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

.dna-item h3 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: rgba(175, 221, 229, 0.3);
}

.dna-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--accent-color);
}

/* About the Architect Section */
.about-architect {
    padding: 10vh 0;
    background-color: var(--bg-color);
}

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

.about-image-wrapper {
    width: 100%;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.about-image {
    width: 100%;
    display: block;
    object-fit: cover;
    filter: grayscale(20%);
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}


/* Works Section */
.works {
    padding: 10vh 0;
}

.works-header {
    margin-bottom: 10vh;
}

.works-header h2 {
    font-size: clamp(3rem, 6vw, 8rem);
    font-weight: 200;
    letter-spacing: -0.02em;
}

.project {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    margin-bottom: 20vh;
    gap: 5vw;
}

.project.reverse {
    flex-direction: row-reverse;
}

.project-info {
    flex: 1;
}

.project-info h3 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.project-info p {
    font-size: 1rem;
    color: var(--accent-color);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-image-wrapper {
    flex: 2;
    height: 70vh;
    overflow: hidden;
    position: relative;
}

.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-image {
    width: 100%;
    height: 130%; /* For parallax */
    background-size: cover;
    background-position: center;
    position: absolute;
    top: -15%; /* Offset for parallax */
}

.slideshow {
    width: 100%;
    height: 130%; /* For parallax */
    position: absolute;
    top: -15%; /* Offset for parallax */
}

.slideshow-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

.slideshow-img.active {
    opacity: 1;
}

/* Gallery Section */
.renders-section {
    padding: 10vh 0;
}

.renders-tab {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.renders-tab:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.renders-tab-info h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.renders-tab-info p {
    color: var(--accent-color);
}

.renders-tab-preview {
    display: flex;
    align-items: center;
    gap: -1rem;
}

.renders-tab-preview img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-color);
    margin-left: -15px;
}

.renders-tab-icon {
    font-size: 2rem;
    margin-left: 1rem;
    transition: transform 0.3s ease;
}

.renders-tab.open .renders-tab-icon {
    transform: rotate(45deg);
}

.renders-content {
    display: none;
    padding-top: 5vh;
}

.subsection-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 0.5rem;
}

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

.gallery-item {
    overflow: hidden;
    border-radius: 4px;
    height: 400px;
}

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

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

/* Gallery Captions */
.gallery-item {
    position: relative;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 1rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    pointer-events: none;
}

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

/* Project Video and Slideshow */

.slideshow {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slideshow-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slideshow-img.active {
    opacity: 1;
}

.view-more-container {
    text-align: center;
    margin-top: 3rem;
}

.view-more-btn {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 1rem 3rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: none;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* Testimonials Section */
.testimonials {
    padding: 15vh 0;
    background-color: var(--bg-color);
}

.testimonials .section-title {
    margin-bottom: 5vh;
}

.testimonial-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.test-arrow {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    outline: none;
    cursor: none;
    z-index: 10;
}

.test-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    transform: scale(1.08);
}

.testimonial-slider.horizontal {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.testimonial-slider.horizontal::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.testimonial {
    flex: 0 0 85%;
    max-width: 600px;
    scroll-snap-align: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial .quote {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    font-weight: 300;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: var(--text-color);
}

.testimonial .author {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    font-weight: 600;
}

/* Footer */
.footer {
    padding: 10vh 0 5vh;
    border-top: 1px solid rgba(15, 164, 175, 0.3); /* Accent hover with opacity */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10vh;
}

.footer-left h2 {
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 200;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.email-link {
    font-size: clamp(1rem, 5vw, 1.5rem); color: var(--text-color) !important; overflow-wrap: anywhere;
    text-decoration: underline;
    text-decoration-color: rgba(175, 221, 229, 0.4);
    text-underline-offset: 4px;
    display: block;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.email-link:hover {
    color: var(--accent-hover) !important;
    text-decoration-color: var(--accent-hover);
}

.contact-detail {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.footer-right ul li {
    margin-bottom: 1rem;
}

.footer-right ul a {
    font-size: clamp(0.85rem, 4vw, 1.2rem); color: var(--text-color) !important; overflow-wrap: anywhere;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.footer-right ul a:hover {
    color: var(--accent-hover) !important;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-right ul a {
        font-size: 1rem;
        
        overflow-wrap: break-word;
        white-space: normal;
    }
    .email-link {
        
        overflow-wrap: break-word;
    }

    .cursor, .cursor-follower {
        display: none; /* Disable custom cursor on mobile */
    }
    body, a {
        cursor: auto;
    }
    
    /* Reduce vertical spacing for mobile */
    .philosophy {
        padding: 10vh 0;
    }
    .dna {
        padding: 5vh 0;
    }
    .works {
        padding: 5vh 0;
    }
    .works-header {
        margin-bottom: 5vh;
    }
    .gallery {
        padding: 5vh 0;
    }
    .testimonials {
        padding: 5vh 0;
    }
    
    .project {
        flex-direction: column;
        margin-bottom: 4rem;
        gap: 1.5rem;
    }
    .project.reverse {
        flex-direction: column;
    }
    .project-info {
        flex: none;
        width: 100%;
    }
    .project-image-wrapper {
        flex: none;
        width: 100%;
        height: 35vh;
        margin-top: 1rem;
    }
    
    .hero-bg {
        background-image: url('assets/images/portrait logo.webp') !important;
    }
    
    /* Optimize typography & layout for phone */
    .project-info h3 {
        font-size: 1.5rem;
    }
    .dna-grid, .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 2.5rem;
    }
    .menu-links a {
        font-size: 2.2rem;
    }
    .testimonial-wrapper {
        gap: 0.5rem;
    }
    .test-arrow {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    .navbar {
        padding: 1.5rem 5vw;
    }
}

/* ==========================================================================
   Komorebi Dynamic Background Effect
   ========================================================================== */

.komorebi-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    background-color: var(--bg-color);
}

.komorebi-leaves {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* Create a repeating organic pattern for the canopy */
    background: radial-gradient(circle at 50% 50%, transparent 10%, var(--bg-color) 40%);
    background-size: 15vw 15vw;
    background-color: transparent; /* No base color, let the background show through */
    z-index: 2;
    pointer-events: none;
    filter: blur(8px);
    opacity: 0.9;
}

.komorebi-rays {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* Bright rays */
    background: repeating-linear-gradient(
        35deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.15) 5%,
        rgba(255, 255, 255, 0) 10%,
        rgba(255, 255, 255, 0.05) 15%,
        rgba(255, 255, 255, 0) 20%
    );
    z-index: 1;
    mix-blend-mode: screen;
    pointer-events: none;
    transform-origin: center center;
    animation: komorebiShimmer 8s infinite alternate ease-in-out;
}

@keyframes komorebiShimmer {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

#smooth-wrapper, #smooth-content, .philosophy, .dna, .works, .gallery, .testimonials, .footer {
    background-color: transparent !important;
}

.cursor-ray {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(248, 244, 230, 0.15) 0%, rgba(211, 196, 163, 0.08) 40%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 999997;
    mix-blend-mode: color-dodge;
    filter: blur(20px);
}

@media (max-width: 768px) {
    .footer-right ul a {
        font-size: 1rem;
        
        overflow-wrap: break-word;
        white-space: normal;
    }
    .email-link {
        
        overflow-wrap: break-word;
    }

    .cursor-ray {
        display: none !important;
    }
}




/* Video Wrapper Landscape-to-Portrait Effect */
.project-image-wrapper {
    height: 60vh; /* Taller landscape */
    max-height: 650px;
    will-change: height, max-height; transition: height 0.6s cubic-bezier(0.25, 1, 0.5, 1), max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-image-wrapper:hover, 
.project-image-wrapper.expanded {
    height: 85vh; /* Shorter portrait */
    max-height: 950px;
}

@media (max-width: 768px) {
    .footer-right ul a {
        font-size: 1rem;
        
        overflow-wrap: break-word;
        white-space: normal;
    }
    .email-link {
        
        overflow-wrap: break-word;
    }

    .project-image-wrapper {
        height: 45vh;
    }
    .project-image-wrapper:hover, 
    .project-image-wrapper.expanded {
        height: 75vh;
    }
}







/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    .footer-right ul a {
        font-size: 1rem;
        
        overflow-wrap: break-word;
        white-space: normal;
    }
    .email-link {
        
        overflow-wrap: break-word;
    }

    /* Disable heavy GPU filters and blend modes on mobile */
    .komorebi-rays {
        display: none !important;
    }
    .komorebi-dappled-light {
        display: none !important;
    }
    .komorebi-background {
        filter: none !important;
        mix-blend-mode: normal !important;
    }
    /* Disable custom cursor entirely on mobile */
    .cursor, .cursor-follower, .cursor-ray {
        display: none !important;
    }
    a, button, .menu-btn, .menu-close, .view-more-btn, .gallery-item, .project-image-wrapper {
        cursor: auto !important;
    }
}
@media (hover: none) and (pointer: coarse) {
    .cursor, .cursor-follower, .cursor-ray {
        display: none !important;
    }
    a, button, .menu-btn, .menu-close, .view-more-btn, .gallery-item, .project-image-wrapper {
        cursor: auto !important;
    }
}



#smooth-wrapper { position: relative; z-index: 1; }


@media (max-width: 768px) {
    .footer-right ul a {
        font-size: 1rem;
        
        overflow-wrap: break-word;
        white-space: normal;
    }
    .email-link {
        
        overflow-wrap: break-word;
    }

    .navbar, .scroll-indicator, .hero-bg, .cursor, .cursor-follower { mix-blend-mode: normal !important; }
}



 a { transition: all 0.3s ease; }







@media (max-width: 480px) {
    .email-link { font-size: clamp(0.9rem, 6vw, 1.2rem); letter-spacing: -0.02em; }
    .footer-right ul a { font-size: clamp(0.7rem, 4.5vw, 1rem); letter-spacing: 0; }
}




.footer-right, .footer-left {
    max-width: 100%;
}
.footer-right ul li:nth-child(2) a {
    word-break: break-all;
}




.email-link, .footer-right ul li:first-child a {
    white-space: nowrap;
}




.mobile-hero-text {
    display: none;
}
@media (max-width: 768px) {
    .mobile-hero-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100vh;
        width: 100%;
        text-align: center;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 10;
        gap: 1rem;
    }
    .hero-name {
        font-size: clamp(2.5rem, 8vw, 4rem);
        font-weight: 300;
        letter-spacing: 0.1em;
        color: var(--text-color);
        margin: 0;
    }
    .hero-title {
        font-size: clamp(1rem, 3.5vw, 1.5rem);
        font-weight: 200;
        letter-spacing: 0.2em;
        color: var(--accent-color);
        margin: 0;
    }
    .hero-bg {
        background-image: url('assets/images/render1.webp') !important;
        opacity: 0.3 !important; /* Darken background so text pops out */
    }
}


