/* --- Home/Contact Unified Typography & Brand Variables --- */
:root {
    --primary-bg: #fdf3ef; 
    --accent-red: #d13e27;
    --text-main: #222222;
    --text-light: #555555;
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --dark-charcoal: #1C1C1C;
    --primary-orange: #f0380a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- FIXED NAVBAR DESIGN --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    z-index: 1010; 
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 22px 5%;
    background-color: var(--white);
    position: relative;
    z-index: 1015;
}

.logo-wrapper { display: flex; align-items: center; }
.logo-icon { height: 35px; width: auto; object-fit: contain; }
.logo-vertical-line { width: 2px; height: 28px; background-color: #1C1C1C; margin: 0 10px; }
.logo-text-group { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-size: 20px; font-weight: 700; color: #1C1C1C; text-transform: lowercase; }
.logo-sub { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--primary-orange); text-transform: uppercase; }

.nav-links { display: flex; list-style: none; gap: 35px; }
.nav-links a { text-decoration: none; color: var(--dark-charcoal); font-size: 14px; font-weight: 500; letter-spacing: 0.5px; transition: color 0.3s ease; position: relative; padding-bottom: 4px; }
.nav-links a::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px; background-color: var(--primary-orange); transition: width 0.3s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-orange); }

.menu-toggle { display: none; font-size: 24px; cursor: pointer; color: var(--dark-charcoal); }

/* --- HERO CONTAINER --- */
.portfolio-wrapper { max-width: 1400px; margin: 0 auto; padding: 160px 5% 40px 5%; }
.portfolio-hero { margin-bottom: 60px; }
.archive-tag { display: block; font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--accent-red); margin-bottom: 20px; text-transform: uppercase; }
.hero-title { font-family: var(--font-heading); font-size: clamp(40px, 6.5vw, 76px); font-weight: 700; line-height: 1.1; color: var(--dark-charcoal); }
.italic-accent { font-style: italic; font-weight: 400; }

