/* Apple-Inspired Minimalistic Luxury Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Apple Light Mode Color Palette */
    --apple-black: #000000;
    --apple-dark-gray: #1d1d1f;
    --apple-gray: #86868b;
    --apple-light-gray: #f5f5f7;
    --apple-white: #ffffff;
    --apple-blue: #0071e3;
    --apple-blue-hover: #0077ed;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.07);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.11);
    --shadow-strong: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

/* Navigation - Apple Style Light */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.4s var(--transition-smooth);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 22px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand a {
    font-size: 21px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: opacity 0.3s var(--transition-smooth);
}

.nav-brand a:hover {
    opacity: 0.7;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.022em;
    transition: color 0.3s var(--transition-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-primary);
    transition: width 0.4s var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--text-primary);
    opacity: 0.8;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

.hamburger span {
    width: 22px;
    height: 1.5px;
    background-color: var(--text-primary);
    transition: all 0.3s var(--transition-smooth);
    border-radius: 1px;
}

/* Hero Section - Apple Style Dark */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 113, 227, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 1s var(--transition-smooth);
}

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

.hero-title {
    font-size: 80px;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.greeting {
    display: block;
    font-size: 28px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.022em;
    animation: fadeIn 0.8s var(--transition-smooth) 0.2s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.name {
    display: block;
    color: var(--text-primary);
    animation: fadeInUp 1s var(--transition-smooth) 0.4s both;
}

.hero-subtitle {
    font-size: 28px;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.022em;
    animation: fadeInUp 1s var(--transition-smooth) 0.6s both;
}

.hero-description {
    font-size: 21px;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    max-width: 540px;
    animation: fadeInUp 1s var(--transition-smooth) 0.8s both;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s var(--transition-smooth) 1s both;
}

.btn {
    padding: 12px 22px;
    border-radius: 980px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.022em;
    transition: all 0.3s var(--transition-smooth);
    display: inline-block;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--apple-blue);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(10, 132, 255, 0.5);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background-color: var(--apple-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(10, 132, 255, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.18);
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.32);
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInScale 1.2s var(--transition-smooth) 0.5s both;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.photo-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: all 0.6s var(--transition-smooth);
    filter: none;
    opacity: 1;
    position: relative;
    z-index: 1;
    border-radius: 28px;
    /* Keep the top 75% visible and crop bottom 25% */
    clip-path: inset(0 0 25% 0 round 28px);
    -webkit-clip-path: inset(0 0 25% 0 round 28px);
    /* Soft portrait fade — top clear, bottom melts into background */
    mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 55%,
        rgba(0, 0, 0, 0.7) 75%,
        rgba(0, 0, 0, 0.2) 90%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 55%,
        rgba(0, 0, 0, 0.7) 75%,
        rgba(0, 0, 0, 0.2) 90%,
        transparent 100%
    );
}

.photo-container:hover .profile-photo {
    transform: scale(1.02);
}

.photo-blend-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(255, 255, 255, 0.3) 78%,
        var(--bg-primary) 100%
    );
    pointer-events: none;
    z-index: 2;
    border-radius: 28px;
}

.photo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(ellipse at center, rgba(0, 113, 227, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s var(--transition-smooth);
    pointer-events: none;
    z-index: 0;
}

.photo-container:hover .photo-glow {
    opacity: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
    animation: fadeIn 1s var(--transition-smooth) 1.5s both, bounce 2s infinite 2s;
}

.arrow {
    border-right-color: var(--text-secondary);
    border-bottom-color: var(--text-secondary);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

.arrow {
    width: 16px;
    height: 16px;
    border-right: 1.5px solid var(--text-secondary);
    border-bottom: 1.5px solid var(--text-secondary);
    transform: rotate(45deg);
}

/* Section Styles - Apple Minimalism */
section {
    padding: 120px 0;
}

.section-title {
    font-size: 56px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.07143;
}

/* About Section */
.about {
    background-color: var(--bg-secondary);
}

.about-content {
    max-width: 980px;
    margin: 0 auto;
}

.about-text p {
    font-size: 21px;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.47059;
    letter-spacing: -0.022em;
}

.about-facts {
    color: var(--text-primary);
    font-size: 17px;
    margin-top: 1rem;
}

.about-stats {
    display: none;
}

.stat {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--bg-secondary);
    border-radius: 18px;
    transition: all 0.4s var(--transition-smooth);
    border: 0.5px solid rgba(0, 0, 0, 0.08);
}

.stat:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.stat h3 {
    font-size: 64px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    line-height: 1.07143;
}

.stat p {
    color: var(--text-secondary);
    font-size: 19px;
    font-weight: 400;
    letter-spacing: -0.022em;
}

/* Projects Section - Split Layout */
.projects-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.4fr);
    gap: 4rem;
    align-items: start;
}

