/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: #0a0a0a;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

/* ==================== LANGUAGE SELECTOR ==================== */
.lang-selector {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
}

.lang-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.lang-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.lang-sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    user-select: none;
}

/* ==================== VIEWS ==================== */
.view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    overflow-y: auto;
}

.view.active {
    opacity: 1;
    visibility: visible;
}

/* ==================== LANDING / SPLIT ==================== */
#landing {
    overflow: hidden;
}

.split-container {
    display: flex;
    width: 100%;
    height: 100vh;
    position: relative;
}

.split-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.split-personal {
    background: linear-gradient(135deg, #7a9a7a 0%, #b8c4a8 50%, #ddd8c4 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.split-professional {
    background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #2d7d9a 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite reverse;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.split-container:hover .split-personal:hover {
    flex: 1.5;
}

.split-container:hover .split-professional:hover {
    flex: 1.5;
}

.split-container:hover .split-side:not(:hover) {
    flex: 0.8;
}

.split-content {
    text-align: center;
    z-index: 2;
    padding: 2rem;
}

.split-title {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.split-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 2rem;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.split-btn {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.85rem 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.split-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.split-center-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
}

.split-center-name h1 {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2.8rem);
    font-weight: 700;
    white-space: nowrap;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.75rem 2rem;
    border-radius: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ==================== SECTION NAVIGATION ==================== */
.section-nav {
    position: fixed;
    top: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.section-nav button {
    pointer-events: auto;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.6rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-nav button:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ==================== PERSONAL SECTION ==================== */
.personal-page {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(180deg, #7a9a7a 0%, #b8c4a8 30%, #e8e4d8 60%, #f5f2eb 100%);
    min-height: 100vh;
    color: #2e3d2e;
}

.personal-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 6rem 2rem 4rem;
    text-align: center;
}

.hero-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.personal-photo {
    border: 4px solid rgba(255, 255, 255, 0.5);
}

.personal-greeting {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 0.75rem;
}

.personal-tagline {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
}

.personal-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.personal-section h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #3a5a3a;
}

.personal-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #354a35;
}

/* Interest Cards */
.interest-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.interest-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 1.25rem;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.interest-card-family {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(122, 154, 122, 0.3);
    grid-column: 1 / -1;
}

.interest-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.interest-photo {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.interest-photo-family {
    height: 275px;
    object-position: center 30%;
}

.interest-photo-hiking {
    object-position: center 50%;
}

.interest-photo-running {
    object-position: center 0%;
}

.interest-photo-ukulele {
    object-position: center 30%;
}

.interest-photo-youth {
    object-position: center 55%;
}

.interest-text {
    padding: 1.25rem 1.5rem;
}

.interest-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #3a5a3a;
}

.interest-card p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.value-card {
    background: rgba(122, 154, 122, 0.15);
    border: 1px solid rgba(122, 154, 122, 0.3);
    color: #354a35;
    padding: 1.75rem 1.25rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.05rem;
    transition: transform 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(4px);
}

.value-card:hover {
    transform: scale(1.04);
    background: rgba(122, 154, 122, 0.25);
}

.value-icon {
    font-size: 2rem;
}

/* Volunteering */
.vol-feature {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 1.25rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.vol-logo {
    width: 120px;
    min-width: 120px;
    border-radius: 0.75rem;
    object-fit: contain;
    background: #fff;
    padding: 0.5rem;
}

.vol-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #3a5a3a;
    margin-bottom: 0.5rem;
}

.vol-info p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.vol-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.vol-link {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #7a9a7a;
    text-decoration: none;
    padding: 0.4rem 1rem;
    border: 2px solid #7a9a7a;
    border-radius: 2rem;
    transition: all 0.3s ease;
}

.vol-link:hover {
    background: #7a9a7a;
    color: #fff;
}

/* ==================== PROFESSIONAL SECTION ==================== */
.professional-page {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #0a1628 0%, #1a3a5c 40%, #1e4d6e 70%, #0f2b44 100%);
    min-height: 100vh;
    color: #e0e8f0;
}

.professional-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 6rem 2rem 4rem;
    text-align: center;
}

.professional-photo {
    border: 4px solid rgba(45, 125, 154, 0.6);
}

.professional-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pro-role {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #5bb8d4;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.pro-tagline {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.pro-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.pro-section h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #5bb8d4;
}

.pro-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #c0d0e0;
}

