/* Personal Landing Page - iOS-inspired, natural, airy */
:root {
    --color-bg: #f2f2f7;
    --color-card: rgba(255, 255, 255, 0.85);
    --color-card-solid: #ffffff;
    --color-text: #1c1c1e;
    --color-text-secondary: #3a3a3c;
    --color-text-tertiary: #8e8e93;
    --color-accent: #d4a574;
    --color-separator: rgba(60, 60, 67, 0.1);

    /* Hero section (light text on image) */
    --hero-text: #ffffff;
    --hero-text-secondary: rgba(255, 255, 255, 0.85);
    --hero-text-tertiary: rgba(255, 255, 255, 0.7);

    --font-serif: 'New York', 'Georgia', 'Times New Roman', serif;
    --font-sans: 'Urbanist', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;

    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: url('images/header-background2.jpg') center center / cover no-repeat fixed;
    color: var(--color-text);
    line-height: 1.5;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

/* Page Layout */
.page {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Viewport frame border with dark outer mask */
.page::before {
    content: '';
    position: fixed;
    inset: 28px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 100;
} 

/* Shared section layout — right-aligned content column */
.section {
    position: relative;
    z-index: 2;
    width: 580px;
    margin-left: auto;
    margin-right: 60px;
    padding: 80px 0;
    transition: opacity 0.15s ease-out;
}

.section-title {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hero-text);
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 60px;
    background: transparent;
}

.hero::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.15) 50%,
        rgba(0, 0, 0, 0.50) 100%
    );
    z-index: 0;
    pointer-events: none;
}

/* Triangle grid with animated ocean waves */
.hero::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;

    /* --- Triangle Grid --- */
    background:
        linear-gradient(
            225deg,
            rgba(255, 255, 255, 0.12) 50%,
            transparent 50%
        );
    background-size: 5px 5px;
    background-attachment: fixed;

    /* --- Masks --- */
    -webkit-mask-image:
        /* Fade mask (static) — right side only */
        linear-gradient(to right,
            transparent 55%,
            rgba(0,0,0,0.1) 70%,
            rgba(0,0,0,0.4) 85%,
            rgba(0,0,0,0.6) 100%
        ),
        /* Wave — very slow, long periods of quiet */
        repeating-linear-gradient(
            160deg,
            rgba(0,0,0,0.1),
            rgba(0,0,0,0.5) 700px,
            rgba(0,0,0,0.1) 1400px
        );
    mask-image:
        linear-gradient(to right, transparent 45%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.6) 80%, black 100%),
        repeating-linear-gradient(160deg, rgba(0,0,0,0.1), rgba(0,0,0,0.5) 700px, rgba(0,0,0,0.1) 1400px);

    -webkit-mask-size: 100% 100%, 500% 500%;
    mask-size: 100% 100%, 500% 500%;
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    z-index: 0;

    animation: oceanWaves 280s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 580px;
}

.hero-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Photo area - hidden in card layout */
.hero-photo {
    display: none;
}

.photo-frame,
.photo-container,
.photo-placeholder,
.photo-accent,
.photo-dots {
    display: none;
}


/* Hide intro line */
.intro {
    display: none;
}

/* Name - above the card */
h1 {
    font-family: var(--font-sans);
    font-size: 3.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--hero-text);
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.5),
        0 4px 24px rgba(0, 0, 0, 0.4),
        0 8px 48px rgba(0, 0, 0, 0.3);
}

.name-first {
    font-weight: 300;
    color: var(--hero-text);
}

.name-last {
    font-weight: 700;
    color: var(--hero-text);
}

/* Card meta - title and location row */
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--hero-text-secondary);
    font-weight: 500;
}

.meta-item svg {
    opacity: 0.7;
}

/* Card footer */
.card-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Bio */
.bio {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--hero-text-secondary);
    line-height: 1.65;
    margin: 0;
}

.personal {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--hero-text-tertiary);
    font-style: italic;
    margin: 0;
}

/* Social */
.social {
    display: flex;
    gap: 10px;
}

.social-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--hero-text);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, background 0.2s ease;
}

.social-pill:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.social-pill:active {
    transform: scale(0.95);
}

/* Scroll indicator */
.scroll-indicator {
    display: none;
}

.scroll-line {
    display: none;
}

