@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&family=Inter:wght@300;400;500&family=Gabarito:wght@400;500;600;700;800&display=swap');

/* Theme Variables - Toggle between light and dark mode */
@import url('https://fonts.googleapis.com/css2?family=Gabarito:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500;600;700&display=swap');

/* Force Windows emojis (Segoe UI Emoji) */
/* * {
    font-family: inherit, "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", "Noto Color Emoji";
} */

:root {
    /* DARK MODE (current) */
    --bg-primary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-accent: #d0d0d0;
    --arrow-stroke: white;
    --arrow-text: white;
    --arrow-bg: rgba(0, 0, 0, 0.7);
    --nav-bg: rgba(255, 255, 255, 0.25);
    --nav-border: rgba(255, 255, 255, 0.5);
    --nav-text-primary: #ffffff;
    --nav-text-secondary: #e0e0e0;
    --timeline-line: rgba(255, 255, 255, 0.2);
    --timeline-dot-bg: rgba(255, 255, 255, 0.4);
    --timeline-dot-border: rgba(255, 255, 255, 0.7);
    --placeholder-bg: rgba(255, 255, 255, 0.1);
    --placeholder-border: rgba(255, 255, 255, 0.2);
    --placeholder-text: rgba(255, 255, 255, 0.9);
    --shadow-primary: rgba(0, 0, 0, 0.3);
    --shadow-secondary: rgba(0, 0, 0, 0.2);

    /* LIGHT MODE (uncomment to switch) */
    /*
    --bg-primary: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #2a2a2a;
    --text-accent: #404040;
    --arrow-stroke: #333333;
    --arrow-text: #1a1a1a;
    --arrow-bg: rgba(255, 255, 255, 0.9);
    --nav-bg: rgba(255, 255, 255, 0.9);
    --nav-border: rgba(0, 0, 0, 0.1);
    --nav-text-primary: #1a1a1a;
    --nav-text-secondary: #404040;
    --timeline-line: rgba(0, 0, 0, 0.1);
    --timeline-dot-bg: rgba(255, 255, 255, 0.8);
    --timeline-dot-border: rgba(0, 0, 0, 0.2);
    --placeholder-bg: rgba(0, 0, 0, 0.05);
    --placeholder-border: rgba(0, 0, 0, 0.1);
    --placeholder-text: #1a1a1a;
    --shadow-primary: rgba(0, 0, 0, 0.1);
    --shadow-secondary: rgba(0, 0, 0, 0.05);
    */
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-color: var(--bg-primary);
}

/* Hide scrollbars */
body::-webkit-scrollbar {
    display: none;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Loading overlay with blur */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    z-index: 9999;
    transition: opacity 0.8s ease, backdrop-filter 0.8s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    backdrop-filter: blur(0px);
    pointer-events: none;
}

/* Timeline Navigation - Clean Design */
.timeline-nav {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    opacity: 1;
}

.timeline-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 600px;
    height: 60px;
}

/* Main timeline track - compact */
.timeline-track {
    position: relative;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: -20px;
    right: -20px;
    height: 6px;
    background: var(--timeline-line);
    transform: translateY(-50%);
    border-radius: 3px;
    opacity: 0;
    animation: expandLine 1s ease-out 0.5s forwards;
}

.timeline-line::before,
.timeline-line::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--nav-text-primary);
    border: 2px solid var(--nav-text-primary);
    z-index: 10;
}

.timeline-line::before {
    left: -10px;
}

.timeline-line::after {
    right: -10px;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #c3e4ff, #6ec3f4, #eae2ff, #b9beff);
    border-radius: 3px;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 20px rgba(110, 195, 244, 0.4);
}

/* Timeline nodes - compact vertical layout */
.timeline-nodes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px; /* Space for larger endpoint dots */
}

.timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    animation: fadeInScale 0.6s ease-out forwards;
}

.timeline-node:nth-child(1) { animation-delay: 0.2s; }
.timeline-node:nth-child(2) { animation-delay: 0.3s; }
.timeline-node:nth-child(3) { animation-delay: 0.4s; }
.timeline-node:nth-child(4) { animation-delay: 0.5s; }
.timeline-node:nth-child(5) { animation-delay: 0.6s; }

.timeline-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    margin-bottom: 4px;
    transform: translateY(-15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0.7;
}

.timeline-icon img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.timeline-dot {
    display: none;
}

.timeline-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.4s ease;
}

.timeline-year {
    font-size: 0.7rem;
    color: var(--nav-text-secondary);
    font-weight: 500;
    opacity: 0.6;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: 'Inter', sans-serif;
    text-align: center;
    margin-top: 4px;
    line-height: 1;
}

