/* Two-Page Diary Spread Layout for About Section */
.diary-spread {
    overflow: visible;
    padding: 20px;
    background: transparent; /* hide outer notebook background */
    background-image: none;
    box-shadow: none;
    margin: 20px;
    /* Expand usable canvas inside the About page */
    width: calc(100% - 40px);
    max-width: none;
    height: calc(100vh - 80px);
}

.diary-spread::before { display: none; }

.two-page-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative;
    max-width: 1700px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.diary-page {
    background: var(--paper-color);
    background-image: 
        repeating-linear-gradient(
            transparent 0px,
            transparent 29px,
            rgba(139, 69, 19, 0.08) 30px
        );
    padding: 50px 40px;
    position: relative;
    height: 100%;
}

[data-theme="dark"] .diary-page {
    background-image: 
        repeating-linear-gradient(
            transparent 0px,
            transparent 29px,
            rgba(245, 222, 179, 0.05) 30px
        );
}

/* Left page styling */
.left-page {
    border-right: 2px solid rgba(139, 69, 19, 0.15);
    box-shadow: inset -10px 0 20px rgba(0, 0, 0, 0.05);
}

.left-page::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 0, 0, 0.2);
}

/* Right page styling */
.right-page {
    box-shadow: inset 10px 0 20px rgba(0, 0, 0, 0.05);
}

.right-page::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 0, 0, 0.2);
}

/* Overrides for Projects spread (reviews + projects) */
.projects-spread .left-page .section-title {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    margin-bottom: 12px;
}

.projects-spread .diary-page {
    overflow-y: auto;
    /* Custom scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--paper-color);
}

/* Webkit scrollbar styling for diary pages */
.projects-spread .diary-page::-webkit-scrollbar {
    width: 10px;
}

.projects-spread .diary-page::-webkit-scrollbar-track {
    background: var(--paper-color);
    border-left: 1px solid rgba(139, 69, 19, 0.15);
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.05);
}

.projects-spread .diary-page::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
    border: 2px solid var(--paper-color);
    transition: background 0.3s ease;
}

.projects-spread .diary-page::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.projects-spread .diary-page::-webkit-scrollbar-thumb:active {
    background: var(--accent-color);
}

/* About Me page specific adjustments */
#about .left-page {
    overflow-y: auto;
    /* Custom scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--paper-color);
}

/* Webkit scrollbar styling for about page */
#about .left-page::-webkit-scrollbar {
    width: 10px;
}

#about .left-page::-webkit-scrollbar-track {
    background: var(--paper-color);
    border-left: 1px solid rgba(139, 69, 19, 0.15);
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.05);
}

#about .left-page::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
    border: 2px solid var(--paper-color);
    transition: background 0.3s ease;
}

#about .left-page::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

#about .left-page::-webkit-scrollbar-thumb:active {
    background: var(--accent-color);
}

#about .left-page .page-content {
    padding: 30px 20px 40px 20px;
    max-height: none;
    display: flex;
    flex-direction: column;
}

/* Left page: scale reviews to fit and shift right */
.projects-spread .left-page .reviews-container {
    margin-left: 48px;
}

.projects-spread .left-page .review-card {
    padding: 18px;
    margin: 16px 0;
    transform: rotate(-0.5deg);
    padding-right: 96px; /* reserve space for reviewer polaroid */
}

.projects-spread .left-page .review-card:hover {
    transform: rotate(0deg) scale(1.02);
}

.projects-spread .left-page .review-card:nth-child(even) {
    transform: rotate(0.5deg);
}

/* Ensure even (middle) review also zooms on hover */
.projects-spread .left-page .review-card:nth-child(even):hover {
    transform: rotate(0deg) scale(1.02);
}

.projects-spread .left-page .review-text {
    font-size: 0.95rem;
    line-height: 1.4;
    padding-left: 28px;
    padding-right: 40px;
}

.projects-spread .left-page .reviewer-name {
    font-size: 1rem;
}

.projects-spread .left-page .polaroid-frame.small .photo-placeholder {
    width: 54px;
    height: 54px;
    font-size: 1.8rem;
}

.projects-spread .left-page .reviewer-polaroid {
    right: 12px;
    top: -14px;
    transform: rotate(7deg);
}

.projects-spread .left-page .quote-mark {
    font-size: 3rem; /* smaller than global 4rem */
    top: 6px;
}

/* Allow card hover even when mouse is over overlays */
.projects-spread .left-page .reviewer-polaroid,
.projects-spread .left-page .review-sparkles,
.projects-spread .left-page .tape-small {
    pointer-events: none;
}