/* --- FILTER NAVBAR --- */
.filter-navbar { width: 100%; border-top: 1px solid #eeeeee; border-bottom: 1px solid #eeeeee; padding: 20px 0; margin-bottom: 60px; }
.filter-container { display: flex; justify-content: flex-start; align-items: center; gap: 40px; overflow-x: auto; scrollbar-width: none; }
.filter-container::-webkit-scrollbar { display: none; }
.filter-btn { background: none; border: none; font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 2px; color: #999999; cursor: pointer; position: relative; padding: 8px 0; transition: color 0.3s ease; white-space: nowrap; }
.filter-btn::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background-color: var(--primary-orange); transition: all 0.3s ease; transform: translateX(-50%); }
.filter-btn.active, .filter-btn:hover { color: var(--dark-charcoal); }
.filter-btn.active::after { width: 100%; }

/* --- STAGGERED PROJECTS GRID --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 50px;
    row-gap: 80px;
    align-items: start;
    transition: opacity 0.4s ease;
}
.project-card:nth-child(even) { margin-top: 80px; }

.project-thumb { position: relative; width: 100%; aspect-ratio: 4 / 3; background-color: #f5f5f5; overflow: hidden; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }

.thumb-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(28, 28, 28, 0.2); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.4s ease; }
.dope-view-btn { background: var(--white); color: var(--dark-charcoal); border: none; padding: 16px 32px; font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 2px; cursor: pointer; transform: translateY(20px); transition: all 0.4s ease; }
.dope-view-btn:hover { background-color: var(--primary-orange); color: var(--white); }

.project-card:hover .project-thumb img { transform: scale(1.05); }
.project-card:hover .thumb-overlay { opacity: 1; }
.project-card:hover .dope-view-btn { transform: translateY(0); }

.project-meta { margin-top: 25px; }
.project-seq { font-size: 12px; font-weight: 700; color: var(--accent-red); display: block; margin-bottom: 5px; }
.project-title { font-family: var(--font-heading); font-size: 24px; font-weight: 400; color: var(--dark-charcoal); margin-bottom: 5px; }
.project-location { font-size: 13px; color: var(--text-main); }

/* --- SIMPLE GALLERY (HIDDEN BY DEFAULT) --- */
.simple-gallery {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.simple-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background-color: #f5f5f5; }

/* --- CTA SECTION --- */
.cta-section { background-color: var(--primary-bg); padding: 100px 20px; text-align: center; }
.cta-section h2 { font-family: var(--font-heading); font-size: clamp(32px, 4vw, 48px); font-weight: 400; color: var(--dark-charcoal); margin-bottom: 40px; }
.cta-btn { display: inline-block; background-color: #000; color: #fff; padding: 18px 40px; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: 2px; transition: background-color 0.3s ease; }
.cta-btn:hover { background-color: var(--primary-orange); }




/* --- PIXORA CLOAKED STYLES --- */
.pixora-overlay {
    display: none; 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: rgba(0, 0, 0, 0.9); 
    z-index: 9999; 
    justify-content: center; 
    align-items: center;
}

.pixora-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pixora-close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 35px;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.pixora-window {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden; 
}

.pixora-track {
    display: flex;
    width: 400%; 
    height: 100%;
    transition: transform 0.4s ease-in-out; 
}

.pixora-img {
    width: 25%; 
    height: 100%;
    object-fit: cover;
}

.pixora-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
}

.left-arrow { left: 10px; }
.right-arrow { right: 10px; }

.pixora-text {
    padding: 20px;
    text-align: center;
}

.pixora-text h4 {
    color: #666;
    margin-bottom: 10px;
}
/* --- FOOTER COMPONENT --- */
.footer { background-color: var(--primary-bg); padding: 80px 20px 40px; }
.footer-content { display: flex; justify-content: space-between; margin-bottom: 60px; max-width: 1400px; margin-inline: auto; }
.logo-text-red { font-family: var(--font-heading); color: var(--accent-red); font-size: 1.8rem; line-height: 1.1; margin-bottom: 20px; }
.footer-brand p { color: var(--text-light); font-size: 0.9rem; max-width: 250px; }
.footer-links { display: flex; gap: 100px; }
.link-group h4 { font-size: 0.85rem; color: var(--accent-red); margin-bottom: 20px; letter-spacing: 1px; text-transform: uppercase; }
.link-group ul { list-style: none; }
.link-group ul li { margin-bottom: 10px; }
.link-group a { color: var(--text-light); font-size: 0.9rem; transition: color 0.3s; text-decoration: none; }
.link-group a:hover { color: var(--text-main); }
.footer-bottom { text-align: center; color: #999; font-size: 0.85rem; padding-top: 30px; border-top: 1px solid rgba(0,0,0,0.05); max-width: 1400px; margin-inline: auto; }

/* --- MOBILE RESPONSIVENESS --- */
@media screen and (max-width: 768px) {
    .menu-toggle { display: block !important; background: transparent; border: none; }
    .nav-links { position: fixed; top: -100vh; left: 0; width: 100%; min-height: 60vh; padding: 60px 0; display: flex; flex-direction: column; justify-content: center; align-items: center; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04); transition: top 0.4s ease; z-index: 1000; }
    .nav-links.slide-active { top: 79px; }
    .nav-links a { font-size: 18px; }
    .nav-links a::after { display: none !important; }

    .portfolio-wrapper { padding-top: 130px; }
    .projects-grid { grid-template-columns: 1fr; row-gap: 50px; }
    .project-card:nth-child(even) { margin-top: 0; } /* Disables staggered layout on mobile */
    
    .modal-content-wrapper { grid-template-columns: 1fr; gap: 40px; overflow-y: auto; max-height: 80vh; padding: 20px 10px; }
    .carousel-arrow { width: 45px; height: 45px; }
    .carousel-arrow.prev { left: 0px; }
    .carousel-arrow.next { right: 0px; }

    .footer-content, .footer-links { flex-direction: column; gap: 40px; }
}


/* THE CAROUSEL KILL SWITCH */
#carouselSlider {
    animation: none !important;
    transform: translateX(0) !important;
    transition: transform 0.5s ease-in-out !important;
}

.carousel-slider {
    animation: none !important;
}