/*
Theme Name: Architect Portfolio
Theme URI: https://example.com/
Author: Nik
Author URI: https://example.com/
Description: A custom theme for an architect's portfolio with smooth page transitions.
Version: 1.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: architectportfolio
*/
/* 1. The Lightbox Overlay */
.img-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 9999;
}

.img-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.img-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.95);
    transition: transform .3s ease;
}

.img-modal.active .img-modal-content {
    transform: scale(1);
}

.img-modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

.ss {
    margin-bottom: 5px!important;
}
h2.text-3xl.font-bold.mb-12.nav-logo {
    COLOR: #dead1b;
}
.site-logo {
     COLOR: #dead1b;
}
.has-nested-images {
   margin: 20px 0; 
} 
.info-item > h4 {
    font-size: 12px;
    margin-top: -0.5rem;
}
.yoyoyo {
    padding-left: 40px;
}
.btn-center {
    padding: 3rem 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
@media only screen and (max-width: 768px){
    p.text-xl.md\:text-2xl.max-w-3xl.hero-title.font-light {
    font-size: 20px!important;
    font-weight: 700!important;
    line-height: 1.2!important;
    position: unset!important;
    }
    #scroll-video {
    width: 100%!important;
    position: unset!important;
    }
    .hero-shts-wrapper {
    width: 100%!important;
    height: 70vh!important;
    border: unset!important; 
    margin: 0 7.5vw;
    display: flex!important;
    flex-direction: column!important;
    align-items: center!important;
    }
}
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    cursor: zoom-out;
    /* Initially hidden and will be controlled by GSAP */
    visibility: hidden; 
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 2. The Image inside the Lightbox */
.lightbox-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    /* GSAP will control the scale and position */
}
p.text-xl.md\:text-2xl.max-w-3xl.hero-title.font-light {
font-size: clamp(2.5rem, 0rem + 5.2083vw, 6.25rem);
    font-weight: 800;
    letter-spacing: 17px;
    line-height: 1.5;
    opacity: 0.7;
    top: 15%;
    right: 5%;
    text-align: center;
    margin-left: 15px;
    z-index: 2;
    display: flex;
    word-spacing: 32px;
    max-width: max-content;
    width: 100%;
    justify-content: space-between;
}
b, strong {
    font-weight: normal!important;
}
.hero-shts-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 1rem;
    position: relative;
    /* clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%); */
    will-change: clip-path;
    width: 85vw;
    height: 80vh;
    margin: 0 7.5vw;
    position: relative;
    display: flex;
    color: var(--text-color);
    text-decoration: none;
    flex-direction: column;
    align-items: center;
}
#scroll-video {
    transform: unset!important;
    position: unset !important;
}
.intro-panel, .outro-panel {
    width: 100vw;
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}
/* Custom styles for the horizontal scroll page */
:root {
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --accent-color: #007bff;
    --subtle-gray: #dee2e6;
}
/*p {*/
/*    text-align: justify;*/
/*}*/
#scroll-video {
width: 80%;
    object-fit: cover;
    border-radius: 12px;
    height: 80%;
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
    transition: transform 0.8s 
cubic-bezier(0.25, 1, 0.5, 1), filter 0.8s 
cubic-bezier(0.25, 1, 0.5, 1);
    
}
body {
    font-family: "Saira", system-ui;
  font-weight: 400;
  font-style: normal;
    overflow-x: hidden;
    background-color: #a3a3a3;
    color: var(--text-color);
    cursor: none; /* Hidden by default, enabled via JS for non-touch devices */
}
/* Show default cursor on mobile */
@media (max-width: 767px) {
    body {
        cursor: default;
    }
}

a, .project-panel, .hamburger {
    cursor: none;
}
@media (max-width: 767px) {
    .panel-wrapper {
        height:50vh!important;
    }
    a, .project-panel, .hamburger {
        cursor: pointer;
    }
}

