@font-face {
    font-family: 'Kollektif';
    font-style: normal;
    font-weight: normal;
    src: local('Kollektif Regular'), url('font/Kollektif.woff') format('woff');
}

@font-face {
    font-family: 'Kollektif';
    font-style: italic;
    font-weight: normal;
    src: local('Kollektif Italic'), url('font/Kollektif-Italic.woff') format('woff');
}

@font-face {
    font-family: 'Kollektif';
    font-style: normal;
    font-weight: bold;
    src: local('Kollektif Bold'), url('font/Kollektif-Bold.woff') format('woff');
}

@font-face {
    font-family: 'Kollektif';
    font-style: italic;
    font-weight: bold;
    src: local('Kollektif Bold Italic'), url('font/Kollektif-BoldItalic.woff') format('woff');
}

    /* 1. Strict Reset */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

/* FLOATING MENU STYLES */
.floating-menu {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 100; /* Higher than panel content (which is 2) */
    
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    
    /* Glass Effect */
    background: rgba(0, 0, 0, 0.4); /* Dark semi-transparent background */
    backdrop-filter: blur(12px);     /* Blurs the panels behind the menu */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, background 0.3s ease;
    will-change: transform, background;
}

.floating-menu:hover {
    background: rgba(0, 0, 0, 0.6); /* Darkens slightly on hover for readability */
    border-color: rgba(255, 255, 255, 0.2);
}

.menu-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.profile-wrapper {
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    /* Size set by JS */
}

.profile-pic {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

/* Hover Effect for Links: Slide right and turn white */
.floating-menu a:hover {
    color: #fff;
    padding-left: 5px; /* Subtle movement */
    text-shadow: 0 0 8px rgba(255,255,255,0.5);
}

/* JS-toggled state: Light menu when panel is dark */
.floating-menu.light-mode {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.floating-menu.light-mode a {
    color: #fefefe;
    text-shadow: none;
}

/* Optional: Mobile adjustment to keep it small */
@media (max-width: 768px) {
    .floating-menu {
        top: 20px;
        left: 20px;
        padding: 15px;
    }
}

/* ABOUT PAGE STYLES */
.about-page {
    background-image: url('image/about-wide.jpg');
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh; /* Desktop stays static */
    overflow: hidden;
}

.about-content {
    position: absolute;
    top: 120px; 
    right: 30px;
    max-width: 450px;
    text-align: right;
    z-index: 10;
    color: #000;
    padding: 40px;
}

.about-content p {
    color: #000;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    background: radial-gradient(circle at center right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 100%);
    mix-blend-mode: screen;
}

.about-content p:first-of-type::first-line {
    font-weight: bold;
}

.about-content h1 {
    height: auto;
    align-items: flex-end; /* Overrides the global center alignment */
    margin-bottom: 20px;
}

    /* 2. Viewport Setup */
    html, body {
        height: 100%;
        width: 100%;
        overflow: hidden;
        font-family: 'Kollektif', 'Helvetica Neue', Helvetica, Arial, sans-serif;
        background-color: #000;
    }

    /* 3. Flex Container */
    .container {
        display: flex;
        width: 100vw;
        height: 100vh;
    }

    /* 4. The Panel Structure */
    .panel {
        position: relative;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        
        /* YOUR REQUESTED TIMING */
        transition: flex 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        will-change: flex;
        
        /* Subtle borders for glass edges */
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-left: 1px solid rgba(255, 255, 255, 0.02);
    }

    .panel:last-child {
        border-right: none;
    }

    /* 
       5. The Background Image 
    */
    .panel::before {
        content: '';
        position: absolute;
        top: -20px; left: -20px; right: -20px; bottom: -20px;
        z-index: 0;
        background-size: cover;
        background-position: center;
        
        /* Initial Blur State */
        filter: blur(25px); 
        transform: scale(1.1);
        
        /* YOUR REQUESTED TIMING */
        transition: transform 0.3s ease, filter 0.3s ease;
        will-change: transform, filter;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    /* 
       6. The "Multiply" Glass Tint 
       This creates the dark, smoked glass effect
    */
    .glass-overlay {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        z-index: 1;
        
        /* Dark Grey color to multiply against the image */
        /* The Photoshop Blend Mode */
        mix-blend-mode: multiply; 
        
        transition: background-color 0.3s ease, opacity 0.3s ease;
    }

    /* 7. The Content */
    .content {
        position: relative;
        z-index: 2;
        text-align: center;
        color: #f0f0f0;
        padding: 20px;
        max-width: 400px;
        /* Text shadow helps legibility on dark multiply backgrounds */
        text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    }

    h1 {
        font-family: 'Kollektif', sans-serif;
        font-size: 3rem;
        text-transform: uppercase;
        letter-spacing: 5px;
        margin-bottom: 1rem;
        font-weight: bold;
        
        /* Align buttons by forcing consistent header height */
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        height: 2.4em; /* Space for 2 lines */
        line-height: 1.2;
    }

    p {
        font-family: 'Kollektif', sans-serif;
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        font-weight: 300;
        color: rgba(255, 255, 255, 0.8);
    }

    button {
        padding: 15px 40px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.4);
        color: white;
        font-family: 'Kollektif', sans-serif;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(4px);
    }

    button:hover {
        background: white;
        color: #000;
    }

    /* 8. Interactions */
    
    .panel:hover {
        flex: 1.2;
    }

    .panel:hover::before {
        /* Unblur slightly on hover */
        filter: blur(3px); 
        transform: scale(1.05);
    }

    .panel:hover .glass-overlay {
        /* Lighten the tint slightly on hover so image pops */
        background-color: #555; 
        mix-blend-mode: multiply;
    }

    /* 9. Background Images */
    .panel-1::before {
        background-image: url('image/work.jpg');
    }

    .panel-2::before {
        background-image: url('image/freelance.jpg');
    }

    .panel-3::before {
        background-image: url('image/film.jpg');
    }

    /* Mobile Responsive */
    @media (max-width: 768px) {
        .container { flex-direction: column; }
        .panel { width: 100vw; }
        body {
            display: flex;
            flex-direction: column;
        }
        .floating-menu {
            position: relative;
            top: 0; left: 0; right: 0;
            width: 100%;
            border-radius: 0;
            padding: 10px 20px;
            border: none;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(0, 0, 0, 0.7);
        }
        .about-page .floating-menu {
            position: fixed;
        }
        .panel { width: 100%; }
        .panel:hover { flex: 1.2; }
        .panel::before {
            filter: blur(10px);
        }
        h1 { font-size: 2rem; }
        .menu-links {
            flex-direction: row;
            gap: 20px;
            padding: 8px 0;
        }
        .profile-wrapper {
            border-radius: 0;
        }
        .about-page {
            background-image: url('image/about.jpg');
            background-size: 170%;
            background-position: center 10%;
            background-attachment: fixed;
            overflow-y: auto;
            height: auto;
            min-height: 160vh; /* Forces enough scroll depth */
        }
        .about-content {
            position: relative;
            top: 8vh; 
            right: 20px;
            padding: 0 20px;
            max-width: 50%;
            margin-left: auto;
            text-align: right;
        }
        .about-content::before {
            display: none;
        }
        .about-content p {
            margin-top: 10px; /* Keeps H1 and P close */
            opacity: 0;
            transform: translateY(40px);
            transition: opacity 1.2s ease-out, transform 1.2s ease-out;
        }
        .about-content p.visible {
            opacity: 1;
            transform: translateY(0);
        }
    }