/* Reset and Base Styles */
:root {
    --monitor-t: 800ms;
    --stand-drop: 55px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 20vh; /* offset scroll to center content better */
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #000000;
    background-color: #e0f2fe;
}

/* Add spacing between sections */
section {
    margin-bottom: 40px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #f1f5f9;
    border-radius: 25px;
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    max-width: 600px;
    width: 90%;
}

.nav-container-compact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 0.5rem 1rem;
}

.nav-icon-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: #000000;
    text-decoration: none;
    padding: 0.4rem 0.6rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 500;
}

.nav-icon-compact i {
    font-size: 1.4rem;
    color: #000000;
    transition: color 0.3s ease;
}

.nav-icon-compact span {
    font-size: 0.7rem;
    color: #000000;
    transition: color 0.3s ease;
}

.nav-icon-compact:hover {
    background: #e2e8f0;
    color: #3B82F6;
}

.nav-icon-compact:hover i,
.nav-icon-compact:hover span {
    color: #3B82F6;
}

/* Welcome Section */
/* don't add section spacing to the hero */
.welcome-section {
    margin-bottom: 0;                 /* override global section margin */
    min-height: calc(100svh - var(--stand-drop));
    display: grid;
    place-items: center;
    background: #e0f2fe;
    position: relative;
    overflow: visible;
    padding: 0;
    padding-bottom: 12px;             /* optional: keep a little breathing room under the stand */
}

.welcome-content {
    flex: 1;
    z-index: 2;
}

/* lift the monitor to visually re-center above the stand */
.tech-monitor {
    background-color: #000000;
    border-radius: 8px 8px 8px 8px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    width: 700px;
    height: 420px;
    margin: 0 auto;
    overflow: visible;
    transform: translateY(calc(-1 * var(--stand-drop)));
    transition: transform 0.18s cubic-bezier(0.4, 2, 0.6, 1), box-shadow 0.18s cubic-bezier(0.4, 2, 0.6, 1);
    cursor: pointer;
    transform-origin: center bottom;
    will-change: transform, box-shadow;
}

.tech-monitor:hover {
    transform: translateY(calc(-1 * var(--stand-drop))) scale(1.06);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.tech-monitor:active {
    transform: translateY(calc(-1 * var(--stand-drop))) scale(0.99);
    transition-duration: 0.08s;
}

.tech-monitor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000000;
    border-radius: 8px;
    z-index: -1;
}

/* 1) Clip everything to the monitor's rounded bezel */
.monitor-screen {
    background-color: #000000;
    border-radius: 12px;
    padding: 1rem;
    position: relative;
    border: 1px solid #333333;
    transition: background-color var(--monitor-t) ease, border-color var(--monitor-t) ease, opacity var(--monitor-t) ease;
    opacity: 1 !important;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    margin: 0;
    overflow: hidden;              /* <- key */
    clip-path: inset(0 round 12px); /* Optional extra-hardening */
}

