/* FONTS - MyriadPro Condensed */
@font-face {
    font-family: 'MyriadPro-Condensed';
    src: url('assets/MyriadPro-Cond.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MyriadPro-Condensed';
    src: url('assets/MyriadPro-BoldCond.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
}

body {
    font-family: 'MyriadPro-Condensed', 'Arial Narrow', Arial, sans-serif;
    background-color: #060606;
    color: #D3D3D3;
    padding-bottom: 50px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* SEO-only content - invisible to users, visible to search engines */
.seo-only {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* MAIN PAGE - LAYERED BACKGROUND */
.main-page {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #060606;
}

/* Background Image Layer (bottom) */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/your-background-image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Video Effects Layer (on top of image) - DESKTOP */
.video-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    opacity: 1;
    mix-blend-mode: normal;
    pointer-events: none;
}

/* Hide mobile video on desktop */
.video-mobile {
    display: none;
}

/* Transparent protective overlay */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    background: transparent;
    pointer-events: none;
}

.main-page .main-nav {
    color: #D3D3D3;
    position: relative;
    z-index: 1000;
}

.main-page .main-nav .nav-link {
    color: #D3D3D3;
}

.main-page .main-nav .nav-link:hover {
    color: #202020;
}

.main-page footer {
    z-index: 1000;
}

/* NAVIGATION - Main Menu */
.main-nav {
    display: flex;
    gap: 36px;
    font-size: 20px;
    margin-left: calc(50% - 660px);
    padding-top: 36px;
    padding-bottom: 0;
    position: relative;
    z-index: 100;
}

.nav-link {
    transition: color 0.3s ease;
}

.nav-bold {
    font-weight: bold;
}

.nav-link:hover {
    color: #202020;
}

.nav-link.active {
    text-decoration: underline;
}

/* SECONDARY MENU (Projects categories) */
.secondary-nav {
    display: flex;
    gap: 28px;
    margin-left: calc(50% - 660px);
    margin-top: 36px;
    font-size: 15px;
}

.secondary-nav .nav-link:hover {
    color: #202020;
}

.secondary-nav .nav-link.active {
    text-decoration: underline;
}

/* ABOUT PAGE */
.about-container {
    display: flex;
    align-items: flex-start;
    margin-left: calc(50% - 660px);
    padding-top: 108px;
    gap: 60px;
}

.about-photo {
    width: 400px;
    height: auto;
}

.about-text {
    width: 400px;
    font-size: 48px;
    line-height: 1.8;
}

.about-text-small {
    font-size: 28px;
    line-height: 1.8;
    font-weight: normal;
}

/* CONTACT PAGE */
.contact-container {
    margin-left: calc(50% - 660px);
    padding-top: 180px;
    font-size: 48px;
    line-height: 1.8;
}

.contact-container p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-container .about-text-small {
    font-size: 28px;
    line-height: 1.8;
    font-weight: normal;
    margin-top: 0;
    margin-bottom: 10px;
    padding-top: 10px;
}

.contact-link {
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #202020;
}

.contact-logo {
    height: 40px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    transition: opacity 0.3s ease;
}

.contact-logo:hover {
    opacity: 0.7;
}

/* BACK BUTTON (X) */
.back-button {
    position: fixed;
    top: 36px;
    right: 60px;
    font-size: 60px;
    color: #D3D3D3;
    text-decoration: none;
    z-index: 100;
    transition: color 0.3s ease;
    line-height: 1;
}

.back-button:hover {
    color: #202020;
}

/* PAGE DESCRIPTION */
.page-description {
    margin-left: calc(50% - 660px);
    margin-top: 36px;
    margin-bottom: 24px;
}

.page-description p {
    font-size: 15px;
    line-height: 1.6;
    color: #D3D3D3;
    text-align: left;
}

/* PROJECTS GRID & DETAILS GRID */
.projects-container,
.details-container {
    margin-top: 36px;
    padding-bottom: 60px;
}

.projects-grid,
.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 400px);
    column-gap: 60px;
    row-gap: 36px;
    justify-content: center;
    margin: 0 auto;
    align-items: start;
}

