/* ============================================================
   KAMAL DAHAL PERSONAL RESUME WEBSITE
   ============================================================ */


/* ============================================================
   ROOT VARIABLES
   ============================================================ */

:root {

    --teal-dark: #0f4761;
    --teal: #156082;
    --teal-light: #287a98;
    --teal-soft: #e7f2f6;

    --ink: #162d38;
    --ink-light: #40545e;

    --gray-900: #222b30;
    --gray-800: #34434a;
    --gray-700: #52646d;
    --gray-600: #6f818a;
    --gray-500: #8b9aa2;
    --gray-400: #aeb9bf;
    --gray-300: #cdd5d9;
    --gray-200: #e4e9ec;
    --gray-100: #f3f6f7;
    --gray-50: #f8fafb;

    --white: #ffffff;

    --shadow-sm:
        0 4px 16px rgba(15, 71, 97, 0.08);

    --shadow-md:
        0 12px 35px rgba(15, 71, 97, 0.12);

    --shadow-lg:
        0 25px 60px rgba(0, 0, 0, 0.14);

    --border-radius: 16px;
    --border-radius-sm: 10px;

    --container: 1180px;

    --transition:
        0.3s cubic-bezier(.2, .8, .2, 1);
}


/* ============================================================
   RESET
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}


body {
    margin: 0;

    font-family:
        "Inter",
        Arial,
        Helvetica,
        sans-serif;

    color: var(--ink);

    background:
        var(--white);

    line-height: 1.6;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
}


body.menu-open {
    overflow: hidden;
}


button,
a {
    -webkit-tap-highlight-color: transparent;
}


button {
    font-family: inherit;
}


a {
    color: inherit;
}


img {
    display: block;
    max-width: 100%;
}


ul {
    padding: 0;
    margin: 0;
}


.section {
    position: relative;
}


.container {
    width: min(
        calc(100% - 48px),
        var(--container)
    );

    margin: 0 auto;
}


/* ============================================================
   SCROLL PROGRESS
   ============================================================ */

.scroll-progress {

    position: fixed;

    top: 0;
    left: 0;

    height: 4px;

    width: 0;

    background:
        linear-gradient(
            90deg,
            #56b7d6,
            #ffffff
        );

    z-index: 9999;

    transition:
        width 0.08s linear;
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.site-header {

    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    background:
        rgba(255, 255, 255, 0.94);

    border-bottom:
        1px solid rgba(15, 71, 97, 0.08);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    transition:
        box-shadow var(--transition),
        background var(--transition);
}


.site-header.scrolled {

    box-shadow:
        0 10px 30px rgba(15, 71, 97, 0.09);

    background:
        rgba(255, 255, 255, 0.98);
}


.nav-container {

    width: min(
        calc(100% - 48px),
        1300px
    );

    height: 78px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* BRAND */

.brand {

    display: flex;
    align-items: center;

    gap: 11px;

    text-decoration: none;

    min-width: max-content;
}


.brand-mark {

    width: 44px;
    height: 44px;

    border-radius: 50%;

    display: grid;
    place-items: center;

    background:
        var(--teal);

    color:
        var(--white);

    font-size: 0.9rem;
    font-weight: 800;

    letter-spacing: 0.06em;

    box-shadow:
        0 7px 17px rgba(21, 96, 130, 0.2);
}


.brand-text {

    display: flex;
    flex-direction: column;

    line-height: 1.2;
}


.brand-text strong {

    font-family:
        "Merriweather",
        Georgia,
        serif;

    color:
        var(--teal-dark);

    font-size: 1rem;
}


.brand-text small {

    margin-top: 4px;

    color:
        var(--gray-600);

    font-size: 0.67rem;
    font-weight: 700;

    letter-spacing: 0.09em;

    text-transform: uppercase;
}


/* ============================================================
   NAV LINKS
   ============================================================ */

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;

    /* Allows navigation to occupy and center itself
       within the available header space */
    flex: 1;

    gap: 12px;

    margin-left: auto;
    margin-right: auto;
}


.nav-links a {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 14px;

    text-decoration: none;

    color: var(--gray-700);

    /* Larger navigation text */
    font-size: 0.95rem;
    font-weight: 700;

    line-height: 1;

    white-space: nowrap;

    transition:
        color var(--transition),
        transform var(--transition);
}


.nav-links a::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 3px;

    width: 0;
    height: 2px;

    background: var(--teal);

    border-radius: 99px;

    transform: translateX(-50%);

    transition:
        width var(--transition);
}


.nav-links a:hover,
.nav-links a.active {
    color: var(--teal);
}


.nav-links a:hover {
    transform: translateY(-1px);
}


.nav-links a:hover::after,
.nav-links a.active::after {
    width: 60%;
}

/* MOBILE BUTTON */

.nav-toggle {

    display: none;

    width: 44px;
    height: 44px;

    border: 0;

    background:
        transparent;

    cursor: pointer;

    position: relative;
}


.nav-toggle span {

    position: absolute;

    left: 9px;

    width: 26px;
    height: 2px;

    background:
        var(--teal-dark);

    border-radius: 100px;

    transition:
        transform var(--transition),
        opacity var(--transition),
        top var(--transition);
}


.nav-toggle span:nth-child(1) {
    top: 13px;
}


.nav-toggle span:nth-child(2) {
    top: 21px;
}


.nav-toggle span:nth-child(3) {
    top: 29px;
}


.nav-toggle.active span:nth-child(1) {

    top: 21px;

    transform:
        rotate(45deg);
}


.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}