.projects-title {
    position: sticky;
    top: 50vh;
    transform: translateY(-50%);
}

.projects-title .section-title {
    text-align: left;
    margin-bottom: 0;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.4fr);
    gap: 4rem;
    align-items: start;
}

.split-layout--right {
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.9fr);
}

.split-title {
    position: sticky;
    top: 50vh;
    transform: translateY(-50%);
}

.split-title .section-title {
    text-align: left;
    margin-bottom: 0;
}

.split-layout--right .split-title .section-title {
    text-align: right;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 3.2rem;
}

.project-card {
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: opacity 0.3s var(--transition-smooth);
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 1.5rem;
}

.project-card:hover {
    transform: none;
    box-shadow: none;
}

.project-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    /* Blend edges into the section background */
    mask-image: radial-gradient(ellipse 88% 82% at center, black 56%, rgba(0, 0, 0, 0.72) 74%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 88% 82% at center, black 56%, rgba(0, 0, 0, 0.72) 74%, transparent 100%);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s var(--transition-smooth);
    display: block;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 38%, rgba(255, 255, 255, 0.46) 100%);
    pointer-events: none;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 19px;
    letter-spacing: -0.022em;
}

.project-content {
    padding: 1.25rem 0 0;
}

.project-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.022em;
    line-height: 1.14286;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.47059;
    font-size: 17px;
    letter-spacing: -0.022em;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 2rem;
}

.tag {
    padding: 0;
    background-color: transparent;
    color: var(--text-primary);
    border-radius: 0;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.016em;
    border: 0;
    transition: color 0.3s var(--transition-smooth);
}

.tag:hover {
    background-color: transparent;
    border-color: transparent;
    color: var(--apple-blue);
}

.project-links {
    display: flex;
    gap: 1.5rem;
}