.pro-section p strong {
    color: #fff;
    font-weight: 600;
}

/* Drives Grid */
.drives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.drive-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(91, 184, 212, 0.2);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.drive-card:hover {
    transform: translateY(-4px);
    border-color: rgba(91, 184, 212, 0.5);
    box-shadow: 0 8px 30px rgba(91, 184, 212, 0.1);
}

.drive-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.drive-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff;
}

.drive-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #a0b8cc;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: rgba(91, 184, 212, 0.3);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -1.75rem;
    top: 0.35rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #5bb8d4;
    border: 2px solid #0f2b44;
    box-shadow: 0 0 0 3px rgba(91, 184, 212, 0.3);
}

.timeline-item:first-child .timeline-dot {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(91, 184, 212, 0.5);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(91, 184, 212, 0.15);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.3s ease;
}

.timeline-content:hover {
    border-color: rgba(91, 184, 212, 0.4);
}

.timeline-company {
    font-size: 1.1rem;
    font-weight: 700;
    color: #5bb8d4;
    margin-bottom: 0.25rem;
}

.timeline-role {
    font-size: 0.95rem;
    color: #c0d0e0;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.timeline-date {
    font-size: 0.8rem;
    color: #7a98b0;
    font-weight: 500;
}

/* Certifications */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.cert-badge {
    background: linear-gradient(135deg, rgba(91, 184, 212, 0.15), rgba(91, 184, 212, 0.05));
    border: 1px solid rgba(91, 184, 212, 0.3);
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(91, 184, 212, 0.15);
}

.cert-logo {
    width: 44px;
    height: 44px;
    display: block;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
}

.cert-abbr {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #5bb8d4;
    margin-bottom: 0.5rem;
}

.cert-name {
    display: block;
    font-size: 0.75rem;
    color: #8aa8c0;
    line-height: 1.4;
}

/* Pro Links */
.pro-links-section {
    text-align: center;
    padding-bottom: 6rem;
}

.pro-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.pro-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.85rem 2rem;
    border-radius: 3rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.linkedin-btn {
    background: #0077b5;
    color: #fff;
}

.linkedin-btn:hover {
    background: #005e93;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.4);
}

.github-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.github-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
}

/* ==================== ANIMATIONS ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
    }

    .split-center-name {
        top: 50%;
    }

    .split-center-name h1 {
        font-size: 1.4rem;
        padding: 0.5rem 1.5rem;
    }

    .split-container:hover .split-personal:hover,
    .split-container:hover .split-professional:hover {
        flex: 1.3;
    }

    .split-container:hover .split-side:not(:hover) {
        flex: 0.9;
    }

    .section-nav {
        top: auto;
        bottom: 1rem;
        left: 0.75rem;
        right: 0.75rem;
    }

    .section-nav button {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .personal-hero,
    .professional-hero {
        min-height: 80vh;
        padding-top: 4rem;
    }

    .hero-photo {
        width: 140px;
        height: 140px;
    }

    .personal-section,
    .pro-section {
        padding: 3rem 1.25rem;
    }

    .vol-feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .vol-links {
        justify-content: center;
    }

    .interest-cards,
    .values-grid,
    .drives-grid {
        grid-template-columns: 1fr 1fr;
    }

    .interest-photo {
        height: 140px;
    }

    .interest-photo-family {
        height: 180px;
    }

    .interest-photo-running {
        object-position: center 2%;
    }

    .interest-photo-hiking {
        object-position: center 35%;
    }

    .interest-photo-ukulele {
        object-position: center 5%;
    }

    .interest-photo-youth {
        object-position: center 55%;
    }

    .certs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-content {
        padding: 1rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .interest-cards,
    .values-grid,
    .drives-grid {
        grid-template-columns: 1fr;
    }

    .certs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lang-selector {
        top: 0.75rem;
        padding: 0.4rem 1rem;
    }
}