/* Effect: Subtle Grain Overlay (Light Theme) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39sbGxvb29xcXGTk5NpaWl7e3uUlJSfn594eHhfX19rCIGvAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAKRJREFUOI2l00OwywAMBFE06N3/X70gQ5K8Mv52kghAgvCwMChG/A8wYhA1p2c2E4IqNEkR2hJkQmG8xG/gr3w2sOmsLz0iMvY/djx3v2gRObx3f3dyZ490kKcuYe7O38fn5-n5eZz59cnM-fXqGaCvdPDQ4-p7f0c-d38fx1vK/7wDbD4s9B9sC-c1sJ-FA9sA-sN8kMAb4f1gIMeET0kUe1eGAAAAAElFTSuQmCC');
    opacity: 0.05;
    filter: invert(1);
    pointer-events: none;
    z-index: 1001;
}

/* Effect: Spotlight Cursor (Reimagined for Light Theme) */
.spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    background: radial-gradient(circle at var(--x) var(--y), transparent 15%, rgb(248 249 250 / 14%) 35%);
}

/* New Header for Logo and Mobile Menu */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.6rem;
    z-index: 1002;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}
.site-logo {
    font-weight: 700;
    font-size: 1.25rem;
    pointer-events: auto;
}
.hamburger {
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: auto;
}
.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.is-active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

.main-container {
    width: 100%;
}
.scroll-track {
    display: flex;
    align-items: center;
    will-change: transform;
}
.panel {
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.project-panel {
    width: 85vw;
    height: 80vh;
    margin: 0 7.5vw;
    position: relative;
    display: block; /* Make the anchor tag a block element */
    color: var(--text-color);
    text-decoration: none;
}
.about > .panel-wrapper {
    overflow: scroll;
}
.panel-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    /*border: 1px solid #dee2e6b3;*/
    position: relative;
    /* clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%); */
    will-change: clip-path;
}
.panel-wrapper::-webkit-scrollbar{
    display: none;
}
.corner-bracket {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--text-color);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.corner-bracket.top-left { top: 1rem; left: 1rem; border-top: 2px solid; border-left: 2px solid; }
.corner-bracket.top-right { top: 1rem; right: 1rem; border-top: 2px solid; border-right: 2px solid; }
.corner-bracket.bottom-left { bottom: 1rem; left: 1rem; border-bottom: 2px solid; border-left: 2px solid; }
.corner-bracket.bottom-right { bottom: 1rem; right: 1rem; border-bottom: 2px solid; border-right: 2px solid; }

.project-number {
    position: absolute;
    top: 0rem;
    left: 0rem;
    font-size: 10rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.04);
    z-index: 1;
    line-height: 1;
    will-change: transform;
}
/* New Big Text Style */
.project-main-text {
   position: absolute;
    bottom: 1rem;
    transform: translate(-50%);
    left: 50%;
    font-size: 47pt;
    font-weight: 700;
    line-height: 1;
    color: rgb(227 197 108 / 88%);
    z-index: 3;
}
/* .project-main-text .line-reveal { transform: translateY(110%); } */

.image-container {
    position: absolute;
    top: 0;
        border-radius: 12px;
    left: 0;
    width: 100%;
    height: 90%;
    overflow: hidden;
}

.project-panel img {
        border-radius: 12px;
       width: 100%;
       height: 100%;
    object-fit: contain;
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    filter: saturate(0.2);
}
.project-panel:hover img {
    transform: scale(1);
    filter: saturate(1);
}
section.panel.about{
max-width: 75vw;
padding: 4rem;
}

