/* Custom Font Import */
@font-face {
    font-family: 'Happy Goheung';
    src: url('fonts/HappyGoheung.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #fefefe;
    overflow-x: hidden;
}

/* Container */
.container {
    min-height: 100vh;
    position: relative;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 254, 254, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
    transition: all 0.3s ease;
}

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

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

/* Main content */
.main {
    padding-top: 80px;
}

/* Hero section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    background: linear-gradient(135deg, #fefefe 0%, #f8f9fa 100%);
    position: relative;
    z-index: 20;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    text-align: left;
    max-width: 600px;
    z-index: 2;
    position: relative;
    margin-left: 4rem;
    padding-left: 2rem;
}

/* Hero Image Styles */
.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    transform: translateX(50px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-image.visible {
    opacity: 1;
    transform: translateX(0);
}

.headshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: contrast(1.1) brightness(0.95);
}

.hero-image-blend {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(254, 254, 254, 1) 0%,
        rgba(254, 254, 254, 0.9) 20%,
        rgba(254, 254, 254, 0.7) 40%,
        rgba(254, 254, 254, 0.4) 60%,
        rgba(254, 254, 254, 0.2) 80%,
        rgba(254, 254, 254, 0) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Quote Section */
.quote-section {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #fefefe 100%);
    position: relative;
    z-index: 20;
}

.quote-container {
    max-width: 700px;
    text-align: right;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.quote-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.quote-text {
    font-family: 'Poiret One', cursive;
    font-size: clamp(1.17rem, 2.68vw, 1.68rem);
    font-weight: 400;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    font-style: normal;
    letter-spacing: 0.02em;
    position: relative;
}

.quote-text::before {
    content: '"';
    font-size: 3rem;
    color: #e0e0e0;
    position: absolute;
    top: -0.5rem;
    right: calc(100% + 0.5rem);
    font-family: 'Poiret One', cursive;
    line-height: 1;
}

.quote-text::after {
    content: '"';
    font-size: 3rem;
    color: #e0e0e0;
    position: absolute;
    bottom: -1rem;
    right: -1.5rem;
    font-family: 'Poiret One', cursive;
    line-height: 1;
}

.quote-word {
    color: #ddd;
    transition: color 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-block;
    margin-right: 0.3em;
}

.quote-word.revealed {
    color: #1a1a1a;
}

.quote-author {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: #666;
    font-style: normal;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.quote-author.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

/* Korean text styling */
[lang="ko"] {
    font-family: 'Happy Goheung', 'Noto Serif KR', serif;
    font-weight: normal;
    font-size: 2.5em;
}

.hero-title span:first-child {
    font-family: 'Happy Goheung', 'Noto Serif KR', 'Playfair Display', serif;
    font-weight: normal;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-subtitle p {
    font-size: 1.25rem;
    color: #666;
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* Typewriter animation styles */
.typewriter {
    display: inline-block;
}

.typewriter-text {
    display: inline;
}

.typewriter-cursor {
    display: inline-block;
    animation: blink 1s infinite;
    font-weight: 400;
    color: #444;
}

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

/* About section header */
.about-header {
    padding: 6rem 2rem 4rem;
    text-align: center;
    background: #fefefe;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 20;
}

/* Vertical Timeline */
.vertical-timeline {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100vh;
    width: 2px;
    z-index: 15;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.vertical-timeline.visible {
    opacity: 1;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100vh;
    background: linear-gradient(180deg, 
        rgba(192, 192, 192, 0.4) 0%, 
        rgba(169, 169, 169, 0.7) 50%, 
        rgba(192, 192, 192, 0.4) 100%
    );
}

.timeline-node {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}



.node-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #A9A9A9;
    border: 2px solid #fefefe;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.node-label {
    position: absolute;
    left: 25px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
}

/* Position labels for node 1 and 3 on the left side */
.timeline-node-1 .node-label,
.timeline-node-3 .node-label {
    left: auto;
    right: 25px;
    transform: translateX(10px);
}

.timeline-node-1.active .node-label,
.timeline-node-3.active .node-label {
    transform: translateX(0);
}

/* Timeline positioning for each section */
.timeline-node-1 {
    top: 30vh;
}

.timeline-node-2 {
    top: 50vh;
}

.timeline-node-3 {
    top: 70vh;
}

/* Active states */
.timeline-node.active {
    opacity: 1;
}

.timeline-node.active .node-dot {
    background: #708090;
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 0 4px rgba(169, 169, 169, 0.2);
}

.timeline-node.active .node-label {
    opacity: 1;
    transform: translateX(0);
}

.section-header {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 400;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #1a1a1a, #666);
}

/* Bio sections */
.bio-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
    overflow: hidden;
}

/* Pastel backgrounds for each bio section */
.bio-section-1 {
    background: linear-gradient(135deg, #fef7ff 0%, #f3e8ff 100%); /* Soft lavender */
}

.bio-section-2 {
    background: linear-gradient(135deg, #f0fdfa 0%, #e6fffa 100%); /* Soft mint */
}

.bio-section-3 {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%); /* Soft cream */
}



.bio-content {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 100vh;
}

/* Bio Section 1: Image left, text right */
.bio-section-1 .bio-content {
    grid-template-areas: "image text";
}

.bio-section-1 .bio-image-container {
    grid-area: image;
}

.bio-section-1 .bio-text-container {
    grid-area: text;
}

/* Bio Section 2: Text left, image right */
.bio-section-2 .bio-content {
    grid-template-areas: "text image";
}

.bio-section-2 .bio-text-container {
    grid-area: text;
}

.bio-section-2 .bio-image-container {
    grid-area: image;
}

/* Bio Section 3: Image left, text right */
.bio-section-3 .bio-content {
    grid-template-areas: "image text";
}

.bio-section-3 .bio-image-container {
    grid-area: image;
}

.bio-section-3 .bio-text-container {
    grid-area: text;
}

/* Image containers */
.bio-image-container {
    height: 100vh;
    width: 100%;
    position: relative;
    opacity: 0;
    transform: scale(1.1) translateY(20px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
    overflow: hidden;
}

.bio-image {
    width: 60%;
    height: 85%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    will-change: transform;
    border-radius: 25px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    aspect-ratio: 9 / 16;
    object-fit: cover;
    background: #000;
}

/* Phone frame variations for different sections */
.bio-section-1 .bio-image {
    border-radius: 30px;
}

.bio-section-2 .bio-image {
    border-radius: 20px;
}

.bio-section-3 .bio-image {
    border-radius: 35px;
}

.bio-image-1 {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(168, 85, 247, 0.3) 100%), 
                url('images/image1.jpg') center/cover no-repeat;
    background-blend-mode: overlay;
}

.bio-image-2 {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.3) 0%, rgba(13, 148, 136, 0.3) 100%), 
                url('images/image2.jpg') center/cover no-repeat;
    background-blend-mode: overlay;
}

.bio-image-3 {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3) 0%, rgba(245, 158, 11, 0.3) 100%), 
                url('images/image3.jpg') center/cover no-repeat;
    background-blend-mode: overlay;
}

.image-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.image-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* Text containers */
.bio-text-container {
    padding: 4rem;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
    position: relative;
    z-index: 5;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Initial state for text containers - JavaScript handles positioning */
.bio-text-container:not(.visible) {
    opacity: 0;
}

.bio-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.bio-paragraph {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #444;
    font-weight: 300;
    text-align: justify;
}

/* Consistent styling for all bio paragraphs */
.bio-section-1 .bio-paragraph,
.bio-section-2 .bio-paragraph,
.bio-section-3 .bio-paragraph {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Coming soon section */
.coming-soon {
    padding: 6rem 2rem;
    background: #f8f9fa;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 20;
}

.coming-soon-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.status-text {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 2rem;
    font-weight: 300;
}

.progress-indicator {
    width: 200px;
    height: 2px;
    background: #e0e0e0;
    margin: 0 auto;
    border-radius: 1px;
    overflow: hidden;
}

.progress-line {
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, #1a1a1a, #666);
    border-radius: 1px;
    animation: progress 3s ease-in-out infinite;
}

@keyframes progress {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(250%); }
    100% { transform: translateX(-100%); }
}

/* Footer */
.footer {
    padding: 3rem 2rem 2rem;
    border-top: 1px solid rgba(26, 26, 26, 0.08);
    background: #fefefe;
    position: relative;
    z-index: 25;
    margin-top: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: #666;
    font-size: 0.875rem;
    font-weight: 300;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: #666;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #1a1a1a;
}

/* Animation states */
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.bio-section.visible {
    opacity: 1;
    transform: translateY(0);
    z-index: 2;
}

.bio-image-container.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.bio-image-container.fully-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.bio-text-container.visible {
    opacity: 1;
}

.about-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.coming-soon.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.delay-1.visible {
    transition-delay: 0.2s;
}

.fade-in.delay-2.visible {
    transition-delay: 0.4s;
}

.fade-in.delay-3.visible {
    transition-delay: 0.6s;
}

.fade-in.delay-4.visible {
    transition-delay: 0.8s;
}

.fade-in.delay-5.visible {
    transition-delay: 1s;
}

/* Responsive design */
@media (max-width: 1024px) {
    .hero-content {
        margin-left: 2rem;
        padding-left: 1rem;
    }
    
    .hero-image {
        width: 45%;
    }
    
    .hero-image-blend {
        width: 50%;
    }
    
    .quote-section {
        padding: 1rem 2rem;
        min-height: 30vh;
        justify-content: center;
    }
    
    .quote-container {
        text-align: center;
    }
    
    .quote-text::before,
    .quote-text::after {
        font-size: 2.5rem;
    }
    
    .quote-text::before {
        top: -0.3rem;
        right: calc(100% + 0.3rem);
    }
    
    .quote-text::after {
        bottom: -1rem;
        right: -1rem;
    }
    
    .bio-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .bio-section-1 .bio-content,
    .bio-section-2 .bio-content,
    .bio-section-3 .bio-content {
        grid-template-areas: 
            "image"
            "text";
    }
    
    .bio-image-container {
        height: 60vh;
        min-height: 400px;
    }
    
    .bio-text-container {
        padding: 3rem 2rem;
        margin: 1.5rem;
        border-radius: 15px;
    }
    
    .image-text {
        font-size: 2rem;
    }

    /* Adjust phone frame for tablet */
    .bio-image {
        width: 50%;
        height: 75%;
        border-radius: 20px;
    }
    
    .bio-section-1 .bio-image,
    .bio-section-2 .bio-image,
    .bio-section-3 .bio-image {
        border-radius: 20px;
    }

    /* Hide timeline on tablet too for better mobile experience */
    .vertical-timeline {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.5rem;
    }
    
    .hero {
        min-height: 80vh;
        padding: 1rem;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
        margin-bottom: 2rem;
        margin-left: 0;
        padding-left: 0;
    }
    
    .hero-image {
        position: relative;
        width: 100%;
        height: 50vh;
        min-height: 300px;
        order: -1;
        margin-bottom: 2rem;
    }
    
    .hero-image-blend {
        background: linear-gradient(
            to bottom,
            rgba(254, 254, 254, 0) 0%,
            rgba(254, 254, 254, 0.2) 20%,
            rgba(254, 254, 254, 0.4) 40%,
            rgba(254, 254, 254, 0.7) 60%,
            rgba(254, 254, 254, 0.9) 80%,
            rgba(254, 254, 254, 1) 100%
        );
        width: 100%;
        height: 30%;
        bottom: 0;
        top: auto;
    }

    .hero-subtitle p {
        font-size: 1.125rem;
    }
    
    .typewriter-cursor {
        font-size: 1.125rem;
    }
    
    .about-header {
        padding: 4rem 1.5rem 2rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .quote-section {
        padding: 1rem 1.5rem;
        min-height: 25vh;
    }
    
    .quote-text {
        font-size: 1rem;
    }
    
    .quote-text::before,
    .quote-text::after {
        font-size: 2rem;
    }
    
    .quote-text::before {
        top: -0.2rem;
        right: calc(100% + 0.2rem);
    }
    
    .quote-text::after {
        bottom: -0.8rem;
        right: -0.8rem;
    }
    
    .quote-author {
        font-size: 0.67rem;
    }
    
    .bio-section {
        min-height: auto;
    }
    
    .bio-image-container {
        height: 50vh;
        min-height: 300px;
    }
    
    .bio-text-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
        border-radius: 12px;
    }
    
    .bio-section-title {
        font-size: 1.75rem;
    }
    
    .bio-paragraph {
        font-size: 1rem;
        text-align: left;
    }
    
    .bio-section-1 .bio-paragraph,
    .bio-section-2 .bio-paragraph,
    .bio-section-3 .bio-paragraph {
        font-size: 0.9rem;
    }
    
    .image-text {
        font-size: 1.75rem;
    }

    /* Adjust phone frame for mobile */
    .bio-image {
        width: 45%;
        height: 70%;
        border-radius: 18px;
        box-shadow: 
            0 15px 30px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.1);
    }
    
    .bio-section-1 .bio-image,
    .bio-section-2 .bio-image,
    .bio-section-3 .bio-image {
        border-radius: 18px;
    }
    
    .coming-soon {
        padding: 4rem 1.5rem;
    }
    
    .coming-soon-text h3 {
        font-size: 1.75rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-image {
        height: 40vh;
        min-height: 250px;
    }
    
    .hero-subtitle p {
        font-size: 1rem;
    }
    
    .typewriter-cursor {
        font-size: 1rem;
    }
    

    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .bio-image-container {
        height: 40vh;
        min-height: 250px;
    }
    
    .bio-text-container {
        padding: 1.5rem 1rem;
        margin: 0.5rem;
        border-radius: 10px;
    }
    
    .bio-section-title {
        font-size: 1.5rem;
    }
    
    .bio-paragraph {
        font-size: 0.9rem;
    }
    
    .bio-section-1 .bio-paragraph,
    .bio-section-2 .bio-paragraph,
    .bio-section-3 .bio-paragraph {
        font-size: 0.85rem;
    }
    
    .image-text {
        font-size: 1.5rem;
    }

    /* Adjust phone frame for small mobile */
    .bio-image {
        width: 40%;
        height: 65%;
        border-radius: 15px;
        box-shadow: 
            0 12px 25px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.1);
    }
    
    .bio-section-1 .bio-image,
    .bio-section-2 .bio-image,
    .bio-section-3 .bio-image {
        border-radius: 15px;
    }

    /* Hide timeline completely on mobile */
    .vertical-timeline {
        display: none;
    }
    
    .progress-indicator {
        width: 150px;
    }
} 