.nav-toggle.active span:nth-child(3) {

    top: 21px;

    transform:
        rotate(-45deg);
}


/* ============================================================
   HERO
   ============================================================ */

.hero {

    min-height: 100vh;

    display: flex;
    align-items: center;

    position: relative;

    padding:
        130px 0 90px;

    background:
        linear-gradient(
            130deg,
            #0a354b 0%,
            var(--teal-dark) 46%,
            #156082 100%
        );

    overflow: hidden;
}


.hero-background {

    position: absolute;

    inset: 0;

    pointer-events: none;
}


.hero-background::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(6, 38, 52, 0.26),
            transparent 60%
        );
}


.data-grid {

    position: absolute;

    inset: 0;

    opacity: 0.12;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.1) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.1) 1px,
            transparent 1px
        );

    background-size:
        60px 60px;

    mask-image:
        linear-gradient(
            to right,
            transparent,
            black,
            transparent
        );
}


.hero-orb {

    position: absolute;

    border-radius: 50%;

    filter: blur(2px);
}


.orb-one {

    width: 550px;
    height: 550px;

    right: -130px;
    top: -140px;

    background:
        rgba(78, 181, 219, 0.15);

    animation:
        floatOrb 10s ease-in-out infinite;
}


.orb-two {

    width: 350px;
    height: 350px;

    left: -160px;
    bottom: -120px;

    border:
        1px solid rgba(255,255,255,0.10);

    animation:
        floatOrb 13s ease-in-out infinite reverse;
}


@keyframes floatOrb {

    0%,
    100% {
        transform:
            translate(0, 0);
    }

    50% {
        transform:
            translate(30px, 20px);
    }

}


.hero-container {

    position: relative;

    z-index: 2;

    width: min(
        calc(100% - 48px),
        var(--container)
    );

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(320px, 0.75fr);

    align-items: center;

    gap: 80px;
}


.hero-eyebrow {

    display: inline-flex;

    align-items: center;

    padding:
        8px 14px;

    margin-bottom: 25px;

    border:
        1px solid rgba(255,255,255,0.18);

    border-radius:
        99px;

    background:
        rgba(255,255,255,0.06);

    color:
        #bedbe7;

    font-size:
        0.68rem;

    font-weight:
        800;

    letter-spacing:
        0.15em;
}


.hero h1 {

    margin:
        0;

    color:
        var(--white);

    font-family:
        "Merriweather",
        Georgia,
        serif;

    font-size:
        clamp(4rem, 8vw, 7.5rem);

    line-height:
        0.92;

    letter-spacing:
        -0.055em;
}


.hero h1 span {

    display: block;

    color:
        #8ac6dc;
}


.hero-role {

    margin:
        27px 0 24px;

    display:
        flex;

    align-items:
        center;

    gap:
        14px;

    min-height:
        30px;

    color:
        var(--white);

    font-size:
        clamp(1.05rem, 2vw, 1.35rem);

    font-weight:
        600;

    letter-spacing:
        0.02em;
}


.role-line {

    width:
        46px;

    height:
        2px;

    background:
        #7cc2dc;
}


.hero-description {

    max-width:
        710px;

    color:
        rgba(255,255,255,0.77);

    font-size:
        1.05rem;

    line-height:
        1.85;

    margin:
        0 0 25px;
}


.hero-contact-line {

    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        12px 22px;

    margin:
        0 0 35px;
}


.hero-contact-line a,
.hero-contact-line span {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        8px;

    color:
        rgba(255,255,255,0.78);

    font-size:
        0.79rem;

    text-decoration:
        none;
}


.hero-contact-line i {

    color:
        #78bfd9;
}


.hero-contact-line a:hover {

    color:
        white;
}


/* BUTTONS */

.hero-actions {

    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        12px;
}


.btn {

    display:
        inline-flex;

    justify-content:
        center;

    align-items:
        center;

    gap:
        9px;

    min-height:
        48px;

    padding:
        0 20px;

    border-radius:
        8px;

    border:
        1px solid transparent;

    font-size:
        0.78rem;

    font-weight:
        800;

    letter-spacing:
        0.025em;

    cursor:
        pointer;

    text-decoration:
        none;

    transition:
        transform var(--transition),
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}


.btn:hover {

    transform:
        translateY(-3px);
}


.btn-primary {

    background:
        var(--white);

    color:
        var(--teal-dark);

    box-shadow:
        0 12px 26px rgba(0,0,0,0.16);
}


.btn-primary:hover {

    box-shadow:
        0 18px 35px rgba(0,0,0,0.22);
}


.btn-secondary {

    background:
        rgba(255,255,255,0.12);

    color:
        var(--white);

    border-color:
        rgba(255,255,255,0.22);
}


.btn-secondary:hover {

    background:
        rgba(255,255,255,0.2);
}


.btn-ghost {

    background:
        transparent;

    color:
        rgba(255,255,255,0.82);

    border-color:
        rgba(255,255,255,0.18);
}


.btn-ghost:hover {

    color:
        var(--white);

    border-color:
        rgba(255,255,255,0.4);
}


/* PROFILE CARD */

.hero-panel {

    position:
        relative;
}


.hero-card {

    padding:
        30px;

    border-radius:
        20px;

    background:
        rgba(255,255,255,0.97);

    box-shadow:
        0 32px 70px rgba(0,0,0,0.22);

    position:
        relative;

    overflow:
        hidden;
}


.hero-card::before {

    content:
        "";

    position:
        absolute;

    left:
        0;

    top:
        0;

    right:
        0;

    height:
        5px;

    background:
        linear-gradient(
            90deg,
            var(--teal-dark),
            #6bbbd7
        );
}


