/* ============================================
   Kalen Willits CFI Portfolio
   Apple-inspired layout with Ubuntu font
   ============================================ */

/* --- Navigation --- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(29, 29, 31, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
}

.nav-name {
    font-size: 16px;
    font-weight: 500;
    color: #f5f5f7;
    letter-spacing: -0.005em;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 400;
    color: rgba(245, 245, 247, 0.7);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #f5f5f7;
}

/* --- Sections (Apple-style full-bleed) --- */
.section {
    padding: 100px 22px;
}

.section-inner {
    max-width: 980px;
    margin: 0 auto;
}

.section-dark {
    background: #1d1d1f;
    color: #f5f5f7;
}

.section-light {
    background: #f5f5f7;
    color: #1d1d1f;
}

.section-white {
    background: #fff;
    color: #1d1d1f;
}

/* --- Hero Section --- */
.hero {
    padding: 160px 22px 100px;
    text-align: center;
    background-color: #1d1d1f;
    color: #f5f5f7;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.7)),
                url('../assets/images/hero.webp') center/cover no-repeat;
    animation: 0.333s fadeIn;
    z-index: 0;
}

.hero-experience::before {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
                url('../assets/images/panel_night.webp') center/cover no-repeat;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-short {
    min-height: 50vh;
    padding: 120px 22px 80px;
}

.hero-inner {
    max-width: 780px;
    margin: 0 auto;
}

.hero-eyebrow {
    font-size: 17px;
    font-weight: 400;
    color: rgba(245, 245, 247, 0.6);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero-headline {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.022em;
    margin-bottom: 24px;
}

.hero-subheadline {
    font-size: 24px;
    font-weight: 300;
    line-height: 1.4;
    color: rgba(245, 245, 247, 0.8);
    margin-bottom: 40px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-block;
    padding: 12px 32px;
    background: #0071e3;
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    border-radius: 980px;
    transition: background 0.2s;
}

.hero-cta:hover {
    background: #0077ed;
}


/* --- Section Headlines --- */
.section-headline {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin-bottom: 16px;
}

.section-subheadline {
    font-size: 21px;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 48px;
    max-width: 680px;
}

.section-dark .section-subheadline {
    color: rgba(245, 245, 247, 0.7);
}

.section-light .section-subheadline,
.section-white .section-subheadline {
    color: #6e6e73;
}

/* --- Feature Grid (Bento-style) --- */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 48px;
}

.feature-card {
    padding: 48px 40px;
    border-radius: 20px;
    background: #1d1d1f;
    color: #f5f5f7;
}

.section-light .feature-card {
    background: #fff;
    color: #1d1d1f;
}

.feature-card-wide {
    grid-column: 1 / -1;
}

.feature-card h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.15;
}

.feature-card p {
    font-size: 17px;
    line-height: 1.5;
    color: rgba(245, 245, 247, 0.7);
}

.section-light .feature-card p {
    color: #6e6e73;
}

.feature-label {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(245, 245, 247, 0.4);
    margin-bottom: 8px;
}

.section-light .feature-label {
    color: #86868b;
}

/* --- Stats Row --- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 60px 0;
    text-align: center;
}

.stat {
    padding: 32px 16px;
}

.stat-number {
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.022em;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    font-weight: 400;
    color: rgba(245, 245, 247, 0.6);
}

.section-light .stat-label,
.section-white .stat-label {
    color: #6e6e73;
}

/* --- Timeline --- */
.timeline {
    max-width: 680px;
    margin: 48px auto 0;
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(245, 245, 247, 0.15);
}

.section-light .timeline::before,
.section-white .timeline::before {
    background: rgba(29, 29, 31, 0.12);
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0071e3;
}

.timeline-year {
    font-size: 14px;
    font-weight: 500;
    color: #0071e3;
    margin-bottom: 6px;
}

