/* ============================================
   LAYOUT STYLES - Page Structure & Navigation
   
   Purpose: Main layout components including:
   - Header with expanding navigation
   - Navigation circles (right side)
   - Mobile bottom navigation
   - Content wrapper and sections
   - Footer
   
   Dependencies: core.css
   Updated: 2025
   ============================================ */


/* ============================================
   MAIN HEADER - Liquid Glass Expanding Navigation
   Smoothly expands from collapsed to full width on scroll
   ============================================ */
.main-header {
    /* Fixed positioning */
    position: fixed;
    top: 4mm;
    left: 0;
    right: 0;
    margin: 0 auto;
    transform: none;
    z-index: 100;

    /* Flexbox layout */
    display: flex;
    align-items: center;
    overflow: visible;
    box-sizing: border-box;

    /* LIQUID GLASS EFFECT - Premium glassmorphism */
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(45px);
    -webkit-backdrop-filter: blur(45px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.35),
        inset 0 0 0 0 rgba(255, 255, 255, 0.1);
    border-radius: 50px;

    /* Start collapsed - navigation only */
    width: fit-content;
    max-width: calc(100vw - 20mm);
    padding: 12px 20px;
    /* Equal top/bottom padding for perfect vertical centering */
    justify-content: center;

    /* Smooth CSS transitions for expansion */
    transition: width 0.4s cubic-bezier(0.4, 0.0, 0.2, 1),
        padding 0.4s cubic-bezier(0.4, 0.0, 0.2, 1),
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* Expanded state - logo + full navigation */
.main-header.expanded {
    width: calc(100vw - 20mm);
    padding: 12px 30px;
    /* Consistent top/bottom padding with collapsed state */
    justify-content: space-between;
}


/* ============================================
   HEADER LOGO
   Hidden when collapsed, smoothly revealed on expansion
   ============================================ */
.main-header .logo {
    /* Typography */
    font-size: 1.4vw;
    font-weight: 700;
    color: var(--text-color-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    font-family: var(--font-family-logo);

    /* Hidden by default */
    opacity: 0;
    transform: scale(0.9) translateX(-20px);
    width: 0;
    margin-right: 0;
    pointer-events: none;
    overflow: hidden;

    /* Smooth reveal animation */
    transition: opacity 0.4s cubic-bezier(0.4, 0.0, 0.2, 1),
        transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1),
        width 0.4s cubic-bezier(0.4, 0.0, 0.2, 1),
        margin-right 0.4s cubic-bezier(0.4, 0.0, 0.2, 1),
        color 0.5s ease-in-out;
}

/* Logo visible when header expands */
.main-header.expanded .logo {
    opacity: 1;
    transform: scale(1) translateX(0);
    width: auto;
    margin-right: 2.5vw;
    pointer-events: auto;
}


/* ============================================
   HEADER NAVIGATION
   Desktop navigation links
   ============================================ */
.main-nav {
    display: flex;
    gap: 5mm;
    opacity: 1;
    flex-shrink: 0;
    padding: 0;
}

.main-nav a {
    /* Typography */
    color: var(--text-color-dark);
    font-size: 1vw;
    font-weight: 400;
    letter-spacing: 0.04em;
    white-space: nowrap;

    /* Layout */
    padding: 0.4vw 1vw;
    position: relative;
    border-radius: 50px;
    /* Match main header roundness */

    /* Smooth transitions */
    transition: color 0.3s ease,
        background-color 0.3s ease;
}

/* Hover state - yellowish text with white highlight background */
.main-nav a:hover {
    color: var(--accent-color);
    /* Yellowish text */
    background-color: rgba(255, 255, 255, 0.15);
    /* White background */
}

/* Active link indicator - yellowish text */
.main-nav a.active {
    color: var(--accent-color);
    /* Yellowish text */
    background-color: rgba(255, 255, 255, 0.12);
    /* White background */
}


/* ============================================
   NAVIGATION CIRCLES - Right Side Fixed
   Visual section indicators that follow scroll
   ============================================ */
.nav-circles {
    /* Fixed positioning on right side */
    position: fixed;
    right: 3mm;
    top: 50%;
    transform: translateY(-50%);
    z-index: 150;

    /* Vertical stack */
    display: flex;
    flex-direction: column;
    gap: 3mm;
}

/* Individual navigation circle */
.nav-circle {
    width: 4mm;
    height: 4mm;
    border-radius: 50%;
    cursor: pointer !important;

    /* Liquid glass effect - matches header */
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(45px);
    -webkit-backdrop-filter: blur(45px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.35),
        inset 0 0 0 0 rgba(255, 255, 255, 0.1);

    /* Smooth transitions */
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Active circle - current section */
.nav-circle.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(211, 170, 44, 0.6);
    transform: scale(1.2);
}

/* Hover effect */
.nav-circle:hover {
    background-color: rgba(211, 170, 44, 0.3);
    border-color: rgba(211, 170, 44, 0.6);
    transform: scale(1.15);
}


/* ============================================
   CONTENT WRAPPER
   Main container for all sections
   ============================================ */
.content-wrapper {
    padding-bottom: 5mm;
}

section {
    margin-bottom: var(--section-spacing-desktop);
    display: flex;
    flex-direction: column;
}


/* ============================================
   FOOTER
   Bottom page information
   ============================================ */
.main-footer {
    text-align: center;
    padding: 3vw var(--padding-desktop);
    font-size: 0.9vw;
    opacity: 0.6;
    color: var(--text-color-dark);
    position: relative;
}

/* Build version badge - bottom left corner */
.build-version {
    position: fixed;
    bottom: 10px;
    left: 10px;
    font-size: 10px;
    color: var(--text-color-dark);
    opacity: 0.4;
    font-family: 'Courier New', monospace;
    z-index: 100;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
}

.build-version:hover {
    opacity: 0.8;
}


/* ============================================
   RESPONSIVE LAYOUT ADJUSTMENTS
   ============================================ */

/* Large Desktop (1441px+) */
@media (min-width: 1441px) {
    .nav-circle {
        width: 4mm;
        height: 4mm;
    }
}

/* Desktop (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .nav-circle {
        width: 3mm;
        height: 3mm;
    }
}

/* Laptop/Tablet Landscape (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-header {
        width: fit-content;
        padding: 10px 5mm;
    }

    .main-header.expanded {
        width: calc(100% - 10mm);
        padding: 15px 20px;
    }

    .main-header .logo {
        font-size: 3vw;
    }

    .main-header.expanded .logo {
        margin-right: 3.5vw;
    }

    .main-nav a {
        font-size: 2vw;
    }

    .nav-circle {
        width: 2mm;
        height: 2mm;
    }

    section {
        margin-bottom: var(--section-spacing-mobile);
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {

    /* Hide desktop navigation */
    .main-header .main-nav {
        display: none;
    }

    /* Top header - logo only, centered */
    .main-header {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: auto;
        max-width: calc(100% - 10mm);
        padding: 12px 20px;
        /* Consistent vertical centering with desktop */
        border-radius: 20px;
        left: 50%;
        right: auto;
        margin: 0;
        transform: translateX(-50%);
        top: 4mm;
    }

    .main-header .logo {
        font-size: 3.8vw;
        margin: 0 auto;
        opacity: 1 !important;
        display: block !important;
        width: auto !important;
        text-align: center;
        pointer-events: auto !important;
        color: var(--text-color-dark);
        transform: translateX(0) !important;
        /* Override any existing transforms */
    }

    /* Navigation circles - smaller on mobile */
    .nav-circle {
        width: 1mm;
        height: 1mm;
    }

    /* Content wrapper - padding for bottom nav */
    .content-wrapper {
        width: 100%;
        overflow-x: hidden;
        padding-bottom: calc(70px + 4mm + 2mm);
    }

    /* Build version - hidden on mobile */
    .build-version {
        display: none;
        /* Hidden on smartphones */
    }

    /* Footer - full width */
    .main-footer {
        padding: 30px var(--padding-mobile);
        font-size: 3.5vw;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
}


/* ============================================
   END OF LAYOUT STYLES
   Next file: sections.css (hero, about, skills, etc.)
   ============================================ */