.hero-card-top {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    margin-bottom:
        28px;

    color:
        var(--gray-500);

    font-size:
        0.63rem;

    font-weight:
        800;

    letter-spacing:
        0.14em;
}


.availability-dot {

    width:
        9px;

    height:
        9px;

    background:
        #56a970;

    border-radius:
        50%;

    box-shadow:
        0 0 0 5px rgba(86,169,112,0.13);
}


.profile-photo-wrap {

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    margin:
        0 auto 20px;
}


.profile-photo-ring {

    width:
        144px;

    height:
        144px;

    padding:
        5px;

    position:
        relative;

    border-radius:
        50%;

    background:
        linear-gradient(
            135deg,
            var(--teal-dark),
            #78c5de
        );

    box-shadow:
        0 18px 38px rgba(15,71,97,0.22);
}


.profile-photo {

    width:
        100%;

    height:
        100%;

    display:
        block;

    object-fit:
        cover;

    object-position:
        center 22%;

    border-radius:
        50%;

    border:
        4px solid var(--white);

    background:
        var(--gray-100);
}


.profile-photo-fallback {

    position:
        absolute;

    inset:
        5px;

    display:
        none;

    place-items:
        center;

    border-radius:
        50%;

    border:
        4px solid var(--white);

    background:
        linear-gradient(
            135deg,
            var(--teal-dark),
            var(--teal-light)
        );

    color:
        var(--white);

    font-family:
        "Merriweather",
        Georgia,
        serif;

    font-size:
        2rem;

    font-weight:
        700;

    letter-spacing:
        0.06em;
}


.profile-photo-wrap.photo-error .profile-photo {
    display: none;
}


.profile-photo-wrap.photo-error .profile-photo-fallback {
    display: grid;
}


.profile-photo-label {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        7px;

    margin-top:
        13px;

    padding:
        6px 11px;

    border-radius:
        99px;

    background:
        var(--teal-soft);

    color:
        var(--teal-dark);

    font-size:
        0.64rem;

    font-weight:
        800;

    letter-spacing:
        0.035em;

    text-transform:
        uppercase;
}


.profile-photo-label i {
    color: #3f9862;
    font-size: 0.72rem;
}


.hero-card h2 {

    margin:
        0;

    text-align:
        center;

    font-size:
        1.4rem;
}


.hero-card > p {

    margin:
        5px 0 0;

    text-align:
        center;

    color:
        var(--gray-600);

    font-size:
        0.85rem;
}


.profile-divider {

    height:
        1px;

    margin:
        25px 0;

    background:
        var(--gray-200);
}


.profile-stat-grid {

    display:
        grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap:
        13px;
}


.profile-stat-grid div {

    padding:
        14px;

    border-radius:
        10px;

    background:
        var(--gray-50);
}


.profile-stat-grid strong {

    display:
        block;

    color:
        var(--teal);

    font-size:
        1.05rem;
}


.profile-stat-grid span {

    display:
        block;

    color:
        var(--gray-600);

    font-size:
        0.64rem;

    margin-top:
        3px;
}


.profile-email {

    margin-top:
        22px;

    height:
        47px;

    border-radius:
        8px;

    display:
        flex;

    justify-content:
        center;

    align-items:
        center;

    gap:
        8px;

    background:
        var(--teal);

    color:
        var(--white);

    text-decoration:
        none;

    font-size:
        0.78rem;

    font-weight:
        700;

    transition:
        background var(--transition),
        transform var(--transition);
}


.profile-email:hover {

    background:
        var(--teal-dark);

    transform:
        translateY(-2px);
}


/* HERO SCROLL */

.scroll-indicator {

    position:
        absolute;

    z-index:
        3;

    bottom:
        28px;

    left:
        50%;

    transform:
        translateX(-50%);

    display:
        flex;

    align-items:
        center;

    gap:
        10px;

    color:
        rgba(255,255,255,0.55);

    text-decoration:
        none;

    font-size:
        0.62rem;

    font-weight:
        700;

    letter-spacing:
        0.14em;

    animation:
        bob 2s infinite;
}


@keyframes bob {

    0%,
    100% {
        transform:
            translate(-50%, 0);
    }

    50% {
        transform:
            translate(-50%, 7px);
    }

}


/* ============================================================
   SECTION HEADINGS
   ============================================================ */

.section-heading {

    display:
        flex;

    align-items:
        flex-start;

    gap:
        20px;

    margin-bottom:
        55px;
}


.section-number {

    color:
        var(--teal);

    font-size:
        0.7rem;

    font-weight:
        800;

    letter-spacing:
        0.1em;

    padding-top:
        9px;
}


.section-kicker {

    display:
        block;

    color:
        var(--teal);

    font-size:
        0.68rem;

    font-weight:
        800;

    letter-spacing:
        0.17em;

    margin-bottom:
        10px;
}


.section-heading h2 {

    margin:
        0;

    color:
        var(--ink);

    font-family:
        "Merriweather",
        Georgia,
        serif;

    font-size:
        clamp(2rem, 4vw, 3.1rem);

    line-height:
        1.2;

    letter-spacing:
        -0.025em;
}


.section-heading h2 span {

    color:
        var(--teal);
}


/* ============================================================
   ABOUT
   ============================================================ */

.about {

    padding:
        110px 0;

    background:
        var(--white);
}


.about-layout {

    display:
        grid;

    grid-template-columns:
        1.15fr 0.85fr;

    gap:
        80px;
}


