/* Home hero scene, highlights, education */

/* Light frosted navbar for home page */
.main:first-of-type {
    /* Target the home page main element */
}

.main ~ .hero::before {
    /* Pseudo-element for header styling on home page */
}

/* Home page header styling */
@supports(backdrop-filter: blur(16px)) {
    .hero {
        padding-top: calc(var(--nav-h) + var(--space-xl));
    }
}

.header--transparent {
    background: rgba(253, 246, 249, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(242, 174, 187, 0.3);
    box-shadow: 0 4px 12px rgba(61, 28, 46, 0.08);
}

.header--transparent .nav__logo {
    color: #3d1c2e;
}

.header--transparent .nav__link {
    color: #3d1c2e;
}

.header--transparent .nav__toggle {
    color: #3d1c2e;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--nav-h) + var(--space-xl)) var(--container-pad) var(--space-2xl);
    overflow: hidden;
    background: linear-gradient(180deg, #1A0A12 0%, #3D1C2E 45%, #6B2D4E 100%);
}

.hero__video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(26, 10, 18, 0.55);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__tree {
    position: absolute;
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%);
    width: min(980px, 110vw);
    height: auto;
    opacity: 0.98;
}

.tree-stroke .tree-branch {
    fill: none;
    stroke: rgba(253, 246, 249, 0.25);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: branchDraw 1.2s ease-out forwards;
    animation-delay: var(--draw-delay, 0s);
}

.tree-blooms .blossom {
    transform-origin: center;
    transform: scale(0);
    opacity: 0;
    animation: blossomBloom 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: var(--bloom-delay, 1.5s);
}

.hero__drift-petals {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero__drift-petal {
    position: absolute;
    left: var(--left, 50%);
    top: -20px;
    width: var(--size, 14px);
    height: calc(var(--size, 14px) * 1.4);
    opacity: 0;
    animation: driftPetal var(--dur, 14s) linear infinite;
    animation-delay: calc(var(--delay, 1s) + 1.8s);
}

.hero__drift-petal::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100% 0 100% 100% / 100% 0 100% 100%;
    background: linear-gradient(125deg, rgba(242, 174, 187, 0.95), rgba(242, 174, 187, 0.75));
    box-shadow: 0 2px 6px rgba(61, 28, 46, 0.2);
    transform: rotate(-45deg);
}

/* Color cycling for petals */
.hero__drift-petal:nth-child(1)::before,
.hero__drift-petal:nth-child(5)::before,
.hero__drift-petal:nth-child(9)::before {
    background: linear-gradient(125deg, rgba(242, 174, 187, 0.95), rgba(242, 174, 187, 0.75));
}

.hero__drift-petal:nth-child(2)::before,
.hero__drift-petal:nth-child(6)::before,
.hero__drift-petal:nth-child(10)::before {
    background: linear-gradient(125deg, rgba(232, 196, 207, 0.95), rgba(232, 196, 207, 0.75));
}

.hero__drift-petal:nth-child(3)::before,
.hero__drift-petal:nth-child(7)::before,
.hero__drift-petal:nth-child(11)::before {
    background: linear-gradient(125deg, rgba(247, 197, 213, 0.95), rgba(247, 197, 213, 0.75));
}

.hero__drift-petal:nth-child(4)::before,
.hero__drift-petal:nth-child(8)::before,
.hero__drift-petal:nth-child(12)::before {
    background: linear-gradient(125deg, rgba(250, 218, 221, 0.95), rgba(250, 218, 221, 0.75));
}

@keyframes branchDraw {
    from {
        stroke-dashoffset: 1200;
        opacity: 0;
    }
    to {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes blossomBloom {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.18);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes driftPetal {
    0% {
        transform: translate3d(-50%, -20px, 0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    12% {
        opacity: var(--opacity, 0.7);
    }
    45% {
        transform: translate3d(-50%, 46vh, 0) translateX(var(--sway1, 18px)) rotate(140deg);
    }
    80% {
        transform: translate3d(-50%, 86vh, 0) translateX(var(--sway2, -12px)) rotate(280deg);
    }
    100% {
        transform: translate3d(-50%, 110vh, 0) translateX(0) rotate(360deg);
        opacity: 0;
    }
}

.hero__inner {
    position: relative;
    z-index: 3;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 2.5rem;
}

.hero__eyebrow {
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--petal-1);
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero__title {
    font-family: var(--font-heading);
    font-size: var(--font-size-5xl);
    font-weight: 700;
    line-height: var(--line-tight);
    color: #FFFFFF;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
    min-height: 1.2em;
}

.hero__subtitle-wrap {
    margin-top: var(--space-md);
    min-height: 1.5em;
}

.hero__subtitle {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--petal-1);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero__bio {
    margin-top: var(--space-lg);
    font-size: var(--font-size-lg);
    line-height: var(--line-relaxed);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero__text-reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: heroTextIn 0.9s ease-out forwards;
    animation-delay: 2.5s;
}

@keyframes heroTextIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__actions {
    margin-top: var(--space-xl);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: var(--cream);
    font-size: var(--font-size-sm);
    text-decoration: none;
    opacity: 0.9;
    animation: bouncePetal 2.2s ease-in-out infinite;
}

.hero__scroll:focus-visible {
    outline: 2px solid var(--cream);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

.hero__scroll-petal {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Highlights */
.highlights {
    padding: var(--space-2xl) var(--container-pad);
    max-width: var(--container-max);
    margin: 0 auto;
}

.highlights__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

@media (max-width: 1024px) {
    .highlights__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .highlights__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero__drift-petals .hero__drift-petal:nth-child(n+16) {
        display: none;
    }
}

.highlight-card {
    padding: var(--space-lg);
    text-align: center;
}

.highlight-card__icon {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.highlight-card__value {
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--plum);
    line-height: var(--line-tight);
}

.highlight-card__label {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* Education on home */
.education-home {
    padding: var(--space-2xl) var(--container-pad) var(--space-3xl);
    max-width: var(--container-max);
    margin: 0 auto;
}

.education-home__title {
    font-family: var(--font-heading);
    font-size: var(--font-size-3xl);
    color: var(--plum);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.education-home__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xl);
    align-items: start;
}

@media (max-width: 900px) {
    .education-home__grid {
        grid-template-columns: 1fr;
    }
}

.edu-card {
    padding: var(--space-xl);
}

.edu-card__seal {
    width: 88px;
    height: 88px;
    margin-bottom: var(--space-md);
    border-radius: 50%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: var(--shadow-sakura);
}

.edu-card h3 {
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl);
    color: var(--plum);
    margin-bottom: var(--space-sm);
}

.edu-card__meta {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: var(--line-relaxed);
}

.edu-card__gpa {
    margin-top: var(--space-sm);
    font-weight: 700;
    color: var(--plum);
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    font-size: var(--font-size-sm);
    background: rgba(242, 174, 187, 0.35);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--plum);
}

.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.course-tags span {
    font-size: var(--font-size-sm);
    padding: 0.35rem 0.65rem;
    background: var(--cream);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    border: 1px solid rgba(61, 28, 46, 0.08);
}
