:root {
    --bg-color: #050505;
    --text-color: #f4f4f4;
    --text-muted: #d4d4d4;
    --accent-color: #ffffff;
    --border-color: #333333;
    --font-serif: 'DM Serif Display', serif;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.page-container {
    width: 100%;
    max-width: 1200px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 60px 1fr;
    position: relative;
}

/* Sidebar */
.sidebar {
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 0;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
}

.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    text-decoration: none;
    color: inherit;
}

.vertical-text:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    padding: 20px 40px 0;
    position: relative;
}

h1.brand-title {
    font-family: var(--font-serif);
    font-size: 10rem;
    line-height: 0.8;
    white-space: nowrap;
    margin-left: -5px;
    margin-bottom: -15px;
    letter-spacing: -3px;
    /* Animation */
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Top Bar Info */
.info-bar {
    display: flex;
    justify-content: space-between;
    padding: 15px 40px;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Section */
.hero-section {
    padding: 40px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
}

.hero-image-container {
    width: 90%;
    height: 500px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: #111;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    /* Interactive State */
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.hero-image:hover {
    filter: grayscale(0%);
}

.fractional-cmo-tag {
    position: absolute;
    top: 30%;
    right: 15%;
    font-family: var(--font-sans);
    color: #00ff00;
    /* Bright Green as requested in annotation "animate this/add" often implies distinctive color */
    /* Actually annotation said "add [ your fractional cmo ]" in white/green context? 
       The user annotation text "add" was green. I'll use a clean green color or white. 
       Let's stick to the white text for the content "your fractional cmo" but maybe green for "add"? 
       No, the text to be added is "[ your fractional cmo ]". 
       I will use white to match the theme, but maybe a slight accent or just white. 
       The user annotation arrow was green. Let's start with white standard text. 
    */
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.meta-tag {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    z-index: 10;
}

.date-tag {
    top: 60px;
    left: 40px;
}

.location-tag {
    bottom: 20px;
    right: 40px;
}

.sticker {
    position: absolute;
    top: 480px;
    left: 60px;
    border: 1px solid var(--text-color);
    border-radius: 50%;
    padding: 20px 30px;
    transform: rotate(-10deg);
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    background-color: var(--bg-color);
    z-index: 20;
    cursor: pointer;
    text-align: center;
}

.sticker:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Intro Section */
.intro-section {
    padding: 80px 40px;
    border-bottom: 1px solid var(--border-color);
}

h2.intro-headline {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: 40px;
    max-width: 900px;
}

.intro-body {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 800px;
    /* Match single column width */
    margin-top: 20px;
}

.intro-body p {
    margin-bottom: 20px;
}

/* Section Styling */
.content-section {
    padding: 80px 40px;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-family: var(--font-mono);
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 40px;
    display: block;
    color: var(--text-muted);
}

/* Work Grid */
.work-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

.work-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #222;
}

.work-item:last-child {
    border-bottom: none;
}

.work-year {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-muted);
}

.work-details h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 400;
}

.work-role {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
    color: var(--accent-color);
}

.work-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 20px;
    max-width: 600px;
}

.work-meta {
    font-size: 13px;
    color: #666;
}

/* Brands */
.brands-list {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 20px;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: #444;
}

/* Education & Teaching Grid */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 100%;
    /* Restore full width */
}

.list-item {
    margin-bottom: 30px;
}

.list-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
}

.list-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Gallery Alignment */
.gallery-marquee-wrapper {
    display: flex;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    /* Restore full width */
    margin-bottom: 20px;
    white-space: nowrap;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}

/* Scrollable List */
.scrollable-list-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    display: block;
    /* Force block */
    width: 100%;
    /* Ensure width */
}

/* Custom Scrollbar */
.scrollable-list-container::-webkit-scrollbar {
    width: 4px;
}

.scrollable-list-container::-webkit-scrollbar-track {
    background: #111;
}