.about-main p {

    color:
        var(--gray-700);

    font-size:
        0.98rem;

    line-height:
        1.9;

    margin:
        0 0 19px;
}


.about-main .about-lead {

    color:
        var(--ink);

    font-family:
        "Merriweather",
        Georgia,
        serif;

    font-size:
        clamp(1.3rem, 2.5vw, 1.75rem);

    line-height:
        1.55;

    margin-bottom:
        25px;
}


.about-highlights {

    display:
        flex;

    flex-direction:
        column;

    gap:
        15px;
}


.highlight-item {

    display:
        flex;

    gap:
        16px;

    padding:
        19px;

    background:
        var(--gray-50);

    border:
        1px solid var(--gray-200);

    border-radius:
        12px;

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}


.highlight-item:hover {

    transform:
        translateX(6px);

    border-color:
        #b8d7e3;

    box-shadow:
        var(--shadow-sm);
}


.highlight-icon {

    flex:
        0 0 44px;

    height:
        44px;

    display:
        grid;

    place-items:
        center;

    border-radius:
        9px;

    background:
        var(--teal-soft);

    color:
        var(--teal);
}


.highlight-item strong {

    font-size:
        0.88rem;
}


.highlight-item p {

    margin:
        4px 0 0;

    color:
        var(--gray-600);

    font-size:
        0.76rem;

    line-height:
        1.55;
}


/* ============================================================
   SKILLS
   ============================================================ */

.skills-section {

    padding:
        110px 0;

    background:
        linear-gradient(
            135deg,
            #0d4059,
            #146181
        );
}


.section-heading-light .section-number,
.section-heading-light .section-kicker {

    color:
        #84c8df;
}


.section-heading-light h2 {

    color:
        var(--white);
}


.section-heading-light h2 span {

    color:
        #8bcbe1;
}


.skills-intro {

    max-width:
        720px;

    margin:
        -30px 0 50px 46px;

    color:
        rgba(255,255,255,0.68);

    font-size:
        0.9rem;

    line-height:
        1.8;
}


.skills-tree-grid {

    display:
        grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap:
        20px;

    align-items:
        start;
}


.skill-tree {

    min-width:
        0;
}


.skill-heading {

    width:
        100%;

    min-height:
        86px;

    padding:
        15px;

    border:
        1px solid rgba(255,255,255,0.12);

    border-radius:
        10px;

    background:
        rgba(255,255,255,0.09);

    color:
        var(--white);

    display:
        flex;

    flex-direction:
        column;

    align-items:
        flex-start;

    justify-content:
        center;

    gap:
        8px;

    text-align:
        left;

    font-size:
        0.79rem;

    font-weight:
        700;

    line-height:
        1.35;

    position:
        relative;

    transition:
        transform var(--transition),
        background var(--transition);
}


.skill-heading:hover {

    background:
        rgba(255,255,255,0.14);

    transform:
        translateY(-3px);
}


.skill-heading-icon {

    width:
        32px;

    height:
        32px;

    display:
        grid;

    place-items:
        center;

    background:
        rgba(255,255,255,0.13);

    border-radius:
        7px;

    color:
        #8ed1e9;
}


.accordion-icon {

    display:
        none;

    position:
        absolute;

    right:
        16px;

    top:
        50%;

    transform:
        translateY(-50%);

    transition:
        transform var(--transition);
}


.skill-branches {

    position:
        relative;

    margin-top:
        17px;

    padding-left:
        25px;

    display:
        flex;

    flex-direction:
        column;

    gap:
        13px;
}


.skill-branches::before {

    content:
        "";

    position:
        absolute;

    left:
        9px;

    top:
        -17px;

    bottom:
        25px;

    width:
        2px;

    background:
        #5ba4c0;
}


.skill-branches span {

    position:
        relative;

    padding:
        13px 10px;

    min-height:
        52px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    text-align:
        center;

    border-radius:
        8px;

    border:
        1px solid rgba(255,255,255,0.23);

    background:
        rgba(255,255,255,0.97);

    color:
        var(--ink);

    font-size:
        0.72rem;

    font-weight:
        600;

    box-shadow:
        0 7px 18px rgba(0,0,0,0.08);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}


.skill-branches span::before {

    content:
        "";

    position:
        absolute;

    width:
        16px;

    height:
        2px;

    left:
        -17px;

    top:
        50%;

    background:
        #5ba4c0;
}


.skill-branches span:hover {

    transform:
        translateY(-4px);

    box-shadow:
        0 13px 24px rgba(0,0,0,0.14);
}


/* ============================================================
   EXPERIENCE
   ============================================================ */

.experience {

    padding:
        110px 0;

    background:
        var(--gray-50);
}


.timeline {

    position:
        relative;

    padding-left:
        41px;
}


.timeline::before {

    content:
        "";

    position:
        absolute;

    left:
        7px;

    top:
        10px;

    bottom:
        40px;

    width:
        2px;

    background:
        linear-gradient(
            var(--teal),
            #8bbacb,
            var(--gray-300)
        );
}


.timeline-item {

    position:
        relative;

    margin-bottom:
        32px;
}


.timeline-marker {

    position:
        absolute;

    left:
        -41px;

    top:
        28px;

    width:
        16px;

    height:
        16px;

    border-radius:
        50%;

    background:
        var(--white);

    border:
        4px solid var(--teal);

    box-shadow:
        0 0 0 5px #d9ebf1;
}


.experience-card {

    background:
        var(--white);

    border:
        1px solid var(--gray-200);

    border-radius:
        14px;

    padding:
        30px;

    box-shadow:
        var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}


