/* =============================================
   Variables & Global Resets
   ============================================= */
:root {
    --text-warm: rgb(225, 204, 190);
    --text-light: rgb(255, 255, 255);
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: "kepler-std", 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #182a36;
    color: #222;
    line-height: 1.6;
}

/* =============================================
     Site Container
     ============================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    /* same gutter as header on desktop */
}

/* =============================================
     Header & Nav
     ============================================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #182a36;
    padding: 1.25rem .5rem;
    position: sticky;
    top: 0;
    z-index: 1100;
}

header .left {
    color: var(--text-light);
    font-weight: 300;
    font-size: 1.6rem;
    line-height: 2rem;
    white-space: nowrap;
    /* prevent wrapping */
    flex: 1;
}

header .right a {
    margin-left: 1rem;
    text-decoration: none;
    color: var(--text-light);
}

header .right a:hover {
    color: #e0e0e0;
}

/* Hamburger (mobile) */
.menu-toggle {
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
    z-index: 1200;
    padding: 0;
}

.menu-toggle .bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #fff;
    transition: transform 0.3s ease;
    transform-origin: center, center;
}

.menu-toggle .top-bar {
    top: 50%;
    transform: translateY(-6px);
}

.menu-toggle .bottom-bar {
    top: 50%;
    transform: translateY(6px);
}

.menu-toggle.active .top-bar {
    transform: translateY(0) rotate(45deg);
}

.menu-toggle.active .bottom-bar {
    transform: translateY(0) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #182a36;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.mobile-nav.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav a {
    color: var(--text-light);
    font-size: 2.5rem;
    font-family: "kepler-std", sans-serif;
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav.open a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav.open a:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-nav.open a:nth-child(2) {
    transition-delay: 0.2s;
}

/* Icon link (LinkedIn) */
.nav-icon-link {
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

.nav-icon {
    width: 24px;
    height: auto;
}

/* =============================================
     Sections (mobile-first)
     ============================================= */
section {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-figure {
    max-width: 800px;
    margin: 0 auto 1rem;
    text-align: left;
}

/* Hero (mobile) */
.hero-image {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    margin: 0 auto 1rem;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
} 

.hero-caption {
    font-size: 1.1rem;
    font-weight: 100;
    color: var(--text-light);
    text-align: left;
    margin: 0.5rem 0 1.5rem;
    opacity: 0.8;
}

.hero-text {
    color: var(--text-warm);
    font-size: 1.33rem;
    line-height: 2rem;
}

.hero-text a {
    color: inherit;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
}

.hero-text a:hover {
    opacity: 0.8;
}

/* Expertise & Highlights */
.expertise h2,
.hilights h2 {
    color: var(--text-light);
    font-style: italic;
    position: relative;
    padding-bottom: 0.5rem;
}

.expertise h2::after,
.hilights h2::after {
    content: "";
    margin-left: 0;
    margin-right: auto;
    display: block;
    width: 185px;
    height: 1px;
    background-color: var(--text-light);
}

.expertise ul,
.hilights ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* Area items */
.expertise ul li {
    font-size: 1.5rem;
    color: var(--text-warm);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

/* Highlights top-level */
.hilights-list>li {
    font-size: 1.5rem;
    color: var(--text-warm);
    margin: 0rem 0;
}

/* Expertise sub-list */
.expertise-list .expertise-sub-list {
    list-style: disc outside;
    margin: 0.25rem 0 1rem 1.5rem;
    padding-left: 0;
}

.expertise-list .expertise-sub-list li {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Highlights sub-list */
.hilights-list .sub-list {
    list-style: disc outside;
    margin: 0.25rem 0 1rem 1.5rem;
    padding-left: 0;
}

.hilights-list .sub-list li {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* CTA */
.cta {
    background-color: rgb(234, 242, 247);
    margin: 0 -2rem;
    padding: 1rem 3rem;
    text-align: left;
    font-size: 1.1rem;
}

.cta h2 {
    font-weight: 300;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 0.9rem;
}

.cta-icon-link {
    display: inline-block;
    margin: 1rem 0;
}

.cta-icon {
    width: 24px;
    height: auto;
}

/* =============================================
     Desktop Overrides (min-width: 768px)
     ============================================= */
@media screen and (min-width: 768px) {

    .menu-toggle {
            display: none;
        }

    /* Header spacing */
    header {
        padding: 2rem 2rem;
    }

    header .left {
        font-size: 2rem;
    }

    /* Container & Sections share same gutter */
    .container,
    section {
        max-width: 1800px;
        margin: 0 auto;
        padding: 0 2rem;
    }

    /* Hero as Flex */
    .hero {
        display: flex;
        align-items: flex-start;
        gap: 7rem;
        padding-bottom: 3rem;
    }

    .hero-image {
        flex: 0 1 50%;
        max-width: 650px;
        width: 100%;
    }

    .hero-caption {
        margin-top: 1rem;
    }


    .hero-text {
        flex: 1;
        font-size: 1.4rem;
        line-height: 2;
    }

    .hero-text p:first-child {
        margin-top: 0;
    }

    /* Desktop nav link tweaks */
    .mobile-nav {
        position: static;
        height: auto;
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        gap: 1rem;
        background: none;
        opacity: 1;
        pointer-events: auto;
        transition: none;
    }

    .mobile-nav a {
        opacity: 1;
        transform: translateY(0);
        transition: none;
        color: var(--text-light);
        font-size: 1rem;      
    }

    .mobile-nav a.resume-link {
        font-size: 1.25rem;
        font-weight: 200;
    }

    .nav-icon {
        width: 25px;
    }

    .expertise {
        display: flex;
        align-items: flex-start;
        gap: 2rem;
        padding-bottom: 3rem;
    }

    .expertise ul li {
        font-size: 1.5rem;
        font-weight: 400;
    }

    .expertise h2 {
        flex: 1 1 33%;
        margin: 0;
    }

    .expertise ul {
        flex: 2 1 67%;
        margin: 0;
    }

    .expertise  -list .expertise-sub-list li {
        font-size: 1rem;
    }

    .hilights {
        display: flex;
        align-items: flex-start;
        gap: 2rem;
        padding-bottom: 3rem;
    }

    .hilights h2 {
        flex: 1 1 33%;
        margin: 0;
        /* reset any default margins */
    }

    /* List column (≈2/3) */
    .hilights-list {
        flex: 2 1 67%;
        margin: 0;
        /* remove extra vertical margins */
    }

    .hilights-list>li {
        font-size: 1.5rem;
        font-weight: 400;
        padding: 1rem;
    }

    .hilights-list .sub-list li {
        font-size: 1rem;
    }

    .cta {
        display: flex;
        align-items: flex-start;
        gap: 2rem;
        padding: 5rem 4rem;
    }

    .cta-inner {
        flex: 1;
    }

    .cta-spacer {
        flex: 1;
    }

    .cta h2 {
        font-size: 2rem;
        font-weight: 400;   
    }
}

/* =============================================
     Mobile Media Query (max-width: 768px)
     ============================================= */

@media screen and (max-width: 767px) {
    
    .container,
        section {
            padding-left: 1rem;
            padding-right: 1rem;
        }
    header .left {
        white-space: normal;
        word-break: break-word;
    }
}

.hero-image {
    width: auto;
    /* let max-width do its job */
    max-width: 650px !important;
    margin: 0 auto 1rem;
    /* center beneath the container */
}