/* Python Script Transformation */
.monitor-screen.transforming-to-welcome {
    background-color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

/* header fades out during white phase */
.terminal-header { 
    transition: opacity var(--monitor-t) ease; 
}
.monitor-screen.transforming-to-welcome .terminal-header {
    opacity: 0; 
    pointer-events: none; 
}

.monitor-screen.transforming-to-welcome .terminal-content {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-radius: inherit !important;   /* not 4px */
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: block !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Redo-only: ensure center does not lag white while bezel returns to black */
.monitor-screen.redo-phase .terminal-content {
    background-color: transparent !important;
    color: transparent !important;
    transition: none !important;
}

/* Redo-only: also guarantee any overlay is invisible with no animation */
.monitor-screen.redo-phase .welcome-screen-content {
    opacity: 0 !important;
    background: transparent !important;
    transition: none !important;
}

/* Hide only the original terminal elements, not the welcome content */
.monitor-screen.transforming-to-welcome .terminal-content .terminal-line,
.monitor-screen.transforming-to-welcome .terminal-content .terminal-prompt,
.monitor-screen.transforming-to-welcome .terminal-content .terminal-command,
.monitor-screen.transforming-to-welcome .terminal-content .terminal-output {
    opacity: 0 !important;
}


/* 2) Make inner layers/overlay follow the same curve */
.monitor-screen > * { border-radius: inherit; }

/* overlay cross-fade */
.welcome-screen-content {
    position: absolute; 
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff; 
    color: #000;
    opacity: 0; 
    transition: opacity var(--monitor-t) ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 20px;
    border-radius: inherit;
}
.monitor-screen.transforming-to-welcome .welcome-screen-content { 
    opacity: 1; 
}





.refresh-icon {
    position: absolute !important;
    top: 0.5px !important;
    right: 0.5px !important;
    width: 40px !important;
    height: 40px !important;
    background: transparent !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    color: #000000 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    transform-origin: center center !important;
    z-index: 1000 !important;
}

.refresh-icon:hover {
    transform: rotate(180deg);
}

.welcome-screen-content .welcome-title {
    font-size: 3.2rem;
    font-weight: 600;
    color: #000000 !important;
    line-height: 1.2;
    margin: 0 0 0.3rem 0;
    font-family: 'Inter', sans-serif;
}

.welcome-screen-content .welcome-subtitle {
    font-size: 1.4rem;
    color: #000000 !important;
    margin: 0 0 0.8rem 0;
    font-family: 'Inter', sans-serif;
}

.terminal-photo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
}

.terminal-profile-photo {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.terminal-profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.typing-cursor {
    color: #000000;
    animation: blink 1s infinite;
    font-weight: 300;
}





.welcome-text {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    text-align: center;
}

.welcome-title {
    font-size: 3.5rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    margin: 0;
    position: relative;

}

.welcome-title::after {
    content: '|';
    color: #ffffff;
    animation: blink 1s infinite;
    font-weight: 300;

}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Terminal Styling */
.terminal-header {
    background: #1e1e1e;
    padding: 0.5rem 1rem;
    border-radius: 4px 4px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333333;
    margin: 0;
    width: calc(100% + 2rem);            /* fill past the padding */
    transform: translate(-1rem, -1rem);   /* pull to the bezel */
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    transition: opacity 1s ease;
}

.terminal-title {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

.terminal-btn {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.terminal-btn.minimize {
    background: #ffbd2e;
    color: #000000;
}

.terminal-btn.maximize {
    background: #28ca42;
    color: #000000;
}

.terminal-btn.close {
    background: #ff5f56;
    color: #000000;
}

.terminal-btn:hover {
    opacity: 0.8;
}

.terminal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    background-color: #000000;
    color: #ffffff;
    padding: 1rem;
    transition: background-color var(--monitor-t) ease, color var(--monitor-t) ease, opacity var(--monitor-t) ease;
    padding-top: 0.5rem;              /* small spacing under the header so content doesn't crowd it */
}

.terminal-line {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.terminal-prompt {
    color: #ffffff;
    font-weight: bold;
    margin-right: 0.5rem;
}

.terminal-command {
    color: #ffffff;
}

.terminal-cursor {
    color: #ffffff;
    animation: blink 1s infinite;
    font-weight: bold;
}

.terminal-output {
    text-align: center;
    margin: 1rem 0;
}

.monitor-screen.powered-on {
    background: #ffffff;
    opacity: 1;
}





/* Content fade in */
.welcome-content > * {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.8s ease;
    visibility: visible !important;
    display: block !important;
}

.welcome-content.powered-on .greeting {
    transition-delay: 0.2s;
}

.welcome-content.powered-on .name {
    transition-delay: 0.4s;
}

.welcome-content.powered-on .welcome-subtitle {
    transition-delay: 0.6s;
}

.welcome-content.powered-on .welcome-buttons {
    transition-delay: 0.8s;
}



.monitor-stand {
    width: 100px;
    height: 30px;
    background-color: #000000;
    margin: 0 auto;
    border-radius: 0 0 8px 8px;
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.monitor-stand::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 25px;
    background-color: #000000;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.welcome-text {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    text-align: center;
}

.welcome-title {
    font-size: 3.5rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    margin: 0;
    position: relative;

}

.welcome-title::after {
    content: '|';
    color: #ffffff;
    animation: blink 1s infinite;
    font-weight: 300;

}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Terminal Styling */
.terminal-header {
    background: #1e1e1e;
    padding: 0.5rem 1rem;
    border-radius: 4px 4px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333333;
    margin: 0;
    width: calc(100% + 2rem);            /* fill past the padding */
    transform: translate(-1rem, -1rem);   /* pull to the bezel */
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    transition: opacity 1s ease;
}

.terminal-title {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

.terminal-btn {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.terminal-btn.minimize {
    background: #ffbd2e;
    color: #000000;
}

.terminal-btn.maximize {
    background: #28ca42;
    color: #000000;
}

.terminal-btn.close {
    background: #ff5f56;
    color: #000000;
}

.terminal-btn:hover {
    opacity: 0.8;
}

.terminal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    background-color: #000000;
    color: #ffffff;
    padding: 1rem;
    transition: background-color var(--monitor-t) ease, color var(--monitor-t) ease, opacity var(--monitor-t) ease;
    padding-top: 0.5rem;              /* small spacing under the header so content doesn't crowd it */
}

.terminal-line {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.terminal-prompt {
    color: #ffffff;
    font-weight: bold;
    margin-right: 0.5rem;
}

.terminal-command {
    color: #ffffff;
}

.terminal-cursor {
    color: #ffffff;
    animation: blink 1s infinite;
    font-weight: bold;
}

.terminal-output {
    text-align: center;
    margin: 1rem 0;
}



.name-text {
    font-size: 3rem;
    font-weight: 700;
    color: #3B82F6;
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transition: opacity 1s ease;
}

.welcome-subtitle {
    font-size: 1.25rem;
    color: #374151;
    margin-bottom: 2rem;
    max-width: 500px;
}

.welcome-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #3B82F6;
    border: 2px solid #3B82F6;
}

.btn-secondary:hover {
    background: #3B82F6;
    color: white;
    transform: translateY(-2px);
}

.welcome-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.welcome-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.welcome-image .placeholder-image {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #E0E7FF, #C7D2FE);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid #3B82F6;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.welcome-image .placeholder-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

.welcome-image .placeholder-image i {
    font-size: 4rem;
    color: #3B82F6;
    margin-bottom: 1rem;
}

.welcome-image .placeholder-image p {
    color: #3B82F6;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #000000;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #0d9488;
    border-radius: 2px;
}

/* About Section */
.story-section {
    padding: 20px 0;
    background: transparent;
    display: flex;
    align-items: center;
}

.story-section .container {
    padding: 0 10px; /* reduce container padding for this section */
}

.about-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 1.5rem;
}

.about-text-bubble {
    background: transparent;
    padding: 0; /* no padding - use margin on inner content instead */
    border-radius: 0;
    border: none;
    box-shadow: none;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* align text to top like the photo */
    align-items: center;
    height: 432px; /* match phone frame total height (416px + 16px padding) */
    width: 600px; /* 2x width of phone frame */
    overflow: hidden; /* remove scroll bar */
    box-sizing: border-box;
    margin-right: 0;
    margin-left: 0;
    transition: transform 0.18s cubic-bezier(0.4, 2, 0.6, 1), box-shadow 0.18s cubic-bezier(0.4, 2, 0.6, 1);
    transform-origin: center;
    will-change: transform, box-shadow;
    cursor: pointer;
}


.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-text-bubble p {
    font-size: 1.05rem;
    color: #000000;
    margin: 8px 1rem; /* add margin to match phone frame visual spacing */
    line-height: 2.4; /* increase line spacing to fill height better */
    text-align: justify;
    width: calc(100% - 2rem); /* account for horizontal margin */
    padding: 0;
    display: block;
    height: auto;
    flex-grow: 1; /* allow text to grow and fill available space */
}

/* About Me Company Links */
.about-company-link {
    color: #6366f1;
    text-decoration: none;
    position: relative;
    font-weight: 600;
    transition: all 0.3s ease;
}

.about-company-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, transparent);
    transition: width 0.3s ease;
}

.about-company-link:hover {
    color: #4f46e5;
    transform: translateY(-1px);
}

.about-company-link:hover::before {
    width: 100%;
}

.about-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.btn-resume {
    background: #22c55e;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-resume:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

.btn-email {
    background: transparent;
    color: #1e293b;
    border: 2px solid #1e293b;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-email:hover {
    background: #1e293b;
    color: #ffffff;
    transform: translateY(-2px);
}

.about-phone {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    background: #1e293b;
    padding: 8px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    max-width: 300px;
    width: 300px;
    height: 416px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    transform-origin: center;
    will-change: transform, box-shadow;
    cursor: pointer;
}

.phone-frame:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.phone-frame:active {
    transform: translateY(-6px);
}

.phone-photo {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
    display: block;
}

.placeholder-image {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #E0E7FF, #C7D2FE);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.placeholder-image i {
    font-size: 4rem;
    color: #3B82F6;
}

.profile-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 3px solid #3B82F6;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.profile-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}



/* Experience Section */
.experience-section {
    padding: 100px 0;
    background: transparent;
}

/* Subsection Headers */
.subsection-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.subsection-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.education-icon {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
}

.experience-icon {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
}

.subsection-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

/* Section Divider */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem 0;
    gap: 1rem;
}

.divider-line {
    height: 2px;
    background: linear-gradient(to right, transparent, #0d9488, transparent);
    flex: 1;
    max-width: 200px;
}

.divider-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

/* Subsection spacing */
.education-subsection,
.experience-subsection {
    margin-bottom: 2rem;
}

/* Phone Gallery Slideshow in About Me Section */
.phone-gallery-box {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.phone-gallery-box h3 {
    color: #1e293b;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.phone-slideshow {
    max-width: 100%;
    margin: 0 auto;
}

.phone-slideshow-container {
    position: relative;
    text-align: center;
}

.phone-slide {
    display: none;
}

.phone-slide.active {
    display: block;
}

.phone-gallery-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.phone-gallery-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.phone-slideshow-container {
    position: relative;
    text-align: center;
}

.phone-slideshow-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    padding: 0;
    margin: 0;
}

.phone-dot {
    height: 8px;
    width: 8px;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.phone-dot.active,
.phone-dot:hover {
    background-color: #ffffff;
    transform: scale(1.2);
    border: 1px solid #ffffff;
}

.timeline {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    --mid-gap: 22px; /* space between card inner edge and center line */
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #0d9488, #14b8a6);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 20px;
    background: #0d9488;
    border-radius: 50%;
    transform: translateX(-50%);
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.2);
}

.timeline-content {
    width: 60%;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform, box-shadow;
}

.timeline-content:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.timeline-content:active {
    transform: translateY(-6px);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: calc(-10% - var(--mid-gap)); /* keeps inner edge at 50% - gap */
    transform-origin: right; /* grow outward on hover */
}

.timeline-item:nth-child(even) .timeline-content {
    left: calc(50% + var(--mid-gap)); /* inner edge at 50% + gap */
    transform-origin: left; /* grow outward on hover */
}

.timeline-content h3 {
    color: #000000;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

/* Title row with org badge */
.timeline-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px; /* spacing for flow content */
    padding-bottom: 36px; /* more space below pill */
}

.org-badge-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 56px; /* keep column width consistent */
    position: relative; /* allow absolute date positioning */
}

.org-title-block {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

/* Inline roles list (HeadStart) */
.roles-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.35rem;
    flex-wrap: wrap;
}
.roles-inline .role-item { color: #0f172a; }
.roles-inline .separator { color: #94a3b8; }

.role-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a; /* near-black */
}

.company-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748b; /* slate gray */
    margin-top: 6px; /* extra space below role title */
}

.org-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px; /* slightly rounded square */
    background: #ffffff; /* remove teal fill */
    border: none; /* no border; use shadow instead */
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: .5px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.16); /* stronger shadow */
    overflow: hidden; /* clip zoomed logos to rounded edges */
}

/* Allow font-awesome icon in org-badge (for HeadStart) */
.org-badge i { color: #0d9488; font-size: 1.1rem; }

.org-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px; /* match badge rounding */
    background: transparent;
    display: block;
    transform-origin: center;
}

/* Slightly zoom specific logos to avoid visible white edges */
.org-badge img[src$="TD.png"] {
    transform: scale(1.10);
}

.org-badge img[src$="CU.png"] {
    transform: scale(1.06);
}

.timeline-title h3 {
    margin: 0; /* keep title aligned with badge */
}

.timeline-date {
    color: #000000; /* black dates */
    font-weight: 600;
    margin: 10px 0 1rem; /* default spacing (overridden in badge col) */
    font-size: 0.9rem;
    text-align: center; /* center date */
}

/* Position date directly under the logo without affecting vertical centering */
.org-badge-col .timeline-date {
    position: absolute;
    top: calc(100% + 12px); /* more white space above */
    left: 4px; /* shift slightly right */
    transform: none;
    margin: 0; /* override default margins */
    width: max-content;
    background: #0d9488;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px; /* pill shape */
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25);
    opacity: 0.80; /* make more translucent */
}