/* Active states */
.timeline-node.active .timeline-icon {
    background: linear-gradient(135deg, #c3e4ff, #6ec3f4);
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 4px 15px rgba(110, 195, 244, 0.3);
}

.timeline-node.active .timeline-dot {
    background: linear-gradient(135deg, #c3e4ff, #6ec3f4);
    border-color: #6ec3f4;
    box-shadow: 0 0 20px rgba(110, 195, 244, 0.6), 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: scale(1.2);
}

.timeline-node.active .timeline-dot::after {
    background: white;
}

.timeline-node.active .timeline-year {
    color: var(--nav-text-primary);
    opacity: 1;
    font-weight: 600;
}

.timeline-node.completed .timeline-icon {
    background: #6ec3f4;
    opacity: 1;
    transform: scale(1.05);
}

.timeline-node.completed .timeline-dot {
    background: #6ec3f4;
    border-color: #c3e4ff;
    transform: scale(1.1);
}

.timeline-node.completed .timeline-dot::after {
    background: white;
}

.timeline-node.completed .timeline-year {
    color: var(--nav-text-primary);
    opacity: 0.9;
}

/* Hover effects */
.timeline-node:hover:not(.active) .timeline-icon {
    transform: scale(1.05);
    opacity: 0.9;
    background: rgba(255, 255, 255, 1);
}

.timeline-node:hover:not(.active) .timeline-dot {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(110, 195, 244, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.timeline-node:hover .timeline-year {
    opacity: 1;
    color: var(--nav-text-primary);
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px rgba(110, 195, 244, 0.6), 0 0 40px rgba(110, 195, 244, 0.3);
    }
    to {
        box-shadow: 0 0 30px rgba(110, 195, 244, 0.8), 0 0 60px rgba(110, 195, 244, 0.4);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandLine {
    from {
        opacity: 0;
        transform: translateY(-50%) scaleX(0);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scaleX(1);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .timeline-container {
        min-width: 500px;
    }

    .timeline-nav {
        padding: 1.25rem 2rem;
    }

    .timeline-label {
        font-size: 0.8rem;
    }

    .timeline-year {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .timeline-container {
        min-width: 320px;
    }

    .timeline-nav {
        padding: 0.5rem 1rem;
    }

    .timeline-dot {
        width: 10px;
        height: 10px;
    }
}

.top-nav {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 1rem 2rem;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    animation: navSlideIn 1s ease-out 0.4s forwards;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5rem;
}

.nav-brand {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
    animation: brandPulse 3s ease-in-out infinite;
}

.nav-links {
    display: flex;
    gap: 0;
}

.about-btn {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.about-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#gradient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Landing page - Medium Sky Blues (darker for better contrast) */
    --gradient-color-1: #4a8fc7;
    --gradient-color-2: #5b9fd8;
    --gradient-color-3: #3d7fa8;
    --gradient-color-4: #6aaed4;
}


.hero-section .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

@media (max-width: 440px) {
    .hide-on-mobile {
        display: none !important;
    }
    .haha-mobile {
        line-height: normal !important;
    }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section Layout */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3rem;
    max-width: 800px;
    /* margin: 0 auto 65px auto; */
    text-align: center;
}

.hero-text {
    margin-bottom: 20px;
}

.hero-photo-container {
    position: relative;
    transform: translateX(20px);
}

.hero-photo {
    width: 400px;
    height: auto;
    opacity: 0;
    transform: scale(0.8) translateY(30px) translateX(0px);
    transform-origin: bottom left;
    /* border: 8px solid var(--text-primary);
    border-radius: 12px;
    box-shadow: 0 8px 32px var(--shadow-primary); */
}

/* Hand-drawn Arrow - Left */
.hand-drawn-arrow {
    position: absolute;
    top: -10px;
    left: -80px;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

/* Hand-drawn Arrow - Right */
.hand-drawn-arrow-right {
    position: absolute;
    top: 40%;
    right: -10px;
    transform: translateY(30px);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

.hand-drawn-arrow-right svg {
    transform: scaleX(-1);
}

.arrow-label-right {
    position: absolute;
    top: -35px;
    left: -35px;
    transform: translateX(0%);
    font-family: 'Patrick Hand', cursive;
    font-size: 1.4rem;
    color: var(--arrow-text);
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
}

.draw-arrow {
    stroke-width: 5;
    stroke: var(--arrow-stroke);
    fill: none;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
}

.draw-arrow.tail-1 {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

.draw-arrow.tail-2 {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

.arrow-label {
    position: absolute;
    top: -45px;
    left: -50px;
    font-family: 'Patrick Hand', cursive;
    font-size: 1.6rem;
    color: var(--arrow-text);
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transform: rotate(-5deg);
}


.hero-text {
    text-align: center;
    max-width: 600px;
}


@media (max-width: 768px) {
    .hero-photo {
        width: 320px;
    }

    .hero-content {
        gap: 2rem;
    }

    .hand-drawn-arrow {
        top: 85px;
        left: -70px;
        transform: scale(0.8);
    }

    .arrow-label {
        font-size: 1.3rem;
    }

    .hero-section .container {
        padding-top: 1rem;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-photo {
        width: 280px;
    }

    .hand-drawn-arrow {
        top: 80px;
        left: -50px;
        transform: scale(0.7);
    }

    .arrow-label {
        font-size: 1.2rem;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    font-family: 'Gabarito', sans-serif;
}

.subtitle {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    letter-spacing: 0.01em;
    font-family: 'Inter', sans-serif;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out 0.5s forwards;
}

.scroll-indicator-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    justify-content: center;
}

.scroll-indicator-inline .arrow {
    font-size: 1.5rem;
    color: #FFEA00;
    animation: bounce 2s infinite;
    transition: all 0.3s ease;
}

.scroll-indicator-inline .text {
    font-size: 1rem;
    color: #FFEA00;
    font-family: 'Gabarito', sans-serif;
    font-weight: 400;
}

.scroll-indicator-inline:hover .arrow {
    color: #FFEA00;
    transform: scale(1.1);
}

.scroll-indicator-inline:hover .text {
    opacity: 0.8;
}

.container {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    font-family: 'Gabarito', sans-serif;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.5s ease-out 0.5s forwards;
}

.wave {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
    transform-origin: 70% 70%;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

@media (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }
}

.scroll-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-text .arrow {
    font-size: 1.5rem;
    color: var(--text-primary);
    animation: bounce 2s infinite;
    transition: all 0.3s ease;
}

.scroll-text .text {
    font-size: 1rem;
    color: var(--text-primary);
    font-family: 'Gabarito', sans-serif;
    font-weight: 400;
    opacity: 0.9;
}

.scroll-text:hover .arrow {
    color: var(--text-primary);
    transform: scale(1.1);
}

.scroll-text:hover .text {
    opacity: 1;
}

.carousel-section {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image {
    position: absolute;
    width: 8rem;
    height: 8rem;
    border-radius: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 3px solid rgba(0, 0, 0, 0.3);
    background-size: cover;
    background-position: center;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

@media (min-width: 768px) {
    .carousel-image {
        width: 14rem;
        height: 14rem;
        border-radius: 1.5rem;
        border-width: 4px;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 6px 15px rgba(0, 0, 0, 0.3);
    }
}

@media (min-width: 1024px) {
    .carousel-image {
        width: 16rem;
        height: 16rem;
    }
}

.carousel-image:nth-child(1) {
    animation: slideDownLeft 1.2s ease-out 1.5s forwards;
}

.carousel-image:nth-child(2) {
    animation: slideDownCenter 1.2s ease-out 1.7s forwards;
}

.carousel-image:nth-child(3) {
    animation: slideDownRight 1.2s ease-out 1.9s forwards;
}

/* Remove animation after initial load to allow carousel control */
.carousel-loaded .carousel-image {
    animation: none !important;
    opacity: 1 !important;
}

@media (max-width: 767px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        margin-bottom: 3rem;
    }

    .carousel-image {
        width: 6rem;
        height: 6rem;
        border-width: 1px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        margin-bottom: 2rem;
    }

    .hero-title {
        margin-bottom: 1rem;
    }

    .main-element {
        padding: 1rem;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }

    .subtitle {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .container {
        min-height: 100vh;
        justify-content: flex-start;
        padding-top: 2rem;
    }

    .hero {
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: clamp(2rem, 4vh, 3rem);
        margin-bottom: 1rem;
    }

    .subtitle {
        font-size: clamp(0.9rem, 2vh, 1.1rem);
    }

}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Section animations */
.section:not(.hero-section) {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.section.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.section:not(.hero-section) h2 {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s;
}

.section.animate-in h2 {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.section:not(.hero-section) p {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.7s cubic-bezier(0.25, 0.8, 0.25, 1) 0.5s;
}

.section.animate-in p {
    opacity: 1;
    transform: translateY(0);
}

/* Cooking carousel animation */
.cooking-carousel-container {
    opacity: 0;
    transform: scale(0.8) translateY(40px);
    transition: all 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s;
}

.section.animate-in .cooking-carousel-container {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Content placeholder animations */
.content-placeholder {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s;
}

.section.animate-in .content-placeholder {
    opacity: 1;
    transform: translateY(0);
}

.placeholder-box {
    opacity: 0;
    transform: translateY(30px) scale(0.9) rotateX(10deg);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.section.animate-in .placeholder-box {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
}

.section.animate-in .placeholder-box:nth-child(1) {
    transition-delay: 0.9s;
}

.section.animate-in .placeholder-box:nth-child(2) {
    transition-delay: 1.1s;
}

.section.animate-in .placeholder-box:nth-child(3) {
    transition-delay: 1.3s;
}

/* Foodie Section Animations */
.foodie-content {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s;
}

.section.animate-in .foodie-content {
    opacity: 1;
    transform: translateY(0);
}

.foodie-left {
    opacity: 0;
    transform: translateX(-30px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s;
}

.section.animate-in .foodie-left {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.foodie-text-section {
    opacity: 0;
    transform: translateX(-170px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s;
}

.section.animate-in .foodie-text-section {
    opacity: 1;
    transform: translateX(-200px);
}

@keyframes navSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes brandPulse {
    0%, 100% {
        opacity: 0.9;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}


@keyframes wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(14deg);
    }
    20% {
        transform: rotate(-8deg);
    }
    40% {
        transform: rotate(14deg);
    }
    50% {
        transform: rotate(-4deg);
    }
    60% {
        transform: rotate(10deg);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes slideDownLeft {
    0% {
        opacity: 0;
        transform: translateX(-300px) translateY(-100px) rotate(0deg) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(-150px) translateY(0) rotate(-8deg) scale(0.85);
        z-index: 1;
    }
}

@keyframes slideDownCenter {
    0% {
        opacity: 0;
        transform: translateX(0) translateY(-120px) rotate(0deg) scale(1);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0) rotate(0deg) scale(1);
        z-index: 10;
    }
}

@keyframes slideDownRight {
    0% {
        opacity: 0;
        transform: translateX(300px) translateY(-100px) rotate(0deg) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(150px) translateY(0) rotate(8deg) scale(0.85);
        z-index: 1;
    }
}

/* New Section Styles */
.content {
    position: relative;
    z-index: 1;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
}



.hero-section {
    min-height: 100vh;
}

.section:not(.hero-section) {
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

.section:not(.hero-section) .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-family: 'Gabarito', sans-serif;
}

.section p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 3rem;
    font-family: 'Gabarito', sans-serif;
}

/* Foodie Section - Figma-inspired layout */

/* Foodie Content Layout */
.foodie-content {
    display: grid;
    grid-template-columns: 750px 400px;
    gap: 5rem;
    align-items: center;
    margin-top: 0;
    transform: translateY(-5vh) translateX(-200px);
    justify-content: center;
}

/* Foodie Left Column */
.foodie-left {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Foodie Title (main heading) */
.foodie-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    font-family: 'Gabarito', sans-serif;
    text-align: left;
}

/* Foodie Image Container */
.foodie-image-container {
    width: 750px;
    height: 562px;
    background-color: transparent;
    border-radius: 16px;
    overflow: visible;
    flex-shrink: 0;
    transform: translateY(-40px);
}

.foodie-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Foodie Image Caption */
.foodie-image-caption {
    font-size: clamp(0.75rem, 1vw, 0.875rem);
    color: var(--text-secondary);
    opacity: 0.7;
    line-height: 1.4;
    margin: 0;
    margin-top: -0.75rem;
    margin-bottom: 6rem;
    font-family: 'Gabarito', sans-serif;
    font-style: italic;
    text-align: right;
    padding-right: 2rem;
}

/* Foodie Arrow */
.foodie-arrow {
    position: absolute;
    left: 530px;
    bottom: -160px;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

.foodie-arrow svg {
    transform: scale(1);
}

.foodie-arrow .draw-arrow {
    stroke-width: 4;
    stroke: var(--arrow-stroke);
    fill: none;
}

.foodie-arrow .draw-arrow:first-child {
    stroke-dasharray: 35;
    stroke-dashoffset: 35;
}

.foodie-arrow .draw-arrow.tail-1 {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
}

.foodie-arrow .draw-arrow.tail-2 {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
}

.foodie-arrow-label {
    position: absolute;
    top: -35px;
    right: 0px;
    font-family: 'Patrick Hand', cursive;
    font-size: 1.4rem;
    color: var(--arrow-text);
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transform: rotate(5deg);
}

/* Foodie Text Section */
.foodie-text-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
    max-width: 500px;
}

.foodie-subtitle {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    font-family: 'Gabarito', sans-serif;
    line-height: 1.4;
}

.foodie-description {
    font-size: clamp(0.875rem, 1.25vw, 0.9375rem);
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-family: 'Gabarito', sans-serif;
    max-width: 550px;
    text-align: justify;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .foodie-content {
        grid-template-columns: 450px 350px;
        gap: 3rem;
    }

    .foodie-image-container {
        width: 450px;
        height: 337px;
    }

    .foodie-text-section {
        max-width: 350px;
    }

    .foodie-arrow {
        left: 500px;
        bottom: -150px;
    }

    .foodie-arrow-label {
        top: -35px;
    }
}

@media (max-width: 1024px) {
    .foodie-content {
        grid-template-columns: 380px 320px;
        gap: 2.5rem;
        transform: translateY(-3vh);
    }

    .foodie-left {
        gap: 1.25rem;
    }

    .foodie-image-container {
        width: 380px;
        height: 285px;
    }

    .foodie-text-section {
        max-width: 320px;
    }

    .foodie-arrow {
        left: 470px;
        bottom: -140px;
    }

    .foodie-arrow-label {
        top: -35px;
    }
}

@media (max-width: 768px) {
    .foodie-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        align-items: start;
        transform: translateY(-2vh);
        justify-content: stretch;
    }

    .foodie-left {
        gap: 1rem;
    }

    .foodie-image-container {
        width: 100%;
        max-width: 550px;
        height: 412px;
        margin: 0;
    }

    .foodie-text-section {
        text-align: left;
        align-items: flex-start;
        max-width: 100%;
    }

    .foodie-title {
        text-align: left;
    }

    .foodie-arrow {
        left: 530px;
        bottom: -130px;
    }

    .foodie-arrow-label {
        top: -35px;
    }
}

@media (max-width: 480px) {
    .foodie-content {
        transform: translateY(-1vh);
    }

    .foodie-image-container {
        height: 340px;
    }

    .foodie-arrow {
        left: 470px;
        bottom: -120px;
    }

    .foodie-arrow-label {
        font-size: 1.1rem;
        top: -10px;
    }
}

/* BENTO SECTION - Tailwind Style */
.bento-section {
    padding: 6rem 0 8rem;
    position: relative;
}

.bento-wrapper {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.bento-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.bento-subtitle {
    font-size: 0.875rem;
    line-height: 1.75;
    font-weight: 600;
    color: #818cf8;
    margin-bottom: 0.5rem;
}

.bento-main-title {
    max-width: 42rem;
    margin: 0.5rem auto 0;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: #ffffff;
    font-family: 'Gabarito', sans-serif;
}

@media (min-width: 640px) {
    .bento-main-title {
        font-size: 3.5rem;
    }
}

/* Grid Layout */
.bento-grid {
    display: grid;
    gap: 1rem;
    margin-top: 2.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .bento-grid {
        margin-top: 4rem;
    }
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
}

/* Card Base */
.bento-card {
    position: relative;
    min-height: 300px;
}

/* Scale down right column bento boxes by 5% and align top */
#experience .lg\:grid-cols-2 > div:last-child {
    transform: scale(0.95);
    transform-origin: top center;
}

.bento-card-bg {
    position: absolute;
    inset: 1px;
    border-radius: 1rem;
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bento-card-content {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: calc(0.5rem + 1px);
}

.bento-card-outline {
    pointer-events: none;
    position: absolute;
    inset: 1px;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    outline: 1px solid rgba(255, 255, 255, 0.15);
}

/* Grid Placement */
@media (min-width: 1024px) {
    .bento-card-large-left {
        grid-row: span 2;
    }

    .bento-card-large-left .bento-card-bg {
        border-radius: 2rem 0 0 2rem;
    }

    .bento-card-large-left .bento-card-content {
        border-radius: calc(2rem + 1px) 0 0 calc(2rem + 1px);
    }

    .bento-card-large-left .bento-card-outline {
        border-radius: 2rem 0 0 2rem;
    }

    .bento-card-top-right {
        grid-column: 2;
        grid-row: 1;
    }

    .bento-card-top-right .bento-card-bg {
        border-radius: 2rem 2rem 0.5rem 0.5rem;
    }

    .bento-card-top-right .bento-card-content {
        border-radius: calc(2rem + 1px) calc(2rem + 1px) calc(0.5rem + 1px) calc(0.5rem + 1px);
    }

    .bento-card-top-right .bento-card-outline {
        border-radius: 2rem 2rem 0.5rem 0.5rem;
    }

    .bento-card-middle-right {
        grid-column: 2;
        grid-row: 2;
    }

    .bento-card-large-right {
        grid-column: 3;
        grid-row: span 2;
    }

    .bento-card-large-right .bento-card-bg {
        border-radius: 0 2rem 2rem 0;
    }

    .bento-card-large-right .bento-card-content {
        border-radius: 0 calc(2rem + 1px) calc(2rem + 1px) 0;
    }

    .bento-card-large-right .bento-card-outline {
        border-radius: 0 2rem 2rem 0;
    }
}

@media (max-width: 1023px) {
    .bento-card-top-right {
        order: -1;
    }

    .bento-card-top-right .bento-card-bg {
        border-radius: 2rem 2rem 0.5rem 0.5rem;
    }

    .bento-card-top-right .bento-card-content {
        border-radius: calc(2rem + 1px) calc(2rem + 1px) calc(0.5rem + 1px) calc(0.5rem + 1px);
    }

    .bento-card-top-right .bento-card-outline {
        border-radius: 2rem 2rem 0.5rem 0.5rem;
    }

    .bento-card-large-right .bento-card-bg {
        border-radius: 0.5rem 0.5rem 2rem 2rem;
    }

    .bento-card-large-right .bento-card-content {
        border-radius: calc(0.5rem + 1px) calc(0.5rem + 1px) calc(2rem + 1px) calc(2rem + 1px);
    }

    .bento-card-large-right .bento-card-outline {
        border-radius: 0.5rem 0.5rem 2rem 2rem;
    }
}

/* Card Header */
.bento-card-header {
    padding: 2rem 2rem 0.75rem;
}

@media (min-width: 640px) {
    .bento-card-header {
        padding: 2.5rem 2.5rem 0;
    }
}

.bento-card-title {
    margin-top: 0.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    color: #ffffff;
    font-family: 'Gabarito', sans-serif;
}

.bento-card-description {
    margin-top: 0.5rem;
    max-width: 32rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #9ca3af;
}

/* Large Visual Container for spanning cards */
.bento-large-visual {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: auto;
    padding-top: 1.5rem;
}

/* Stats Grid */
.bento-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-box {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Gabarito', sans-serif;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.3;
}

/* Icon Display */
.bento-icon-display {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.tech-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    opacity: 0.9;
}

.tech-icon-large {
    width: 120px;
    height: 120px;
    object-fit: contain;
    opacity: 0.9;
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.1));
}

/* Image Containers */
.bento-card-image-container {
    position: relative;
    display: flex;
    flex: 1;
    width: 100%;
}

.bento-centered {
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0 3rem;
}

@media (min-width: 1024px) {
    .bento-centered {
        padding-bottom: 0.5rem;
    }
}

/* Phone Mockup */
.bento-phone-mockup {
    min-height: 30rem;
    width: 100%;
    flex-grow: 1;
}

.phone-frame {
    position: absolute;
    inset: 2.5rem 2.5rem 0;
    overflow: hidden;
    border-radius: 3rem;
    border: 0.75rem solid #374151;
    background: #111827;
    outline: 1px solid rgba(255, 255, 255, 0.2);
}

.phone-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* Performance Chart */
.performance-chart {
    width: 100%;
    max-width: 24rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-value {
    font-size: 2.5rem;
    font-weight: 600;
    color: #818cf8;
}

.chart-unit {
    font-size: 1.5rem;
    margin-left: 0.25rem;
}

.chart-change {
    font-size: 1.125rem;
    color: #22c55e;
}

.chart-bars {
    display: flex;
    gap: 0.25rem;
    align-items: flex-end;
    height: 8rem;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, #6366f1, #818cf8);
    border-radius: 0.25rem;
    min-height: 20%;
}

/* Security Icons */
.security-icons {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.security-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    position: relative;
}

.security-icon-main {
    width: 6rem;
    height: 6rem;
    background: rgba(99, 102, 241, 0.3);
    font-size: 2.5rem;
}

.security-icon-main::after {
    content: '✓';
    position: absolute;
    bottom: -0.25rem;
    right: -0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    background: #818cf8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: white;
}

/* Tech Stack List */
.tech-stack-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.tech-icon-small {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tech-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tech-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Gabarito', sans-serif;
}

.tech-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* VS Code Editor */
.vscode-editor {
    margin-top: auto;
    background: rgba(30, 30, 30, 0.8);
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'IBM Plex Mono', monospace;
}

.vscode-tabs {
    display: flex;
    background: rgba(37, 37, 38, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow-x: auto;
}

.vscode-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.vscode-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
}

.vscode-tab-active {
    background: rgba(30, 30, 30, 0.8);
    color: #ffffff;
    border-bottom: 2px solid #007acc;
}

.tab-icon {
    font-size: 0.875rem;
}

.tab-name {
    font-size: 0.75rem;
}

.tab-close {
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.vscode-tab:hover .tab-close {
    opacity: 0.6;
}

.tab-close:hover {
    opacity: 1 !important;
}

.vscode-code {
    padding: 0.75rem 0;
    font-size: 0.7rem;
    line-height: 1.5;
    overflow-x: auto;
}

.code-line {
    display: flex;
    padding: 0 0.75rem;
}

.code-line:hover {
    background: rgba(255, 255, 255, 0.03);
}

.line-number {
    display: inline-block;
    width: 2rem;
    text-align: right;
    margin-right: 1rem;
    color: rgba(255, 255, 255, 0.3);
    user-select: none;
}

.code-keyword {
    color: #c586c0;
}

.code-variable {
    color: #9cdcfe;
}

.code-function {
    color: #dcdcaa;
}

.code-string {
    color: #ce9178;
}

.code-indent {
    white-space: pre;
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-card-large,
    .bento-card-top,
    .bento-card-middle,
    .bento-card-right {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-card-bg,
    .bento-card-content,
    .bento-card-outline {
        border-radius: 0.5rem !important;
    }
}

@media (max-width: 768px) {
    .bento-section {
        padding: 4rem 0 6rem;
    }

    .bento-main-title {
        font-size: 2rem;
    }

    .bento-card-header {
        padding: 1.5rem;
    }

    .phone-frame {
        border-width: 0.5rem;
    }
}

.timeline-experience {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-vertical {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    z-index: 1;
}

.vertical-line {
    position: absolute;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(255, 140, 66, 0.3) 0%,
        rgba(255, 140, 66, 0.5) 50%,
        rgba(255, 140, 66, 0.3) 100%);
    border-radius: 3px;
}


.timeline-dot-orange,
.timeline-dot-dark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 5px solid #FF8C42;
    z-index: 2;
    position: relative;
    margin: 3rem 0;
}

.timeline-dot-orange {
    background: #FF8C42;
    box-shadow: 0 0 20px rgba(255, 140, 66, 0.5);
}

.timeline-dot-dark {
    background: var(--text-primary);
    border-color: #4a8fc7;
    box-shadow: 0 0 20px rgba(74, 143, 199, 0.5);
}

.experience-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
    align-items: center;
}

.experience-item:last-child {
    margin-bottom: 0;
}

.experience-left {
    text-align: right;
    padding-right: 3rem;
    transform: translateY(60px);
}

.experience-right {
    text-align: left;
    padding-left: 3rem;
    transform: translateY(30px);
}

.company-name {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: 'Gabarito', sans-serif;
}

.date-range {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    color: var(--text-secondary);
    opacity: 0.7;
    font-family: 'Gabarito', sans-serif;
}

.role-title {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-family: 'Gabarito', sans-serif;
}

.role-description {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: var(--text-secondary);
    line-height: 1.6;
    opacity: 0.8;
    font-family: 'Gabarito', sans-serif;
}

@media (max-width: 768px) {
    .experience-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 4rem;
    }

    .experience-left,
    .experience-right {
        text-align: left;
        padding: 0;
    }

    .timeline-vertical {
        left: 1rem;
    }
}

.content-placeholder {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.placeholder-box {
    background: var(--placeholder-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--placeholder-border);
    border-radius: 1rem;
    padding: 2rem;
    min-width: 200px;
    color: var(--placeholder-text);
    font-weight: 500;
    transition: all 0.3s ease;
}

.placeholder-box:hover {
    background: var(--placeholder-bg);
    opacity: 0.8;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-primary);
}

/* Cooking Section */
.cooking-section {
    padding-top: 4rem;
    transform: translateY(60px);
}

.cooking-header {
    text-align: center;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Move section down on laptop+ to avoid timeline overlap */
@media (min-width: 768px) {
    .cooking-header {
        padding-top: 3rem;
    }
}

.cooking-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-family: 'Gabarito', sans-serif;
    line-height: 1.2;
}

.cooking-bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 850px !important;
    margin: 0 auto;
}

.cooking-bio-mobile {
    display: none; /* Hidden by default, shown on mobile and smaller than 2XL */
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 100%;
    margin: 0 auto 0rem !important;
    padding: 0 1rem;
}

/* Show shorter bio for screens smaller than 2XL desktop (< 1536px) */
@media (max-width: 1535px) {
    .cooking-bio {
        display: none;
    }

    .cooking-bio-mobile {
        display: block;
        font-size: 0.9rem; /* Slightly larger for laptop */
        padding: 0;
        max-width: 850px;
    }
}

/* Tablet Portrait (768px - 1023px): Much smaller everything */
@media (min-width: 768px) and (max-width: 1023px) {
    .cooking-title {
        font-size: 1.5rem; /* Much smaller title */
    }

    .cooking-bio-mobile {
        font-size: 0.7rem; /* Much smaller paragraph */
        max-width: 700px;
    }

    .cooking-card {
        min-width: 180px; /* Much smaller cards */
        height: 240px;
    }

    .dish-name {
        font-size: 0.8rem; /* Much smaller dish name */
    }

    .dish-description {
        font-size: 0.5rem; /* Much smaller description */
    }
}

/* iPad Pro Landscape (1180px - 1366px): Smaller everything */
@media (min-width: 1180px) and (max-width: 1366px) and (orientation: landscape) {
    .cooking-title {
        font-size: 1.6rem;
    }

    .cooking-bio-mobile {
        font-size: 0.7rem;
        max-width: 700px;
    }

    .cooking-card {
        min-width: 200px;
        height: 260px;
    }

    .dish-name {
        font-size: 0.85rem;
    }

    .dish-description {
        font-size: 0.5rem;
    }
}

/* MacBook Air (1367px - 1535px): Hide Technologies Used and add spacing */
@media (min-width: 1367px) and (max-width: 1535px) {
    /* Hide Technologies Used bento on MacBook Air */
    .hide-on-macbook {
        display: none !important;
    }

    /* Add spacing to move section down */
    #experience {
        padding-top: 8rem !important;
    }

    /* Reduce left padding on MacBook Air */
    #experience .mx-auto {
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }

    .haha-hide {
        display: none !important;
    }

    /* Hide webtoon description */
    #webtoon-description {
        display: none !important;
    }

    /* Make webtoon name smaller */
    #webtoon-name {
        font-size: 1.1rem !important;
    }

    /* Reduce webtoon card sizes */
    .webtoons-card {
        width: 13rem !important;
        height: 13rem !important;
    }

    /* Move webtoons section down */
    .webtoons-header {
        transform: translateY(2px) !important;
    }

    .webtoons-carousel-container {
        transform: translateY(2px) !important;
    }

    .webtoon-details {
        transform: translateY(2px) !important;
    }

}

/* Above MacBook Air to Desktop FHD (1536px - 1920px): Move webtoons down */
@media (min-width: 1536px) and (max-width: 1920px) {
    .webtoons-header {
        transform: translateY(3rem) !important;
    }

    .webtoons-carousel-container {
        transform: translateY(7rem)!important;
    }

    .webtoon-details {
        transform: translateY(7rem)!important;
    }
}

/* Laptop (1024px - 1279px): Smaller everything */
@media (min-width: 1024px) and (max-width: 1279px) {
    .cooking-title {
        font-size: 1.8rem; /* Smaller title */
    }

    .cooking-bio-mobile {
        font-size: 0.75rem; /* Smaller paragraph */
        max-width: 750px;
    }

    .cooking-card {
        min-width: 220px; /* Smaller cards */
        height: 290px;
    }

    .dish-name {
        font-size: 0.9rem; /* Smaller dish name */
    }

    .dish-description {
        font-size: 0.55rem; /* Smaller description */
    }
}

/* Favorite Webtoons Grid Styles */
.webtoon-favorite-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.webtoon-favorite-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.webtoon-favorite-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.webtoon-favorite-content {
    padding: 1.5rem;
    background: rgba(10, 10, 10, 0.95);
}

.webtoon-favorite-title {
    font-family: 'Gabarito', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.webtoon-favorite-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Webtoons Section Styles - Copied from Cooking */
.webtoons-header {
    text-align: center;
    margin-bottom: 3rem;
    transform: translateY(-2rem);
}

.webtoons-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 2.5rem;
    font-family: 'Gabarito', sans-serif;
    line-height: 1.2;
}

.webtoons-bio {
    font-size: clamp(1.125rem, 1.75vw, 1.375rem);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 800px !important;
    margin: 0 auto 1rem !important;
    text-align: center;
    font-family: 'Gabarito', sans-serif;
}

/* Default: show desktop text, hide mobile text */
.webtoons-bio-mobile {
    display: none;
}

.webtoons-bio-desktop {
    display: block;
}

.webtoons-carousel-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0rem;
    max-width: 1000px;
    margin: 4rem auto 0rem;
}

.webtoons-carousel {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    min-width: 400px;
}

.webtoons-card {
    position: absolute;
    width: 16rem;
    height: 16rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    overflow: hidden;
    border: 4px solid white;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Only apply hover to center card - will be controlled by JS */
.webtoons-card.center-card:hover {
    transform: translateY(-20px) scale(1.08) !important;
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.3), 0 0 30px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.9);
    z-index: 100 !important;
}

.webtoon-details {
    text-align: center;
    margin-top: 1.1rem;
    /* font-size: 1.5rem !important; */
    padding: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.webtoon-name {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    font-family: 'Gabarito', sans-serif;
    line-height: 1.3;
}

.webtoon-description {
    font-size: 1.15rem !important;
    color: var(--text-secondary);
    /* color: #D3D3D3 !important; */
    line-height: 1.4;
    margin: 0 0 0.1rem 0;
    font-family: 'Gabarito', sans-serif;
    max-width: 800px !important;
    font-weight: 600 !important;
}

/* Cooking Carousel */
.cooking-carousel-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    max-width: 1000px;
    margin: 1rem auto 0rem;
}

.carousel-controls {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-arrow {
    border-radius: 50%;
    height: 2.5rem;
    width: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-color: rgba(243, 244, 246, 0.8);
    border: 1px solid rgba(229, 231, 235, 0.8);
    cursor: pointer;
    transition: all 0.2s;
    color: rgb(55, 65, 81);
    backdrop-filter: blur(10px);
}

.carousel-arrow:hover {
    background-color: rgba(229, 231, 235, 0.9);
    transform: scale(1.1);
}

.carousel-arrow:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.5);
}

.carousel-arrow svg {
    width: 1.25rem;
    height: 1.25rem;
}

@media (max-width: 768px) {
    .carousel-controls {
        gap: 0.5rem;
        margin-top: 1.5rem;
    }

    .carousel-arrow {
        height: 2rem;
        width: 2rem;
    }

    .carousel-arrow svg {
        width: 1rem;
        height: 1rem;
    }
}

.cooking-carousel {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    min-width: 400px;
}

.cooking-card {
    position: absolute;
    width: 16rem;
    height: 16rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    overflow: hidden;
    border: 4px solid white;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Only apply hover to center card - will be controlled by JS */
.cooking-card.center-card:hover {
    transform: translateY(-20px) scale(1.08) !important;
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.3), 0 0 30px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.9);
    z-index: 100 !important;
}

.cooking-card[data-recipe="oyakodon"] {
    background-position: 60% center;
    background-size: 135%;
}

.cooking-card[data-recipe="pasta"] {
    background-position: 5% center;
}

.cooking-card[data-recipe="galbi-tang"] {
    background-position: 20% center;
    background-size: 135%;
}

.cooking-card[data-recipe="grilled-cheese"] {
    background-position: 20% center;
    /* background-size: 135%; */
}

.cooking-card[data-recipe="nasi"] {
    background-position: 60% center;
    /* background-size: 135%; */
}


.cooking-card[data-recipe="udon"] {
    background-position: 60% center;
    /* background-size: 135%; */
}

/* Recipe/Webtoon Modal - Beautiful Redesign */
.recipe-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.recipe-modal-overlay.active {
    opacity: 1;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
}

.recipe-modal {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(18, 18, 36, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    max-width: 1000px;
    width: 92%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.85) translateY(50px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    box-shadow:
        0 50px 100px -20px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(129, 140, 248, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.recipe-modal-overlay.active .recipe-modal {
    transform: scale(1) translateY(0);
}

.recipe-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 300;
}

.recipe-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.recipe-modal-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    padding: 3rem;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.recipe-modal-content::-webkit-scrollbar {
    display: none;
}

.recipe-modal-image {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.recipe-modal-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.recipe-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.recipe-modal:hover .recipe-modal-image img {
    transform: scale(1.05);
}

.recipe-modal-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 0.5rem;
}

.recipe-modal-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Gabarito', sans-serif;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.recipe-modal-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: -0.5rem;
}

.recipe-modal-rating .star {
    font-size: 1.5rem;
    transition: all 0.2s ease;
}

.recipe-modal-rating .star-full {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.recipe-modal-rating .star-half {
    background: linear-gradient(90deg, #fbbf24 50%, rgba(255, 255, 255, 0.2) 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.recipe-modal-rating .star-empty {
    color: rgba(255, 255, 255, 0.2);
}

.recipe-modal-rating .rating-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Gabarito', sans-serif;
    font-weight: 600;
}

.recipe-modal-description {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-family: 'Gabarito', sans-serif;
    margin: 0;
    padding-bottom: 1rem;
}

.recipe-scrollable {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.recipe-scrollable::-webkit-scrollbar {
    display: none;
}

.recipe-section {
    margin-top: 1.5rem;
}

.recipe-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Gabarito', sans-serif;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(129, 140, 248, 0.3);
}

.recipe-list {
    list-style-position: outside;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Gabarito', sans-serif;
    font-size: 0.95rem;
    line-height: 1.8;
    padding-left: 1.5rem;
    margin: 0;
}

/* Explicitly set list style types */
.recipe-list {
    list-style-type: disc; /* Default for ul */
}

.recipe-list.recipe-steps {
    list-style-type: decimal; /* Numbers for ol */
}

.recipe-list li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
    display: list-item; /* Ensure list item display */
}

.recipe-list li::marker {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.recipe-steps li {
    margin-bottom: 1rem;
}

.recipe-modal-placeholder {
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.08) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Gabarito', sans-serif;
    font-style: italic;
    font-size: 1.05rem;
    margin-top: auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Mentorium Testimonial Hover Effect */
.mentorium-testimonial:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 30px 80px rgba(255, 255, 255, 0.3), 0 0 60px rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

@media (max-width: 768px) {
    .recipe-modal-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .recipe-modal-image {
        height: 300px;
    }
}


@media (max-width: 1024px) {
    .cooking-card {
        width: 14rem;
        height: 14rem;
    }
    .cooking-carousel {
        min-height: 180px;
        min-width: 340px;
    }
}

/* Dish Details Section */
.dish-details {
    text-align: center;
    margin-top: 0.75rem;
    padding: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.dish-name {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    font-family: 'Gabarito', sans-serif;
    line-height: 1.3;
}

.dish-description {
    font-size: 0.65rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0 0 0.1rem 0;
    font-family: 'Gabarito', sans-serif;
    opacity: 0.7;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.dish-cta {
    font-size: 0.7rem;
    color: var(--text-accent);
    font-style: italic;
    margin: 0;
    margin-top: 0.1rem;
    opacity: 0.7;
    font-family: 'Gabarito', sans-serif;
}

@media (max-width: 768px) {
    .cooking-card {
        width: 8rem;
        height: 8rem;
        border-width: 2px;
        border-radius: 1rem;
    }
    .cooking-carousel {
        min-height: 120px;
        min-width: 280px;
    }
    .cooking-carousel-container {
        padding: 1rem;
    }
    .carousel-controls {
        gap: 0.5rem;
    }

    .cooking-header {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .cooking-bio {
        display: none; /* Hide full bio on mobile */
    }

    .cooking-bio-mobile {
        display: block; /* Show shorter bio on mobile */
        max-width: 90%; /* Wider paragraph on mobile */
        font-size: 0.875rem;
        padding: 0; /* Remove padding */
        margin: 0 auto; /* Remove bottom margin, keep centering */
    }

    .cooking-header {
        margin-bottom: 1rem; /* Reduce space below header */
    }

    .cooking-title {
        font-size: 2rem; /* Smaller title on mobile */
        margin-bottom: 1rem; /* Reduce space below title */
    }

    .cooking-carousel-container {
        margin-top: 0.5rem; /* Bring carousel closer to paragraph */
        margin-bottom: 0.5rem; /* Reduce space below carousel */
        padding: 1rem 1rem 0.5rem; /* Less vertical padding */
    }

    .dish-name {
        font-size: 0.9rem; /* Smaller dish name on mobile */
    }

    .dish-description {
        font-size: 0.55rem; /* Smaller description on mobile */
        line-height: 1.3;
    }

    .dish-details {
        margin-top: 0.5rem; /* Bring dish details closer to carousel */
        padding: 0.25rem;
    }
}

/* Two-Column Layout Animations & Effects */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(129, 140, 248, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(129, 140, 248, 0.5);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Remove all hover effects */
#experience .relative {
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.06);
}

.stat-card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Chart Bar Animations */
.chart-bar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: grow-up 1s ease-out backwards;
}

.chart-bar:hover {
    opacity: 0.8;
    transform: scaleY(1.05);
}

@keyframes grow-up {
    from {
        transform: scaleY(0);
        transform-origin: bottom;
    }
    to {
        transform: scaleY(1);
        transform-origin: bottom;
    }
}

.chart-bar:nth-child(1) { animation-delay: 0.05s; }
.chart-bar:nth-child(2) { animation-delay: 0.1s; }
.chart-bar:nth-child(3) { animation-delay: 0.15s; }
.chart-bar:nth-child(4) { animation-delay: 0.2s; }
.chart-bar:nth-child(5) { animation-delay: 0.25s; }
.chart-bar:nth-child(6) { animation-delay: 0.3s; }
.chart-bar:nth-child(7) { animation-delay: 0.35s; }
.chart-bar:nth-child(8) { animation-delay: 0.4s; }
.chart-bar:nth-child(9) { animation-delay: 0.45s; }
.chart-bar:nth-child(10) { animation-delay: 0.5s; }
.chart-bar:nth-child(11) { animation-delay: 0.55s; }
.chart-bar:nth-child(12) { animation-delay: 0.6s; }
.chart-bar:nth-child(13) { animation-delay: 0.65s; }
.chart-bar:nth-child(14) { animation-delay: 0.7s; }
.chart-bar:nth-child(15) { animation-delay: 0.75s; }
.chart-bar:nth-child(16) { animation-delay: 0.8s; }

/* Technology Carousel */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.tech-carousel-container {
    position: relative;
    width: 100%;
}

.tech-carousel {
    animation: scroll-left 20s linear infinite;
    width: max-content;
}

.tech-carousel:hover {
    animation-play-state: paused;
}

.tech-icon {
    flex-shrink: 0;
}

/* GraphQL Logo */
.graphql-logo {
    transition: all 0.3s ease;
}

.graphql-logo:hover {
    transform: rotate(10deg) scale(1.1);
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.3));
}

/* Code Editor Glow */
.code-editor {
    transition: all 0.3s ease;
}

.bento-card:hover .code-editor {
    box-shadow: 0 0 40px rgba(129, 140, 248, 0.2);
}

/* Tab Hover Effect */
.code-tab {
    transition: all 0.2s ease;
}

.code-tab:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #818cf8 !important;
}

/* Enhanced Experience Section */
#experience {
    position: relative;
    overflow: hidden;
}

/* Mesh Gradient Enhancement */
#experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(129, 140, 248, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(165, 180, 252, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: mesh-shift 20s ease-in-out infinite;
}

@keyframes mesh-shift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(20px, -20px) scale(1.05);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* Ensure content is above mesh gradient */
#experience > * {
    position: relative;
    z-index: 1;
}

/* Physical Highlighter Effect */
.highlighter-text {
    display: inline;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 65%, rgb(79, 70, 229) 65%);
    box-shadow: inset 0 -0.5em 0 rgb(99, 102, 241);
    color: #ffffff;
}

/* Timeline Animations */
.timeline-line-animated {
    height: 0%;
    animation: drawLine 1s ease-out forwards;
}

@keyframes drawLine {
    from {
        height: 0%;
    }
    to {
        height: 100%;
    }
}

/* Timeline Dot Pulse */
.timeline-dot-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.9);
    }
}


/* Enhanced Fade In */
.timeline-item-animate {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.timeline-item-animate.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ==================== ProdigyAI Section Styles ==================== */

/* Neo Card Styles */
.neo-card {
    background: transparent;
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 1rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.15),
                0 0 60px rgba(34, 197, 94, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.neo-card.prodigy-chat-preview:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.3),
                0 0 80px rgba(34, 197, 94, 0.2),
                0 0 120px rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.4);
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.floating {
    animation: float 8s ease-in-out infinite;
}

/* Chat Container Styles */
.chat-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.75rem;
    overflow: hidden;
}

.chat-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.chat-indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.chat-body {
    padding: 1.5rem;
    height: 24rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.chat-body::-webkit-scrollbar {
    display: none;
}

/* Prevent page scroll when hovering over chat container */
.chat-container {
    overscroll-behavior: contain;
}

.chat-message {
    display: flex;
    align-items: flex-start;
    max-width: 100%;
}

.chat-message.user {
    margin-left: auto;
    flex-direction: row-reverse;
    max-width: 100%;
}

.chat-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.75rem;
    flex-shrink: 0;
}

.chat-avatar.ai {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.chat-avatar.user {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.chat-bubble {
    padding: 0.5rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    color: #e5e7eb;
    font-family: 'Gabarito', sans-serif;
    line-height: 1.4;
}

.chat-bubble p {
    margin: 0;
    padding: 0;
}

.chat-bubble.ai {
    background: rgba(8, 26, 17, 0.6);
    border-left: 2px solid #22c55e;
    border-top-left-radius: 0;
}

.chat-bubble.user {
    background: rgba(30, 58, 138, 0.3);
    border-right: 2px solid #3b82f6;
    border-top-right-radius: 0;
    text-align: right;
}

.chat-bubble * {
    font-family: 'Gabarito', sans-serif !important;
    color: #e5e7eb !important;
}

.chat-input {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    display: flex;
    align-items: center;
}

.chat-input button {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: black;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input button:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Statistics Counter Styles */
.stat-container {
    text-align: center;
    position: relative;
}

.stat-icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.25rem;
    position: relative;
}

.stat-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.1);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.stat-icon-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #22c55e;
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Gabarito', sans-serif;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    line-height: 1;
}

.stat-counter {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    margin-left: 0.25rem;
    color: #ffffff;
}

.stat-label {
    font-size: 1rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Animation Classes */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.animate-blink {
    animation: blink 1s infinite;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out forwards;
}

.focus-element {
    position: relative;
}

@keyframes pulse-scale {
    0%, 100% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1); opacity: 0.7; }
}