.experience-card:hover {

    transform:
        translateY(-4px);

    border-color:
        #bed6df;

    box-shadow:
        var(--shadow-md);
}


.experience-header {

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        flex-start;

    gap:
        25px;

    margin-bottom:
        24px;

    padding-bottom:
        22px;

    border-bottom:
        1px solid var(--gray-200);
}


.experience-date {

    display:
        inline-block;

    padding:
        6px 9px;

    border-radius:
        5px;

    background:
        var(--teal-soft);

    color:
        var(--teal);

    font-size:
        0.67rem;

    font-weight:
        800;

    margin-bottom:
        10px;
}


.experience-header h3 {

    margin:
        0 0 7px;

    font-family:
        "Merriweather",
        Georgia,
        serif;

    color:
        var(--ink);

    font-size:
        clamp(1.15rem, 2vw, 1.45rem);
}


.company {

    color:
        var(--gray-600);

    font-size:
        0.8rem;

    font-weight:
        600;
}


.company span {

    color:
        var(--teal);

    margin:
        0 4px;
}


.experience-icon {

    width:
        48px;

    height:
        48px;

    flex:
        0 0 48px;

    border-radius:
        10px;

    display:
        grid;

    place-items:
        center;

    color:
        var(--teal);

    background:
        var(--teal-soft);

    font-size:
        1.05rem;
}


.experience-card ul {

    padding-left:
        21px;
}


.experience-card li {

    color:
        var(--gray-700);

    font-size:
        0.84rem;

    line-height:
        1.72;

    margin-bottom:
        9px;

    padding-left:
        4px;
}


.experience-card li::marker {

    color:
        var(--teal);
}


/* ============================================================
   EDUCATION
   ============================================================ */

.education {

    padding:
        110px 0;

    background:
        var(--white);
}


.education-card {

    display:
        grid;

    grid-template-columns:
        auto 1fr auto;

    align-items:
        center;

    gap:
        28px;

    padding:
        38px;

    border:
        1px solid var(--gray-200);

    border-radius:
        16px;

    background:
        linear-gradient(
            120deg,
            #ffffff,
            #f5fafc
        );

    box-shadow:
        var(--shadow-sm);
}


.education-badge {

    width:
        75px;

    height:
        75px;

    display:
        grid;

    place-items:
        center;

    border-radius:
        14px;

    background:
        var(--teal);

    color:
        white;

    font-size:
        1.8rem;
}


.education-year {

    color:
        var(--teal);

    font-size:
        0.67rem;

    font-weight:
        800;

    letter-spacing:
        0.07em;
}


.education-content h3 {

    margin:
        6px 0 4px;

    font-family:
        "Merriweather",
        Georgia,
        serif;

    font-size:
        1.3rem;
}


.education-content h4 {

    margin:
        0 0 10px;

    color:
        var(--teal);

    font-size:
        0.9rem;
}


.education-content p {

    margin:
        2px 0;

    color:
        var(--gray-600);

    font-size:
        0.78rem;
}


.education-content p span {

    color:
        var(--teal);
}


.rit-mark {

    color:
        #d7e3e8;

    font-family:
        "Merriweather",
        serif;

    font-size:
        clamp(2rem, 6vw, 5rem);

    font-weight:
        700;

    letter-spacing:
        -0.06em;
}


/* ============================================================
   LEADERSHIP
   ============================================================ */

.leadership {

    padding:
        110px 0;

    background:
        var(--gray-50);
}


.leadership-card {

    padding:
        35px;

    background:
        var(--white);

    border:
        1px solid var(--gray-200);

    border-radius:
        16px;

    box-shadow:
        var(--shadow-sm);
}


.leadership-top {

    display:
        flex;

    justify-content:
        space-between;

    gap:
        25px;

    align-items:
        flex-start;

    padding-bottom:
        26px;

    border-bottom:
        1px solid var(--gray-200);
}


.leadership-date {

    color:
        var(--teal);

    font-size:
        0.68rem;

    font-weight:
        800;

    letter-spacing:
        0.06em;
}


.leadership-top h3 {

    margin:
        8px 0;

    font-family:
        "Merriweather",
        Georgia,
        serif;

    font-size:
        1.4rem;
}


.leadership-title {

    margin:
        0;

    color:
        var(--gray-600);

    font-size:
        0.82rem;
}


.leadership-title span {

    color:
        var(--teal);
}


.leadership-icon {

    flex:
        0 0 55px;

    width:
        55px;

    height:
        55px;

    display:
        grid;

    place-items:
        center;

    border-radius:
        12px;

    background:
        var(--teal-soft);

    color:
        var(--teal);

    font-size:
        1.25rem;
}


.leadership-grid {

    display:
        grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        15px;

    margin-top:
        25px;
}


.leadership-grid > div {

    display:
        flex;

    align-items:
        flex-start;

    gap:
        14px;

    padding:
        18px;

    background:
        var(--gray-50);

    border-radius:
        10px;
}


.leadership-grid i {

    color:
        var(--teal);

    margin-top:
        4px;
}


.leadership-grid p {

    margin:
        0;

    color:
        var(--gray-700);

    font-size:
        0.78rem;

    line-height:
        1.65;
}


/* ============================================================
   REFERENCES
   ============================================================ */

.references {

    padding:
        110px 0;

    background:
        var(--white);
}


.references-note {

    max-width:
        670px;

    margin:
        -25px 0 40px 45px;

    color:
        var(--gray-600);

    font-size:
        0.82rem;

    line-height:
        1.7;
}


.references-grid {

    display:
        grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap:
        15px;
}