section.panel.see-all {
    min-width: 60vw;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    flex-direction: row;
}
section.panel.see-all > div { 
    padding: 10px 20px;
    width: auto !important;
    background: #dead1b;
    height: max-content !important;
    font-weight: 600;
}
section.panel.about > div {
    padding: 2rem;
}
.about-content > h3 {
    font-size: 32px;
}
.panel-content {
    position: absolute;
    display: none;
    gap: 15px;
    top: 2rem;
    right: 2rem;
    z-index: 2;
    color: var(--text-color);
    text-align: left;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    max-width: 39%;
}
.panel-content h2, .panel-content p { overflow: hidden; }
/* .panel-content .line-reveal { transform: translateY(110%); } */
.panel-content h2 { font-weight: 600; font-size: 1.5rem; }
.panel-content p { font-weight: 300; font-size: 0.9rem; }
.intro-panel, .outro-panel {
    width: 100vw;
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image:linear-gradient(#dee2e659 1px, transparent 1px), linear-gradient(to right, #dee2e65e 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
    z-index: -1;
}
@keyframes moveGrid {
    from { transform: translate(0, 0); }
    to { transform: translate(-50px, -50px); }
}

.intro-panel h1, .outro-panel h2 { font-weight: 700; font-size: 3rem; }
.intro-panel p, .outro-panel p { font-size: 1.25rem; }

.side-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background-color: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(15px);
    border-right: 1px solid var(--subtle-gray);
    z-index: 1000;
    transform: translateX(-220px);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    align-items: center;
    padding-top: 5rem; /* Pushes content down below header */
}
.side-nav:hover { transform: translateX(0); }
.nav-content {
    padding: 2rem 3rem 2rem 1.5rem;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.nav-content .nav-title {
    writing-mode: vertical-rl;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: opacity 0.4s ease;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
}
.side-nav:hover .nav-title { opacity: 0; }
.nav-links {
    width: 220px;
    opacity: 0;
    transition: opacity 0.4s ease 0.1s;
    pointer-events: none;
}
.side-nav:hover .nav-links { opacity: 1; pointer-events: auto; }
.nav-links a {
    display: block;
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 400;
    position: relative;
    margin-bottom: 0.5rem;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    right: 50%;
    height: 1px;
    background: var(--text-color);
    transition: left 0.3s ease, right 0.3s ease;
}
.nav-links a:hover::after { left: 1rem; right: 1rem; }

.scroll-indicator {
    position: fixed;
    bottom: 50px;
    left: 5vw;
    width: 90vw;
    height: 2px;
    z-index: 99;
    background-image: repeating-linear-gradient(to right, var(--subtle-gray), var(--subtle-gray) 8px, transparent 8px, transparent 16px);
}
.indicator-line {
    width: 100%;
    height: 100%;
    background: var(--text-color);
    transform-origin: left center;
    transform: scaleX(0);
}
.indicator-start {
    position: absolute;
    left: -45px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 0.9rem;
    font-weight: 600;
}
.progress-number {
    position: absolute;
    left: 0;
    top: -25px;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 1;
}
.scroll-indicator::after {
    content: '→';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 1.5rem;
    line-height: 1;
}
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000;
    pointer-events: none;
}
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-color);
    border-radius: 50%;
    transition: transform 0.3s ease;
}
.cursor-ring {
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-color);
    border-radius: 50%;
    position: absolute;
    top: -16px;
    left: -16px;
    transform: scale(0);
    transition: transform 0.3s ease;
}
.cursor-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cursor.hovered .cursor-ring { transform: scale(1); }
.cursor.hovered .cursor-dot { transform: scale(0); }
.cursor.hovered-project .cursor-text { opacity: 1; }
.scroll-down-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color);
    opacity: 0.7;
    z-index: 5;
}
.scroll-down-indicator span { font-size: 0.8rem; letter-spacing: 0.1em; margin-bottom: 8px; }
.scroll-down-line { width: 1px; height: 40px; background-color: var(--text-color); transform-origin: top center; }

/* Page Transition Styles */
#page-content-wrapper {
    transition: opacity 0.4s ease-in-out;
}
#page-content-wrapper.fade-out {
    opacity: 0;
}

