@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

/* --- DESIGN SYSTEM & TOKENS --- */
:root {
    --bg-primary: #000000;
    --bg-secondary: #050505;
    --bg-card: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #888888;
    --border-color: rgba(255, 255, 255, 0.15);
    
    --font-mono: 'IBM Plex Mono', monospace;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --header-height: 80px;
}

/* --- BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-mono);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- HEADER / NAVIGATION --- */
/* --- HEADER / NAVIGATION --- */
.custom-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.custom-header.scrolled {
    height: 70px;
    background-color: rgba(0, 0, 0, 0.95);
}

.header-inner {
    width: 100%;
    max-width: 1400px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo a {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1;
}

.tagline {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 5px;
    letter-spacing: 0.5px;
    font-weight: 400;
}

.desktop-nav {
    display: flex;
}

.desktop-nav a {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-left: 30px;
    transition: color 0.3s ease;
}

.desktop-nav a:hover {
    color: var(--text-primary);
}

/* Mobile Nav Toggle (Hamburger) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1000;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* Mobile Navigation Drawer */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: #0a0a0a;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    z-index: 999;
    border-top: 1px solid #222;
}

.mobile-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 15px 0;
    font-size: 18px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.mobile-nav a:hover {
    color: var(--text-primary);
}

.mobile-nav.active {
    display: flex !important;
}

/* --- HERO SPLIT SECTION --- */
.hero-split {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: calc(var(--header-height) + 20px) auto 0 auto;
    height: calc(100vh - 120px);
    padding: 0 40px 20px 40px;
    gap: 12px;
    box-sizing: border-box;
}

.split-side {
    position: relative;
    width: 50%;
    height: 100%;
    display: block;
    text-decoration: none;
    overflow: hidden;
    border-radius: 4px;
}

.split-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-side:hover .split-image {
    transform: scale(1.03);
}

.split-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 3;
    transition: background-color 0.4s ease;
}

.split-side:hover .split-overlay {
    background-color: rgba(0, 0, 0, 0.0);
}

.split-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 12px;
    text-indent: 12px;
    text-transform: uppercase;
    margin: 0;
    text-align: center;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 0;
    max-width: 300px;
    transition: all 0.4s ease;
}

.split-side:hover .split-text {
    border-color: rgba(255, 255, 255, 0.8);
    letter-spacing: 16px;
    text-indent: 16px;
    transform: translate(-50%, -50%);
}

/* --- ABOUT SECTION --- */
.about-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 40px;
    gap: 60px;
    background-color: var(--bg-primary);
    box-sizing: border-box;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.about-text-wrapper {
    width: 50%;
    color: var(--text-secondary);
}

.about-heading {
    color: #fff;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
}

.about-text {
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 400;
    margin-bottom: 20px;
}

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

.about-image-wrapper img {
    width: 100%;
    max-height: 1400px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* --- SELECTED WORKS / PORTFOLIO SECTION --- */
.portfolio-section {
    padding: 120px 40px;
    background-color: var(--bg-primary);
    box-sizing: border-box;
    text-align: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-heading {
    color: #fff;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 60px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.grid-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 4px;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.grid-item:hover img {
    transform: scale(1.04);
}

/* --- CONTACT SECTION --- */
.contact-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 120px 40px;
    background-color: var(--bg-primary);
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-left {
    width: 50%;
}

.contact-heading {
    color: #fff;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 20px;
}

.contact-text {
    color: #888;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 400px;
}

.contact-right {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    transition: all 0.3s ease;
    display: inline-block;
    width: fit-content;
}

.contact-link:hover {
    border-bottom-color: #fff;
    padding-left: 10px;
}

/* --- GALLERY SUBPAGES & MASONRY --- */
.gallery-section {
    padding-top: calc(var(--header-height) + 40px);
    min-height: 100vh;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-section .section-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-top: 40px;
    margin-bottom: 60px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
}

.gallery-grid {
    column-count: 3;
    column-gap: 20px;
    width: 100%;
    padding: 0 40px 40px 40px;
}

.gallery-item {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    break-inside: avoid;
    border: 1px solid #1a1a1a;
    box-shadow: 0 10px 20px rgba(0,0,0,0.8);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    overflow: hidden;
}

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

.gallery-item:hover {
    transform: translateY(-4px);
}

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

/* --- GALLERY FOOTER BRIDGE --- */
.gallery-footer-bridge {
    text-align: center;
    padding: 120px 40px 60px 40px;
    background-color: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    margin-top: 40px;
}

.gallery-footer-bridge p {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

.bridge-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.bridge-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid var(--text-primary);
    background-color: var(--text-primary);
    color: var(--bg-primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition: var(--transition-smooth);
}

.bridge-btn:hover {
    background-color: transparent;
    color: var(--text-primary);
}

.bridge-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
}

.bridge-link:hover {
    border-bottom-color: var(--text-primary);
}

/* --- LIGHTBOX --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.98);
    z-index: 2000;
    display: none;
    opacity: 0;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    position: relative;
}

.lightbox-content img {
    max-height: 85vh;
    max-width: 90vw;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    color: var(--text-muted);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 3rem;
    cursor: pointer;
    padding: 2rem;
    z-index: 2010;
    transition: var(--transition-smooth);
}

.lightbox-nav:hover {
    color: var(--text-muted);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

/* --- FOOTER --- */
footer {
    padding: 3rem 40px;
    background-color: var(--bg-primary);
    border-top: 1px solid #111;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

footer .social-links {
    display: flex;
    gap: 2rem;
}

footer a:hover {
    color: var(--text-primary);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .custom-header {
        padding: 0;
    }
    
    .header-inner {
        padding: 0 20px;
    }
    
    .logo a {
        font-size: 16px;
    }

    .desktop-nav {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Hamburger Line Animation to 'X' */
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .hero-split {
        flex-direction: column;
        height: calc(100vh - 70px);
        padding: 0 20px 20px 20px;
        margin-top: calc(var(--header-height) + 10px);
    }
    
    .split-side {
        width: 100%;
        height: 50%;
    }
    
    .split-text {
        font-size: 1.2rem;
        letter-spacing: 8px;
        max-width: 220px;
    }
    
    .split-side:hover .split-text {
        letter-spacing: 10px;
    }
    
    .about-section {
        flex-direction: column;
        padding: 60px 20px;
        gap: 40px;
    }
    
    .about-text-wrapper,
    .about-image-wrapper {
        width: 100%;
    }
    
    .portfolio-section {
        padding: 60px 20px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        column-count: 2;
        padding: 0 20px 20px 20px;
    }
    
    .contact-section {
        flex-direction: column;
        padding: 60px 20px;
        gap: 50px;
    }
    
    .contact-left,
    .contact-right {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        column-count: 1;
    }
    
    footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 3rem 20px;
    }
}