.favicon-spinner {
    width: 24px;
    height: 24px;
    background-image: url('/images/prodigy.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: pulse-scale 1.2s ease-in-out infinite;
}

/* CTA Button Hover Effect */
.prodigy-cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
}

/* Glow effects */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    z-index: 0;
}

.glow-green {
    background: radial-gradient(circle, rgba(34, 197, 94, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
}

.glow-blue {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
}

.glow-purple {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Grid background */
.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(34, 197, 94, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 197, 94, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.15;
    z-index: 0;
}

/* Tailwind utility classes */
.bg-red-500 {
    background-color: #ef4444;
}

.bg-yellow-500 {
    background-color: #eab308;
}

.bg-green-500 {
    background-color: #22c55e;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Tag */
.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    margin-bottom: 1.5rem;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Section Backgrounds */
.section-bg-1 {
    background: radial-gradient(ellipse at 30% 40%, rgba(5, 46, 22, 0.4) 0%, transparent 70%);
}

/* Section Transitions */
.section-transition {
    position: absolute;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 10;
    pointer-events: none;
}

.transition-top {
    top: 0;
    background: linear-gradient(to bottom, #000000, transparent);
}

.transition-bottom {
    bottom: 0;
    background: linear-gradient(to top, #000000, transparent);
}

/* Orbit backgrounds */
.orbit-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(34, 197, 94, 0.05);
    border-radius: 50%;
}

@keyframes orbit-rotation {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes reverse-rotation {
    0% { transform: translate(-50%, -50%) rotate(360deg); }
    100% { transform: translate(-50%, -50%) rotate(0deg); }
}

.orbit-rotate {
    animation: orbit-rotation 60s linear infinite;
}

.orbit-reverse {
    animation: reverse-rotation 45s linear infinite;
}

/* Responsive Adjustments for Prodigy Section */
/* ==================== Global Responsive Image & SVG Styles ==================== */

/* Ensure all images scale properly and maintain aspect ratio */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* SVG scaling */
svg {
    max-width: 100%;
    height: auto;
}

/* Preserve alignment for centered images */
.mx-auto img,
.text-center img {
    margin-left: auto;
    margin-right: auto;
}

/* ==================== Responsive Breakpoints ==================== */

/* Desktop XL - 1536px and above (2xl) */
@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}

/* Desktop - 1280px to 1535px (xl) */
@media (max-width: 1535px) {
    .container {
        max-width: 1280px;
    }

    /* Scale down large text slightly */
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }
}

/* Laptop - 1024px to 1279px (lg) */
@media (max-width: 1279px) {
    .container {
        max-width: 1024px;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Scale down icons */
    .tech-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .timeline-icon {
        width: 3rem;
        height: 3rem;
    }
}

/* Tablet - 768px to 1023px (md) */
@media (max-width: 1023px) {
    .container {
        max-width: 768px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    /* Stack grid layouts */
    .grid {
        grid-template-columns: 1fr !important;
    }

    /* Adjust bento grid */
    .bento-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    /* Scale down timeline */
    .timeline-track {
        padding-left: 2rem;
    }

    .timeline-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Mobile - 640px to 767px (sm) */
@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

    .container {
        max-width: 640px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* ProdigyAI responsive */
    #prodigy > div > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .prodigy-stats {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .chat-body {
        height: 20rem;
    }

    .stat-value {
        font-size: 2.5rem !important;
    }

    /* Timeline adjustments */
    .timeline-track {
        padding-left: 1.5rem;
    }

    .timeline-node {
        padding-left: 3rem;
    }

    .timeline-icon {
        width: 2rem;
        height: 2rem;
        left: 0;
    }

    /* Tech icons */
    .tech-icon {
        width: 2rem;
        height: 2rem;
    }

    .tech-icon img,
    .tech-icon svg {
        width: 100%;
        height: 100%;
    }

    /* Button sizing */
    button,
    .neo-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    /* Navigation */
    .timeline-nav {
        padding: 1rem;
    }

    /* Reduce spacing */
    .section {
        padding: 3rem 0;
    }
}

/* Mobile Small - 480px to 639px */
@media (max-width: 639px) {
    body {
        font-size: 13px;
    }

    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.125rem;
    }

    /* Further reduce spacing */
    .section {
        padding: 2rem 0;
    }

    /* Stack everything */
    .flex {
        flex-direction: column !important;
    }

    /* Scale down chat preview */
    .chat-container {
        font-size: 0.75rem;
    }

    .chat-bubble {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    /* Smaller icons */
    .timeline-icon {
        width: 1.5rem;
        height: 1.5rem;
    }

    .tech-icon {
        width: 1.75rem;
        height: 1.75rem;
    }
}

/* Mobile Extra Small - 320px to 479px */
@media (max-width: 479px) {
    body {
        font-size: 12px;
    }

    h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.125rem;
    }

    h3 {
        font-size: 1rem;
    }

    /* Minimal padding */
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .section {
        padding: 1.5rem 0;
    }

    /* Compact buttons */
    button,
    .neo-button {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    /* Hide decorative elements on very small screens */
    .glow,
    .orbit-bg,
    .grid-bg {
        display: none;
    }

    /* Simplify chat */
    .chat-body {
        height: 15rem;
    }

    .chat-header {
        padding: 0.75rem;
        font-size: 0.75rem;
    }
}

/* Custom viewport for wide + short screens (1440x765) */
@media (min-width: 1400px) and (max-width: 1480px) and (max-height: 800px) {
    /* Hide dish description for compact vertical space */
    .dish-description {
        display: none;
    }

    /* Make dish name smaller */
    .dish-name {
        font-size: 1.2rem !important;
        margin-bottom: 0.25rem !important;
    }

    /* Reduce cooking card sizes */
    .cooking-card {
        width: 13rem !important;
        height: 13rem !important;
    }

    /* Adjust cooking section paragraph */
    .cooking-section p {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.5rem !important;
    }

    /* Make cooking section more compact */
    .cooking-section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    /* Adjust carousel container height */
    .cooking-carousel-container {
        min-height: 300px !important;
    }

    /* Hide the last paragraph in Replit ethical hacking section */
    #experience .space-y-4 p:last-child {
        display: none !important;
    }

    /* Reduce height of right side bento boxes */
    #experience .lg\:grid-cols-2 > div:last-child > div {
        min-height: 160px !important;
    }

    /* Adjust stats grid card padding */
    #experience .stat-card {
        padding: 0.75rem !important;
    }

    /* Reduce tech carousel container height */
    #experience .tech-carousel-container {
        min-height: 140px !important;
    }

    /* Move up Replit Ask section and reduce font sizes by 15% */
    section[data-advance-timeline="false"] {
        padding-top: 8rem !important;
        padding-bottom: 0rem !important;
        transform: scale(0.95);
        transform-origin: top center;
    }

    section[data-advance-timeline="false"] h2 {
        font-size: 261.25% !important; /* 275 * 0.95 */
    }

    section[data-advance-timeline="false"] p {
        font-size: 114% !important; /* 120 * 0.95 */
    }

    section[data-advance-timeline="false"] h3 {
        font-size: 133% !important; /* 140 * 0.95 */
    }

    section[data-advance-timeline="false"] .timeline-item {
        font-size: 85.5% !important; /* 90 * 0.95 */
    }

    /* Reduce ProdigyAI chat height */
    #prodigy .chat-container {
        max-height: 400px !important;
    }

    #prodigy .chat-body {
        height: 250px !important;
        max-height: 250px !important;
    }

    #prodigy .chat-message {
        font-size: 90% !important;
    }

    /* Hide webtoon description */
    #webtoon-description {
        display: none !important;
    }

    /* Make webtoon name smaller */
    #webtoon-name {
        font-size: 1.1rem !important;
    }

    /* Reduce webtoon card sizes */
    .webtoons-card {
        width: 13rem !important;
        height: 13rem !important;
    }

    /* Move webtoons section down */
    .webtoons-header {
        transform: translateY(2px) !important;
    }

    .webtoons-carousel-container {
        transform: translateY(2px) !important;
    }

    .webtoon-details {
        transform: translateY(2px) !important;
    }
}

/* AMCForum Stats Animation - numbers will count up via JS */
#amcforum .text-center > div:first-child {
    min-width: 200px;
    display: inline-block;
}

/* Desktop and above: Center content between navbar and bottom for all sections */
@media (min-width: 769px) {
    .section {
        padding-top: 5rem;
    }

    .hero-section .container {
        justify-content: center;
        padding-top: 0;
    }
}