/* Right page: remove scrollbar and nudge content up */
.projects-spread .right-page {
    overflow-y: hidden;
}

.projects-spread .right-page .projects-overview {
    padding-top: 12px; /* was 40px */
}

.projects-spread .right-page .section-title {
    margin-bottom: 18px;
    font-family: var(--font-marker);
    font-size: 30px;
    transform: rotate(-2deg);
}

/* Remove underline under the Projects Overview title */
.projects-spread .right-page .section-title::after {
    display: none;
}

/* Ensure the 'Thanks' title uses the same font as 'Contact' */
#contact .right-page .section-title {
    font-family: var(--font-marker);
    font-size: 30px;
    transform: rotate(-2deg);
}

.projects-spread .right-page .project-tabs {
    margin-top: -10px;
    margin-bottom: 14px; /* was 30px */
}

.projects-spread .right-page .projects-scrapbook {
    margin-top: 30px;
    gap: 16px;
}

/* Projects spread uses equal columns to preserve left page width */
.projects-spread .two-page-layout {
    max-width: 1700px;
    grid-template-columns: 1fr 1fr;
}

.projects-spread .right-page {
    padding: 20px 12px; /* further reduce padding on right page */
}

.projects-spread .right-page .projects-overview {
    padding: 6px 10px; /* minimize inner padding to maximize sticker width */
}

/* Ensure page-content doesn't cap width for the projects spread */
.projects-spread .right-page .page-content {
    max-width: none;
    padding: 0;
}

/* Ensure left page shows no scrollbar once scaled down */
.projects-spread .left-page {
    overflow-y: hidden;
}

/* Slightly reduce project thumbnail height to fit 2x3 without scroll */
.projects-spread .right-page .project-thumbnail {
    height: 140px;
}

/* Ensure hover zoom applies inside Projects spread */
.projects-spread .right-page .projects-scrapbook .project-polaroid {
    transform-origin: center center;
}

.projects-spread .right-page .projects-scrapbook .project-polaroid:hover {
    transform: translateY(-8px) rotate(0deg) scale(1.1);
}

/* Container for Portrait and Icons Side by Side */
.portrait-and-icons {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin: -10px 20px 30px 80px;
}

/* Portrait Polaroid on the left */
.portrait-polaroid.top-left {
    position: relative;
    width: fit-content;
    flex-shrink: 0;
    transform: rotate(-3deg);
    z-index: 2;
}