.project-link {
    color: var(--apple-blue);
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.022em;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.project-link::after {
    content: '→';
    transition: transform 0.3s var(--transition-smooth);
}

.project-link:hover::after {
    transform: translateX(4px);
}

.project-link:hover {
    color: var(--apple-blue-hover);
}

/* Skills Section */
.skills {
    background-color: var(--bg-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.skill-category {
    background-color: transparent;
    padding: 1rem 0;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    border: 0;
}

.skill-category:hover {
    transform: none;
    box-shadow: none;
}

.skill-category-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: -0.022em;
    line-height: 1.14286;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.skill-item {
    padding: 0;
    background-color: transparent;
    color: var(--text-primary);
    border-radius: 0;
    font-weight: 400;
    font-size: 15px;
    letter-spacing: -0.016em;
    transition: color 0.3s var(--transition-smooth);
    border: 0;
}

.skill-item:hover {
    background-color: transparent;
    border-color: transparent;
    transform: none;
    color: var(--apple-blue);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-description {
    font-size: 21px;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.47059;
    letter-spacing: -0.022em;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.2rem 0;
    background-color: transparent;
    border-radius: 0;
    transition: all 0.3s var(--transition-smooth);
    border: 0;
    font-size: 17px;
    letter-spacing: -0.022em;
}

.contact-method:hover {
    background-color: transparent;
    border-color: transparent;
    transform: none;
    color: var(--apple-blue);
}

.contact-icon {
    font-size: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 17px;
    letter-spacing: -0.022em;
    transition: all 0.3s var(--transition-smooth);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
    background-color: rgba(255, 255, 255, 0.8);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* Footer - Apple Style Light */
.footer {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 3rem 0;
    border-top: 0.5px solid rgba(0, 0, 0, 0.1);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer p {
    font-size: 14px;
    letter-spacing: -0.016em;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: -0.016em;
    transition: color 0.3s var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.97);
        backdrop-filter: saturate(180%) blur(20px);
        width: 100%;
        text-align: center;
        transition: left 0.4s var(--transition-smooth);
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
        border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-title {
        font-size: 48px;
    }

    .greeting {
        font-size: 21px;
    }

    .hero-subtitle {
        font-size: 21px;
    }

    .hero-description {
        font-size: 17px;
        margin: 0 auto 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .projects-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-title {
        position: static;
        transform: none;
    }

    .projects-title .section-title {
        text-align: center;
        margin-bottom: 1rem;
    }

    .split-layout,
    .split-layout--right {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .split-title {
        position: static;
        transform: none;
    }

    .split-title .section-title,
    .split-layout--right .split-title .section-title {
        text-align: center;
        margin-bottom: 1rem;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .section-title {
        font-size: 40px;
    }

    section {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 40px;
    }

    .greeting {
        font-size: 19px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }
}

/* Smooth Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   Journey — Horizontal Timeline, Alternating Above / Below
   ============================================================ */
.journey {
    background-color: rgba(255, 255, 255, 0.62);
    overflow: visible;
    padding-bottom: 140px;
}

.journey .section-title {
    margin-bottom: 1.5rem;
}

.jtl {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 10px;
    min-height: 520px;
}

/* ---- Horizontal rail (base + glow) ---- */
.jtl::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.jtl.jtl--animated::before {
    transform: scaleX(1);
}

.jtl::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% - 2px);
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(10, 132, 255, 0.4) 15%,
        var(--apple-blue) 50%,
        rgba(10, 132, 255, 0.4) 85%,
        transparent 100%
    );
    filter: blur(4px);
    transform-origin: left center;
    transform: scaleX(0);
    opacity: 0;
    transition:
        transform 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
        opacity 0.5s ease 0.2s;
}

.jtl.jtl--animated::after {
    transform: scaleX(1);
    opacity: 1;
}

/* ---- Node column ---- */
.jtl-node {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 0;

    opacity: 0;
    transition:
        opacity 0.7s var(--transition-smooth),
        transform 0.6s var(--transition-bounce);
}

.jtl-above {
    transform: translateY(20px);
}

.jtl-below {
    transform: translateY(-20px);
}

.jtl-node.jtl-node--visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Dot: pinned to the horizontal rail ---- */
.jtl-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.15);
    background: var(--bg-primary);
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
    z-index: 3;
    flex-shrink: 0;
    transition: all 0.35s var(--transition-smooth);
}

.jtl-dot::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    transition: all 0.35s var(--transition-smooth);
}

[data-type="edu"] .jtl-dot::before { background: #30d158; }
[data-type="work"] .jtl-dot::before { background: var(--apple-blue); }

@keyframes jtl-bloom {
    0%   { box-shadow: 0 0 0 0 rgba(10, 132, 255, 0.6); }
    60%  { box-shadow: 0 0 16px 5px rgba(10, 132, 255, 0.2); }
    100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes jtl-bloom-edu {
    0%   { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.6); }
    60%  { box-shadow: 0 0 16px 5px rgba(48, 209, 88, 0.2); }
    100% { box-shadow: 0 0 0 0 transparent; }
}

.jtl-node.jtl-node--visible[data-type="work"] .jtl-dot {
    animation: jtl-bloom 0.8s ease-out both;
}
.jtl-node.jtl-node--visible[data-type="edu"] .jtl-dot {
    animation: jtl-bloom-edu 0.8s ease-out both;
}

.jtl-node:hover .jtl-dot {
    width: 22px;
    height: 22px;
    margin-top: -11px;
    margin-left: -11px;
    border-color: rgba(0, 0, 0, 0.35);
}

/* ---- Stem: vertical connector from rail to body ---- */
.jtl-stem {
    position: absolute;
    left: 50%;
    width: 1px;
    margin-left: -0.5px;
    background: rgba(0, 0, 0, 0.12);
    z-index: 1;
    transition: background 0.3s var(--transition-smooth);
}

.jtl-node:hover .jtl-stem {
    background: rgba(0, 0, 0, 0.28);
}

.jtl-above .jtl-stem {
    bottom: 50%;
    height: 16px;
    margin-bottom: 8px;
}

.jtl-below .jtl-stem {
    top: 50%;
    height: 16px;
    margin-top: 8px;
}

/* ---- Year label ---- */
.jtl-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    white-space: nowrap;
    opacity: 0.6;
    transition: opacity 0.3s var(--transition-smooth);
}

.jtl-node:hover .jtl-year {
    opacity: 1;
}

.jtl-above .jtl-year {
    top: calc(50% + 14px);
}

.jtl-below .jtl-year {
    bottom: calc(50% + 14px);
}

/* ---- Body text ---- */
.jtl-body {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    padding: 0 4px;
    width: max-content;
    max-width: 200px;
}

.jtl-above .jtl-body {
    bottom: calc(50% + 26px);
}

.jtl-below .jtl-body {
    top: calc(50% + 26px);
}

.jtl-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 5px;
    margin-bottom: 0.35rem;
}

.jtl-badge--edu {
    background: rgba(48, 209, 88, 0.12);
    color: #30d158;
}

.jtl-badge--work {
    background: rgba(10, 132, 255, 0.12);
    color: var(--apple-blue);
}

.jtl-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.022em;
    line-height: 1.2;
    margin-bottom: 0.15rem;
}