.reference-card {

    padding:
        27px 18px;

    border:
        1px solid var(--gray-200);

    border-radius:
        13px;

    text-align:
        center;

    background:
        var(--white);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}


.reference-card:hover {

    transform:
        translateY(-6px);

    box-shadow:
        var(--shadow-md);

    border-color:
        #bdd5de;
}


.reference-avatar {

    width:
        57px;

    height:
        57px;

    margin:
        0 auto 17px;

    display:
        grid;

    place-items:
        center;

    border-radius:
        50%;

    background:
        var(--teal-soft);

    color:
        var(--teal);

    font-weight:
        800;

    font-size:
        0.79rem;
}


.reference-card h3 {

    margin:
        0 0 8px;

    color:
        var(--ink);

    font-size:
        0.89rem;
}


.reference-card > span {

    display:
        block;

    color:
        var(--teal);

    font-size:
        0.67rem;

    font-weight:
        700;

    line-height:
        1.4;
}


.reference-card p {

    margin:
        6px 0;

    color:
        var(--gray-600);

    font-size:
        0.68rem;
}


.reference-card small {

    display:
        inline-block;

    margin-top:
        8px;

    padding:
        4px 8px;

    background:
        var(--gray-100);

    border-radius:
        99px;

    color:
        var(--gray-600);

    font-size:
        0.57rem;

    font-weight:
        700;
}


/* ============================================================
   CONTACT
   ============================================================ */

.contact-section {

    padding:
        110px 0;

    background:
        linear-gradient(
            135deg,
            #0d4059 0%,
            #156082 60%,
            #0d4059 100%
        );

    overflow:
        hidden;
}


.contact-section::before {

    content:
        "";

    position:
        absolute;

    width:
        500px;

    height:
        500px;

    border-radius:
        50%;

    background:
        rgba(255,255,255,0.045);

    top:
        -260px;

    right:
        -170px;
}


.contact-section::after {

    content:
        "";

    position:
        absolute;

    width:
        320px;

    height:
        320px;

    border:
        1px solid rgba(255,255,255,0.09);

    border-radius:
        50%;

    bottom:
        -190px;

    left:
        -100px;
}


.contact-section .container {

    position:
        relative;

    z-index:
        2;
}


.contact-heading {

    max-width:
        720px;

    margin:
        0 auto 50px;

    text-align:
        center;
}


.contact-kicker {

    display:
        block;

    color:
        #88cce3;

    font-size:
        0.68rem;

    font-weight:
        800;

    letter-spacing:
        0.17em;

    margin-bottom:
        10px;
}


.contact-heading h2 {

    margin:
        0 0 15px;

    color:
        var(--white);

    font-family:
        "Merriweather",
        Georgia,
        serif;

    font-size:
        clamp(2.2rem, 5vw, 3.5rem);

    line-height:
        1.2;
}


.contact-heading h2 span {

    color:
        #90cee2;
}


.contact-heading p {

    margin:
        0 auto;

    max-width:
        650px;

    color:
        rgba(255,255,255,0.69);

    font-size:
        0.88rem;

    line-height:
        1.75;
}


.contact-grid {

    max-width:
        950px;

    margin:
        0 auto;

    display:
        grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        16px;
}


.contact-card {

    display:
        flex;

    align-items:
        center;

    gap:
        17px;

    min-height:
        100px;

    padding:
        20px 23px;

    background:
        rgba(255,255,255,0.97);

    border:
        1px solid rgba(255,255,255,0.22);

    border-radius:
        12px;

    text-decoration:
        none;

    color:
        var(--ink);

    box-shadow:
        0 12px 30px rgba(0,0,0,0.12);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}


a.contact-card:hover {

    transform:
        translateY(-5px);

    box-shadow:
        0 18px 42px rgba(0,0,0,0.19);
}


.contact-icon {

    width:
        48px;

    height:
        48px;

    flex:
        0 0 48px;

    display:
        grid;

    place-items:
        center;

    border-radius:
        10px;

    background:
        var(--teal-soft);

    color:
        var(--teal);

    font-size:
        1.06rem;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}


a.contact-card:hover .contact-icon {

    background:
        var(--teal);

    color:
        var(--white);

    transform:
        scale(1.05);
}


.contact-content {

    display:
        flex;

    flex-direction:
        column;

    min-width:
        0;

    flex:
        1;

    gap:
        4px;
}


.contact-label {

    color:
        var(--gray-500);

    font-size:
        0.61rem;

    font-weight:
        800;

    letter-spacing:
        0.13em;
}


.contact-value {

    color:
        var(--ink);

    font-size:
        0.9rem;

    font-weight:
        700;

    overflow-wrap:
        anywhere;
}


.contact-arrow {

    color:
        var(--gray-400);

    font-size:
        0.76rem;

    transition:
        color var(--transition),
        transform var(--transition);
}