.timeline-title {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-desc {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(245, 245, 247, 0.7);
}

.section-light .timeline-desc,
.section-white .timeline-desc {
    color: #6e6e73;
}

/* --- Flight Experience (two-column resume-style) --- */
.flight-experience {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 32px;
}

.flight-experience h3 {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.section-dark .flight-experience h3 {
    color: #f5f5f7;
}

.flight-experience ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.flight-experience li {
    font-size: 16px;
    line-height: 1.5;
    padding: 6px 0;
    color: #1d1d1f;
}

.section-dark .flight-experience li {
    color: rgba(245, 245, 247, 0.85);
}

.hours-line {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    line-height: 1.5;
    padding: 6px 0;
    border-bottom: 1px solid rgba(29, 29, 31, 0.06);
}

.section-dark .hours-line {
    border-bottom-color: rgba(245, 245, 247, 0.06);
}

.hours-line span:last-child {
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
    .flight-experience {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* --- Media + Text Layouts --- */

/* Side-by-side: image left, text right */
.media-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin: 48px 0;
}

/* Flip: text left, image right */
.media-row-reverse {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin: 48px 0;
}

.media-row-reverse .media-text {
    order: -1;
}

.media-row img,
.media-row-reverse img {
    width: 100%;
    border-radius: 16px;
}

.media-text h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.2;
}

.media-text p {
    font-size: 17px;
    line-height: 1.6;
    color: #6e6e73;
}

.section-dark .media-text p {
    color: rgba(245, 245, 247, 0.7);
}

/* Offset image — smaller, pulled to one side */
.media-offset-right {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
    margin: 48px 0;
}

.media-offset-left {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    align-items: start;
    margin: 48px 0;
}

.media-offset-right img,
.media-offset-left img {
    width: 100%;
    border-radius: 16px;
}

@media (max-width: 768px) {
    .media-row,
    .media-row-reverse,
    .media-offset-right,
    .media-offset-left {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .media-row-reverse .media-text {
        order: 0;
    }
}

/* --- Explore Grid (Apple "Keep Exploring" style) --- */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.explore-card {
    background: #f5f5f7;
    border-radius: 16px;
    padding: 28px 24px;
    transition: transform 0.2s;
}

.explore-card:hover {
    transform: scale(1.02);
}

.explore-card-highlight {
    background: #1d1d1f;
    color: #f5f5f7;
}

.explore-card-highlight .explore-label {
    color: #0071e3;
}

.explore-card-highlight p:last-child {
    color: rgba(245, 245, 247, 0.5);
}

.explore-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #86868b;
    margin-bottom: 8px;
}

.explore-card h3 {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 4px;
}

.explore-card p:last-child {
    font-size: 14px;
    color: #6e6e73;
    margin-top: 4px;
}

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

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

/* --- Credential List --- */
.credential-list {
    margin-top: 40px;
}

.credential-item {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(245, 245, 247, 0.08);
}

.section-light .credential-item,
.section-white .credential-item {
    border-bottom-color: rgba(29, 29, 31, 0.08);
}

.credential-item:last-child {
    border-bottom: none;
}

.credential-name {
    font-size: 19px;
    font-weight: 500;
    flex: 1;
}

.credential-detail {
    font-size: 15px;
    color: rgba(245, 245, 247, 0.5);
    text-align: right;
}

.section-light .credential-detail,
.section-white .credential-detail {
    color: #86868b;
}

/* --- Blockquote (Teaching Philosophy) --- */
blockquote {
    font-size: 28px;
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: -0.005em;
    padding: 40px 0;
    margin: 40px 0;
    border-left: none;
    color: inherit;
    max-width: 720px;
}

blockquote em {
    font-style: normal;
    color: #0071e3;
}

/* --- Contact Section --- */
.contact-link {
    font-size: 28px;
    font-weight: 500;
    color: #0071e3;
    transition: color 0.2s;
}

.contact-link:hover {
    color: #0077ed;
}

/* --- Image Fade-In --- */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

img,
.profile-photo {
    animation: 0.333s fadeIn;
}

/* --- Photo Placeholders --- */
.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: url('../assets/images/profile.webp') center/cover no-repeat;
    margin: 0 auto 32px;
}

.photo-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    background: linear-gradient(135deg, #1d1d1f 0%, #2d2d2f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(245, 245, 247, 0.2);
    font-size: 14px;
    margin: 32px 0;
}

.section-light .photo-placeholder {
    background: linear-gradient(135deg, #e8e8ed 0%, #d2d2d7 100%);
    color: rgba(29, 29, 31, 0.2);
}

/* --- CTA Banner --- */
.cta-banner {
    text-align: center;
    padding: 120px 22px;
    background: #000;
    color: #f5f5f7;
}

.cta-banner h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-banner p {
    font-size: 21px;
    font-weight: 300;
    color: rgba(245, 245, 247, 0.7);
    margin-bottom: 32px;
}

.cta-banner a {
    display: inline-block;
    padding: 12px 32px;
    background: #0071e3;
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    border-radius: 980px;
    transition: background 0.2s;
}

.cta-banner a:hover {
    background: #0077ed;
}

/* --- Footer --- */
.site-footer {
    background: #1d1d1f;
    color: rgba(245, 245, 247, 0.4);
    padding: 20px 22px;
    font-size: 13px;
}

.footer-inner {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero {
        padding: 120px 22px 80px;
        min-height: auto;
    }

    .hero-headline {
        font-size: 40px;
    }

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

    .section {
        padding: 60px 22px;
    }

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

    .section-subheadline {
        font-size: 17px;
    }

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

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

    .stat-number {
        font-size: 40px;
    }

    blockquote {
        font-size: 21px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .cta-banner h2 {
        font-size: 32px;
    }
}

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

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

/* --- Hamburger Menu (mobile, pure CSS checkbox hack) --- */
.nav-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.nav-hamburger {
    display: none;
    cursor: pointer;
    width: 24px;
    height: 18px;
    position: relative;
}

.nav-hamburger::before,
.nav-hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: #f5f5f7;
    border-radius: 1px;
    transition: transform 0.3s, top 0.3s;
}

.nav-hamburger::before {
    top: 0;
    box-shadow: 0 8px 0 #f5f5f7;
}

.nav-hamburger::after {
    top: 16px;
}

/* Animate to X */
.nav-checkbox:checked ~ .nav-hamburger::before {
    top: 8px;
    transform: rotate(45deg);
    box-shadow: none;
}

.nav-checkbox:checked ~ .nav-hamburger::after {
    top: 8px;
    transform: rotate(-45deg);
}

@media (max-width: 600px) {
    .nav-hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 48px;
        left: 0;
        right: 0;
        background: rgba(29, 29, 31, 0.97);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        flex-direction: column;
        padding: 16px 22px 24px;
        gap: 0;
    }

    .nav-checkbox:checked ~ .nav-links {
        display: flex;
    }

    .nav-links a {
        font-size: 16px;
        padding: 12px 0;
        border-bottom: 1px solid rgba(245, 245, 247, 0.08);
        color: rgba(245, 245, 247, 0.8);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links a:hover {
        color: #f5f5f7;
    }
}