.jtl-role {
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: -0.016em;
    line-height: 1.3;
}

/* ---- Details: expand on hover ---- */
.jtl-details {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition:
        max-height 0.45s var(--transition-smooth),
        opacity 0.35s var(--transition-smooth),
        margin 0.35s var(--transition-smooth);
    margin-top: 0;
    text-align: left;
}

.jtl-node:hover .jtl-details {
    max-height: 300px;
    opacity: 1;
    margin-top: 0.6rem;
}

.jtl-details ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.jtl-details li {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: -0.016em;
    line-height: 1.45;
    padding-left: 0.7rem;
    position: relative;
}

.jtl-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--apple-blue);
}

[data-type="edu"] .jtl-details li::before {
    background: #30d158;
}

.jtl-details strong {
    color: var(--text-primary);
    font-weight: 600;
}

.jtl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.2rem;
}

.jtl-tags .tag {
    font-size: 10px;
    padding: 2px 7px;
}

/* ============================================================
   Journey — Mobile: vertical left-aligned
   ============================================================ */
@media (max-width: 768px) {
    .journey {
        padding-bottom: 80px;
    }

    .jtl {
        flex-direction: column;
        padding-left: 30px;
        min-height: auto;
        gap: 0;
    }

    .jtl::before {
        left: 11px;
        right: auto;
        top: 0;
        bottom: 0;
        width: 2px;
        height: auto;
        transform-origin: top center;
        transform: scaleY(0);
    }

    .jtl.jtl--animated::before {
        transform: scaleY(1);
    }

    .jtl::after {
        left: 9px;
        right: auto;
        top: 0;
        bottom: 0;
        width: 6px;
        height: auto;
        transform-origin: top center;
        transform: scaleY(0);
    }

    .jtl.jtl--animated::after {
        transform: scaleY(1);
    }

    .jtl-node,
    .jtl-above,
    .jtl-below {
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
        padding-top: 0;
        padding-bottom: 0;
        transform: translateX(-16px);
    }

    .jtl-node.jtl-node--visible {
        transform: translateX(0);
    }

    .jtl-stem {
        display: none;
    }

    .jtl-above .jtl-year,
    .jtl-below .jtl-year {
        display: none;
        position: static;
    }

    .jtl-dot {
        position: static;
        margin: 3px 0 0 0;
        flex-shrink: 0;
        order: -1;
    }

    .jtl-node:hover .jtl-dot {
        width: 16px;
        height: 16px;
        margin: 3px 0 0 0;
    }

    .jtl-body {
        position: static;
        transform: none;
        text-align: left;
        max-width: none;
        width: auto;
        order: 1;
    }

    .jtl-above .jtl-body,
    .jtl-below .jtl-body {
        bottom: auto;
        top: auto;
    }

    .jtl-node:hover .jtl-details {
        max-height: 0;
        opacity: 0;
        margin-top: 0;
    }

    .jtl-node.open .jtl-details {
        max-height: 300px;
        opacity: 1;
        margin-top: 0.5rem;
    }

    .jtl-role::after {
        content: ' · Tap for details';
        font-size: 10px;
        color: var(--apple-blue);
        opacity: 0.7;
    }

    .jtl-node.open .jtl-role::after {
        content: '';
    }
}

@media (max-width: 480px) {
    .jtl {
        padding-left: 28px;
    }

    .jtl-dot {
        margin-left: -20px;
    }

    .jtl-card {
        padding: 1.25rem;
    }

    .jtl-title {
        font-size: 19px;
    }
}

/* ============================================================
   Project Cards – Icon / Gradient Image Treatment
   ============================================================ */