.scrollable-list-container::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 2px;
}

.scrollable-list-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Footer */
footer {
    padding: 80px 40px;
    background-color: #0a0a0a;
}

.footer-cta-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 60px;
}

.footer-cta {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1;
}

.footer-links {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
    font-family: var(--font-mono);
    font-size: 14px;
    text-transform: uppercase;
}

.footer-link {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #444;
    padding-top: 40px;
    border-top: 1px solid #222;
}

/* Meeting Button */
.meeting-btn {
    display: inline-block;
    padding: 15px 35px;
    border: 2px solid var(--text-color);
    border-radius: 50px;
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.meeting-btn:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* --- Portfolio Marquee (New) --- */
#portfolio-section {
    background-color: #ffffff;
    color: #111;
    padding: 30px 40px;
    /* Reduced height as requested */
    border-bottom: 1px solid var(--border-color);
    /* Maintain visual break */
}

#portfolio-section .section-title {
    color: #444;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
}

.marquee-track {
    display: flex;
    gap: 40px;
    /* Space between items */
    width: max-content;
    /* Ensure width fits content */
    animation: scroll 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.porto-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    /* Fixed width for uniform look */
    height: 100px;
    /* Optional: Add background or border if desired, but user img showed clean logos */
    filter: grayscale(100%);
    opacity: 1;
    /* Increased opacity for visibility on white */
    transition: all 0.3s ease;
}

.porto-item img {
    max-width: 100%;
    max-height: 80%;
    object-fit: contain;
}

.porto-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move half way because content is doubled */
    }
}

/* Floating Folder */
.floating-folder-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 100;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: floatY 3s ease-in-out infinite;
}