.project-item,
.project-item-static,
.detail-item,
.detail-item-no-caption {
    cursor: default;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.project-image,
.detail-image {
    width: 400px;
    height: auto;
    display: block;
}

.project-caption,
.detail-caption {
    font-weight: bold;
    font-size: 15px;
    margin-top: 15px;
    margin-bottom: 0;
}

/* Clickable detail items (for "see more" images) */
.detail-item-clickable,
.detail-item-clickable img {
    cursor: pointer;
}

.detail-item-clickable img:hover {
    opacity: 0.8;
}

/* CATEGORY ITEMS (for projects-all and brutalism index) */
.category-item {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-image {
    width: 400px;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.category-item:hover .category-image {
    opacity: 0.8;
}

.category-caption {
    font-weight: bold;
    font-size: 15px;
    margin-top: 15px;
    margin-bottom: 0;
}

/* FOOTER */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 36px;
    background-color: #060606;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    border: none;
}

.footer-signature {
    height: 30px;
    width: auto;
    display: block;
}

/* MAPS PAGE */
.maps-page {
    position: relative;
    min-height: 100vh;
}

.maps-page .main-nav,
.maps-page .secondary-nav {
    position: relative;
    z-index: 10;
}

.maps-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

.maps-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.maps-content {
    margin-left: calc(50% - 660px);
    padding-top: 108px;
    text-align: left;
}

.maps-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #D3D3D3;
}

.maps-link {
    font-size: 20px;
    color: #D3D3D3;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.maps-link:hover {
    color: #202020;
}

/* GENEX 360 PAGE */
.genex-page {
    position: relative;
    min-height: 100vh;
}

.genex-page .main-nav,
.genex-page .secondary-nav {
    position: relative;
    z-index: 10;
}

.genex-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

.genex-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.genex-content {
    margin-left: calc(50% - 660px);
    margin-top: 0;
    text-align: left;
}

/* Scrollable Viewport for Panorama */
.genex-viewport {
    width: 400px;
    height: 530px;
    overflow: scroll;
    border: 1px solid #D3D3D3;
    cursor: grab;
    scrollbar-color: #060606 #060606;
}

/* Style scrollbar for webkit browsers (Chrome, Safari, Edge) */
.genex-viewport::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.genex-viewport::-webkit-scrollbar-track {
    background: #060606;
}

.genex-viewport::-webkit-scrollbar-thumb {
    background: #202020;
    border-radius: 0;
}

.genex-viewport::-webkit-scrollbar-thumb:hover {
    background: #303030;
}

.genex-viewport:active {
    cursor: grabbing;
}

.genex-panorama {
    width: 1920px;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.genex-instructions {
    margin-top: 10px;
}

.genex-details-link {
    font-size: 20px;
    color: #D3D3D3;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
    display: inline;
    margin-left: 15px;
}

.genex-details-link:hover {
    color: #202020;
}

/* ============================================
   MOBILE RESPONSIVENESS
   ============================================ */

@media screen and (max-width: 768px) {
    
    /* Fix mobile scrolling on main page */
    .main-page {
        position: fixed;
        overflow: hidden;
        width: 100%;
        height: 100vh;
        height: 100dvh;
    }
    
    html.main-page-html,
    body.main-page {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100vh;
        height: 100dvh;
    }
    
    /* NAVIGATION */
    .main-nav {
        margin-left: 20px;
        padding-top: 20px;
        font-size: 18px;
        gap: 20px;
        flex-wrap: wrap;
        margin-bottom: 30px;
    }
    
    .secondary-nav {
        margin-left: 20px;
        margin-top: 0;
        font-size: 14px;
        gap: 20px;
        flex-wrap: wrap;
        margin-bottom: 40px;
    }
    
    /* MAIN PAGE - Swap videos on mobile */
    .video-desktop {
        display: none !important;
    }
    
    .video-mobile {
        display: block !important;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: auto;
        height: 100%;
        max-width: 100%;
        object-fit: contain;
    }
    
    .background-image {
        background-size: cover;
        background-position: center;
    }
    
    /* ABOUT PAGE */
    .about-container {
        flex-direction: column;
        margin-left: 20px;
        padding-top: 60px;
        gap: 30px;
    }
    
    .about-photo {
        width: 100%;
        max-width: 400px;
    }
    
    .about-text {
        width: 100%;
        max-width: 400px;
        padding-right: 20px;
    }
    
    /* CONTACT PAGE */
    .contact-container {
        margin-left: 20px;
        padding-top: 100px;
        padding-right: 20px;
        font-size: 32px;
    }
    
    /* BACK BUTTON */
    .back-button {
        right: 20px;
        top: 20px;
        font-size: 50px;
    }
    
    /* PAGE DESCRIPTION */
    .page-description {
        margin-left: 20px;
        margin-right: 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .page-description p {
        font-size: 14px;
    }
    
    /* PROJECTS GRID - 1 column on mobile */
    .projects-container,
    .details-container {
        margin-top: 0;
        padding-bottom: 40px;
    }
    
    .projects-grid,
    .details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
    
    .project-image,
    .detail-image,
    .category-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .project-item,
    .project-item-static,
    .detail-item,
    .detail-item-no-caption,
    .category-item {
        justify-content: center;
        align-items: center;
    }
    
    /* MAPS PAGE */
    .maps-content {
        margin-left: 20px;
        padding-top: 60px;
        padding-right: 20px;
    }
    
    .maps-title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .maps-link {
        font-size: 18px;
    }
    
    /* GENEX 360 PAGE */
    .genex-content {
        margin-left: 20px;
        margin-right: 20px;
    }
    
    .genex-viewport {
        width: 100%;
        max-width: 400px;
        height: 530px;
    }
    
    .genex-instructions {
        margin-top: 8px;
    }
    
    .genex-details-link {
        font-size: 18px;
        margin-left: 10px;
    }
    
    /* FOOTER */
    footer {
        height: 30px;
    }
    
    .footer-signature {
        height: 24px;
    }
    
    body {
        padding-bottom: 40px;
    }
}

/* --- Utility and global tweaks --- */
a, a * {
  cursor: pointer;
}