a.contact-card:hover .contact-arrow {

    color:
        var(--teal);

    transform:
        translate(3px, -3px);
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {

    padding:
        30px 0;

    background:
        #082b3d;

    color:
        white;
}


.footer-container {

    width:
        min(
            calc(100% - 48px),
            var(--container)
        );

    margin:
        0 auto;

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap:
        30px;
}


.footer-container > div:first-child {

    display:
        flex;

    flex-direction:
        column;
}


.footer-container strong {

    font-family:
        "Merriweather",
        serif;

    font-size:
        0.87rem;
}


.footer-container span {

    color:
        rgba(255,255,255,0.55);

    font-size:
        0.63rem;
}


.footer-container p {

    margin:
        0;

    color:
        rgba(255,255,255,0.55);

    font-size:
        0.66rem;
}


.footer-social {

    display:
        flex;

    gap:
        9px;
}


.footer-social a {

    width:
        35px;

    height:
        35px;

    border-radius:
        50%;

    display:
        grid;

    place-items:
        center;

    background:
        rgba(255,255,255,0.08);

    color:
        white;

    text-decoration:
        none;

    font-size:
        0.76rem;

    transition:
        background var(--transition),
        transform var(--transition);
}


.footer-social a:hover {

    background:
        var(--teal-light);

    transform:
        translateY(-3px);
}


/* ============================================================
   BACK TO TOP
   ============================================================ */

.back-to-top {

    position:
        fixed;

    right:
        25px;

    bottom:
        25px;

    width:
        45px;

    height:
        45px;

    border:
        0;

    border-radius:
        50%;

    background:
        var(--teal);

    color:
        var(--white);

    box-shadow:
        0 8px 22px rgba(15,71,97,0.28);

    cursor:
        pointer;

    display:
        grid;

    place-items:
        center;

    opacity:
        0;

    visibility:
        hidden;

    transform:
        translateY(15px);

    z-index:
        700;

    transition:
        opacity var(--transition),
        visibility var(--transition),
        transform var(--transition),
        background var(--transition);
}


.back-to-top.show {

    opacity:
        1;

    visibility:
        visible;

    transform:
        translateY(0);
}


.back-to-top:hover {

    background:
        var(--teal-dark);

    transform:
        translateY(-3px);
}


/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */

.reveal {

    opacity:
        0;

    transform:
        translateY(30px);

    transition:
        opacity 0.75s ease,
        transform 0.75s ease;
}


.reveal.is-visible {

    opacity:
        1;

    transform:
        translateY(0);
}


.skills-tree-grid .reveal:nth-child(2) {
    transition-delay: 0.07s;
}


.skills-tree-grid .reveal:nth-child(3) {
    transition-delay: 0.14s;
}


.skills-tree-grid .reveal:nth-child(4) {
    transition-delay: 0.21s;
}


.skills-tree-grid .reveal:nth-child(5) {
    transition-delay: 0.28s;
}


.references-grid .reveal:nth-child(2) {
    transition-delay: 0.05s;
}


.references-grid .reveal:nth-child(3) {
    transition-delay: 0.1s;
}


.references-grid .reveal:nth-child(4) {
    transition-delay: 0.15s;
}


.references-grid .reveal:nth-child(5) {
    transition-delay: 0.2s;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1100px) {

    .nav-links a {

        padding:
            10px 7px;

        font-size:
            0.72rem;
    }


    .hero-container {

        gap:
            45px;

        grid-template-columns:
            1fr 340px;
    }


    .skills-tree-grid {

        grid-template-columns:
            repeat(3, 1fr);
    }


    .references-grid {

        grid-template-columns:
            repeat(3, 1fr);
    }

}


/* ============================================================
   MOBILE NAVIGATION
   ============================================================ */

@media (max-width: 900px) {

    .nav-toggle {
        display: block;
    }


    .nav-links {

        position: fixed;

        inset:
            78px 0 auto 0;

        height:
            calc(100vh - 78px);

        padding:
            35px 24px;

        flex-direction:
            column;

        align-items:
            stretch;

        gap:
            5px;

        background:
            rgba(255,255,255,0.99);

        transform:
            translateX(100%);

        opacity:
            0;

        visibility:
            hidden;

        transition:
            transform var(--transition),
            opacity var(--transition),
            visibility var(--transition);
    }


    .nav-links.open {

        transform:
            translateX(0);

        opacity:
            1;

        visibility:
            visible;
    }


    .nav-links a {

        padding:
            14px 10px;

        font-size:
            0.9rem;

        border-bottom:
            1px solid var(--gray-200);
    }


    .nav-links a::after {
        display: none;
    }


    .hero-container {

        grid-template-columns:
            1fr;

        gap:
            55px;
    }


    .hero-content {
        text-align: center;
    }


    .hero-role,
    .hero-contact-line,
    .hero-actions {

        justify-content:
            center;
    }


    .hero-description {

        margin-left:
            auto;

        margin-right:
            auto;
    }


    .hero-panel {

        max-width:
            400px;

        width:
            100%;

        margin:
            0 auto;
    }


    .scroll-indicator {
        display: none;
    }


    .about-layout {

        grid-template-columns:
            1fr;

        gap:
            45px;
    }


    .leadership-grid {

        grid-template-columns:
            1fr;
    }


    .references-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* ============================================================
   SMALL TABLET / LARGE MOBILE
   ============================================================ */

@media (max-width: 760px) {

    .container,
    .nav-container,
    .footer-container,
    .hero-container {

        width:
            min(
                calc(100% - 32px),
                var(--container)
            );
    }


    .about,
    .skills-section,
    .experience,
    .education,
    .leadership,
    .references,
    .contact-section {

        padding:
            80px 0;
    }


    .hero {

        min-height:
            auto;

        padding:
            125px 0 80px;
    }


    .hero h1 {

        font-size:
            clamp(3.4rem, 17vw, 5.5rem);
    }


    .hero-description {

        font-size:
            0.91rem;
    }


    .hero-contact-line {

        flex-direction:
            column;

        align-items:
            center;

        gap:
            10px;
    }


    .section-heading {

        gap:
            13px;

        margin-bottom:
            40px;
    }


    .section-heading h2 {

        font-size:
            clamp(1.8rem, 8vw, 2.5rem);
    }


    .skills-intro,
    .references-note {

        margin-left:
            0;
    }


    /* SKILLS BECOME ACCORDIONS */

    .skills-tree-grid {

        grid-template-columns:
            1fr;

        gap:
            12px;
    }


    .skill-heading {

        min-height:
            68px;

        flex-direction:
            row;

        align-items:
            center;

        justify-content:
            flex-start;

        padding:
            14px 18px;
    }


    .skill-heading-icon {

        flex:
            0 0 34px;
    }


    .accordion-icon {

        display:
            block;
    }


    .skill-tree.open .accordion-icon {

        transform:
            translateY(-50%)
            rotate(180deg);
    }


    .skill-branches {

        max-height:
            0;

        overflow:
            hidden;

        opacity:
            0;

        margin-top:
            0;

        padding-left:
            0;

        gap:
            9px;

        transition:
            max-height 0.45s ease,
            opacity 0.3s ease,
            margin-top 0.3s ease;
    }


    .skill-tree.open .skill-branches {

        max-height:
            600px;

        opacity:
            1;

        margin-top:
            10px;
    }


    .skill-branches::before,
    .skill-branches span::before {
        display: none;
    }


    .skill-branches span {

        min-height:
            auto;

        justify-content:
            flex-start;

        padding:
            13px 17px;

        text-align:
            left;
    }


    .timeline {

        padding-left:
            26px;
    }


    .timeline::before {

        left:
            5px;
    }


    .timeline-marker {

        left:
            -28px;

        width:
            13px;

        height:
            13px;

        border-width:
            3px;
    }


    .experience-card {

        padding:
            22px;
    }


    .experience-header {

        flex-direction:
            column;
    }


    .experience-icon {
        display: none;
    }


    .education-card {

        grid-template-columns:
            auto 1fr;

        padding:
            25px;
    }


    .rit-mark {
        display: none;
    }


    .leadership-card {
        padding: 25px;
    }


    .contact-grid {

        grid-template-columns:
            1fr;
    }


    .footer-container {

        flex-direction:
            column;

        text-align:
            center;

        gap:
            18px;
    }

}


/* ============================================================
   PHONES
   ============================================================ */

@media (max-width: 520px) {

    .brand-text small {
        display: none;
    }


    .hero-actions {

        flex-direction:
            column;
    }


    .btn {

        width:
            100%;
    }


    .hero-card {

        padding:
            24px 20px;
    }


    .profile-photo-ring {

        width:
            126px;

        height:
            126px;
    }


    .profile-photo-label {

        font-size:
            0.59rem;
    }


    .profile-stat-grid {

        grid-template-columns:
            1fr 1fr;
    }


    .education-card {

        grid-template-columns:
            1fr;

        text-align:
            center;
    }


    .education-badge {

        margin:
            0 auto;
    }


    .leadership-top {

        flex-direction:
            column;
    }


    .leadership-icon {
        display: none;
    }


    .references-grid {

        grid-template-columns:
            1fr;
    }


    .reference-card {

        display:
            grid;

        grid-template-columns:
            auto 1fr;

        column-gap:
            16px;

        text-align:
            left;

        align-items:
            center;
    }


    .reference-avatar {

        grid-row:
            1 / 5;

        margin:
            0;
    }


    .reference-card h3,
    .reference-card p {

        margin:
            0;
    }


    .reference-card small {

        width:
            max-content;
    }


    .contact-card {

        padding:
            17px;

        min-height:
            88px;
    }


    .contact-icon {

        width:
            43px;

        height:
            43px;

        flex-basis:
            43px;
    }


    .contact-value {

        font-size:
            0.81rem;
    }


    .contact-arrow {
        display: none;
    }


    .back-to-top {

        width:
            41px;

        height:
            41px;

        right:
            16px;

        bottom:
            16px;
    }

}


/* ============================================================
   ACCESSIBILITY / REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        scroll-behavior:
            auto !important;

        transition-duration:
            0.01ms !important;
    }


    .reveal {

        opacity:
            1;

        transform:
            none;
    }

}


/* ============================================================
   PRINT / SAVE AS PDF
   ============================================================ */

@media print {

    .site-header,
    .scroll-progress,
    .hero-actions,
    .scroll-indicator,
    .back-to-top,
    .site-footer {

        display:
            none !important;
    }


    body {

        background:
            white;

        color:
            black;
    }


    .hero {

        min-height:
            auto;

        padding:
            40px;

        background:
            white;
    }


    .hero h1,
    .hero h1 span {

        color:
            var(--teal-dark);
    }


    .hero-role,
    .hero-description,
    .hero-contact-line a,
    .hero-contact-line span {

        color:
            black;
    }


    .hero-panel {
        display: none;
    }


    .hero-container {

        display:
            block;

        width:
            100%;
    }


    .about,
    .skills-section,
    .experience,
    .education,
    .leadership,
    .references,
    .contact-section {

        padding:
            30px 0;

        background:
            white !important;

        break-inside:
            avoid;
    }


    .section-heading-light h2,
    .section-heading-light h2 span,
    .section-heading-light .section-kicker,
    .contact-heading h2,
    .contact-heading h2 span,
    .contact-kicker {

        color:
            var(--teal-dark);
    }


    .skills-intro,
    .contact-heading p {

        color:
            black;
    }


    .skills-tree-grid {

        grid-template-columns:
            repeat(3, 1fr);
    }


    .skill-heading {

        color:
            white;

        background:
            var(--teal);
    }


    .contact-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .reveal {

        opacity:
            1 !important;

        transform:
            none !important;
    }

}