/* ==========================================================================
   XACH PORTFOLIO - OPTIMIZED STYLES
   ========================================================================== */

/* ==========================================================================
   1. FONTS & BASE STYLES
   ========================================================================== */

@font-face {
    font-family: 'ABCMonumentGrotesk-Medium';
    src: url('ABCMonumentGrotesk-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'ABCMonumentGrotesk-Medium', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.05em;
    letter-spacing: -.03em;
    font-weight: 500;
    color: #111;
    background-color: #f7f7f7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 120px;
}



/* Tailwind-style utility classes */
.sticky {
    position: sticky;
}

.my-16 {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.flex {
    display: flex;
}

.w-screen {
    width: 100vw;
}

.justify-center {
    justify-content: center;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.15s;
}

.duration-500 {
    transition-duration: 0.5s;
}

.max-w-\[700px\] {
    max-width: 700px;
}

.flex-col {
    flex-direction: column;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.space-y-6 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}

.text-large {
    font-size: 1.4rem;
    line-height: 1em;
    letter-spacing: -.03em;
    font-weight: 500;
}

.inline {
    display: inline;
}

.items-center {
    align-items: center;
}

.space-x-4 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(1rem * var(--tw-space-x-reverse));
    margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}

.whitespace-nowrap {
    white-space: nowrap;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.leading-\[1em\] {
    line-height: 1em;
}

.grid {
    display: grid;
}

.gap-x-8 {
    column-gap: 2rem;
}

.gap-y-0\.5 {
    row-gap: 0.125rem;
}

.gap-y-0 {
    row-gap: 0;
}

.w-full {
    width: 100%;
}

/* Full Width Project Media */
.project-media-full {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 500"><rect fill="%23333" width="1200" height="500"/><rect x="300" y="150" width="600" height="200" rx="8" fill="%23555" opacity="0.7"/></svg>');
    background-size: cover;
    background-position: center;
}

/* Two Column Images Section */
.two-column-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.column-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #e5e5e5, #cccccc);
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

.column-image-1 {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 300"><rect fill="%23ddd" width="600" height="300"/><circle cx="300" cy="150" r="80" fill="%23bbb"/></svg>');
}

.column-image-2 {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 300"><rect fill="%23ddd" width="600" height="300"/><rect x="200" y="100" width="200" height="100" fill="%23bbb"/></svg>');
}

/* CTA Button */
.cta-button {
    height: 40px;
    padding: 0 16px;
    background-color: #ccff00;
    border: none;
    border-radius: 0;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    color: #111;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s ease;
}

.cta-button:hover {
    opacity: 0.9;
}

/* Large screen adjustments */
@media (min-width: 1536px) {
    .lg\:my-32 {
        margin-top: 8rem;
        margin-bottom: 8rem;
    }
    
    .lg\:px-4 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .text-large {
        font-size: 1.7rem;
        line-height: 1em;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .px-3 {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    .project-media-full {
        height: 300px;
    }
    
    .two-column-section {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
    
    .column-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .text-large {
        font-size: 1.2rem;
    }
    
    .two-column-section {
        padding: 1rem 0.5rem;
    }
}

/* ===== FLOATING MENU STYLES ===== */

/* Floating Menu Container */
.floating-menu {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    font-family: 'ABCMonumentGrotesk-Medium', sans-serif;
    font-weight: 500;
    width: 240px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

/* Collapsed State */
.menu-collapsed {
    display: flex;
    flex-direction: column;
    background-color: #e8e8e8;
    border-radius: 8px;
    padding: 0;
    transition: all 0.2s ease;
    width: 100%;
    position: relative;
    z-index: 1002; /* Above expanded content */
    overflow: hidden;
}

.menu-collapsed:hover {
    /* Removed hover effects */
}

/* Top row with brand and menu button - Omnipresent Header */
.collapsed-top-row {
    display: flex;
    align-items: center;
    background-color: #e8e8e8;
    padding: 0;
    height: 28px;
    position: relative;
    z-index: 1001;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.brand-text {
    font-size: 16px; /* Increased from 14px to 16px */
    font-weight: 500; /* Back to 500 from 700 */
    color: #111;
    white-space: nowrap;
    padding: 0 8px;
    background-color: white;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center; /* Center the text */
    flex: 1;
    width: 50%;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover effect to change "Xach" to "Home" */
.brand-text:hover {
    text-indent: -9999px;
    overflow: hidden;
}

.brand-text:hover::after {
    content: "Home";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #111;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    text-indent: 0;
}

.menu-toggle {
    background-color: #ccff00;
    border: none;
    padding: 0 8px;
    border-radius: 0;
    font-size: 16px; /* Increased from 14px to 16px */
    font-weight: 500; /* Back to 500 from 700 */
    color: #111;
    cursor: pointer;
    transition: none;
    font-family: inherit;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 50%;
}

.menu-toggle:hover {
    background-color: #ccff00;
}

.menu-toggle:active {
    background-color: #ccff00;
}

/* Bottom section with current page */
.collapsed-bottom {
    padding: 4px 8px;
    background-color: #f0f0f0;
    height: 20px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1003; /* Above everything else */
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    overflow: hidden; /* Hide text that goes outside container */
}

.current-page {
    font-size: 16px; /* Increased from 14px to 16px */
    font-weight: 500; /* Back to 500 from 700 */
    color: #666;
    white-space: nowrap;
    display: block;
    animation: pingPong 3s ease-in-out infinite;
    transform-origin: left center;
}

/* Ping-pong animation for current page text */
@keyframes pingPong {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(20px);
    }
    50% {
        transform: translateX(40px);
    }
    75% {
        transform: translateX(20px);
    }
    100% {
        transform: translateX(0);
    }
}

/* Expanded State */
.menu-expanded {
    display: none;
    background-color: transparent;
    border-radius: 8px;
    padding: 0;
    width: 100%;
    overflow: hidden;
}

/* Expanded content that slides out like a drawer */
.expanded-content {
    animation: drawerOut 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: top;
    background-color: #e8e8e8;
}

@keyframes drawerOut {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.expanded-header {
    display: flex;
    align-items: center;
    background-color: #e8e8e8;
    padding: 0;
    height: 28px;
    position: relative;
    z-index: 1001;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.expanded-header .brand-text {
    background-color: white;
    flex: 1;
    width: 50%;
    font-size: 16px; /* Increased from 14px to 16px */
    font-weight: 500; /* Back to 500 from 700 */
    padding: 0 8px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center; /* Center the text */
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover effect for expanded header brand text */
.expanded-header .brand-text:hover {
    text-indent: -9999px;
    overflow: hidden;
}

.expanded-header .brand-text:hover::after {
    content: "Home";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #111;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    text-indent: 0;
}

.menu-close {
    background-color: #ccff00;
    border: none;
    padding: 0 8px;
    border-radius: 0;
    font-size: 16px; /* Increased from 14px to 16px */
    font-weight: 500; /* Back to 500 from 700 */
    color: #111;
    cursor: pointer;
    transition: none;
    font-family: inherit;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 50%;
}

.menu-close:hover {
    background-color: #ccff00;
}

.menu-close:active {
    background-color: #ccff00;
}

/* Bio Section */
.bio-section {
    background-color: #f0f0f0;
    padding: 12px 16px;
}

.bio-text {
    font-size: 16px; /* Increased from 14px to 16px */
    font-weight: 500; /* Back to 500 from 700 */
    color: #333;
    line-height: 1.3;
    font-family: 'ABCMonumentGrotesk-Medium', sans-serif;
}

/* Contact Section */
.contact-section {
    background-color: #f0f0f0;
    padding: 0 8px 8px 8px;
    display: flex;
    gap: 0;
}

.contact-item {
    flex: 1;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px; /* Increased from 14px to 16px */
    font-weight: 500; /* Back to 500 from 700 */
    color: #111;
    text-decoration: none;
    font-family: 'ABCMonumentGrotesk-Medium', sans-serif;
    transition: opacity 0.3s ease;
    padding: 0 8px;
}

.contact-item:first-child {
    background-color: white;
}

.contact-item:last-child {
    background-color: white;
}

.contact-item:hover {
    opacity: 0.5;
}

/* Work Section */
.work-section {
    background-color: #f0f0f0;
    padding: 0;
}

.work-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.work-item {
    display: flex;
    align-items: stretch;
    transition: all 0.1s ease;
    height: 40px;
}

.work-item:nth-child(odd) {
    background-color: white;
}

.work-item:nth-child(even) {
    background-color: #f0f0f0;
}

.work-item:hover {
    animation: strobe 0.25s infinite; /* 2x faster: 0.5s → 0.25s */
}

.work-item.active {
    background-color: #ccff00; /* Same lime green as menu button */
}

.work-item.active:nth-child(odd),
.work-item.active:nth-child(even) {
    background-color: #ccff00; /* Override alternating colors when active */
}

@keyframes strobe {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.work-thumbnail {
    width: 40px;
    height: 100%;
    background-color: #666;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px; /* Increased from 14px to 16px */
    color: white;
    font-weight: 500; /* Back to 500 from 700 */
    overflow: hidden;
}

.work-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    font-family: 'ABCMonumentGrotesk-Medium', sans-serif;
}

.work-link {
    display: block;
    color: #111;
    text-decoration: none;
    font-size: 16px; /* Increased from 14px to 16px */
    font-weight: 500; /* Back to 500 from 700 */
    font-family: 'ABCMonumentGrotesk-Medium', sans-serif;
    flex: 1;
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
}

.work-link:hover {
    color: #111;
}

/* Mobile Responsive for Menu */
@media (max-width: 768px) {
    .floating-menu {
        top: 16px;
        right: 16px;
        width: 260px; /* Match expanded width */
    }
    
    .menu-expanded {
        width: 260px;
    }
    
    /* Smaller ping-pong animation for mobile */
    .current-page {
        animation: pingPongMobile 3s ease-in-out infinite;
    }
    
    @keyframes pingPongMobile {
        0% {
            transform: translateX(0);
        }
        25% {
            transform: translateX(10px);
        }
        50% {
            transform: translateX(20px);
        }
        75% {
            transform: translateX(10px);
        }
        100% {
            transform: translateX(0);
        }
    }
}

@media (max-width: 480px) {
    .floating-menu {
        top: 12px;
        right: 12px;
    }
    
    .menu-expanded {
        width: 240px;
    }
}

@media (max-width: 300px) {
    .floating-menu {
        top: 12px;
        right: auto;
        left: 12px;
        width: calc(100vw - 24px); /* Full width minus left/right padding */
        max-width: 240px; /* Don't exceed original width */
    }
    
    .menu-expanded {
        width: 100%;
    }
    
    .brand-text {
        justify-content: center; /* Center the text */
    }
    
    .expanded-header .brand-text {
        justify-content: center; /* Center in expanded state too */
    }
}

/* Custom Media Layout */
.custom-media-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Center frame - 4:5 aspect ratio */
.center-frame {
    width: 400px;
    height: 500px; /* 4:5 ratio */
    background-color: #f0f0f0;
    border-radius: 8px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Side frames - 9:16 aspect ratio (vertical) */
.side-frame {
    width: 180px;
    height: 320px; /* 9:16 ratio */
    background-color: #f0f0f0;
    border-radius: 8px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .custom-media-layout {
        gap: 1rem;
    }
    
    .center-frame {
        width: 320px;
        height: 400px;
    }
    
    .side-frame {
        width: 144px;
        height: 256px;
    }
}

@media (max-width: 768px) {
    .custom-media-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .center-frame {
        width: 280px;
        height: 350px;
    }
    
    .side-frame {
        width: 180px;
        height: 320px;
    }
}

@media (max-width: 480px) {
    .center-frame {
        width: 240px;
        height: 300px;
    }
    
    .side-frame {
        width: 144px;
        height: 256px;
    }
}

/* Scroll Animation Effects - Removed opacity to ensure text visibility */
.scroll-animate {
    transform: translateY(20px);
    transition: transform 0.6s ease;
}

.scroll-animate.animate-in {
    transform: translateY(0);
}

/* Theme Controller */
.theme-controller {
    background-color: #ccc;
    border: 1px solid #bbb;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    height: 40px; /* Increased from 10px to 40px (+30px) */
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Theme controller container (empty) */

.theme-toggle-switch {
    cursor: pointer;
    user-select: none;
}

.toggle-track {
    width: 50px;
    height: 24px;
    background-color: #ddd;
    border-radius: 12px;
    position: relative;
    transition: background-color 0.3s ease;
    border: 1px solid #bbb;
}

.toggle-thumb {
    width: 18px;
    height: 18px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #999;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-thumb svg {
    width: 12px;
    height: 12px;
    fill: #666;
    transition: opacity 0.3s ease;
}

.sun-icon {
    opacity: 1;
}

.moon-icon {
    opacity: 0;
    position: absolute;
}

/* Dark mode state */
.theme-toggle-switch.dark .toggle-track {
    background-color: #555;
}

.theme-toggle-switch.dark .toggle-thumb {
    transform: translateX(28px);
    background-color: #333;
    border-color: #666;
}

.theme-toggle-switch.dark .sun-icon {
    opacity: 0;
}

.theme-toggle-switch.dark .moon-icon {
    opacity: 1;
}

/* Hover effect */
.theme-toggle-switch:hover .toggle-thumb {
    animation: strobe 0.25s infinite;
}

/* Active/pressed state */
.theme-toggle-switch:active .toggle-thumb {
    transform: scale(0.95);
}

.theme-toggle-switch.dark:active .toggle-thumb {
    transform: translateX(28px) scale(0.95);
}

/* Gatorade 3-Column Layout - Dynamic & Natural */
.gatorade-simple-section {
    padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 60px);
    max-width: 1400px;
    margin: 0 auto;
}

.gatorade-simple-grid {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(250px, 1.2fr) minmax(200px, 1fr);
    gap: clamp(24px, 4vw, 50px);
    align-items: center;
    justify-items: center;
}

.shedeur-natural {
    width: 100%;
    height: auto;
    max-width: clamp(200px, 25vw, 350px);
    border-radius: 12px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.shedeur-natural:hover {
    transform: scale(1.02);
}

.cleat-natural {
    width: 100%;
    height: auto;
    max-width: clamp(250px, 30vw, 450px);
    border-radius: 12px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.cleat-natural:hover {
    transform: scale(1.02);
}

.mache-natural {
    width: 100%;
    height: auto;
    max-width: clamp(200px, 25vw, 350px);
    border-radius: 12px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.mache-natural:hover {
    transform: scale(1.02);
}

/* Large Desktop */
@media (min-width: 1200px) {
    .gatorade-simple-grid {
        gap: clamp(40px, 5vw, 60px);
    }
    
    .shedeur-natural {
        max-width: clamp(280px, 28vw, 400px);
    }
    
    .cleat-natural {
        max-width: clamp(350px, 35vw, 500px);
    }
    
    .mache-natural {
        max-width: clamp(280px, 28vw, 400px);
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .gatorade-simple-grid {
        grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr) minmax(180px, 1fr);
        gap: clamp(20px, 3.5vw, 40px);
    }
    
    .shedeur-natural {
        max-width: clamp(180px, 22vw, 300px);
        border-radius: 10px;
    }
    
    .cleat-natural {
        max-width: clamp(220px, 27vw, 380px);
        border-radius: 10px;
    }
    
    .mache-natural {
        max-width: clamp(180px, 22vw, 300px);
        border-radius: 10px;
    }
}

/* Mobile Responsive - Hide left image, center becomes 2-column */
@media (max-width: 768px) {
    .gatorade-left-image {
        display: none;
    }
    
    .gatorade-simple-grid {
        grid-template-columns: 1fr 1fr;
        gap: clamp(16px, 4vw, 32px);
    }
    
    .cleat-natural {
        max-width: clamp(200px, 40vw, 300px);
        border-radius: 8px;
    }
    
    .mache-natural {
        max-width: clamp(200px, 40vw, 300px);
        border-radius: 8px;
    }
}

/* Small Mobile - Stack vertically */
@media (max-width: 480px) {
    .gatorade-simple-grid {
        grid-template-columns: 1fr;
        gap: clamp(12px, 3vw, 24px);
    }
    
    .cleat-natural,
    .mache-natural {
        max-width: clamp(250px, 80vw, 350px);
        border-radius: 8px;
    }
}

/* Coca-Cola Awards Grid */
.coca-cola-awards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.award-item {
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.award-name {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.award-level {
    font-size: 16px;
    margin-bottom: 4px;
    color: #666;
}

.award-category {
    font-size: 14px;
    font-style: italic;
    color: #888;
}

/* Mobile responsive for awards grid */
@media (max-width: 768px) {
    .coca-cola-awards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .coca-cola-awards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .award-item {
        padding: 15px;
    }
    
    .award-name {
        font-size: 16px;
    }
    
    .award-level {
        font-size: 14px;
    }
    
    .award-category {
        font-size: 12px;
    }
}

/* Grid View Styles - Removed (replaced with theme controller) */



/* More Projects Menu */
.more-projects-menu {
    position: relative;
    margin: 40px auto 20px;
    z-index: 1000;
    font-family: 'ABCMonumentGrotesk-Medium', sans-serif;
    font-weight: 500;
    width: 350px;
    transition: all 0.3s ease;
    height: auto;
}

/* Collapsed State */
.more-projects-collapsed {
    background-color: #e8e8e8;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0;
    display: flex;
    justify-content: center;
    width: 240px; /* Same width as expanded state */
    margin: 0 auto;
}

.more-projects-toggle {
    background-color: #ccff00; /* Lime green */
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #111;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    font-family: 'ABCMonumentGrotesk-Medium', sans-serif;
}

.more-projects-toggle:hover {
    background-color: #ccff00; /* Stay lime green */
    animation: strobe 0.25s infinite; /* Add strobe effect on hover */
}

/* Expanded State */
.more-projects-expanded {
    display: none;
    background-color: #e8e8e8;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0;
    height: auto;
    width: 240px; /* Wider to fit square GIFs */
    margin: 0 auto;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    flex-direction: column;
}

.more-projects-expanded.show {
    display: flex;
}

/* Expanded content that slides up like a drawer */
.more-projects-content {
    animation: drawerUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: bottom;
    flex: 1;
    overflow-y: visible;
}

@keyframes drawerUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.more-projects-close {
    background-color: #ccff00; /* Lime green */
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #111;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    font-family: 'ABCMonumentGrotesk-Medium', sans-serif;
}

.more-projects-close:hover {
    background-color: #ccff00; /* Stay lime green */
    animation: strobe 0.25s infinite; /* Add strobe effect on hover */
}

.more-projects-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}

.more-projects-item {
    display: flex;
    align-items: center;
    padding: 0;
    text-decoration: none;
    color: #111;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #e0e0e0;
}

.more-projects-item:hover {
    background-color: #ccff00; /* Lime green active state */
    animation: strobe 0.25s infinite; /* Add strobe effect on hover */
}

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

.more-projects-thumbnail {
    width: 32px;
    height: 32px;
    background-color: #666;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    font-weight: 500;
    overflow: hidden;
    margin-right: 6px;
}

.more-projects-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Round the top-left corner of the first thumbnail (Home) to match menu */
.more-projects-item:first-child .more-projects-thumbnail {
    border-top-left-radius: 8px;
}

.more-projects-link {
    font-size: 14px;
    font-weight: 500;
    color: #111;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .more-projects-menu {
        width: 300px;
        margin: 30px auto 16px;
    }
    
    .more-projects-collapsed {
        width: 150px; /* Half the width of expanded state */
    }
    
    .more-projects-expanded {
        width: 200px; /* Wider for mobile square GIFs */
        left: 50%;
        transform: translateX(-50%);
    }
    
    .more-projects-item {
        padding: 0;
    }
    
    .more-projects-thumbnail {
        width: 28px;
        height: 28px;
        font-size: 11px;
        margin-right: 6px;
        overflow: hidden;
    }
    
    .more-projects-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .more-projects-link {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .more-projects-menu {
        width: 280px;
        margin: 24px auto 12px;
    }
    
    .more-projects-collapsed {
        width: 140px; /* Half the width of expanded state */
    }
    
    .more-projects-expanded {
        width: 180px; /* Wider for small mobile square GIFs */
        left: 50%;
        transform: translateX(-50%);
    }
    
    .more-projects-toggle,
    .more-projects-close {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Animated Word Highlighting */
.highlight-word {
    animation: wordGlow 5s ease-in-out infinite;
    animation-fill-mode: both;
}

.highlight-word.delay-1 {
    animation-delay: 0.5s;
}

.highlight-word.delay-2 {
    animation-delay: 1s;
}

.highlight-word.delay-3 {
    animation-delay: 1.5s;
}

.highlight-word.delay-4 {
    animation-delay: 2.0s;
}

.highlight-word.delay-5 {
    animation-delay: 2.5s;
}

.highlight-word.delay-6 {
    animation-delay: 3.0s;
}

.highlight-word.delay-7 {
    animation-delay: 3.5s;
}

.highlight-word.delay-8 {
    animation-delay: 4.0s;
}

.highlight-word.delay-9 {
    animation-delay: 4.5s;
}

@keyframes wordGlow {
    0%, 100% {
        color: #111; /* Normal black text */
    }
    50% {
        color: #ccff00; /* Neon yellow */
    }
}