/* ========================== COLOR VARIABLES ========================== */
:root {
    --gray15: #242424;           /* 15% gray - background */
    --sand: #FDF7E7;             /* pale sand - main bar and highlights */
    --forest: #6EA07D;           /* forest green - section background, button */
    --moss: #e5e194;             /* mossy gold - accent, highlight */
    --earth: #7F6B48;            /* earth brown - accent, heading, border */
    --bark: #3e321c;             /* bark/dark brown - nav bar, overlay */
    --pine: #122221;             /* deep forest/pine - for strong contrast */
    --overlay-black: rgba(18,34,33,0.55); /* overlay for banner image */
    --text-main: #222;           /* dark brown text */
}

/* ============================ BODY ============================= */
body {
    margin: 0;
    padding: 0;
    font-family: 'Raleway', sans-serif;
    background: var(--gray15);
    color: var(--text-main);
}

/* ============================ TOP NAV BAR ============================= */
.topbar {
    width: 100vw;
    background: var(--gray15);
    color: var(--moss);
    font-size: 1.1rem;
    padding: 0.6rem 1.5rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    min-height: 24px;
    font-weight: 300;
    letter-spacing: 0.03em;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
}

.topbar-title {
    flex: 1;
}

/* ============================ BANNER SECTION =========================== */
.banner {
    position: relative;
    width: 100vw;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.banner-photo {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    z-index: 1;
    position: absolute;
    top: 0; left: 0;
}

.banner-overlay {
    background: var(--overlay-black);
    width: 100vw;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
    z-index: 2;
}

.banner-text {
    position: absolute;
    right: 8vw;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    text-align: right;
    color: var(--moss);
    max-width: 410px;
}

.banner-text h1 {
    margin: 0 0 0.2em 0;
    font-size: 2.5em;
    color: var(--sand);
    text-shadow: 0 2px 6px #111a;
}

.banner-text h2 {
    margin: 0 0 0.25em 0;
    font-weight: 400;
    color: var(--forest);
    font-size: 1.45em;
    letter-spacing: 0.01em;
}

.banner-text p {
    font-size: 1.13em;
    margin: 0 0 1.2em 0;
    color: var(--moss);
    text-shadow: 0 2px 8px #111a;
}

.resume-btn {
    padding: 0.7em 2.1em;
    background: var(--forest);
    color: var(--pine);
    border: none;
    border-radius: 2em;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 2px 8px #1115;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}

.resume-btn:hover {
    background: var(--pine);
    color: var(--forest);
}

/* ====================== BADGE EXPLAINER BANNER ===================== */
.badge-explainer-banner {
    width: 100vw;
    min-height: 2.2rem;
    background: #161616;
    color: #ffe14c;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    padding: 0.5rem 1rem;
    box-sizing: border-box;
    margin-bottom: 0;
    border-bottom: 2px solid #333;
    transition: background 0.2s, color 0.2s;
}

/* ====================== BADGE BANNER SECTION ===================== */
.badge-banner-section {
    width: 100vw;
    display: flex;
    justify-content: center;
    background: var(--sand);
    padding: 1.2rem 0;
    box-sizing: border-box;
    margin-bottom: 2rem;
}

.badge-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 900px;
}

/* Each badge */
.badge {
    position: relative;
    width: 64px;
    height: 64px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: z-index 0.15s;
}

/* Badge image */
.badge img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    transition: transform 0.20s cubic-bezier(.3,1.45,.48,1.13);
    position: relative;
    z-index: 2;
}

/* Glow and bring to front on hover or tap */
.badge:hover,
.badge.active {
    z-index: 10;
}
.badge:hover img,
.badge.active img {
    transform: scale(2.2);
}

/* Spinning glow, ONLY visible on hover or .active (mobile) */
.badge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%) scale(0.7);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    background: conic-gradient(from 0deg, #fffbe7 0deg 45deg, #ffe14c 135deg 180deg, #fffbe7 225deg 360deg);
    box-shadow: 0 0 62px 32px rgba(255, 225, 76, 0.469), 0 0 0 0 #fff0;
    transition: opacity 0.22s, transform 0.33s;
}

/* Only visible when hovered/active */
.badge:hover::before,
.badge.active::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.18);
    animation: spin-glow 2.8s linear infinite;
}

@keyframes spin-glow {
    to {
        transform: translate(-50%, -50%) scale(1.12) rotate(360deg);
    }
}

/* ========== Responsive Styles ========== */
@media (max-width: 600px) {
    .badge-banner-section {
        padding: 0.8rem 0;
    }
    .badge-banner {
        gap: 0.7rem;
    }
    .badge {
        width: 48px;
        height: 48px;
    }
    .badge img {
        max-width: 100%;
        max-height: 100%;
        display: block;
        box-shadow: 0 2px 8px #0002;
        transition: box-shadow 0.18s, transform 0.18s;
    }
}

/* ===================== ABOUT ME SECTION (Sand Bar) ===================== */
.about-me-section {
    width: 100vw;
    margin: 0;
    padding: 0;
    background: var(--gray15);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.about-me-heading {
    color: var(--sand);
    font-family: 'Raleway', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    margin: 0;
    margin-top: 2.3rem;
    margin-bottom: -0.7rem;
    z-index: 2;
    text-align: left;
    background: none;
    position: relative;
    width: 100vw;
    max-width: 800px;
    padding-left: 2rem;
    box-sizing: border-box;
}
.about-me-bar {
    width: 100vw;
    background: var(--sand);
    padding: 2.2rem 0 2.2rem 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-radius: 0;
    box-shadow: none;
    z-index: 1;
    margin: 0;
}
.about-me-content {
    width: 100%;
    max-width: 800px;
    padding: 0 2rem;
    background: none;
    margin: 0;
    text-align: left;
}
.about-me-content p {
    color: var(--pine);
    line-height: 1.7;
    font-size: 1.13em;
    margin-bottom: 1.15em;
    margin-top: 0;
    background: none;
}
/* --- Responsive tweaks for About Me --- */
@media (max-width: 900px) {
    .banner-text {
        right: 5vw;
        max-width: 70vw;
        font-size: 0.93em;
    }
    .banner {
        height: 220px;
    }
}
@media (max-width: 600px) {
    .banner {
        height: 180px;
    }
    .banner-text {
        right: 2vw;
        max-width: 90vw;
        font-size: 0.8em;
    }
    .banner-text h1 {
        font-size: 1.3em;
    }
    .about-me-heading,
    .about-me-content {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
        max-width: 98vw;
    }
    .about-me-heading {
        font-size: 1.3rem;
        margin-top: 1.1rem;
        margin-bottom: -0.3rem;
    }
    .about-me-bar {
        padding: 1.1rem 0;
    }
}
