/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

/* Ensure all elements hide default cursor */
*, *:before, *:after {
    cursor: none !important;
}

body {
    font-family: 'Nimbus Mono', 'Courier New', monospace;
    font-weight: 400;
    line-height: 1.4;
    color: #000;
    background: #f5f5f5;
    overflow-x: hidden;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background-color: #8B0000;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease, background-color 0.2s ease;
    opacity: 1;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-screen.hide {
    opacity: 0;
    pointer-events: none;
}

.loading-image {
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Container Layout */
.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 15%;
    height: 100vh;
    padding: 40px 30px 40px 40px;
    background: #f5f5f5;
    z-index: 100;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.name {
    margin-top: 120px;
}

.name h1 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 0;
    letter-spacing: -0.02em;
    cursor: none;
}

.name h1:hover {
    color: #8B0000;
}

.logo {
    margin-top: auto;
    padding-bottom: 20px;
    align-self: flex-start;
}

.logo-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    opacity: 0.8;
}

/* Menu Styles */
.menu {
    list-style: none;
    margin-top: 60px;
    flex-grow: 1;
}

.menu-item {
    margin-bottom: 12px;
    position: relative;
}

.menu-link {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    color: #000;
    cursor: none;
    transition: opacity 0.2s ease;
    padding: 6px 0;
    letter-spacing: -0.01em;
}

.menu-link:hover,
.menu-item.active .menu-link {
    color: #8B0000;
}

/* Submenu Styles */
.submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 8px;
}

.menu-item:hover .submenu,
.menu-item.active .submenu {
    max-height: 200px;
}

.submenu-item {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
    cursor: none;
    padding: 3px 0 3px 20px;
    transition: color 0.2s ease;
    margin-bottom: 6px;
    letter-spacing: -0.005em;
}

.submenu-item:hover,
.submenu-item.active {
    color: #8B0000;
}

/* Sidebar Navigation */
.sidebar-navigation {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 20px;
}

.sidebar-nav-btn {
    font-size: 1rem;
    font-weight: 500;
    color: #000;
    cursor: none;
    transition: color 0.2s ease;
    padding: 6px 0;
    letter-spacing: -0.01em;
}

.sidebar-nav-btn:hover {
    color: #8B0000;
}

/* Content Area */
.content {
    margin-left: 15%;
    width: 85%;
    min-height: 100vh;
    padding: 60px 80px 60px 60px;
    scroll-snap-type: y proximity;
    overflow-y: scroll;
    height: 100vh;
}

/* Section Management - Continuous Scroll */
.section {
    display: block;
    min-height: 100vh;
    scroll-snap-align: start;
    padding-top: 60px;
}

/* Landing Section */
.landing-section {
    padding: 0;
    height: 100vh;
    position: relative;
}

.landing-content {
    height: 100%;
    position: relative;
}

.landing-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.landing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-statement {
    position: absolute;
    bottom: 80px;
    right: 60px;
    max-width: 500px;
}

.hero-statement h2 {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.3;
    color: #000;
    text-shadow: none;
    letter-spacing: -0.02em;
}

/* Section Navigation */
.section-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.nav-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: none;
    color: #666;
    transition: color 0.2s ease;
    padding: 8px 0;
    letter-spacing: -0.01em;
}

.nav-btn:hover {
    color: #000;
}

/* Project Grid (Architecture Section) */
.project-grid {
    display: grid;
    gap: 100px;
    padding-top: 40px;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    cursor: none;
    transition: transform 0.2s ease;
}

.project-card:hover {
    transform: translateY(-3px);
}

.project-card:nth-child(even) {
    direction: rtl;
}

.project-card:nth-child(even) * {
    direction: ltr;
}

.project-image {
    width: 100%;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image img {
    opacity: 0.85;
}

.project-info {
    padding: 20px 0;
}

.project-info h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.project-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
    font-weight: 400;
}

.project-meta {
    font-size: 0.85rem !important;
    color: #666 !important;
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 30px;
}

.project-meta span {
    font-weight: 600;
    color: #000;
}

.project-year {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #000 !important;
    text-align: right;
    margin-bottom: 0 !important;
    margin-top: 10px !important;
}

/* Project Detail Pages */
.project-detail {
    padding-top: 0;
}

.project-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.project-images {
    margin-bottom: 50px;
}

.project-images img {
    width: 100%;
    height: auto;
    margin-bottom: 40px;
    display: block;
    transition: transform 0.3s ease;
}

.project-images img:hover {
    transform: scale(1.01);
}

/* Horizontal container for side-by-side images */
.img-container-side-by-side {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    align-items: flex-end;
}

.img-side-by-side {
    flex-shrink: 0;
}

.img-right-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-description {
    max-width: 650px;
}

.project-description p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #333;
    font-weight: 400;
}