@keyframes floatY {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.mac-folder {
    width: 60px;
    height: 50px;
    position: relative;
}

.folder-body {
    width: 100%;
    height: 85%;
    background: linear-gradient(180deg, #5AB0F6 0%, #007AFF 100%);
    border-radius: 0 0 6px 6px;
    position: absolute;
    bottom: 0;
    left: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Folder styling to look like Mac */
.folder-body::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: #7BC1F9;
    /* Lighter top layered part */
    border-radius: 2px 2px 0 0;
    z-index: 1;
}

.folder-tab {
    position: absolute;
    top: 0;
    left: 0;
    width: 25px;
    height: 10px;
    background-color: #5AB0F6;
    border-radius: 4px 4px 0 0;
}

.folder-label {
    font-family: var(--font-mono);
    font-size: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    border: 1px solid #333;
}

/* Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Finder Window Popup */
.finder-window {
    width: 650px;
    height: 400px;
    background: rgba(230, 230, 230, 0.9);
    /* Mac window gray */
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    overflow: hidden;
    transform: scale(0.8) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popup-overlay.active .finder-window {
    transform: scale(1) translateY(0);
}

/* Finder Sidebar */
.finder-sidebar {
    width: 180px;
    background: rgba(255, 255, 255, 0.5);
    /* Slightly translucent */
    backdrop-filter: blur(10px);
    padding: 40px 15px 15px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-title {
    font-size: 11px;
    color: #888;
    margin-bottom: 5px;
    padding-left: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #444;
    cursor: default;
}

.sidebar-item.active {
    background: #e1e1e1;
    color: #000;
}

.sidebar-icon {
    margin-right: 8px;
    font-size: 14px;
}

/* Finder Main Area */
.finder-main {
    flex: 1;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.finder-header {
    height: 50px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    background: #f8f8f8;
}

/* Traffic Lights (Window Controls) */
.traffic-lights {
    display: flex;
    gap: 8px;
    margin-right: auto;
}

.traffic-lights span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.traffic-lights span:nth-child(1) {
    background: #FF5F57;
    border: 1px solid #E0443E;
}

/* Red (Close) */
.traffic-lights span:nth-child(2) {
    background: #FFBD2E;
    border: 1px solid #DEA123;
}

/* Yellow */
.traffic-lights span:nth-child(3) {
    background: #28C940;
    border: 1px solid #1AAB29;
}

/* Green */

.traffic-lights span:hover {
    filter: brightness(0.9);
}

.window-title {
    flex: 1;
    text-align: center;
    margin-right: 60px;
    /* Balance the left spacing */
    color: #444;
    font-weight: 600;
    font-size: 14px;
}

/* Finder Content Grid */
.finder-content-grid {
    padding: 30px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.finder-file {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 90px;
    gap: 8px;
    transition: transform 0.2s;
}

.finder-file:hover {
    transform: scale(1.05);
}

.finder-file:hover .file-name {
    background: #0060FA;
    color: white;
}

.file-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
}

.folder-blue {
    background: linear-gradient(180deg, #5AB0F6 0%, #007AFF 100%);
    position: relative;
    border-radius: 4px;
}

.folder-blue::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    width: 25px;
    height: 6px;
    background: #5AB0F6;
    border-radius: 4px 4px 0 0;
}

.file-doc {
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    border: 1px solid #ddd;
    position: relative;
}

.file-doc::after {
    content: 'Aa';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #888;
    font-weight: bold;
    font-family: serif;
    font-size: 24px;
}

.file-name {
    font-size: 13px;
    color: #333;
    text-align: center;
    line-height: 1.3;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 900px) {
    .page-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    h1.brand-title {
        font-size: 5rem;
        letter-spacing: -1px;
    }

    .hero-section {
        padding: 20px;
        min-height: auto;
    }

    .hero-image-container {
        width: 100%;
        height: 400px;
    }

    .sticker {
        top: 380px;
        left: 20px;
        padding: 15px 20px;
    }

    h2.intro-headline {
        font-size: 2.5rem;
    }

    .work-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .two-col-grid {
        grid-template-columns: 1fr;
    }

    .footer-cta {
        font-size: 3rem;
    }

    .popup-content img.popup-image {
        max-width: 280px;
    }
}

@media (max-width: 600px) {
    .floating-folder-container {
        bottom: 20px;
        right: 20px;
    }

    .porto-item {
        width: 100px;
        height: 70px;
    }

}


/* Small About Gallery */
.about-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-top: 30px;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    mask-image: linear-gradient(to right, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
}

.about-gallery::-webkit-scrollbar {
    display: none;
}

.about-gallery img {
    height: 100px;
    width: auto;
    border-radius: 6px;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
    /* cursor: pointer; removed */
}

.about-gallery img:hover {
    opacity: 0.8;
}


/* Responsive */
@media (max-width: 900px) {
    .marquee-track {
        gap: 20px;
    }

    /* Finder Responsive */
    .finder-window {
        width: 90%;
        height: auto;
        min-height: 400px;
        flex-direction: column;
    }

    .finder-sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .sidebar-title {
        display: none;
    }

    .finder-main {
        flex: 1;
    }

    /* Full Gallery Modal */
    .full-gallery-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.95);
        z-index: 2000;
        padding: 40px;
        overflow-y: auto;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .full-gallery-modal.active {
        display: block;
        opacity: 1;
    }

    .full-gallery-modal.active .gallery-grid {
        animation: folderOpen 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        /* Pop effect */
    }

    @keyframes folderOpen {
        0% {
            transform: scale(0.8) translateY(50px);
            opacity: 0;
        }

        100% {
            transform: scale(1) translateY(0);
            opacity: 1;
        }
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        max-width: 1400px;
        margin: 40px auto 0;
        opacity: 0;
        /* Handled by animation */
    }

    .gallery-grid img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 4px;
        transition: opacity 0.3s;
    }

    .gallery-grid img:hover {
        opacity: 0.8;
    }

    .close-gallery {
        position: fixed;
        top: 20px;
        right: 30px;
        font-size: 40px;
        color: white;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 2001;
    }