/* Academic Sub-sections */
/* Multi-role experience layout */
.multi-role {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.multi-role-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
.sub-role {
    background: #f8fafc;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
}
.sub-role-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}
.sub-role-title { font-weight: 700; color: #0f172a; }
.sub-role-dates { font-weight: 600; color: #0d9488; font-size: 0.9rem; }

/* HeadStart spacing: a bit more room below the date pill before roles */
#headstart .multi-role { margin-top: 1rem; }

/* Overall duration pill for multi-role experiences */
/* (removed overall-duration pill) */

@media (max-width: 768px) {
    .multi-role-grid { grid-template-columns: 1fr; }
}
.academic-subsections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.academic-card {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.academic-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.academic-card h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0d9488;
    text-align: center;
}

.coursework-list,
.involvement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.coursework-list li,
.involvement-list li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: #000000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    padding-left: 1rem;
}

.coursework-list li:before,
.involvement-list li:before {
    content: "•";
    color: #0d9488;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.coursework-list li:last-child,
.involvement-list li:last-child {
    border-bottom: none;
}

/* Projects Section */
.projects-section {
    padding: 100px 0;
    background: transparent;
}

/* Skills Showcase */
.skills-showcase {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.skills-box {
    background: linear-gradient(135deg, #E0E7FF, #C7D2FE); /* match project header gradient */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(59, 130, 246, 0.45); /* projects deep blue */
    border-radius: 20px;
    padding: 3rem;
    max-width: 1200px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.18);
    transition: box-shadow .25s ease, transform .2s ease;
}

.skills-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(29, 78, 216, 0.38); /* #1D4ED8 glow */
}

.skills-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.skills-subtitle {
    font-size: 1.1rem;
    color: #334155;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.skills-badges {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    justify-items: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Pop tests layout */
.skills-pop-tests { padding: 40px 0; }
.skills-pop-tests h3 { text-align: center; margin-bottom: 1.5rem; }
.pop-tests-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.demo-row { grid-template-columns: repeat(5, 1fr); }

/* Variant A — Gradient border */
.skills-box.pop-A {
    border: 3px solid transparent;
    background:
      linear-gradient(rgba(14,165,233,0.12), rgba(14,165,233,0.12)) padding-box,
      linear-gradient(135deg, #0ea5e9, #22d3ee, #2dd4bf) border-box;
}

/* Variant B — Glass frosted */
.skills-box.pop-B {
    background: rgba(14, 165, 233, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(14, 165, 233, 0.45);
    box-shadow: 0 18px 40px rgba(14, 165, 233, 0.28);
}

/* Variant C — Micro‑dot texture */
.skills-box.pop-C {
    background:
      radial-gradient(circle at 1px 1px, rgba(255,255,255,.35) 1px, transparent 1.6px) 0 0/12px 12px,
      rgba(14, 165, 233, 0.16);
    border: 3px solid #0ea5e9;
}

/* Variant D — Sheen sweep */
.skills-box.pop-D { position: relative; overflow: hidden; background: rgba(14,165,233,0.10); }
.skills-box.pop-D::after {
    content: ""; position: absolute; inset: -40%;
    background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
    transform: rotate(12deg) translateX(-120%);
    transition: transform .7s ease;
}
.skills-box.pop-D:hover::after { transform: rotate(12deg) translateX(120%); }

/* Variant E — Soft neon glow on hover */
.skills-box.pop-E { transition: box-shadow .25s ease, transform .2s ease; background: rgba(14,165,233,0.12); }
.skills-box.pop-E:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(34, 211, 238, 0.38);
}

.skill-badge {
    background: #f1f5f9;
    color: #000000;
    padding: 1rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-height: 80px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    width: 100%;
    max-width: 120px;
    border: 2px solid #cbd5e1;
}

.skill-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

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

.project-card {
    background: #F8FAFC; /* light gray so content area stands out */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #E5E7EB; /* default edge */
    position: relative; /* anchor for absolute footer links */
}

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

.project-media {
    position: relative;
    height: 240px;
    background: linear-gradient(135deg, #E0F2FE, #BAE6FD); /* default sky gradient */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #E5E7EB; /* crisp divider above content */
}
.project-media.match-bg { background: #F0F9FF; } /* matches outer section's light sky */

.project-media.white-bg {
    background: #ffffff !important; /* force override of gradient */
}

.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none; /* shown when src present */
}

.project-image-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* If media wrapper has 'contain', show full image without cropping */
.project-media.contain .project-image-photo {
    object-fit: contain;
    background: #ffffff; /* neutral background */
    padding: 8px;
}

.project-media.contain.white-bg .project-image-photo { background: #ffffff; }

/* subtle zoom utilities */
.project-image-photo.zoom-in { transform: scale(1.06); transform-origin: center; }
.project-image-photo.zoom-in-slight { transform: scale(1.03); transform-origin: center; }
.project-image-photo.zoom-out { transform: scale(0.92); transform-origin: center; }

/* Optional slight zoom-out for contained thumbnails */
.project-media.contain .project-image-photo.zoom-out {
    transform: scale(0.92);
    transform-origin: center;
}

.media-play {
    position: absolute;
    inset: auto auto 12px 12px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(0,0,0,0.65);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.25);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(0.4, 2, 0.6, 1), box-shadow 0.18s cubic-bezier(0.4, 2, 0.6, 1), opacity .2s ease;
}
.media-play:hover { transform: scale(1.06); box-shadow: 0 8px 22px rgba(0,0,0,0.35); }
.media-play:active { transform: scale(0.98); }
.media-play i { font-size: 16px; }

.project-media.playing .media-play { opacity: 0; pointer-events: none; }
.project-media.playing .project-image-photo, .project-media.playing .media-fallback { display: none; }
.project-media.playing .project-video { display: block; }

.media-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.media-fallback i {
    font-size: 3rem;
    color: #3B82F6;
}
.project-media.white-bg .media-fallback i { font-size: 2.2rem; }

.project-content {
    padding: 1.5rem 1.5rem 3rem; /* extra bottom for absolute links */
    display: grid;
    grid-template-rows: auto 1fr auto auto; /* title | desc | tags | links */
    gap: 1rem;
    min-height: 360px; /* equalize content height across cards */
}

.project-content h3 {
    color: #000000;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.project-content p {
    color: #374151;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #E0E7FF;
    color: #3B82F6;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    transform-origin: center;
    will-change: transform, box-shadow;
    cursor: default;
}

.tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.18);
}

.tag:active {
    transform: translateY(-3px);
}

.project-links {
    display: flex;
    gap: 1rem;
    position: absolute;
    left: 1.5rem;
    bottom: 1.25rem; /* fixed baseline from card bottom */
}

.project-link {
    color: #3B82F6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #1D4ED8;
}

/* Technology Lab Section */
.tech-lab-section {
    padding: 100px 0;
    background: transparent;
}

/* Woodshop Projects Highlights */
.workshop-section { padding: 80px 0; background: transparent; }
.workshop-gallery {
    column-count: 3;
    column-gap: 1rem;
}
.workshop-item { break-inside: avoid; margin-bottom: 1rem; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.workshop-item img { width: 100%; height: auto; display: block; }

@media (max-width: 900px) {
    .workshop-gallery { column-count: 2; }
}
@media (max-width: 600px) {
    .workshop-gallery { column-count: 1; }
}

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

.skill-category {
    background: #ffffff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #E5E7EB;
}

.skill-category h3 {
    color: #000000;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    text-align: center;
}

.skill-items {
    display: grid;
    gap: 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: #E0E7FF;
    transform: translateX(5px);
}

.skill-item i {
    font-size: 1.5rem;
    color: #3B82F6;
    width: 30px;
    text-align: center;
}

.skill-item span {
    font-weight: 500;
    color: #000000;
}

/* Contact Section */
.contact-section {
    padding: 60px 0 48px 0; /* base padding */
    margin-top: -60px; /* pull section upward */
    background: transparent;
}

/* Add space between heading and email pill */
.contact-section .section-title {
    margin-bottom: 72px; /* more whitespace */
    padding-bottom: 20px; /* push underline further */
}
.contact-section .section-title::after {
    bottom: 0; /* sit at end of padding */
}

.simple-contact { text-align: center; margin-top: 0; }

.connect-overline {
    margin: 0 0 28px 0;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f172a;
}


.contact-inline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.contact-link {
    color: #0f172a;
    text-decoration: none;
}

.contact-link:hover { text-decoration: underline; }

.separator { color: #94a3b8; }

@media (max-width: 560px) {
    .contact-inline {
    display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }
    .separator { display: none; }
}

.connect-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
    text-align: center;
}
.contact-section .container { display: grid; row-gap: 16px; justify-items: center; }
.contact-section .email-pill { margin-top: 16px; }
.email-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 16px 24px; /* bigger */
    border-radius: 16px; /* slightly more cornered edges (less round) */
    border: 2px solid #E5E7EB;
    color: #111827;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 14px 28px rgba(0,0,0,0.14);
}
.email-pill i { color:#0EA5E9; }
.contact-icons { margin-top: 22px; display:flex; justify-content:center; gap:20px; }
.contact-icon { width:52px; height:52px; display:grid; place-items:center; border-radius:14px; background:#ffffff; border:1px solid #E5E7EB; color:#111827; text-decoration:none; transition:transform .18s cubic-bezier(0.4,2,0.6,1), box-shadow .18s cubic-bezier(0.4,2,0.6,1); }
.contact-icon i { font-size: 1.25rem; }
.contact-icon:hover { transform: translateY(-3px) scale(1.06); box-shadow:0 12px 28px rgba(0,0,0,0.18); }

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 20px;
    border-left: 4px solid #3B82F6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-item i {
    font-size: 1.5rem;
    color: #3B82F6;
    width: 30px;
    text-align: center;
}

.contact-item h3 {
    color: #000000;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: #374151;
}

.contact-form {
    background: #ffffff;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3B82F6;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}



/* Color Palette Section (Temporary) */
.color-palette-section, .color-grid { display: none !important; }

.color-square {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.color-square:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Color Samples Section */
.color-samples-section, .color-samples-section * { display: none !important; }

/* Footer */
.footer {
    background: transparent;
    color: #000000;
    text-align: center;
    padding: 2rem 0;
}



/* Force text centering */
.typing-text {
    text-align: center !important;
    width: 100% !important;
    display: block !important;
}


/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        width: 95%;
        top: 10px;
    }
    
    .nav-container-compact {
        gap: 1rem;
        padding: 0.4rem 0.8rem;
    }
    
    .nav-icon-compact {
        padding: 0.3rem 0.5rem;
    }
    
    .nav-icon-compact i {
        font-size: 1.2rem;
    }
    
    .nav-icon-compact span {
        font-size: 0.65rem;
    }
    
    .welcome-title {
        font-size: 2.5rem;
    }
    
    .welcome-buttons {
        flex-direction: column;
    }
    
    .story-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .story-left {
        order: -1;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        left: 60px !important;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .phone-gallery-photo {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .phone-gallery-photo {
        height: 120px;
    }
}

/* Woodshop Projects Section */
.woodshop-showcase {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.woodshop-box {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem 1rem 2.5rem 1rem;
    max-width: 1200px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    transition: box-shadow .25s ease, transform .2s ease;
}

.woodshop-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(128, 128, 128, 0.25);
}

.woodshop-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.woodshop-subtitle {
    font-size: 1.1rem;
    color: #334155;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.6;
}

.woodshop-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 3rem 0.2rem;
    justify-items: center;
    max-width: 1050px;
    margin: 0 auto;
    margin-bottom: 0.5rem;
    padding: 0;
}

.woodshop-photo:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1;
}

.woodshop-photo:nth-child(2) {
    grid-column: 3 / 5;
    grid-row: 1;
}

.woodshop-photo:nth-child(3) {
    grid-column: 5 / 7;
    grid-row: 1;
}

.woodshop-photo:nth-child(4) {
    grid-column: 2 / 4;
    grid-row: 2;
}

.woodshop-photo:nth-child(5) {
    grid-column: 4 / 6;
    grid-row: 2;
}

.woodshop-photo {
    width: 100%;
    max-width: 280px;
    height: 230px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
    cursor: pointer;
}

.woodshop-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.woodshop-photo.highlighted {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
    border: 2px solid #3b82f6;
}

.tech-gallery-dots {
    text-align: center;
    padding: 0;
    margin-top: 1rem;
}

.tech-gallery-dot {
    height: 10px;
    width: 10px;
    margin: 0 6px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.tech-gallery-dot:hover,
.tech-gallery-dot.active {
    background-color: #3b82f6;
    transform: scale(1.3);
    border: 1px solid #3b82f6;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}

/* Fade Options Section */
.fade-options-section, .fade-options-section * { display: none !important; }

/* ================================
   COMPREHENSIVE MOBILE RESPONSIVE DESIGN
   ================================ */

/* Large Mobile/Small Tablet - 768px and below */
@media (max-width: 768px) {
    /* Tech Monitor - use responsive width instead of scale to avoid left bias */
    .tech-monitor {
        width: min(92vw, 520px);
        height: auto;
        aspect-ratio: 700 / 420;
        margin: 0 auto;
        transform: translateY(calc(-1 * var(--stand-drop)));
    }

    .monitor-screen {
        width: 100%;
        max-width: 100%;
    }
    
    /* About Me Section - Stack Text and Phone */
    .about-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .about-text-bubble {
        order: 1;
        max-width: 100%;
        width: 100%;
        height: auto;
    }
    
    .about-phone {
        order: 2;
        margin: 0 auto;
    }
    
    /* Timeline - Center and Stack */
    .timeline {
        max-width: 100%;
        padding: 0 0.5rem;
        width: 100%;
    }
    
    .timeline-item {
        margin-bottom: 0; /* control spacing via next sibling margin for symmetry */
        position: relative;
    }

    /* Mobile-only up-arrow separators between work items */
    #experience .timeline .timeline-item + .timeline-item { 
        margin-top: 6rem; /* total gap between items */
        padding-top: 0;
    }
    #experience .timeline .timeline-item + .timeline-item::before {
        content: '\2191';
        position: absolute;
        top: -3rem; /* center of a 6rem gap */
        left: 50%;
        transform: translate(-50%, -50%);
        width: 44px;
        height: 44px;
        border-radius: 9999px;
        background: linear-gradient(135deg, #0d9488, #14b8a6);
        color: white;
        display: grid;
        place-items: center;
        box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
        font-size: 1.05rem;
        font-weight: 700;
        line-height: 1;
    }
    
    .timeline-content {
        position: static !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: 100%;
        margin: 0;
        text-align: center;
        transform: none !important;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .timeline-marker {
        display: none;
    }
    
    .timeline::before {
        display: none;
    }
    
    /* Organization badges and dates center */
    .timeline-title {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .org-badge-col {
        position: static;
        margin: 0 auto;
    }
    
    .timeline-date {
        position: static !important;
        left: auto !important;
        top: auto !important;
        margin: 0 auto;
        padding-top: 1.2rem;
    }

    /* Ensure date pill sits just below the logo on mobile */
    .org-badge-col .timeline-date {
        position: static !important;
        top: auto !important;
        left: auto !important;
        margin-top: 0.85rem !important;
        margin-bottom: 0 !important;
        width: max-content;
        display: inline-block;
    }
    
    /* Projects Grid - Single Column */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
    }
    
    /* Skills Showcase - Full Width */
    .skills-showcase {
        margin: 2rem 0;
    }
    
    .skills-box {
        padding: 1.5rem;
    }
    
    .skills-badges {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 1rem;
    }
    
    /* Tech Lab Gallery (tablet) - uniform grid, reset custom spans */
    .woodshop-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
        justify-items: stretch;
    }
    .woodshop-gallery .woodshop-photo { grid-column: auto !important; grid-row: auto !important; width: 100%; height: 170px; }
    
    /* Section Titles */
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    /* Contact Section */
    .contact-section .container {
        padding: 0 1rem;
    }

    /* Terminal text sizing to keep lines consistent */
    .terminal-content { padding: 0.6rem; }
    .terminal-line { font-size: 0.85rem; }
    .terminal-prompt { font-size: 0.85rem; }
    .terminal-command { font-size: 0.85rem; white-space: nowrap; }
    .terminal-output { font-size: 0.85rem; white-space: nowrap; }
}

/* Mobile Phones - 480px and below */
@media (max-width: 480px) {
    /* Tech Monitor - Smaller */
    .tech-monitor {
        transform: scale(0.65);
    }
    
    /* Monitor inner content: shrink text and padding so it's fully visible */
    .terminal-header {
        width: 100%;
        transform: none;
        padding: 0.4rem 0.6rem;
        border-radius: 8px 8px 0 0;
    }
    .terminal-title { font-size: 0.8rem; }
    .terminal-btn { width: 12px; height: 12px; }
    .monitor-screen { padding: 0.6rem; }
    /* Overlay welcome screen text sizes */
    .welcome-screen-content { padding: 12px 10px; }
    .welcome-screen-content .welcome-title { font-size: 1.25rem; line-height: 1.15; margin-bottom: 0.15rem; }
    .welcome-screen-content .welcome-subtitle { font-size: 0.9rem; margin-bottom: 0.3rem; }
    .welcome-title { font-size: 1.6rem; }
    .welcome-subtitle { font-size: 0.95rem; }
    .terminal-photo { margin: 0.35rem 0 0; }
    .terminal-profile-photo { width: 100px; height: 100px; }

    /* Terminal typing area: keep commands on single lines */
    .terminal-content { padding: 0.5rem; }
    .terminal-line { font-size: 0.85rem; }
    .terminal-prompt { font-size: 0.85rem; }
    .terminal-command { font-size: 0.85rem; white-space: nowrap; }
    .terminal-output { font-size: 0.85rem; }
    
    /* Navigation - Smaller */
    .navbar {
        width: 95%;
    }
    
    .nav-container-compact { gap: 0.5rem; padding: 0.3rem 0.6rem; }
    /* Equalize top nav items and allow label collapse on very small widths */
    .nav-container-compact a.nav-icon-compact { flex: 1 1 0; text-align: center; }
    .nav-icon-compact span { font-size: 0.65rem; }
    
    /* Timeline Content - Full Width */
    .timeline-content {
        padding: 1rem;
        margin: 0;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    .org-title-block h3 {
        font-size: 1.1rem;
    }
    
    .role-title {
        font-size: 1rem;
    }
    
    .company-name {
        font-size: 0.9rem;
    }
    
    /* Academic Subsections - Stack */
    .academic-subsections {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Project Cards - Single Column, Smaller */
    .project-card {
        margin-bottom: 1.5rem;
    }
    
    .project-media {
        height: 200px;
    }
    
    .project-tags {
        gap: 0.5rem;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* Skills - Smaller Grid */
    .skills-badges {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
    
    .skill-badge {
        padding: 0.8rem 0.5rem;
    }
    
    .skill-icon {
        font-size: 2rem !important;
    }
    
    .skill-name {
        font-size: 0.75rem;
    }
    
    /* Tech Lab (phones) - two-column uniform grid */
    .woodshop-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        justify-items: stretch;
    }
    .woodshop-gallery .woodshop-photo { grid-column: auto !important; grid-row: auto !important; width: 100%; height: 160px; }
    
    /* Section Titles */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    /* Contact - Stack Vertically */
    .simple-contact {
        text-align: center;
    }
    
    .email-pill {
        margin: 1rem auto;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .contact-icons {
        gap: 1rem;
        justify-content: center;
    }
    
    /* Container Padding */
    .container {
        padding: 0 1rem;
    }
    
    /* Section Spacing */
    section {
        padding: 3rem 0;
    }
}

/* Very Small Phones - 360px and below */
@media (max-width: 360px) {
    .tech-monitor { width: 94vw; aspect-ratio: 700 / 420; transform: translateY(calc(-1 * var(--stand-drop))); }
    
    .skills-badges {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-icon-compact span {
        display: none;
    }
    
    .welcome-title {
        font-size: 1.8rem;
    }
}

/* removed loader preview demo styles for production */

/* Full-screen loader overlay */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid; /* visible by default in production */
    place-items: center;
    background: #ffffff;
}
.loader.visible { display: grid; }
.loader-morph {
    width: 56px;
    height: 56px;
    background: radial-gradient(circle at 30% 30%, #3b82f6, #06b6d4);
    border-radius: 16px;
    animation: morph-spin 1.8s linear infinite, morph-radius 1.8s ease-in-out infinite alternate;
}
@keyframes morph-spin { to { transform: rotate(360deg); } }
/* Slower, gradual transition from square -> circle during the loop */
@keyframes morph-radius {
    0%   { border-radius: 12px; }
    20%  { border-radius: 16px; }
    40%  { border-radius: 22px; }
    60%  { border-radius: 30px; }
    80%  { border-radius: 42px; }
    100% { border-radius: 999px; }
}
.loader--exit .loader-morph {
    animation: to-circle-and-shrink 700ms ease forwards;
}
@keyframes to-circle-and-shrink {
    0%   { border-radius: 999px; transform: scale(1); }
    100% { border-radius: 999px; transform: scale(0); }
}
.loader--fade { animation: overlay-fade 2000ms cubic-bezier(0.22, 1, 0.36, 1) forwards; will-change: opacity; }
@keyframes overlay-fade { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }

/* Cross-fade page content with loader (only when body has .loading) */
body.loading > :not(#loader) {
    opacity: 0;
}
body.loaded > :not(#loader) {
    opacity: 1;
    transition: opacity 2000ms cubic-bezier(0.22, 1, 0.36, 1);
}