/* Key Qualities Section */
.qualities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.quality-card {
    padding: 24px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quality-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.quality-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hero-text-secondary);
    margin-bottom: 14px;
}

.quality-title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--hero-text);
    margin-bottom: 6px;
}

.quality-description {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--hero-text-tertiary);
    line-height: 1.5;
}

/* Journey / Timeline Section */

.journey-path {
    position: relative;
}

/* The winding SVG path - positioned to flow down center of the section */
.winding-path {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 100%;
    z-index: 1;
    overflow: visible;
}

.path-line {
    stroke: rgba(255, 255, 255, 0.45);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 5 7;
}

/* Events container */
.journey-events {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

/* Individual event positioning */
.journey-event {
    position: relative;
    display: flex;
    align-items: center;
    height: 80px;
}

.journey-event-right {
    justify-content: flex-end;
    padding-right: calc(50% + 40px);
}

.journey-event-left {
    justify-content: flex-start;
    padding-left: calc(50% + 40px);
}

.journey-event-right .event-card {
    text-align: right;
}

.journey-event-right .event-header {
    flex-direction: row-reverse;
}

.journey-event-left .event-card {
    text-align: left;
}

/* Event cards */
.event-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 200px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.event-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.event-logo {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.5625rem;
    font-weight: 600;
    color: var(--hero-text-tertiary);
    letter-spacing: 0.02em;
}

.event-period {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--hero-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-role {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--hero-text);
    line-height: 1.3;
}

.event-company {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--hero-text-tertiary);
}

/* Connection dots on the path - positioned at center */
.journey-event::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    z-index: 5;
}

/* Staggered animation for events */
.journey-event {
    animation: fadeSlideIn 0.6s ease-out backwards;
}

.journey-event:nth-child(1) { animation-delay: 0.6s; }
.journey-event:nth-child(2) { animation-delay: 0.75s; }
.journey-event:nth-child(3) { animation-delay: 0.9s; }
.journey-event:nth-child(4) { animation-delay: 1.05s; }
.journey-event:nth-child(5) { animation-delay: 1.2s; }

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

/* Footer */
.footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 0 60px 0;
    background: var(--color-card-solid);
}

.footer p {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--color-text-tertiary);
}

/* Animations */
/* Positions: fade mask (fixed), wave travel (x y) */
@keyframes oceanWaves {
    0%   { -webkit-mask-position: 0 0, 0% 0%; mask-position: 0 0, 0% 0%; }
    100% { -webkit-mask-position: 0 0, 200% 400%; mask-position: 0 0, 200% 400%; }
}

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

.hero-photo {
    animation: fadeIn 0.6s ease-out 0.1s backwards;
}

.hero-info > * {
    animation: fadeIn 0.5s ease-out backwards;
}

h1 { animation-delay: 0.15s; }
.title { animation-delay: 0.2s; }
.location-tag { animation-delay: 0.25s; }
.bio { animation-delay: 0.3s; }
.personal { animation-delay: 0.35s; }
.social { animation-delay: 0.4s; }

.experience {
    animation: fadeIn 0.5s ease-out 0.5s backwards;
}

/* Responsive */
@media (max-width: 600px) {
    .page::before {
        inset: 12px;
        border-radius: 16px;
    }

    .hero {
        padding: 40px 24px;
        justify-content: center;
    }

    .hero-content {
        width: 100%;
    }

    .hero-info {
        padding: 24px;
    }

    h1 {
        font-size: 1.875rem;
    }

    .bio {
        font-size: 0.9375rem;
    }

    /* Shared section responsive */
    .section {
        width: 100%;
        margin-right: 0;
        padding: 60px 20px;
    }

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

    /* Journey responsive */
    .journey {
        padding: 0 0 80px 0;
    }

    .winding-path {
        width: 60px;
    }

    .journey-event {
        height: 70px;
    }

    .journey-event-right,
    .journey-event-left {
        padding-left: calc(50% + 24px);
        padding-right: 10px;
        justify-content: flex-start;
    }

    .event-card {
        padding: 12px 14px;
        width: auto;
        text-align: left;
    }

    .event-role {
        font-size: 0.8125rem;
    }

    .journey-event::before {
        width: 8px;
        height: 8px;
    }
}
