/* Base Styles */
:root {
    --primary: #ffffff;
    --secondary: #3b82f6;
    --accent: #a5b4fc;
    --bg: #000000;
}

/* 
============================================
TYPOGRAPHY STANDARDS - wan-choi.com
============================================
These standards ensure consistency across all pages.

BASE FONT SIZE: 14px
- Body text: 14px
- All measurements should scale from this baseline

HIERARCHY RULES:
- Headers must be at least 2x the body text size for clear visual hierarchy
- H1 (Page titles): 28px minimum (2x body)
- H2 (Section headers): 28px minimum (2x body)
- Body text: 14px
- Small text (copyright, captions): 12px

LINE HEIGHT:
- Body text: 1.6 (optimal readability)
- Headers: 1.2-1.3 (tighter for impact)

SPACING:
- Header to body: 1-1.5rem
- Between paragraphs: 1.5rem
- Section spacing: 3-4rem
============================================
*/

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

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--primary);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    font-size: 14px;
    display: flex;
    flex-direction: column;
}

/* Aurora Background Animation */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #000000;
}

.aurora-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            100deg,
            transparent 0%,
            rgba(59, 130, 246, 0.15) 10%,
            rgba(165, 180, 252, 0.15) 15%,
            transparent 20%,
            rgba(147, 197, 253, 0.15) 25%,
            rgba(221, 214, 254, 0.15) 30%,
            transparent 35%,
            rgba(96, 165, 250, 0.15) 40%,
            transparent 50%
        );
    background-size: 300%, 200%;
    background-position: 50% 50%, 50% 50%;
    filter: blur(60px);
    opacity: 1;
    animation: aurora-shift 20s ease-in-out infinite;
}

.aurora {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            100deg,
            transparent 0%,
            rgba(59, 130, 246, 0.2) 8%,
            rgba(165, 180, 252, 0.2) 12%,
            transparent 16%,
            rgba(147, 197, 253, 0.2) 22%,
            rgba(221, 214, 254, 0.2) 26%,
            transparent 30%,
            rgba(96, 165, 250, 0.2) 36%,
            transparent 40%
        );
    background-size: 200%;
    filter: blur(50px);
    animation: aurora-flow 25s linear infinite;
}

.aurora:nth-child(2) {
    background: 
        repeating-linear-gradient(
            80deg,
            transparent 0%,
            rgba(96, 165, 250, 0.15) 8%,
            rgba(147, 197, 253, 0.15) 14%,
            transparent 20%,
            rgba(165, 180, 252, 0.15) 26%,
            rgba(59, 130, 246, 0.15) 32%,
            transparent 38%
        );
    animation-delay: -10s;
    animation-duration: 30s;
}

.aurora:nth-child(3) {
    background: 
        repeating-linear-gradient(
            120deg,
            transparent 0%,
            rgba(221, 214, 254, 0.12) 10%,
            rgba(165, 180, 252, 0.12) 16%,
            transparent 22%,
            rgba(96, 165, 250, 0.12) 28%,
            rgba(147, 197, 253, 0.12) 34%,
            transparent 40%
        );
    animation-delay: -20s;
    animation-duration: 35s;
}

@keyframes aurora-flow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes aurora-shift {
    0%, 100% {
        transform: translateX(-10%) translateY(-10%);
    }
    50% {
        transform: translateX(10%) translateY(10%);
    }
}

/* Layout */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: opacity 0.3s ease;
}

nav a:hover {
    opacity: 0.8;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Main Content */
main {
    padding: 4rem 0;
    flex: 1;
    display: flex;
    align-items: flex-start;
    position: relative;
}

.content-grid {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.about {
    position: absolute;
    bottom: 0;
    left: 0;
    max-width: 600px;
}

.about h2 {
    font-size: 28px; /* 2x body text (14px x 2) - minimum for clear hierarchy */
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
}

.about p {
    font-size: 14px; /* Base body text size */
    line-height: 1.6; /* Optimal readability */
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.photo-placeholder {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Shift image up - adjust percentage to show face */
}

.photo-placeholder::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0.03) 100%
    );
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Footer */
footer {
    padding: 3rem 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
}

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

.contact-links a {
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.contact-links a:hover {
    color: var(--accent);
}

.copyright {
    font-size: 12px; /* Small text */
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .content-grid {
        flex-direction: column;
        gap: 2rem;
    }
    
    .about {
        position: static;
        max-width: 100%;
    }
    
    .photo-placeholder {
        position: static;
        width: 100%;
        height: 300px;
        margin-top: 2rem;
    }
    
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    nav ul {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }
    
    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .about h2 {
        font-size: 2rem;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 1rem;
    }
}