.portrait-polaroid.top-left .polaroid-frame {
    width: 170px;
    background: white;
    padding: 10px 10px 40px 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    overflow: hidden; /* keep content inside frame */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.portrait-polaroid.top-left .polaroid-frame:hover {
    transform: scale(1.08) rotate(0deg);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 10;
}

[data-theme="dark"] .portrait-polaroid.top-left .polaroid-frame {
    background: #4A4A4A;
}

.portrait-polaroid.top-left .photo-placeholder {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #FFE4B5 0%, #FFDAB9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

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

/* Polaroid photo sizing */
.polaroid-photo {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.portrait-polaroid .polaroid-photo {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.internship-polaroids .polaroid-photo {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.polaroid-frame.small .polaroid-photo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
}

.projects-spread .left-page .polaroid-frame.small .polaroid-photo {
    width: 54px;
    height: 54px;
}

.portrait-polaroid.top-left .polaroid-caption {
    text-align: center;
    font-family: var(--font-casual);
    margin-top: 10px;
    color: var(--ink-color);
}

.portrait-polaroid.top-left .tape-polaroid-1 {
    position: absolute;
    top: -10px;
    left: 20px;
    width: 40px;
    height: 20px;
    background: var(--tape-color);
    transform: rotate(-15deg);
}

.portrait-polaroid.top-left .sparkle-doodle {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 1.5rem;
    animation: sparkle 2s infinite;
}

/* Point to diary arrow */
.point-to-diary {
    position: absolute;
    bottom: -40px;
    right: -60px;
    width: 90px;
    height: 70px;
}

.point-to-diary path {
    stroke: var(--accent-color);
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
}

/* Mini diary note on left page */
.mini-diary-note {
    background: linear-gradient(135deg, #FFFACD 0%, #FFFFE0 100%);
    padding: 20px;
    margin: 0 20px 20px 20px;
    transform: rotate(1deg);
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

/* About header on top-left of left page */
.left-page .section-title {
    font-family: var(--font-marker);
    font-size: 30px;
    transform: rotate(-2deg);
    margin-bottom: 20px;
    text-align: center;
}

[data-theme="dark"] .mini-diary-note {
    background: linear-gradient(135deg, #5A5040 0%, #6A5A4A 100%);
}

.diary-note-title {
    font-family: var(--font-casual);
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.mini-diary-note p {
    font-family: var(--font-handwritten);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink-color);
}

/* Software skills as icon stickers */
.skill-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0;
    padding: 0;
    position: relative;
    flex: 1;
    align-content: flex-start;
    max-width: 360px;
}

.skill-icon {
    width: 84px;
    height: 84px;
    background: linear-gradient(135deg, #FFFACD 0%, #FFFFE0 100%);
    border-radius: 10px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

[data-theme="dark"] .skill-icon {
    background: linear-gradient(135deg, #5A5040 0%, #6A5A4A 100%);
}

.skill-icon:nth-child(odd) {
    transform: rotate(-3deg);
}

.skill-icon:nth-child(even) {
    transform: rotate(2deg);
}

.skill-icon:nth-child(3n) {
    transform: rotate(-5deg) translateY(-5px);
}

.skill-icon i {
    font-size: 2.2rem;
}

.skill-icon::after {
    content: attr(data-label);
    position: absolute;
    bottom: -18px;
    font-family: var(--font-doodle);
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.skill-icon:hover {
    transform: translateY(-5px) rotate(0deg) scale(1.1);
    z-index: 10;
}

.skill-icon:hover::before {
    content: '✨';
    position: absolute;
    top: -15px;
    right: -10px;
    animation: sparkle-pop 0.6s ease-out;
}

@keyframes sparkle-pop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Two Column Layout for Education & Experience */
.about-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 30px 10px;
    padding: 0 10px;
}

.about-column {
    position: relative;
}

.column-title {
    font-family: var(--font-marker);
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 0 0 15px 0;
    transform: rotate(-1deg);
}

/* Education Timeline*/
.about-column .education-timeline {
    position: relative;
    width: 100%;
    min-height: 380px;
    height: auto;
    left: 0;
    bottom: auto;
}

/* Experience Timeline */
.about-column .experience-timeline {
    min-height: 550px;
}

.timeline-line {
    position: absolute;
    left: 15px;
    top: 0;
    width: 10px;
    height: 100%;
}

.timeline-line path {
    stroke: rgba(139, 69, 19, 0.3);
    stroke-width: 2;
}

.timeline-item {
    position: absolute;
    left: 30px;
    width: 100%;
    max-width: 280px;
}

.timeline-card {
    background: #FFFACD;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
    transform: rotate(-1deg);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.timeline-card:hover {
    transform: scale(1.05) rotate(0deg);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 10;
}

[data-theme="dark"] .timeline-card {
    background: #5A5040;
}

.timeline-card::before {
    content: '📍';
    position: absolute;
    left: -28px;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-date {
    font-family: var(--font-marker);
    color: var(--accent-color);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 4px;
}

.timeline-card h4 {
    font-family: var(--font-casual);
    font-size: 1rem;
    margin: 4px 0;
    color: var(--primary-color);
}

.timeline-card p {
    font-family: var(--font-handwritten);
    font-size: 0.88rem;
    margin: 0;
    color: var(--ink-color);
    line-height: 1.6;
}

.timeline-card p strong {
    font-family: var(--font-casual);
    color: var(--primary-color);
    display: block;
    margin-bottom: 4px;
}

/* Skills Section */
.skills-section {
    margin: 30px 10px 20px 10px;
    padding: 0 10px;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.skill-category {
    background: linear-gradient(135deg, #FFE97F 0%, #FFE066 100%);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    transform: rotate(-1deg);
}

.skill-category:nth-child(2) {
    transform: rotate(1deg);
}

[data-theme="dark"] .skill-category {
    background: linear-gradient(135deg, #B8A04F 0%, #A89046 100%);
}

.skill-category h4 {
    font-family: var(--font-marker);
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 0 0 10px 0;
}

.skill-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-category li {
    font-family: var(--font-reading);
    font-size: 0.9rem;
    color: var(--ink-color);
    padding: 4px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.skill-category li:last-child {
    border-bottom: none;
}

/* Seoul Internship Header Banner */
.internship-header {
    margin-bottom: 30px;
    text-align: center;
}

.banner-note {
    display: inline-block;
    background: #FFE066;
    padding: 12px 35px;
    transform: rotate(-2deg);
    box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
    position: relative;
}

[data-theme="dark"] .banner-note {
    background: #7a5f1a;
}

.banner-note h3 {
    font-family: var(--font-marker);
    color: var(--ink-color);
    margin: 0;
    font-size: 1.7rem;
}

.tape-left-banner,
.tape-right-banner {
    position: absolute;
    width: 40px;
    height: 20px;
    background: var(--tape-color);
    top: -10px;
}

.tape-left-banner {
    left: -15px;
    transform: rotate(-15deg);
}

.tape-right-banner {
    right: -15px;
    transform: rotate(15deg);
}

/* Seoul Internship Polaroids */
.internship-polaroids {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.polaroid-frame.seoul-city {
    transform: rotate(-5deg) translateY(-10px);
}

.polaroid-frame.monoverse-office {
    transform: rotate(3deg) translateY(10px);
}

.polaroid-frame.seoul-extra {
    transform: rotate(-3deg) translateY(5px);
}

.polaroid-frame.seoul-culture {
    transform: rotate(4deg) translateY(-5px);
}

.internship-polaroids .polaroid-frame {
    background: white;
    padding: 10px 10px 40px 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.internship-polaroids .polaroid-frame:hover {
    transform: scale(1.08) rotate(0deg) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 10;
}

[data-theme="dark"] .internship-polaroids .polaroid-frame {
    background: #4A4A4A;
}

.internship-polaroids .photo-placeholder {
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, #FFE4B5 0%, #FFDAB9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.internship-polaroids .polaroid-caption {
    text-align: center;
    font-family: var(--font-casual);
    margin-top: 8px;
    color: var(--ink-color);
    font-size: 0.9rem;
}

/* Tape on polaroids */
.internship-polaroids .polaroid-frame::before {
    content: '';
    position: absolute;
    width: 36px;
    height: 36px;
    background: var(--tape-color);
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-20deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Internship Diary Entry */
.internship-diary-entry {
    padding: 0 30px;
}

.diary-date {
    font-family: var(--font-doodle);
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.diary-text.handwritten {
    font-family: var(--font-handwritten);
    line-height: 1.8;
    color: var(--ink-color);
}

.diary-text.handwritten p {
    margin-bottom: 12px;
}

.diary-list {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.diary-list li {
    font-family: var(--font-handwritten);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.diary-list li::before {
    content: '→';
    position: absolute;
    left: 5px;
    color: var(--accent-color);
    font-weight: bold;
}

/* Diary doodles */
.diary-doodles {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.diary-doodles .doodle {
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.diary-doodles .doodle:nth-child(2) {
    animation-delay: 0.5s;
}

.diary-doodles .doodle:nth-child(3) {
    animation-delay: 1s;
}

.diary-doodles .doodle:nth-child(4) {
    animation-delay: 1.5s;
}

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

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* Responsive Styles for About Me Section */
@media (max-width: 900px) {
    .portrait-and-icons {
        flex-direction: column;
        align-items: center;
        margin: 15px 10px 20px 10px;
        gap: 20px;
    }
    
    .portrait-polaroid.top-left {
        margin: 0 auto;
    }
    
    .skill-icons {
        max-width: 100%;
        justify-content: center;
    }
    
    .about-two-columns {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 20px 5px;
        padding: 0 5px;
    }
    
    .about-column .education-timeline {
        min-height: 380px;
        height: auto;
    }
    
    .about-column .experience-timeline {
        min-height: 550px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-section {
        margin: 20px 5px;
        padding: 0 5px;
    }
    
    .internship-polaroids {
        gap: 10px;
    }
    
    #about .left-page .page-content {
        padding: 20px 10px 30px 10px;
    }
}

/* Mobile: SEPARATE sections - each page becomes standalone */
@media (max-width: 768px) {
    /* Convert two-page grid to vertical stack with separation */
    .two-page-layout {
        display: flex !important;
        flex-direction: column;
        gap: 80px; /* Large gap to visually separate as distinct pages */
        max-width: 100%;
        padding: 0;
    }
    
    /* Each page (left/right) becomes a full standalone section on mobile */
    .diary-page {
        border-right: none;
        border-left: none;
        padding: 20px 12px;
        width: 100%;
        min-height: auto;
        position: relative;
        /* Add visual separation like individual notebook pages */
        margin-bottom: 20px;
    }
    
    .left-page, .right-page {
        min-height: 60vh; /* Enough space for content */
        padding: 0;
        width: 100%;
        display: block !important; /* Ensure both show */
    }
    
    /* Add page separator styling */
    .diary-page::after {
        content: '';
        display: block;
        width: 60px;
        height: 3px;
        background: var(--accent-color);
        margin: 30px auto 0;
        opacity: 0.3;
    }
    
    /* About section mobile */
    .left-page .section-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .mini-diary-note {
        padding: 10px;
        font-size: 0.85rem;
        margin: 12px 0;
    }
    
    .diary-text { 
        font-size: 0.9rem; 
        line-height: 1.6; 
    }
    
    /* Portrait and icons container */
    .portrait-and-icons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin: 15px 0;
    }
    
    .skill-icons {
        justify-content: center;
        gap: 8px;
        max-width: 100%;
    }
    
    .skill-icon {
        width: 50px;
        height: 50px;
    }
    
    /* Timeline adjustments */
    .education-timeline, .experience-timeline {
        padding: 15px 10px;
        min-height: auto !important;
        margin: 15px 0;
    }
    
    .timeline-item {
        margin-bottom: 15px;
        position: relative !important;
        top: auto !important;
    }
    
    .timeline-card {
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .timeline-card h4 {
        font-size: 0.95rem;
    }
    
    .timeline-card p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    /* About two columns */
    .about-two-columns {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 15px 0;
    }
    
    .about-column {
        padding: 0;
    }
    
    /* Skills */
    .skills-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .skill-category {
        padding: 10px;
    }
    
    .skill-category h4 {
        font-size: 1rem;
    }
    
    .skill-category ul {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Internship polaroids - Seoul Internship section */
    .internship-polaroids {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin: 15px 0;
    }
    
    .internship-card {
        width: 100%;
        max-width: 280px;
    }
    
    /* Seoul section heading */
    #about .right-page .section-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .seoul-internship-section {
        padding: 15px 10px;
    }
    
    .seoul-description {
        font-size: 0.9rem;
        line-height: 1.6;
        text-align: center;
        margin: 15px 0;
    }
    
    /* Reviews section (Peer Reviews) */
    .reviews-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px 5px;
    }
    
    .review-card {
        padding: 15px 12px;
        margin-bottom: 15px;
    }
    
    .reviewer-polaroid {
        width: 70px;
        height: 70px;
        top: -12px;
        right: -8px;
    }
    
    .reviewer-polaroid img {
        width: 100%;
        height: 100%;
    }
    
    .review-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .reviewer-name {
        font-size: 1rem;
    }
    
    .review-sparkles {
        font-size: 1rem;
    }
    
    /* Projects spread - stack both reviews and projects overview */
    .projects-spread .two-page-layout {
        display: flex !important;
        flex-direction: column;
        gap: 80px;
    }
    
    .projects-spread .left-page,
    .projects-spread .right-page {
        display: block !important;
        width: 100%;
        overflow-y: visible;
        min-height: 60vh;
    }
    
    /* Contact form */
    .contact-form-wrapper {
        padding: 0;
        margin: 0;
    }
    
    .scrapbook-note {
        padding: 15px 12px;
        margin: 10px 0;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 8px 5px;
    }
    
    .send-btn {
        padding: 12px 24px;
        font-size: 1rem;
        margin-top: 10px;
    }
    
    /* Thanks section - separate page on mobile */
    #contact .right-page {
        display: block !important;
        min-height: 50vh;
        text-align: center;
    }
    
    #contact .right-page .section-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .closing-text {
        font-size: 1rem;
        line-height: 1.7;
        padding: 0 15px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .wave-hand {
        font-size: 2.5rem;
        margin: 20px 0;
    }
    
    .diary-entry {
        padding: 20px 15px;
    }
    
    .signature {
        display: block;
        margin-top: 15px;
        font-size: 1.1rem;
    }
    
    /* Projects Overview section (right page) - separate on mobile */
    #projects .right-page {
        display: block !important;
        min-height: 70vh;
    }
    
    #projects .right-page .section-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
}

/* Extra small phones - further refinements */
@media (max-width: 480px) {
    .two-page-layout {
        gap: 60px; /* Smaller gap but still distinct */
    }
    
    .diary-page {
        padding: 15px 10px;
        min-height: 50vh;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .timeline-card,
    .review-card,
    .skill-category {
        padding: 10px;
        font-size: 0.8rem;
    }
    
    .mini-diary-note {
        padding: 8px;
        font-size: 0.8rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
    }
    
    .send-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .closing-text {
        font-size: 0.95rem;
        padding: 0 10px;
    }
    
    .wave-hand {
        font-size: 2rem;
    }
    
    .internship-card {
        max-width: 240px;
    }
    
    .portrait-img {
        width: 160px !important;
        height: 160px !important;
    }
}