/* Projects Archive Page Styles */
.projects-container {
    padding-top: 120px;
    padding-bottom: 60px;
    max-width: 1400px;
    margin: 0 auto;
}
.projects-grid {
    display: grid;
    /* On mobile, one column */
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

/* On medium screens and up, switch to two columns */
@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(5, 1fr);
    }
   
   
}
@media (min-width: 1440px) {
    .panel-wrapper {
        width:75%!important;
        max-width: 1400px;
    }
   
}
.project-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--subtle-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}
.project-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.project-card-content {
    padding: 1.5rem;
    display: none;
}

/* Single Project Page Styles */
.single-project-container {
    padding-top: 150px;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 100px;
}
.single-project-image {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    margin-bottom: 3rem;
    border: 1px solid var(--subtle-gray);
}
.single-project-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
.single-project-content .entry-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* --- MOBILE STYLES (max-width: 767px) --- */
@media (min-width: 1500px) {
    .projects-container {
        padding-left: 1rem!important;
    }
}
@media (max-width: 767px) {
      .project-panel img {
        object-fit: scale-down!important;
    }
    .projects-container {
        padding-left: 1rem!important;
    }
    .spotlight, .cursor, .scroll-indicator, .side-nav {
        display: none; /* Hide desktop-only effects and side-nav */
    }
    .main-container {
        height: auto; /* Allow natural document flow */
        padding-top: 5rem; /* Pushes content below fixed header */
    }
    .scroll-track {
        display: block!important; /* Stack panels vertically */
        height: auto!important;
    }
    section.panel.about {
         max-width: unset!important; 
        padding: 2rem!important;
    }
   .panel {
        height: auto;
        min-height: 50vh;
        padding: 3.2rem;
    }
    .intro-panel, .outro-panel {
        min-height: 100vh;
        padding-top: 0; /* Remove extra padding since main-container has it */
    }
    .project-panel {
        width: 90vw;
        height: fit-content; /* Fixed height for consistency */
        margin: 0 auto; /* Center panel */
    }
    /* BUG FIX: Reset clip-path on mobile */
    .panel-wrapper {
        clip-path: none;
    }
    .project-number {
        font-size: 8rem;
        top: -1rem;
    }
    .intro-panel h1, .outro-panel h2 { font-size: 2.5rem; }
    .intro-panel p, .outro-panel p { font-size: 1rem; }
    .panel-content {
        
                top: auto;
        bottom: 0rem;
        right: 0rem;
        left: 0;
        padding: 5px;
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-width: none;
        text-align: center;
    }
    .panel-content h2 { font-size: 1.5rem; }
    .panel-content p { font-size: 0.875rem; }
    .project-main-text {
        font-size: 15vw;
        bottom: 50%;
        transform: translateY(50%);
        left: 1rem;
        color: rgba(0, 0, 0, 0.06);
    }
     .project-main-text {
         display: none;
    }
    .scroll-down-indicator {
        display: none; /* Not needed for vertical scroll */
    }
    /* Mobile Menu Overlay */
    .mobile-nav {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: var(--bg-color);
        z-index: 1001;
        align-items: center;
        justify-content: center;
        transform: translateY(-100%);
        transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    }
    .mobile-nav.menu-open {
        transform: translateY(0);
    }
    .mobile-nav .nav-links {
        opacity: 1;
        pointer-events: auto;
        text-align: center;
    }
    .mobile-nav .nav-links a { font-size: 2rem; }
    .single-project-content h1 { font-size: 2rem; }
}


.contact-info {
    max-width: 700px;
    margin: 20px auto;
    padding: 40px;
    border-top: 1px solid #ddd;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    color: #111;
    text-align: left;
  }
  
  .contact-info h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: -0.5px;
  }
  
  .info-item {
    margin-bottom: 17px;
  }
  
  .info-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
  }
  
  .info-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    color: #222;
  }