/* Single Project Sections (NASA, AR, Sculpture, Painting) */
.single-project h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.single-project .project-images {
    margin-bottom: 50px;
}

.single-project .project-images img {
    width: 100%;
    height: auto;
    margin-bottom: 40px;
    display: block;
    transition: transform 0.3s ease;
}

.single-project .project-images img:hover {
    transform: scale(1.01);
}

.single-project .project-description {
    max-width: 650px;
}

.single-project .project-description p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #333;
    font-weight: 400;
}

/* Video Styling for AR Section */
.project-video {
    margin-bottom: 40px;
}

.project-video video {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .sidebar {
        width: 25%;
        padding: 40px 25px 40px 35px;
    }
    
    .content {
        margin-left: 25%;
        width: 75%;
        padding: 60px 60px 60px 50px;
    }
    
    .name h1 {
        font-size: 1.6rem;
        margin-bottom: 0;
    }
    
    .hero-statement {
        bottom: 60px;
        right: 50px;
        max-width: 450px;
    }
    
    .hero-statement h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 1200px) {
    .sidebar {
        width: 30%;
        padding: 30px 20px 30px 30px;
    }
    
    .content {
        margin-left: 30%;
        width: 70%;
        padding: 50px 50px 50px 40px;
    }
    
    .name {
        margin-top: 80px;
    }
    
    .name h1 {
        font-size: 1.5rem;
    }
    
    .project-card {
        gap: 40px;
    }
    
    .project-grid {
        gap: 80px;
    }
}

@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }
    
    /* Mobile Landing Page Layout */
    .landing-section .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 40px 20px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .landing-section .name {
        margin-top: 0;
        margin-bottom: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .landing-section .logo {
        order: -1;
        margin-bottom: 0;
        width: 80px;
        height: 80px;
    }
    
    .landing-section .menu {
        margin-top: 0;
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .landing-section .menu-item {
        margin-bottom: 0;
        font-size: 1.2rem;
    }
    
    /* Non-Landing Pages: Hamburger Menu */
    .section:not(.landing-section) ~ * .sidebar,
    .sidebar:not(.landing-section .sidebar) {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        padding: 15px 20px;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        background: #f5f5f5;
        z-index: 1000;
    }
    
    /* Hamburger Menu Button */
    .hamburger-menu {
        display: block;
        width: 30px;
        height: 30px;
        cursor: pointer;
        background: url('assets/sillouette.png') no-repeat center center;
        background-size: contain;
        border: none;
        background-color: transparent;
    }
    
    /* Hide default menu on non-landing pages */
    .section:not(.landing-section) ~ * .name,
    .section:not(.landing-section) ~ * .menu {
        display: none;
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.8);
        z-index: 1001;
        display: none;
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
    
    .mobile-menu {
        position: absolute;
        top: 0;
        left: 0;
        width: 80%;
        height: 100vh;
        background: #f5f5f5;
        padding: 60px 20px 20px 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .mobile-menu-overlay.active .mobile-menu {
        transform: translateX(0);
    }
    
    .mobile-menu .menu {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 40px;
    }
    
    .mobile-menu .menu-item {
        font-size: 1.4rem;
        margin-bottom: 0;
    }
    
    .mobile-menu .logo {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .content {
        margin-left: 0;
        width: 100%;
        padding: 30px 20px;
    }
    
    /* Adjust content top margin for non-landing pages */
    .section:not(.landing-section) .content,
    .content:not(.landing-section .content) {
        margin-top: 60px;
    }
    
    .landing-section {
        height: 70vh;
    }
    
    .hero-statement {
        bottom: 30px;
        right: 20px;
        max-width: calc(100% - 40px);
    }
    
    .hero-statement h2 {
        font-size: 1.5rem;
    }
    
    .project-card {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .project-card:nth-child(even) {
        direction: ltr;
    }
    
    .section-navigation {
        padding: 20px 0;
        margin-bottom: 40px;
    }
    
    .project-grid {
        gap: 60px;
        padding-top: 20px;
    }
    
    /* Hide custom cursor on mobile only for touch devices */
    @media (pointer: coarse) {
        .cursor {
            display: none;
        }
        
        * {
            cursor: auto !important;
        }
    }
}

@media (max-width: 600px) {
    .sidebar {
        padding: 20px 15px;
    }
    
    .name h1 {
        font-size: 1.2rem;
    }
    
    .menu {
        gap: 15px;
    }
    
    .menu-link {
        font-size: 0.9rem;
    }
    
    .content {
        padding: 20px 15px;
    }
    
    .hero-statement {
        bottom: 20px;
        right: 15px;
    }
    
    .hero-statement h2 {
        font-size: 1.3rem;
    }
    
    .project-content h2,
    .single-project h2 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .project-info h3 {
        font-size: 1.4rem;
    }
}