/* ============================================================
   Norrapat Portfolio — Green Nature / Maori-Inspired Theme
   Fresh, modern, premium feel with botanical elegance
   ============================================================ */

/* ==================== RESET & VARIABLES ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Color Palette */
    --green-main: #2D6A4F;
    --green-light: #52B788;
    --green-lighter: #74C69D;
    --green-brightest: #D8F3DC;

    /* Background Colors */
    --bg-primary: #F7FAF7;
    --bg-secondary: #EFF6EE;
    --bg-tertiary: #E2EFDF;
    --white: #FFFFFF;

    /* Earth Tones */
    --earth-brown: #8B6914;
    --earth-terracotta: #C77B4A;
    --earth-cream: #FDF6EC;

    /* Text Colors */
    --text-primary: #1B2E1B;
    --text-secondary: #3D5A3D;
    --text-muted: #7A957A;

    /* Accents */
    --accent-cyan: #06B6D4;
    --accent-emerald: #10B981;
    --accent-orange: #D4920A;
    --accent-teal: #0D9488;

    /* Shadows (green-tinted) */
    --shadow-sm: 0 1px 2px rgba(45, 106, 79, 0.06);
    --shadow-md: 0 4px 12px rgba(45, 106, 79, 0.1);
    --shadow-lg: 0 10px 25px rgba(45, 106, 79, 0.14);
    --shadow-xl: 0 20px 40px rgba(45, 106, 79, 0.18);

    /* Gradients */
    --grad-green: linear-gradient(135deg, #2D6A4F, #52B788, #74C69D);
    --grad-green-soft: linear-gradient(135deg, #EFF6EE, #D8F3DC);
    --grad-green-subtle: linear-gradient(180deg, #F7FAF7, #EFF6EE);
    --grad-button: linear-gradient(135deg, #2D6A4F, #52B788);
    --grad-button-hover: linear-gradient(135deg, #1F4C37, #3A8562);

    /* Font Families */
    --font-inter: 'Inter', sans-serif;
    --font-space: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== GLOBAL STYLES ==================== */
html {
    scroll-behavior: smooth;
}

body {
    background: var(--grad-green-subtle);
    color: var(--text-primary);
    font-family: var(--font-inter);
    line-height: 1.6;
    font-size: 16px;
    letter-spacing: -0.3px;
    overflow-x: hidden;
    position: relative;
}

/* Circuit-Board Background Pattern (global) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../Pics/Background_White.png');
    background-repeat: repeat;
    background-size: 800px auto;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(82, 183, 136, 0.03) 25%,
        rgba(116, 198, 157, 0.06) 50%,
        rgba(82, 183, 136, 0.03) 75%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
    animation: body-shimmer 12s ease-in-out infinite;
}

@keyframes body-shimmer {
    0% { left: -50%; opacity: 0; }
    15% { opacity: 1; }
    50% { left: 100%; opacity: 1; }
    65% { opacity: 0; }
    100% { left: 100%; opacity: 0; }
}

body > * {
    position: relative;
    z-index: 1;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-fast);
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==================== PARTICLES (FIREFLY EFFECT) ==================== */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--green-light);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green-light), 0 0 16px rgba(82, 183, 136, 0.4);
    animation: firefly-pulse 3s ease-in-out infinite;
}

@keyframes firefly-pulse {
    0%, 100% {
        opacity: 0.3;
        box-shadow: 0 0 8px var(--green-light), 0 0 16px rgba(82, 183, 136, 0.2);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 12px var(--green-light), 0 0 24px rgba(82, 183, 136, 0.6);
    }
}

/* ==================== NAVIGATION BAR ==================== */
.navbar {
    background: rgba(247, 250, 247, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(82, 183, 136, 0.1);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-space);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-mark {
    width: 40px;
    height: 40px;
    background: var(--grad-green);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.logo-text {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-main);
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 0;
    position: relative;
    background: var(--grad-green-subtle);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M100,20 Q140,60 120,100 Q140,140 100,160 Q60,140 80,100 Q60,60 100,20' stroke='%2352B788' stroke-width='0.8' fill='none' opacity='0.08'/%3E%3Cpath d='M50,80 Q70,70 90,80 Q85,95 65,100' stroke='%2374C69D' stroke-width='0.5' fill='none' opacity='0.06'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    z-index: 2;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-fullname {
    font-family: var(--font-space);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-greeting {
    font-family: var(--font-space);
    font-size: 1.125rem;
    color: var(--green-main);
    font-weight: 600;
}

.hero-name {
    background: var(--grad-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.hero-title {
    font-family: var(--font-space);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    font-family: var(--font-inter);
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--grad-button);
    color: white;
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3);
}

.btn-primary:hover {
    background: var(--grad-button-hover);
    box-shadow: 0 8px 25px rgba(45, 106, 79, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--green-main);
    border: 2px solid var(--green-main);
}

.btn-secondary:hover {
    background: var(--green-brightest);
    border-color: var(--green-light);
}

.hero-meta {
    display: flex;
    gap: 3rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.meta-value {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 600;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-avatar {
    width: 300px;
    height: 300px;
    border-radius: 60% 40% 50% 45% / 45% 55% 40% 60%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(45, 106, 79, 0.25), 0 0 40px rgba(82, 183, 136, 0.15);
    animation: morph-border 6s ease-in-out infinite;
    border: 3px solid var(--green-lighter);
    position: relative;
}

.hero-avatar::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: radial-gradient(circle at 30% 30%, rgba(82, 183, 136, 0.1), transparent);
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

/* Hi-tech orbiting ring around avatar */
.hero-visual {
    position: relative;
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 350px;
    height: 350px;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(82, 183, 136, 0.35);
    border-radius: 50%;
    animation: orbit-spin 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.hero-visual::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 380px;
    height: 380px;
    transform: translate(-50%, -50%);
    border: 1px solid transparent;
    border-top: 2px solid rgba(82, 183, 136, 0.4);
    border-right: 2px solid rgba(82, 183, 136, 0.2);
    border-radius: 50%;
    animation: orbit-spin 15s linear infinite reverse;
    pointer-events: none;
    z-index: 0;
}

@keyframes orbit-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Additional orbiting rings */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.orbit-ring-1 {
    width: 400px;
    height: 400px;
    transform: translate(-50%, -50%);
    border: 1px solid transparent;
    border-left: 2px solid rgba(82, 183, 136, 0.25);
    border-bottom: 1.5px solid rgba(82, 183, 136, 0.15);
    animation: orbit-spin 25s linear infinite;
}

.orbit-ring-2 {
    width: 440px;
    height: 440px;
    transform: translate(-50%, -50%);
    border: 1px dotted rgba(116, 198, 157, 0.18);
    animation: orbit-spin 32s linear infinite reverse;
}

.orbit-ring-3 {
    width: 480px;
    height: 480px;
    transform: translate(-50%, -50%);
    border: 1px solid transparent;
    border-top: 1.5px solid rgba(82, 183, 136, 0.15);
    border-right: 1px dashed rgba(116, 198, 157, 0.12);
    animation: orbit-spin 40s linear infinite;
}

@keyframes morph-border {
    0%, 100% {
        border-radius: 60% 40% 50% 45% / 45% 55% 40% 60%;
    }
    25% {
        border-radius: 40% 60% 45% 50% / 55% 45% 60% 40%;
    }
    50% {
        border-radius: 45% 50% 60% 40% / 40% 60% 45% 50%;
    }
    75% {
        border-radius: 50% 45% 40% 60% / 60% 40% 55% 45%;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

.scroll-indicator span {
    font-size: 0.875rem;
    color: var(--text-secondary);
    animation: pulse 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid var(--green-main);
    border-bottom: 2px solid var(--green-main);
    transform: rotate(-45deg);
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes scroll-bounce {
    0%, 100% {
        transform: rotate(-45deg) translateY(0);
        opacity: 0.5;
    }
    50% {
        transform: rotate(-45deg) translateY(8px);
        opacity: 1;
    }
}

/* ==================== SECTION TITLES ==================== */
.section-title {
    font-family: var(--font-space);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 0;
    height: 4px;
    background: var(--grad-green);
    border-radius: 2px;
    width: 0;
    transition: width var(--transition-slow);
}

.section-title.visible::after {
    width: 60px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ==================== AT A GLANCE / BENTO GRID ==================== */
.at-glance {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.bento-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--green-light);
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--grad-green);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--green-main);
}

.bento-item:hover::before {
    opacity: 1;
}

.bento-item.brick-reveal {
    transform: translateY(40px);
    opacity: 0;
    transition: all var(--transition-smooth);
}

.bento-item.brick-reveal.visible {
    transform: translateY(0);
    opacity: 1;
}

.bento-item.brick-reveal.visible {
    background: linear-gradient(135deg, white 0%, var(--bg-secondary) 100%);
}

.bento-item:nth-child(1).brick-reveal.visible {
    transition-delay: 0.1s;
}

.bento-item:nth-child(2).brick-reveal.visible {
    transition-delay: 0.2s;
}

.bento-item:nth-child(3).brick-reveal.visible {
    transition-delay: 0.3s;
}

.bento-item:nth-child(4).brick-reveal.visible {
    transition-delay: 0.4s;
}

.bento-item:nth-child(5).brick-reveal.visible {
    transition-delay: 0.5s;
}

.bento-item:nth-child(6).brick-reveal.visible {
    transition-delay: 0.6s;
}

.bento-large {
    grid-column: span 1;
}

.bento-tall {
    grid-row: span 2;
}

.bento-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.bento-item h3 {
    font-family: var(--font-space);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.bento-stat {
    font-size: 1.5rem;
    color: var(--green-main);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.bento-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.lifestyle-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lifestyle-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.lifestyle-list span {
    font-size: 1.25rem;
}

/* ==================== CIRCUIT-BOARD BOTANICAL BACKGROUND ==================== */
.botanical-bg {
    position: relative;
    background: white;
    overflow: hidden;
}

.botanical-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../Pics/Background_White.png');
    background-repeat: repeat;
    background-size: 600px auto;
    background-position: center;
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

/* Shimmer flash effect */
.botanical-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(82, 183, 136, 0.04) 25%,
        rgba(116, 198, 157, 0.08) 50%,
        rgba(82, 183, 136, 0.04) 75%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
    animation: shimmer-sweep 8s ease-in-out infinite;
}

@keyframes shimmer-sweep {
    0% { left: -50%; opacity: 0; }
    10% { opacity: 1; }
    50% { left: 100%; opacity: 1; }
    60% { opacity: 0; }
    100% { left: 100%; opacity: 0; }
}

.botanical-bg > * {
    position: relative;
    z-index: 1;
}

/* Nature-meets-circuit pattern for Life Beyond Code section */
.life-philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../Pics/Background_White.png');
    background-repeat: repeat;
    background-size: 500px auto;
    background-position: 50px 30px;
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
}

.life-philosophy > * {
    position: relative;
    z-index: 1;
}

/* ==================== ABOUT SECTION ==================== */
.about {
    padding: 6rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.philosophy-box {
    background: var(--grad-green-soft);
    border-radius: 12px;
    padding: 2.5rem;
    border: 2px solid var(--green-lighter);
}

.philosophy-title {
    font-family: var(--font-space);
    font-size: 1.5rem;
    color: var(--green-main);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.philosophy-quotes {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quote {
    background: white;
    border-left: 4px solid var(--green-main);
    padding: 1.25rem;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.quote:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.quote-text {
    font-size: 1rem;
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.6;
}

.quote-source {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* ==================== SKILLS SECTION ==================== */
.skills {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.skill-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.skill-tab {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--green-lighter);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.skill-tab:hover {
    border-color: var(--green-light);
}

.skill-tab.active {
    background: var(--grad-green);
    color: white;
    border-color: var(--green-main);
}

/* Skill Spotlight Carousel */
.skill-spotlight-wrap {
    display: flex;
    justify-content: center;
    align-items: stretch;
    min-height: 320px;
    margin-bottom: 2rem;
}

#skillSpotlight {
    display: flex;
    gap: 2.5rem;
    align-items: stretch;
    width: 100%;
    max-width: 800px;
}

.skill-spotlight-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 180px;
}

.skill-spotlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: white;
    border: 2px solid transparent;
    font-size: 0.9rem;
}

.skill-spotlight-item:hover {
    background: var(--green-brightest);
    border-color: var(--green-lighter);
}

.skill-spotlight-item.active {
    background: var(--green-brightest);
    border-color: var(--green-main);
    box-shadow: var(--shadow-sm);
    animation: skill-pop 0.3s ease;
}

@keyframes skill-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.skill-item-icon {
    font-size: 1.25rem;
}

.skill-item-name {
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-space);
}

.skill-spotlight-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--green-lighter);
    text-align: center;
    min-height: 280px;
    animation: spotlight-fade 0.3s ease;
}

@keyframes spotlight-fade {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.spotlight-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: spotlight-bounce 0.4s ease;
}

@keyframes spotlight-bounce {
    0% { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.spotlight-name {
    font-family: var(--font-space);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.spotlight-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 300px;
}

/* ==================== EXPERIENCE / TIMELINE ==================== */
.experience {
    padding: 6rem 0;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--green-light), var(--green-lighter), transparent);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    align-items: start;
    margin-bottom: 4rem;
    position: relative;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

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

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

.timeline-marker {
    grid-column: 2;
    justify-self: center;
    align-self: start;
    margin-top: 1.5rem;
    width: 18px;
    height: 18px;
    background: var(--grad-green);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--green-light);
    position: relative;
    z-index: 2;
}

/* Left layout: content left, image right */
.timeline-left .timeline-content {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
    padding-right: 2rem;
}

.timeline-left .timeline-image {
    grid-column: 3;
    grid-row: 1;
    padding-left: 2rem;
}

/* Right layout: image left, content right */
.timeline-right .timeline-image {
    grid-column: 1;
    grid-row: 1;
    padding-right: 2rem;
    text-align: right;
}

.timeline-right .timeline-content {
    grid-column: 3;
    grid-row: 1;
    padding-left: 2rem;
}

.timeline-image {
    align-self: center;
}

.timeline-image img {
    width: 100%;
    max-width: 280px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.timeline-image img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.timeline-img-placeholder {
    width: 100%;
    max-width: 280px;
    height: 140px;
    background: var(--grad-green-soft);
    border: 2px solid var(--green-lighter);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 2.5rem;
    color: var(--green-main);
    box-shadow: var(--shadow-sm);
}

.timeline-img-placeholder span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.timeline-right .timeline-image {
    display: flex;
    justify-content: flex-end;
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--green-main);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.timeline-header {
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-family: var(--font-space);
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
}

.timeline-company {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.timeline-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 0.75rem;
}

.career-tag {
    display: inline-block;
    background: var(--green-brightest);
    color: var(--green-main);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-top: 0.75rem;
}

.fruit .career-tag {
    display: none;
}

/* ==================== PROJECTS SECTION ==================== */
.projects {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.project-featured {
    grid-column: span 1;
    border: 2px solid var(--green-light);
}

.project-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--green-brightest), var(--bg-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--bg-secondary);
}

.project-title {
    font-family: var(--font-space);
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 1.5rem;
    flex-grow: 1;
}

.project-stats {
    padding: 0 1.5rem;
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.stat-value {
    font-size: 1rem;
    color: var(--green-main);
    font-weight: 700;
}

.project-tech {
    padding: 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: var(--green-brightest);
    color: var(--green-main);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-link {
    padding: 0 1.5rem 1.5rem;
}

.project-link a {
    display: inline-block;
    color: var(--green-main);
    font-weight: 600;
    text-decoration: underline;
}

.project-link a:hover {
    color: var(--green-light);
}

/* ==================== LIFE BEYOND CODE / TECH TREE ==================== */
.life-philosophy {
    padding: 6rem 0;
}

.tech-tree {
    position: relative;
    min-height: 820px;
    margin-top: 2rem;
}

.tree-svg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1000px;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Fruit pods */
.fruit {
    position: absolute;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    padding: 1.2rem;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--green-lighter);
    z-index: 2;
    transition: all var(--transition-smooth);
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fruit:hover {
    animation: fruit-bounce 0.5s ease;
}

@keyframes fruit-bounce {
    0% { transform: translateY(0); }
    25% { transform: translateY(-12px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

.fruit-glow {
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--green-light);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(82, 183, 136, 0.6), 0 0 24px rgba(82, 183, 136, 0.3);
    animation: fruit-pulse 3s ease-in-out infinite;
}

@keyframes fruit-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(82, 183, 136, 0.4), 0 0 16px rgba(82, 183, 136, 0.2); }
    50% { box-shadow: 0 0 16px rgba(82, 183, 136, 0.8), 0 0 32px rgba(82, 183, 136, 0.4); }
}

.fruit-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 0.4rem;
    background: var(--green-brightest);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-main);
    flex-shrink: 0;
}

.fruit-icon svg {
    width: 20px;
    height: 20px;
}

.fruit h3 {
    font-family: var(--font-space);
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.fruit p {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Position each fruit on the tree branches */
.fruit-1 { top: 50%; left: 1%; }       /* Frontend - left branch low */
.fruit-2 { top: 50%; right: 1%; }      /* QA - right branch low */
.fruit-3 { top: 24%; left: -2%; }      /* Talk - left branch mid */
.fruit-4 { top: 24%; right: -2%; }     /* Integrator - right branch mid */
.fruit-5 { top: 0%; left: 5%; }        /* Cook - upper left */
.fruit-6 { top: 0%; right: 5%; }       /* NZ - upper right */
.fruit-7 { top: 6%; left: 36%; }       /* Curious - top center */
.fruit-8 { top: 40%; left: 28%; }      /* Chill - mid-left area */

/* ==================== AWARDS ACCORDION ==================== */
.awards-strip {
    padding: 3rem 0;
    background: var(--bg-secondary);
}

.awards-accordion {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.award-accordion-item {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-fast);
}

.award-accordion-item:hover {
    box-shadow: var(--shadow-md);
}

.award-accordion-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    user-select: none;
    transition: background var(--transition-fast);
}

.award-accordion-header:hover {
    background: var(--green-brightest);
}

.award-accordion-header .award-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.award-accordion-header .award-title {
    font-family: var(--font-space);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.award-accordion-header .award-year {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
}

.award-accordion-header .award-chevron {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
    color: var(--text-muted);
    flex-shrink: 0;
}

.award-accordion-item.open .award-chevron {
    transform: rotate(180deg);
}

.award-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.award-accordion-item.open .award-accordion-content {
    max-height: 800px;
}

.award-accordion-body {
    padding: 0 1.5rem 1.25rem 3.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.award-photo {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    margin-top: 1rem;
    box-shadow: var(--shadow-md);
}

/* Remove white background from grass images */
.circuit-grass-img {
    mix-blend-mode: multiply;
}

.award-photos-row {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.award-photos-row .award-photo {
    flex: 1;
    min-width: 150px;
    max-width: 250px;
    height: 150px;
    object-fit: cover;
    margin-top: 0;
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    padding: 6rem 0;
    background: var(--grad-green-subtle);
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-intro h2 {
    font-family: var(--font-space);
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-intro p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-method {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-smooth);
}

.contact-method:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.contact-method h3 {
    font-family: var(--font-space);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.contact-link {
    display: inline-block;
    color: var(--green-main);
    font-weight: 600;
    font-size: 1.0625rem;
    margin: 0.75rem 0;
    text-decoration: underline;
}

.contact-link:hover {
    color: var(--green-light);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--grad-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.social-link:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-lg);
    background: var(--grad-button-hover);
}

.social-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.cta-final {
    text-align: center;
    padding: 3rem 0;
}

.cta-final p {
    margin-bottom: 2rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-final h3 {
    font-family: var(--font-space);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-final .btn {
    margin: 0 0.5rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: var(--font-space);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--green-light);
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--green-light);
}

.footer-bottom {
    border-top: 1px solid rgba(82, 183, 136, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ==================== MOTTO ==================== */
.motto {
    font-family: var(--font-space);
    font-size: 1.5rem;
    color: var(--green-main);
    font-weight: 700;
    text-align: center;
    margin: 2rem 0;
    font-style: italic;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        grid-template-columns: 40px 1fr;
        gap: 0;
    }

    .timeline-marker {
        grid-column: 1;
        justify-self: center;
    }

    .timeline-left .timeline-content,
    .timeline-right .timeline-content {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
        padding: 0 0 0 1rem;
    }

    .timeline-left .timeline-image,
    .timeline-right .timeline-image {
        grid-column: 2;
        grid-row: 2;
        padding: 1rem 0 0 1rem;
        text-align: left;
        display: block;
    }

    .timeline-right .timeline-image {
        justify-content: flex-start;
    }

    /* Tech tree becomes grid on tablet */
    .tech-tree {
        position: static;
        min-height: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .tree-svg {
        display: none;
    }

    .fruit {
        position: static;
        width: auto;
        transform: none;
    }

    .fruit:hover {
        transform: translateY(-6px);
    }

    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-avatar {
        width: 200px;
        height: 200px;
    }

    .hero-meta {
        gap: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-tall {
        grid-row: span 1;
    }

    .bento-item {
        padding: 1.5rem;
    }

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

    #skillSpotlight {
        flex-direction: column;
        align-items: center;
    }

    .skill-spotlight-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        min-width: auto;
    }

    .skill-spotlight-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .skill-spotlight-main {
        min-height: 200px;
        padding: 2rem 1.5rem;
    }

    .spotlight-icon {
        font-size: 3rem;
    }

    .spotlight-name {
        font-size: 1.35rem;
    }

    .tech-tree {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero::before {
        width: 400px;
        height: 400px;
        right: -15%;
    }
}

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

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-greeting {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .hero-avatar {
        width: 150px;
        height: 150px;
    }

    .bento-item {
        padding: 1.25rem;
    }

    .bento-icon {
        font-size: 2rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .timeline-title {
        font-size: 1.125rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-text {
        display: none;
    }

    .scroll-indicator {
        bottom: 1rem;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.visible {
    opacity: 1 !important;
}

.glass {
    background: rgba(247, 250, 247, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(82, 183, 136, 0.2);
}

.glow {
    box-shadow: 0 0 20px rgba(82, 183, 136, 0.3);
}

/* ==================== BRICK-REVEAL ANIMATION ==================== */
.brick-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.brick-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grid children */
.brick-reveal:nth-child(1) { transition-delay: 0.05s; }
.brick-reveal:nth-child(2) { transition-delay: 0.1s; }
.brick-reveal:nth-child(3) { transition-delay: 0.15s; }
.brick-reveal:nth-child(4) { transition-delay: 0.2s; }
.brick-reveal:nth-child(5) { transition-delay: 0.25s; }
.brick-reveal:nth-child(6) { transition-delay: 0.3s; }
.brick-reveal:nth-child(7) { transition-delay: 0.35s; }
.brick-reveal:nth-child(8) { transition-delay: 0.4s; }

/* Smooth scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--green-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--green-main);
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.lightbox.active {
    display: flex;
    animation: lightbox-fade 0.25s ease;
}

@keyframes lightbox-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lightbox-zoom 0.3s ease;
}

@keyframes lightbox-zoom {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    line-height: 1;
    z-index: 10001;
    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

/* Zoomable photos cursor hint */
.award-photo[onclick],
.fruit-photo[onclick] {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.award-photo[onclick]:hover,
.fruit-photo[onclick]:hover {
    transform: scale(1.03);
}