.project-ai {
    background: linear-gradient(135deg, #0d1028 0%, #0a1040 50%, #060b28 100%);
}

.project-cloud {
    background: linear-gradient(135deg, #061828 0%, #0a2540 50%, #061828 100%);
}

.project-finance {
    background: linear-gradient(135deg, #1a1505 0%, #261c00 50%, #1a1505 100%);
}

.project-cost {
    background: linear-gradient(135deg, #061808 0%, #082010 50%, #061808 100%);
}

.project-social {
    background: linear-gradient(135deg, #180810 0%, #200a18 50%, #150610 100%);
}

.project-icon {
    font-size: 72px;
    line-height: 1;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6));
    transition: transform 0.4s var(--transition-smooth);
    z-index: 1;
}

.project-card:hover .project-icon {
    transform: scale(1.12);
}

.project-metric {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.5rem 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    margin-top: 0.5rem;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--apple-blue);
    letter-spacing: -0.03em;
    line-height: 1;
    white-space: nowrap;
}

.metric-label {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: -0.016em;
    line-height: 1.3;
}

/* ============================================================
   Leadership & Community Section
   ============================================================ */
.leadership-community {
    background-color: rgba(255, 255, 255, 0.62);
}

.lc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.lc-card {
    background-color: transparent;
    border-radius: 0;
    padding: 1rem 0;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: none;
}

.lc-card:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.08);
    background-color: transparent;
}

.lc-icon {
    font-size: 48px;
    margin-bottom: 1.25rem;
    display: block;
}

.lc-title {
    font-size: 21px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.022em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.lc-org {
    font-size: 15px;
    color: var(--apple-blue);
    font-weight: 500;
    letter-spacing: -0.016em;
    margin-bottom: 1rem;
}

.lc-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.47;
    letter-spacing: -0.022em;
}

/* ============================================================
   Responsive Additions for New Sections
   ============================================================ */
@media (max-width: 768px) {
    .lc-grid {
        grid-template-columns: 1fr;
    }

    .project-metric {
        flex-direction: column;
        gap: 0.25rem;
    }

    .metric-value {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .lc-card {
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   Canvas Particle Field + Heartbeat Rings
   ============================================ */

/* Canvas sits at z-index 1 — above body background, below page content */
#fx-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* All sections and footer sit above canvas at z-index 2 */
section {
    position: relative;
    z-index: 2;
}

footer {
    position: relative;
    z-index: 2;
}

/* Hero: fully transparent — canvas particles show at full intensity */
.hero {
    background: transparent;
}

/* Light-gray sections: semi-transparent so canvas shows through */
.about  { background-color: rgba(245, 245, 247, 0.56); }
.skills { background-color: rgba(245, 245, 247, 0.72); }
.footer { background-color: rgba(245, 245, 247, 0.88); }

/* White sections: slight transparency */
.projects { background-color: rgba(255, 255, 255, 0.65); }
.contact  { background-color: rgba(255, 255, 255, 0.65); }
.journey { background-color: rgba(255, 255, 255, 0.62); }
.leadership-community { background-color: rgba(255, 255, 255, 0.62); }

/* ============================================
   Google Antigravity-Style Cursor Effect
   ============================================ */

/* Native cursor remains visible alongside the custom ring/dot overlay */

/* Cursor dot — snaps exactly to pointer */
#cursor-dot {
    display: none; /* native cursor is visible; dot overlay not needed */
}

/* Cursor ring — lags behind for depth */
#cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(0, 0, 0, 0.28);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    will-change: transform;
    transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.2s ease;
}

/* Expand ring on hover over clickable elements */
body.cursor-hover #cursor-ring {
    width: 50px;
    height: 50px;
    border-color: rgba(0, 0, 0, 0.45);
}

/* Hide ring when mouse leaves window */
body.cursor-out #cursor-ring {
    opacity: 0;
}

/* Icon particles that trail from the cursor */
.cursor-icon-particle {
    position: fixed;
    top: 0;
    left: 0;
    font-family: 'Material Symbols Outlined', sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1;
    color: rgba(80, 80, 100, 0.65);
    pointer-events: none;
    z-index: 99998;
    user-select: none;
    animation: cursor-particle-float 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    /* ligatures required for Material Symbols */
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 20;
    will-change: transform, opacity;
}

@keyframes cursor-particle-float {
    0% {
        opacity: 0.85;
        transform: translate(var(--start-x), var(--start-y)) scale(1) rotate(0deg);
    }
    40% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translate(
            calc(var(--start-x) + var(--dx)),
            calc(var(--start-y) + var(--dy))
        ) scale(0.4) rotate(var(--rot));
    }
}

/* Burst ring on click */
.cursor-click-burst {
    position: fixed;
    top: 0;
    left: 0;
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99997;
    animation: cursor-burst 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    will-change: transform, opacity;
}

@keyframes cursor-burst {
    0% {
        opacity: 0.8;
        transform: translate(var(--cx), var(--cy)) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--cx), var(--cy)) scale(2.8);
    }
}
