/* Root Variables for Landing Page */
:root {
    --snap-height: calc(100vh - var(--navbar-height));
}

/* Hide second scrollbar */
html, body {
    overflow-y: scroll;              /* keep scroll behavior */
    overflow-x: hidden;
    scrollbar-width: none;           /* Firefox */
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--neutral-color);
    font-size: 24px;
    animation: bounce 1.5s infinite;
    z-index: 10;
}

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

/* Snap Scroll Container */
.snap-container {
    scroll-snap-type: y mandatory;
    overflow-y: auto;
    height: 100vh;
    scroll-behavior: smooth;
    width: 100%;
}

/* Snap Sections */
.snap-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* headings start at top */
    align-items: stretch;
    padding-top: var(--navbar-height);
    padding-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Section inner layout */
.section-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 50px 0 50px;
    text-align: left;
    box-sizing: border-box;
}

/* Hero Section */
.hero-section {
    padding-top: 0;
    min-height: calc(100vh - var(--navbar-height));
    transform: translateY(-30px);
}

.hero-content {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    height: calc(100vh - var(--navbar-height));
    align-items: center;
    justify-content: space-between;
    padding: 0 48px 0 32px;
    gap: 24px;
    box-sizing: border-box;
}

.hero-text {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;   /* ensure left alignment */
}

.hero-image {
    flex: 0.9;
    display: flex;
    justify-content: flex-end; /* push image more to the right */
    align-items: center;
}

.hero-name {
    font-size: 110px;
    font-weight: bold;
    color: var(--neutral-color);
    margin: 0;
    line-height: 1.05;
    letter-spacing: -0.02em;
    white-space: nowrap;
    display: inline-block;        /* important: width = text width */
    position: relative;           /* line will be positioned relative to the name */
}

.hero-subtitle {
    font-size: 40px;
    color: var(--neutral-color);
    margin-top: 24px;             /* space between line and subtitle text */
    padding-top: 0;
    display: block;
}

/* attach separator line to the name */
.hero-name::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;                     /* full text width of hero-name */
    bottom: -18px;                /* distance below the name */
    height: 5px;
    background-color: var(--secondary-color);
}

#profilePic {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 5px solid var(--secondary-color);
    object-fit: cover;
}

/* Content Sections */
.content-section {
    justify-content: center;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.section-content h2 {
    font-size: 72px;
    font-weight: bold;
    color: var(--neutral-color);
    margin: 0 0 30px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    line-height: 1.1;
    text-align: left;
}

.emoji {
    font-size: 80px;
    line-height: 1;
    flex-shrink: 0;
}

.section-text {
    font-size: 24px;
    color: var(--neutral-color);
    line-height: 1.9;
    margin: 0;
    text-align: left;
}

/* Desktop Responsive Design */
@media only screen and (min-width: 1350px) {
    .snap-section.content-section {
        justify-content: flex-start;
        align-items: stretch;
        padding-top: var(--navbar-height);
        padding-bottom: 40px;
    }

    .section-content {
        max-width: 1400px;
        margin: 0 auto;
        padding: 40px 48px 0 32px; /* align with hero-content */
        text-align: left;
        box-sizing: border-box;
    }
}


/* Tablet Large */
@media only screen and (min-width: 1035px) and (max-width: 1349px) {
    .hero-content {
        padding: 0 40px;
        gap: 25px;
    }

    .hero-name {
        font-size: 60px;
        white-space: normal; /* allow wrap on smaller widths */
    }

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

    .hero-subtitle::before {
        width: 70%;
        height: 3px;
    }

    #profilePic {
        width: 280px;
        height: 280px;
    }

    .section-content {
        padding: 40px 40px 0 40px;
    }

    .section-content h2 {
        font-size: 56px;
        margin-bottom: 20px;
    }

    .section-text {
        font-size: 18px;
    }

    .emoji {
        font-size: 64px;
    }
}

/* Tablet small */
@media only screen and (min-width: 768px) and (max-width: 1034px) {
    .hero-content {
        padding: 0 40px;
        gap: 25px;
    }

    .hero-name {
        font-size: 40px;
        white-space: normal; /* allow wrap on smaller widths */
    }

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

    .hero-subtitle::before {
        width: 70%;
        height: 3px;
    }

    #profilePic {
        width: 280px;
        height: 280px;
    }

    .section-content {
        padding: 40px 40px 0 40px;
    }

    .section-content h2 {
        font-size: 56px;
        margin-bottom: 20px;
    }

    .section-text {
        font-size: 18px;
    }

    .emoji {
        font-size: 64px;
    }
}


/* Mobile Responsive Design */
@media only screen and (max-width: 767px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .snap-container {
        width: 100vw;
        overflow-x: hidden;
    }

    .snap-section {
        width: 100vw;
        padding-top: var(--navbar-height);
        padding-bottom: 30px;
        justify-content: flex-start;
    }

    .hero-content {
        flex-direction: column;
        padding: 30px 24px 10px 24px;
        gap: 8px;
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        justify-content: center;
        align-items: center;   
        text-align: center;    
    }

    .hero-image {
        order: 1;
        justify-content: center;
    }

    .hero-text {
        order: 2;
        width: 100%;
        text-align: center;    
        align-items: center;   
        display: flex;
        flex-direction: column;
        margin-top: 15px;
    }

    #profilePic {
        width: 330px;
        height: 330px;
    }

    .hero-name {
        font-size: 38px;
        margin: 0;
        line-height: 1.15;
        white-space: normal;
        word-break: break-word;
        text-align: center;   
    }

    .hero-subtitle {
        font-size: 16px;
        margin-top: 12px;
        padding-top: 20px;
        text-align: center;    
    }

    .hero-subtitle::before {
        width: 80%;
        left: 10%;
        height: 2px;
    }

    /* Content Sections Mobile */
    .section-content {
        padding: 0 24px 0 24px;    
        min-height: calc(100vh - var(--navbar-height));
        justify-content: flex-start;
        margin-top: -15px;
    }

    .section-content h2 {
        font-size: 40px;
        margin-bottom: 18px;
    }

    .section-text {
        font-size: 16px;
        line-height: 1.8;
    }

    .scroll-indicator {
        font-size: 18px;
        bottom: 12px;
    }

    .emoji {
        font-size: 56px;
    }
}