/* ========================================
   Daniel J. Berg Portfolio Stylesheet
   Emerald green theme • Organized, cleaned, and visually refined
======================================== */

/* ========================================
   01. Font Import
======================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ========================================
   02. Global Reset + Variables
======================================== */

:root {
    --emerald-deep: #0B3324;
    --emerald-dark: #145A3E;
    --emerald-main: #1E6F50;
    --emerald-bright: #2FBF71;
    --emerald-soft: #79D9A6;

    --steel-dark: #5F6E88;
    --steel-main: #7887A1;
    --steel-light: #9AA8BF;

    --cyber-blue: #A7F3D0;
    --cyber-blue-soft: rgba(167, 243, 208, 0.14);
    --cyber-blue-border: rgba(167, 243, 208, 0.42);
    --cyber-blue-shadow: 0 0 18px rgba(167, 243, 208, 0.34);

    --cream: #F4FBF7;
    --white-soft: #EAF6EF;
    --dark-text: #20372C;
    --section-heading: #173C2B;
    --section-text: #20372C;

    --header-height: 88px;
    --mobile-header-height: 70px;
    --current-header-height: var(--header-height);
    --page-x: 8.5%;
    --page-x-large: 10%;
    --page-x-mobile: 6%;

    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --glass-emerald: rgba(244, 251, 247, 0.12);
    --glass-light: rgba(244, 251, 247, 0.26);
    --border-glow: 1px solid rgba(167, 243, 208, 0.28);
    --shadow-card: 0 18px 45px rgba(32, 55, 44, 0.18);
    --transition: 0.28s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

html {
    background: var(--emerald-dark);
}

body {
    min-height: 100vh;
    padding-top: var(--current-header-height);
    font-family: "Poppins", sans-serif;
    color: var(--cream);
    background: var(--emerald-main);
    letter-spacing: 0.15px;
}

img {
    display: block;
    max-width: 100%;
}

span {
    color: var(--cyber-blue);
}

button,
a {
    font-family: inherit;
}

/* ========================================
   03. Shared Layout + Backgrounds
======================================== */

header,
section,
footer {
    position: relative;
    z-index: 4;
}

section {
    padding: 3rem var(--page-x);
    scroll-margin-top: var(--current-header-height);
}

#home {
    scroll-margin-top: var(--header-height);
}

#rain-canvas,
.lightning {
    display: none !important;
}

.home,
.focus,
.skills,
.certifications {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 80% 28%, rgba(167, 243, 208, 0.18), transparent 34%),
        radial-gradient(circle at 18% 78%, rgba(121, 217, 166, 0.25), transparent 36%),
        radial-gradient(circle at 42% 35%, rgba(255, 255, 255, 0.07), transparent 32%),
        linear-gradient(135deg, #145A3E 0%, #1E6F50 50%, #27845F 100%);
}

.about,
.experience,
.projects,
.contact {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 12% 22%, rgba(255, 214, 166, 0.20), transparent 34%),
        radial-gradient(circle at 80% 28%, rgba(167, 243, 208, 0.14), transparent 34%),
        radial-gradient(circle at 78% 78%, rgba(20, 90, 62, 0.15), transparent 42%),
        linear-gradient(135deg, #6D7C96 0%, #7F8EA8 52%, #9AA8BF 100%);
}

.home::before,
.about::before,
.focus::before,
.experience::before,
.skills::before,
.projects::before,
.certifications::before,
.contact::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 32%, rgba(167, 243, 208, 0.06)),
        radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.12), transparent 55%);
}

.home > *,
.about > *,
.focus > *,
.experience > *,
.skills > *,
.projects > *,
.certifications > *,
.contact > * {
    position: relative;
    z-index: 2;
}

/* ========================================
   04. Header / Navigation
======================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: var(--header-height);
    padding: 1rem var(--page-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(20, 90, 62, 0.96);
    border-bottom: 1px solid rgba(244, 251, 247, 0.14);
    box-shadow: 0 8px 28px rgba(32, 55, 44, 0.28);
    backdrop-filter: blur(14px);
    z-index: 9999;
}

.logo {
    color: var(--cream);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.logo span {
    color: var(--cyber-blue);
    text-shadow: var(--cyber-blue-shadow);
}

.navlist {
    display: flex;
    align-items: center;
    gap: 2.15rem;
}

.navlist a {
    position: relative;
    color: var(--cream);
    font-size: 0.93rem;
    font-weight: 600;
    transition: var(--transition);
}

.navlist a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--cyber-blue);
    box-shadow: var(--cyber-blue-shadow);
    transition: var(--transition);
}

.navlist a:hover,
.navlist a.active {
    color: var(--cyber-blue);
    text-shadow: var(--cyber-blue-shadow);
}

.navlist a:hover::after,
.navlist a.active::after {
    width: 100%;
}

#menu-icon {
    display: none;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    color: var(--emerald-dark);
    background: var(--cyber-blue);
    border: 0;
    border-radius: 10px;
    font-size: 1.75rem;
    cursor: pointer;
    box-shadow: var(--cyber-blue-shadow);
}

/* ========================================
   05. Reusable Components
======================================== */

.btn,
.contact-email-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 44px;
    border-radius: 999px;
    background: var(--cyber-blue);
    color: var(--emerald-dark);
    border: 2px solid var(--cyber-blue);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.25px;
    box-shadow: var(--cyber-blue-shadow);
    transition: var(--transition);
}

.btn:hover,
.contact-email-btn:hover {
    transform: translateY(-3px);
    background: transparent;
    color: var(--cyber-blue);
}

.btn-box {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.4rem;
}

.btn {
    min-width: 170px;
    min-height: 54px;
    padding: 0 1.8rem;
}

.btn {
    min-width: 132px;
    padding: 0 1.2rem;
}

.btn:nth-child(2) {
    background: transparent;
    color: var(--cyber-blue);
}

.btn:nth-child(2):hover {
    background: var(--cyber-blue);
    color: var(--emerald-dark);
}

.focus-card,
.skills-card,
.project-card,
.timeline-item,
.contact-main-card,
.certification-card,
.contact-item,
.social-btn,
.about-text-card,
.about-bubble {
    border: var(--border-glow);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-card);
}

.focus-card,
.skills-card,
.project-card,
.certification-card,
.timeline-item,
.contact-item,
.social-btn {
    transition: var(--transition);
}

.focus-card:hover,
.skills-card:hover,
.project-card:hover,
.certification-card:hover,
.timeline-item:hover,
.contact-item:hover,
.social-btn:hover {
    transform: translateY(-8px);
    border-color: rgba(167, 243, 208, 0.58);
    box-shadow: 0 22px 48px rgba(32, 55, 44, 0.24), 0 0 28px rgba(167, 243, 208, 0.24);
}

/* ========================================
   06. Home / Hero
======================================== */

.home {
    width: 100%;
    height: calc(100vh - var(--current-header-height));
    height: calc(100svh - var(--current-header-height));
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 5rem);
    padding:
        clamp(1.25rem, 3.2vh, 3rem)
        var(--page-x);
    overflow: hidden;
}

.home-content {
    width: 100%;
    max-width: 650px;
    transform: none;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 0.7rem;
    color: var(--cyber-blue);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.home-content h1 {
    color: var(--cream);
    font-size: clamp(2.2rem, 3.65vw, 3.55rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 1.15rem;
    text-shadow: 0 0 24px rgba(167, 243, 208, 0.14);
}

.home-content p {
    max-width: 620px;
    color: var(--white-soft);
    font-size: clamp(0.82rem, 0.48vw + 0.48rem, 1rem);
    line-height: 1.68;
    margin-bottom: 1.75rem;
    opacity: 0.96;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.14);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    max-width: 650px;
    margin-bottom: 2.2rem;
}

.hero-tags span {
    padding:
        clamp(0.3rem, 0.6vh, 0.42rem)
        clamp(0.68rem, 1vw, 0.92rem);
    color: #E5FFF0;
    font-size: clamp(0.66rem, 0.32vw + 0.42rem, 0.76rem);
    font-weight: 700;
    border: 1px solid var(--cyber-blue-border);
    border-radius: 999px;
    background: rgba(167, 243, 208, 0.11);
    box-shadow: 0 0 12px rgba(167, 243, 208, 0.14);
}

.home-img {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.img-box {
    position: relative;
    width: min(35vw, 470px, 58vh);
    height: min(42vw, 560px, 72vh);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transform: translateX(clamp(0rem, 1vw, 1rem));
}

.img-box img {
    position: relative;
    z-index: 3;
    width: min(31vw, 410px, 53vh);
    max-width: 410px;
    height: auto;
    object-fit: contain;
    transform: translateY(0);
    filter: drop-shadow(0 0 26px rgba(167, 243, 208, 0.25));
}

.liquid-shape {
    position: absolute;
    inset: -2%;
    z-index: 1;
    width: 104%;
    height: 104%;
    opacity: 0.94;
    filter: drop-shadow(0 0 36px rgba(167, 243, 208, 0.38));
    animation: floatBlob 7s ease-in-out infinite;
}

.liquid-shape svg {
    width: 100%;
    height: 100%;
    display: block;
}

.profile-inline {
    display: none;
}

@keyframes floatBlob {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-8px) rotate(1deg) scale(1.01); }
    50% { transform: translateY(-14px) rotate(-1deg) scale(1.015); }
    75% { transform: translateY(-6px) rotate(1deg) scale(1.01); }
}

@keyframes floatBlobMobile {
    0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
    50% { transform: translateX(-50%) translateY(-10px) scale(1.015); }
}

/* ========================================
   07. About
======================================== */

.about {
    min-height: calc(100vh - var(--current-header-height));
    min-height: calc(100svh - var(--current-header-height));
    display: flex;
    align-items: center;
    padding-top: clamp(2rem, 4vh, 3rem);
    padding-bottom: clamp(2rem, 4vh, 3rem);
}

.about-layout {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(380px, 0.88fr) minmax(0, 1.12fr);
    align-items: center;
    gap: clamp(2rem, 3.5vw, 3.5rem);
}

.about-left {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    text-align: center;
}

.about-subtitle,
.focus-subtitle,
.skills-subtitle,
.portfolio-subtitle,
.experience-subtitle,
.certifications-subtitle,
.contact-subtitle {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2.7px;
    text-transform: uppercase;
}

.about-subtitle,
.portfolio-subtitle,
.experience-subtitle {
    color: var(--emerald-dark);
}

.focus-subtitle,
.skills-subtitle,
.certifications-subtitle,
.contact-subtitle {
    color: var(--cyber-blue);
}

.about-title,
.skills-title,
.portfolio-title,
.experience-title,
.certifications-title {
    color: var(--section-heading);
}

.focus-title,
.certifications-title,
.contact-title {
    color: var(--cream);
}

.about-title,
.focus-title,
.skills-title,
.portfolio-title,
.experience-title,
.certifications-title,
.contact-title {
    font-size: clamp(2.1rem, 4vw, 2.75rem);
    line-height: 1.08;
    margin-bottom: 0.9rem;
    font-weight: 800;
}

.about-visual {
    position: relative;
    width: min(100%, 520px);
    min-height: 455px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-blob {
    position: absolute;
    z-index: 1;
    width: min(82%, 410px);
    aspect-ratio: 1 / 1;
    pointer-events: none;
    opacity: 0.96;
    filter:
        drop-shadow(0 0 26px rgba(77, 224, 210, 0.34))
        drop-shadow(0 0 58px rgba(20, 150, 165, 0.24));
    animation: floatAboutBlob 8s ease-in-out infinite;
}

.about-blob svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.about-photo {
    position: relative;
    z-index: 2;
    width: clamp(195px, 19vw, 245px);
    height: auto;
    transform: translateY(14px);
    filter: drop-shadow(0 16px 24px rgba(32, 55, 44, 0.3));
}

.about-bubble {
    position: absolute;
    z-index: 3;
    width: clamp(145px, 12vw, 172px);
    min-height: 92px;
    padding: 0.75rem 0.8rem;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--section-text);
    background: rgba(244, 251, 247, 0.34);
    animation: floatBubble 6s ease-in-out infinite;
}

.about-bubble i {
    color: var(--cyber-blue);
    font-size: 1.05rem;
    margin-bottom: 0.28rem;
    text-shadow: var(--cyber-blue-shadow);
}

.about-bubble h4 {
    color: var(--section-heading);
    font-size: 0.79rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.25rem;
}

.about-bubble p {
    color: rgba(32, 55, 44, 0.9);
    font-size: 0.6rem;
    line-height: 1.25;
}

.bubble-education {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.bubble-interests {
    left: 0;
    bottom: 18px;
}

.bubble-focus {
    right: 0;
    bottom: 18px;
}

.about-right {
    width: 100%;
    max-width: 780px;
    text-align: left;
}

.about-right .about-subtitle {
    margin-bottom: 0.7rem;
}

.about-right .about-title {
    max-width: 760px;
    font-size: clamp(1.85rem, 3vw, 2.75rem);
    line-height: 1.05;
    margin-bottom: 0.7rem;
}

.about-text-card {
    width: 100%;
    max-width: 780px;
    padding: clamp(1rem, 1.5vw, 1.3rem);
    border-radius: var(--radius-lg);
    background: rgba(244, 251, 247, 0.34);
}

.about-text-card p {
    color: rgba(32, 55, 44, 0.94);
    font-size: clamp(0.78rem, 0.25vw + 0.60rem, 0.88rem);
    line-height: 1.55;
    margin-bottom: 0.72rem;
}

.about-text-card p:last-child {
    margin-bottom: 0;
}

@keyframes floatAboutBlob {
    0%,
    100% {
        transform: translateY(0) rotate(-2deg) scale(1);
    }

    25% {
        transform: translateY(-7px) rotate(0deg) scale(1.01);
    }

    50% {
        transform: translateY(-13px) rotate(2deg) scale(1.018);
    }

    75% {
        transform: translateY(-6px) rotate(0deg) scale(1.01);
    }
}

@keyframes floatBubble {
    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -8px;
    }
}

/* ========================================
   08. Focus Areas
======================================== */

.focus {
    min-height: calc(100vh - var(--header-height));
    padding-top: clamp(2.15rem, 3.6vh, 3rem);
    padding-bottom: clamp(1.75rem, 3vh, 2.5rem);
}

.focus-header,
.skills-header,
.portfolio-header,
.experience-header,
.contact-header {
    max-width: 920px;
    margin: 0 auto 1.6rem;
    text-align: center;
}

.focus-header {
    margin-bottom: 1.7rem;
}


.focus-title {
    margin-bottom: 0.65rem;
    font-size: clamp(2rem, 3.5vw, 2.55rem);
}

.focus-intro,
.skills-intro,
.portfolio-intro,
.contact-intro {
    max-width: 760px;
    margin: 0 auto;
    font-size: 0.86rem;
    line-height: 1.48;
    opacity: 0.94;
}

.focus-intro,
.contact-intro {
    color: var(--white-soft);
}

.skills-intro,
.portfolio-intro {
    color: var(--section-text);
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.95rem;
    max-width: 1320px;
    margin: 0 auto;
}

.focus-card {
    min-height: 292px;
    padding: 1.15rem 1rem 1rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    text-align: center;
    background:
        linear-gradient(160deg, rgba(244, 251, 247, 0.16), rgba(244, 251, 247, 0.08));
}

.focus-card i,
.skills-card i {
    width: 46px;
    height: 46px;
    margin: 0 auto 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyber-blue);
    background: rgba(167, 243, 208, 0.12);
    border: 1px solid rgba(167, 243, 208, 0.34);
    border-radius: 16px;
    font-size: 1.45rem;
}

.focus-card h3,
.skills-card h3,
.project-card h3 {
    font-size: 0.98rem;
    line-height: 1.25;
    margin-bottom: 0.58rem;
    font-weight: 800;
}

.focus-card h3,
.project-card h3 {
    color: var(--cream);
}

.focus-card p,
.project-card p {
    color: var(--white-soft);
    font-size: 0.73rem;
    line-height: 1.42;
    opacity: 0.93;
}

.focus-card p {
    flex-grow: 0;
}

.focus-divider {
    width: 100%;
    height: 1px;
    margin: 0.65rem 0 0.58rem;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(167, 243, 208, 0.58),
            transparent
        );
}

.focus-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.34rem;
    margin-top: 0;
}

.focus-tools li {
    padding: 0.22rem 0.46rem;
    color: #E6FFF1;
    background: rgba(167, 243, 208, 0.08);
    border: 1px solid rgba(167, 243, 208, 0.24);
    border-radius: 999px;
    font-size: 0.55rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.1px;
    box-shadow: 0 0 10px rgba(167, 243, 208, 0.08);
    transition: var(--transition);
}

.focus-card:hover .focus-tools li {
    background: rgba(167, 243, 208, 0.15);
    border-color: rgba(167, 243, 208, 0.46);
}

/* ========================================
   09. Skills
======================================== */

.skills {
    min-height: calc(100vh - var(--header-height));
    padding-top: 3.6rem;
    padding-bottom: 3.4rem;
}

.skills-header {
    margin-bottom: 2.25rem;
}

.skills-title {
    color: var(--cream);
}

.skills-intro {
    max-width: 780px;
    color: var(--white-soft);
    line-height: 1.58;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 1.1rem;
    max-width: 1280px;
    margin: 0 auto;
}

.skills-card {
    min-height: 220px;
    padding: 1.25rem 1.05rem 1.15rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    text-align: center;
    background:
        linear-gradient(
            155deg,
            rgba(244, 251, 247, 0.17),
            rgba(244, 251, 247, 0.09)
        );
}

.skills-card i {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyber-blue);
    background: rgba(11, 51, 36, 0.76);
    border: 1px solid rgba(167, 243, 208, 0.34);
    border-radius: 17px;
    font-size: 1.7rem;
    box-shadow:
        0 0 18px rgba(167, 243, 208, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.skills-card h3 {
    color: var(--cream);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0;
}

.skills-card h3::after {
    content: "";
    display: block;
    width: min(82%, 260px);
    height: 1px;
    margin: 0.75rem auto 0.8rem;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(167, 243, 208, 0.58),
            transparent
        );
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    gap: 0.46rem;
    width: 100%;
    margin-top: 0;
}

.skills-list li {
    padding: 0.36rem 0.7rem;
    color: #E7FFF2;
    background: rgba(167, 243, 208, 0.10);
    border: 1px solid rgba(167, 243, 208, 0.26);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08px;
    box-shadow: 0 0 10px rgba(167, 243, 208, 0.06);
    transition: var(--transition);
}

.skills-card:hover .skills-list li {
    background: rgba(167, 243, 208, 0.15);
    border-color: rgba(167, 243, 208, 0.42);
}


/* ========================================
   10. Projects
======================================== */

.projects {
    min-height: calc(100vh - var(--header-height));
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.portfolio-header {
    max-width: 940px;
    margin: 0 auto 2.3rem;
    text-align: center;
}

.portfolio-title {
    color: var(--section-heading);
}

.portfolio-intro {
    max-width: 790px;
    margin: 0 auto;
    color: rgba(32, 55, 44, 0.90);
    font-size: 0.86rem;
    line-height: 1.58;
}

.project-group {
    max-width: 1280px;
    margin: 0 auto 2.6rem;
}

.project-group:last-child {
    margin-bottom: 0;
}

.project-group-header {
    margin-bottom: 1.1rem;
    text-align: left;
}

.project-group-header span {
    display: block;
    margin-bottom: 0.28rem;
    color: var(--emerald-dark);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.project-group-header h3 {
    color: var(--section-heading);
    font-size: 1.18rem;
    line-height: 1.3;
    font-weight: 800;
}

.portfolio-grid {
    display: grid;
    gap: 1.2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.single-project-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 820px;
    margin-left: 0;
}

.project-card {
    position: relative;
    min-width: 0;
    min-height: 100%;
    padding: 1.45rem 1.25rem 1.25rem;
    overflow: hidden;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(
            145deg,
            rgba(239, 247, 242, 0.94),
            rgba(226, 240, 232, 0.91)
        );
    border: 1.5px solid rgba(30, 111, 80, 0.32);
    box-shadow:
        0 14px 28px rgba(32, 55, 44, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background:
        linear-gradient(
            90deg,
            var(--emerald-dark),
            var(--emerald-main),
            #2FBF71
        );
}

.featured-project {
    background:
        linear-gradient(
            145deg,
            rgba(242, 249, 245, 0.96),
            rgba(229, 242, 235, 0.93)
        );
    border-color: rgba(30, 111, 80, 0.42);
}

.early-project {
    background:
        linear-gradient(
            145deg,
            rgba(236, 246, 240, 0.94),
            rgba(223, 238, 229, 0.91)
        );
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(30, 111, 80, 0.48);
    box-shadow:
        0 20px 38px rgba(32, 55, 44, 0.19),
        0 0 0 1px rgba(30, 111, 80, 0.10);
}

.project-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.project-card-header > i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-dark);
    background: rgba(30, 111, 80, 0.10);
    border: 1px solid rgba(30, 111, 80, 0.20);
    border-radius: 16px;
    font-size: 1.52rem;
}

.project-status {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0.3rem 0.68rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.status-complete {
    color: #174B38;
    background: rgba(73, 190, 136, 0.18);
    border: 1px solid rgba(29, 133, 89, 0.26);
}

.status-near-complete {
    color: var(--emerald-dark);
    background: rgba(30, 111, 80, 0.12);
    border: 1px solid rgba(30, 111, 80, 0.23);
}

.status-early {
    color: #5A3E10;
    background: rgba(230, 177, 63, 0.18);
    border: 1px solid rgba(157, 109, 17, 0.25);
}

.project-card h3 {
    color: var(--section-heading);
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 0.72rem;
    font-weight: 800;
}

.project-card p {
    color: rgba(32, 55, 44, 0.93);
    font-size: 0.76rem;
    line-height: 1.58;
    margin-bottom: 0.9rem;
}

.project-highlights {
    display: grid;
    gap: 0.58rem;
    margin: 0;
    padding: 0;
}

.project-highlights li {
    position: relative;
    padding-left: 1.15rem;
    color: rgba(32, 55, 44, 0.90);
    font-size: 0.72rem;
    line-height: 1.52;
}

.project-highlights li::before {
    content: "";
    position: absolute;
    top: 0.48rem;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--emerald-main);
}

.project-divider {
    width: 100%;
    height: 1px;
    margin: auto 0 0.85rem;
    padding-top: 1rem;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(30, 111, 80, 0.28),
            transparent
        );
    background-clip: content-box;
}

.project-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
}

.project-tools li {
    padding: 0.27rem 0.56rem;
    color: var(--emerald-dark);
    background: rgba(30, 111, 80, 0.09);
    border: 1px solid rgba(30, 111, 80, 0.17);
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.2;
    transition: var(--transition);
}

.project-card:hover .project-tools li {
    background: rgba(30, 111, 80, 0.13);
    border-color: rgba(30, 111, 80, 0.25);
}

/* ========================================
   11. Certifications
======================================== */

.certifications {
    min-height: calc(100vh - var(--header-height));
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.certifications-header {
    max-width: 900px;
    margin: 0 auto 2.1rem;
    text-align: center;
}

.certifications-subtitle {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--cyber-blue);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2.7px;
    text-transform: uppercase;
}

.certifications-title {
    color: var(--cream);
    font-size: clamp(2.1rem, 4vw, 2.75rem);
    line-height: 1.08;
    margin-bottom: 0.9rem;
    font-weight: 800;
}

.certifications-intro {
    max-width: 760px;
    margin: 0 auto;
    color: var(--white-soft);
    font-size: 0.86rem;
    line-height: 1.58;
    opacity: 0.95;
}

.certifications-grid {
    max-width: 980px;
    margin: 0 auto;
}

.certification-card {
    min-height: 260px;
    padding: 1.55rem;
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    background:
        linear-gradient(
            155deg,
            rgba(244, 251, 247, 0.17),
            rgba(244, 251, 247, 0.09)
        );
    transition: var(--transition);
}

.certification-card:hover {
    transform: translateY(-7px);
    border-color: rgba(167, 243, 208, 0.58);
    box-shadow:
        0 22px 48px rgba(32, 55, 44, 0.24),
        0 0 28px rgba(167, 243, 208, 0.24);
}

.certification-icon {
    width: 66px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyber-blue);
    background: rgba(11, 51, 36, 0.74);
    border: 1px solid rgba(167, 243, 208, 0.34);
    border-radius: 19px;
    font-size: 2rem;
    box-shadow: 0 0 18px rgba(167, 243, 208, 0.15);
}

.certification-content {
    min-width: 0;
}

.certification-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.certification-provider {
    display: block;
    margin-bottom: 0.18rem;
    color: var(--cyber-blue);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.certification-heading h3 {
    color: var(--cream);
    font-size: 1.2rem;
    line-height: 1.3;
    font-weight: 800;
}

.certification-status {
    display: inline-flex;
    padding: 0.3rem 0.68rem;
    color: #FFF1BF;
    background: rgba(230, 177, 63, 0.15);
    border: 1px solid rgba(255, 215, 116, 0.25);
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.certification-content p {
    color: var(--white-soft);
    font-size: 0.82rem;
    line-height: 1.62;
    opacity: 0.95;
}

.certification-divider {
    width: 100%;
    height: 1px;
    margin: 1rem 0 0.9rem;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(167, 243, 208, 0.48),
            transparent
        );
}

.certification-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.44rem;
}

.certification-topics li {
    padding: 0.32rem 0.66rem;
    color: #E7FFF2;
    background: rgba(167, 243, 208, 0.10);
    border: 1px solid rgba(167, 243, 208, 0.25);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
}

/* ========================================
   12. Experience
======================================== */

.experience {
    min-height: calc(100vh - var(--header-height));
    padding: 3.8rem var(--page-x);
}

.experience-header {
    max-width: 920px;
    margin: 0 auto 2rem;
    text-align: center;
}

.experience-intro {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(32, 55, 44, 0.88);
    font-size: 0.86rem;
    line-height: 1.55;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 1.25rem;
    max-width: 1220px;
    margin: 0 auto;
}

.timeline-item {
    position: relative;
    min-width: 0;
    padding: 1.55rem 1.4rem;
    overflow: hidden;
    border-radius: var(--radius-lg);

    /* Matches the cool blue-gray tone shown in the reference image */
    background:
        linear-gradient(
            145deg,
            rgba(239, 247, 242, 0.94),
            rgba(226, 240, 232, 0.91)
        );

    border: 1.5px solid rgba(30, 111, 80, 0.34);
    box-shadow:
        0 14px 28px rgba(32, 55, 44, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--emerald-dark),
        var(--emerald-main),
        #2FBF71
    );
}

.featured-experience {
    background:
        linear-gradient(
            145deg,
            rgba(242, 249, 245, 0.95),
            rgba(229, 242, 235, 0.92)
        );
    border-color: rgba(30, 111, 80, 0.40);
}

.timeline-item:hover {
    transform: translateY(-5px);
    border-color: rgba(30, 111, 80, 0.48);
    box-shadow:
        0 20px 38px rgba(32, 55, 44, 0.19),
        0 0 0 1px rgba(30, 111, 80, 0.10);
}

.company-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid rgba(20, 90, 62, 0.16);
}

.company-info {
    flex: 1;
    min-width: 0;
}

.company-logo {
    width: 66px;
    height: 66px;
    padding: 0.62rem;
    flex-shrink: 0;
    object-fit: contain;
    background: rgba(232, 243, 236, 0.90);
    border: 1px solid rgba(30, 111, 80, 0.20);
    border-radius: 18px;
    box-shadow: 0 7px 14px rgba(32, 55, 44, 0.11);
}

.company-info h4 {
    color: var(--emerald-dark);
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.12rem;
}

.company-info h3 {
    color: var(--section-heading);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.company-info span {
    display: inline-flex;
    align-items: center;
    padding: 0.24rem 0.6rem;
    color: var(--emerald-dark);
    background: rgba(30, 111, 80, 0.10);
    border: 1px solid rgba(30, 111, 80, 0.18);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
}

.experience-summary {
    margin-bottom: 1rem;
    color: rgba(32, 55, 44, 0.93);
    font-size: 0.83rem;
    line-height: 1.62;
}

.experience-highlights {
    display: grid;
    gap: 0.72rem;
    margin: 0;
    padding: 0;
}

.experience-highlights li {
    position: relative;
    padding-left: 1.25rem;
    color: rgba(32, 55, 44, 0.91);
    font-size: 0.79rem;
    line-height: 1.58;
    list-style: none;
}

.experience-highlights li::before {
    content: "";
    position: absolute;
    top: 0.52rem;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--emerald-main);
}

.experience-divider {
    width: 100%;
    height: 1px;
    margin: 1rem 0 0.9rem;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(30, 111, 80, 0.28),
        transparent
    );
}

.experience-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.experience-tools li {
    padding: 0.28rem 0.6rem;
    color: var(--emerald-dark);
    background: rgba(30, 111, 80, 0.09);
    border: 1px solid rgba(30, 111, 80, 0.17);
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.2;
    transition: var(--transition);
}

.timeline-item:hover .experience-tools li {
    background: rgba(30, 111, 80, 0.13);
    border-color: rgba(30, 111, 80, 0.24);
}


/* ========================================
   13. Contact
======================================== */

.contact {
    min-height: calc(100vh - var(--header-height));
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.contact-main-card {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    background: rgba(244, 251, 247, 0.12);
}

.contact-cta h3 {
    color: var(--cream);
    font-size: 1.65rem;
    margin-bottom: 0.45rem;
}

.contact-cta p {
    color: var(--white-soft);
    margin-bottom: 1.25rem;
}

.contact-email-btn {
    padding: 0.8rem 1.8rem;
}

.contact-divider {
    width: 100%;
    height: 1px;
    margin: 1.75rem 0;
    background: rgba(244, 251, 247, 0.16);
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.contact-item {
    min-height: 120px;
    padding: 1.2rem 1rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(244, 251, 247, 0.09);
}

.contact-item i {
    color: var(--cyber-blue);
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
}

.contact-item span {
    color: var(--cyber-blue);
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: var(--white-soft);
    font-size: 0.88rem;
    margin: 0;
}

.contact-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.25rem;
    width: 100%;
}

.social-btn {
    width: 68px;
    height: 68px;
    min-height: 68px;
    padding: 0;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(244, 251, 247, 0.10);
}

.social-btn i {
    color: var(--cyber-blue);
    font-size: 1.9rem;
    transition: var(--transition);
}

.x-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(81%) sepia(43%) saturate(1356%) hue-rotate(152deg) brightness(104%) contrast(101%);
}

.social-btn:hover {
    background: rgba(167, 243, 208, 0.16);
}


.contact-subtitle {
    color: var(--emerald-dark);
}

.contact-title {
    color: var(--section-heading);
}

.contact-intro {
    color: rgba(32, 55, 44, 0.90);
}

.contact-main-card {
    background: rgba(244, 251, 247, 0.32);
    border-color: rgba(30, 111, 80, 0.24);
}

.contact-cta h3 {
    color: var(--section-heading);
}

.contact-cta p {
    color: rgba(32, 55, 44, 0.90);
}

.contact-divider {
    background: rgba(20, 90, 62, 0.16);
}

.contact-item {
    background: rgba(244, 251, 247, 0.24);
    border-color: rgba(30, 111, 80, 0.20);
}

.contact-item i,
.contact-item span {
    color: var(--emerald-dark);
}

.contact-item p {
    color: rgba(32, 55, 44, 0.90);
}

.social-btn {
    background: rgba(244, 251, 247, 0.22);
    border-color: rgba(30, 111, 80, 0.20);
}

.social-btn i {
    color: var(--emerald-dark);
}

.social-btn:hover {
    background: rgba(30, 111, 80, 0.12);
    border-color: rgba(30, 111, 80, 0.34);
}

.contact .x-icon {
    filter: brightness(0) saturate(100%) invert(10%) sepia(62%) saturate(5591%) hue-rotate(281deg) brightness(78%) contrast(105%);
}

/* ========================================
   14. Footer
======================================== */

.footer {
    margin: 0;
    padding: 1.4rem var(--page-x);
    color: var(--cream);
    text-align: center;
    background: var(--emerald-dark);
    border-top: 1px solid rgba(244, 251, 247, 0.12);
}

.footer p,
.footer a,
.copyright {
    color: var(--cream);
}

.footer a {
    transition: var(--transition);
}

.footer a:hover {
    color: var(--cyber-blue);
}

.copyright {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.6;
    letter-spacing: 0.2px;
    opacity: 0.9;
}

































/* ========================================
   Project Documentation Carousel
======================================== */

.project-card:has(.project-pages) {
    padding: 0;
    min-height: 610px;
}

.project-pages {
    position: relative;
    width: 100%;
    min-height: 610px;
    overflow: hidden;
}

.project-page {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 100%;
    padding: 1.45rem 1.25rem 4.5rem;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateX(24px);
    pointer-events: none;
    transition:
        opacity 0.38s ease,
        transform 0.38s ease,
        visibility 0.38s ease;
}

.project-page.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.project-page .project-divider {
    margin-top: auto;
}

.project-image {
    width: 100%;
    height: 315px;
    object-fit: cover;
    object-position: center 34%;
    border-radius: 20px;
    border: 1px solid rgba(30, 111, 80, 0.24);
    box-shadow:
        0 14px 28px rgba(32, 55, 44, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.project-docs {
    padding-top: 1rem;
}

.project-docs h4 {
    color: var(--section-heading);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.55rem;
}

.project-docs p {
    margin-bottom: 0.75rem;
    color: rgba(32, 55, 44, 0.92);
    font-size: 0.75rem;
    line-height: 1.55;
}

.project-docs .project-highlights {
    gap: 0.46rem;
}

.project-next {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 8;
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cream);
    background:
        linear-gradient(
            135deg,
            var(--emerald-dark),
            var(--emerald-main)
        );
    border: 1px solid rgba(244, 251, 247, 0.18);
    border-radius: 50%;
    font-size: 1.7rem;
    cursor: pointer;
    box-shadow:
        0 10px 22px rgba(11, 51, 36, 0.24),
        0 0 14px rgba(30, 111, 80, 0.14);
    transition:
        transform var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.project-next:hover {
    transform: translateY(-3px) scale(1.04);
    background:
        linear-gradient(
            135deg,
            var(--emerald-main),
            var(--emerald-bright)
        );
    box-shadow:
        0 14px 28px rgba(11, 51, 36, 0.28),
        0 0 18px rgba(30, 111, 80, 0.20);
}

.project-next:focus-visible {
    outline: 3px solid rgba(167, 243, 208, 0.7);
    outline-offset: 3px;
}

.project-next i {
    transition: transform 0.35s ease;
}

.project-card.show-documentation .project-next i {
    transform: rotate(180deg);
}

.project-card.show-documentation .project-page:first-child {
    transform: translateX(-24px);
}

.project-card.show-documentation .project-page:last-child {
    transform: translateX(0);
}

/* Keeps the carousel card visually aligned with neighboring cards */
.projects-grid > .project-card:has(.project-pages) {
    align-self: stretch;
}










/* ========================================
   Project Category Heading Refinements
   Supports category labels without secondary H3 headings
======================================== */

.project-group-header {
    margin-bottom: 0.95rem;
}

.project-group-header span {
    margin-bottom: 0;
    font-size: 0.72rem;
    letter-spacing: 2.35px;
}

.project-group-header:has(h3:empty),
.project-group-header:not(:has(h3)) {
    margin-bottom: 1rem;
}

.project-group-header h3:empty {
    display: none;
}

/* ========================================
   Multi-Page Project Cards
   Used by Website and Robot documentation carousels
======================================== */

.project-card:has(.project-pages) {
    padding: 0;
    min-height: 610px;
}

.project-pages {
    position: relative;
    width: 100%;
    min-height: 610px;
    overflow: hidden;
}

.project-page {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 100%;
    padding: 1.45rem 1.25rem 4.6rem;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateX(26px);
    pointer-events: none;
    transition:
        opacity 0.38s ease,
        transform 0.38s ease,
        visibility 0.38s ease;
}

.project-page.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.project-page .project-divider {
    margin-top: auto;
}

/* ========================================
   Project Documentation Images
======================================== */

.project-image {
    width: 100%;
    height: 315px;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
    border: 1px solid rgba(30, 111, 80, 0.24);
    box-shadow:
        0 14px 28px rgba(32, 55, 44, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Website screenshot is portrait-oriented */
.project-image-website {
    height: 345px;
    object-fit: contain;
    object-position: center top;
    padding: 0.45rem;
    background:
        linear-gradient(
            145deg,
            rgba(30, 111, 80, 0.08),
            rgba(255, 255, 255, 0.10)
        );
}

/* Robot team photo */
.project-image:not(.project-image-website) {
    object-position: center 28%;
}

.project-docs {
    padding-top: 1rem;
}

.project-docs h4 {
    color: var(--section-heading);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.55rem;
}

.project-docs p {
    margin-bottom: 0.75rem;
    color: rgba(32, 55, 44, 0.92);
    font-size: 0.75rem;
    line-height: 1.55;
}

.project-docs .project-highlights {
    gap: 0.46rem;
}

/* ========================================
   Project Carousel Button
======================================== */

.project-next {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 8;
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cream);
    background:
        linear-gradient(
            135deg,
            var(--emerald-dark),
            var(--emerald-main)
        );
    border: 1px solid rgba(244, 251, 247, 0.18);
    border-radius: 50%;
    font-size: 1.7rem;
    cursor: pointer;
    box-shadow:
        0 10px 22px rgba(11, 51, 36, 0.24),
        0 0 14px rgba(30, 111, 80, 0.14);
    transition:
        transform var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.project-next:hover {
    transform: translateY(-3px) scale(1.04);
    background:
        linear-gradient(
            135deg,
            var(--emerald-main),
            var(--emerald-bright)
        );
    box-shadow:
        0 14px 28px rgba(11, 51, 36, 0.28),
        0 0 18px rgba(30, 111, 80, 0.20);
}

.project-next:focus-visible {
    outline: 3px solid rgba(167, 243, 208, 0.72);
    outline-offset: 3px;
}

.project-next i {
    transition: transform 0.35s ease;
}

.project-card.show-documentation .project-next i {
    transform: rotate(180deg);
}

.project-card.show-documentation .project-page:first-child {
    transform: translateX(-26px);
}

.project-card.show-documentation .project-page:last-child {
    transform: translateX(0);
}










/* ========================================
   23. Final Project Layout Refinements
   Balanced carousel cards, documentation,
   repository button, and visual hierarchy
======================================== */

/* Keep the project section compact and balanced on desktop. */
.projects {
    padding-top: 3.25rem;
    padding-bottom: 3.5rem;
}

.portfolio-header {
    margin-bottom: 1.75rem;
}

.project-group {
    margin-bottom: 2.2rem;
}

.project-group-header {
    margin-bottom: 0.85rem;
}

.project-group-header span {
    margin-bottom: 0;
    font-size: 0.66rem;
    letter-spacing: 2.2px;
}

/* Match all three Software & Engineering cards. */
.projects-grid {
    align-items: stretch;
}

.project-card {
    min-height: 520px;
}

.project-card:has(.project-pages) {
    min-height: 520px;
    padding: 0;
}

.project-pages {
    position: relative;
    width: 100%;
    min-height: 520px;
    height: 100%;
    overflow: hidden;
}

.project-page {
    min-height: 520px;
    padding: 1.3rem 1.15rem 4rem;
}

/* Documentation image sizing */
.project-image {
    width: 100%;
    height: 245px;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
}

.project-image-website {
    height: 245px;
    padding: 0;
    object-fit: cover;
    object-position: top center;
    background: transparent;
}

/* Documentation content */
.project-docs {
    padding-top: 0.85rem;
}

.project-docs h4 {
    margin-bottom: 0.45rem;
    font-size: 0.95rem;
    line-height: 1.25;
}

.project-docs p {
    margin-bottom: 0.6rem;
    font-size: 0.7rem;
    line-height: 1.48;
}

.project-docs .project-highlights {
    gap: 0.38rem;
}

.project-docs .project-highlights li {
    font-size: 0.67rem;
    line-height: 1.4;
}

/* GitHub repository button inside the documentation page */
.project-repo-btn {
    width: fit-content;
    min-width: 0;
    min-height: 38px;
    margin-top: 0.75rem;
    padding: 0.55rem 0.95rem;
    gap: 0.42rem;
    font-size: 0.72rem;
    line-height: 1.2;
    box-shadow: 0 8px 18px rgba(167, 243, 208, 0.22);
}

.project-repo-btn i {
    font-size: 1rem;
}

.project-repo-btn:hover {
    color: var(--emerald-dark);
    background: rgba(167, 243, 208, 0.78);
    border-color: var(--cyber-blue);
}

/* Keep carousel arrows aligned and slightly smaller. */
.project-next {
    right: 0.9rem;
    bottom: 0.85rem;
    width: 39px;
    height: 39px;
    font-size: 1.55rem;
}

/* ========================================
   24. About Section Type Hierarchy
======================================== */

/* Primary About heading */
.about-left > .about-title {
    font-size: clamp(1.85rem, 3vw, 2.35rem);
    line-height: 1.08;
    margin-bottom: 0.55rem;
}

/* Supporting headline should be smaller than the section title. */
.about-right .about-title {
    max-width: 700px;
    font-size: clamp(1.45rem, 2.15vw, 2rem);
    line-height: 1.18;
    margin-bottom: 0.75rem;
}

/* Keep eyebrow labels clearly subordinate. */
.about-left > .about-subtitle {
    font-size: 0.66rem;
    letter-spacing: 2.25px;
    margin-bottom: 0.35rem;
}

.about-right .about-subtitle {
    font-size: 0.63rem;
    letter-spacing: 2px;
    line-height: 1.45;
    margin-bottom: 0.45rem;
}

/* Slightly refine body sizing for a clearer hierarchy. */
.about-text-card p {
    font-size: clamp(0.76rem, 0.2vw + 0.62rem, 0.84rem);
    line-height: 1.58;
}









/* ========================================
   27. Final Projects, Contact + Footer
   These overrides intentionally come last.
======================================== */

/* ---------- Projects: clearer hierarchy and balanced cards ---------- */

.projects {
    padding-top: clamp(3.5rem, 6vw, 5rem);
    padding-bottom: clamp(3.5rem, 6vw, 5rem);
}

.portfolio-header {
    margin-bottom: 2.6rem;
}

.project-group {
    margin-bottom: 3rem;
}

.project-group-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
}

.project-group-header::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(20, 90, 62, 0.34),
        transparent
    );
}

.project-group-header span {
    margin-bottom: 0;
    white-space: nowrap;
}

.projects-grid {
    gap: 1.35rem;
}

.project-card {
    min-height: 540px;
    padding: 1.45rem 1.3rem 1.3rem;
    background:
        linear-gradient(
            145deg,
            rgba(243, 249, 245, 0.84),
            rgba(224, 239, 231, 0.86)
        );
    border: 1px solid rgba(20, 90, 62, 0.24);
    box-shadow:
        0 16px 34px rgba(32, 55, 44, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.project-card:hover {
    border-color: rgba(20, 90, 62, 0.42);
    box-shadow:
        0 22px 42px rgba(32, 55, 44, 0.18),
        0 0 0 1px rgba(167, 243, 208, 0.13);
}

.project-card::before {
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--emerald-dark),
        var(--emerald-main),
        var(--cyber-blue)
    );
}

.project-card-header > i {
    color: var(--emerald-dark);
    background: rgba(244, 251, 247, 0.48);
    border-color: rgba(20, 90, 62, 0.20);
    box-shadow: 0 7px 16px rgba(32, 55, 44, 0.10);
}

.project-card h3 {
    font-size: 1.02rem;
}

.project-card p,
.project-highlights li {
    color: rgba(32, 55, 44, 0.92);
}

.project-highlights li::before {
    background: var(--emerald-main);
    box-shadow: 0 0 8px rgba(30, 111, 80, 0.24);
}

.project-tools li {
    color: var(--emerald-dark);
    background: rgba(244, 251, 247, 0.44);
    border-color: rgba(20, 90, 62, 0.17);
}

.project-card:hover .project-tools li {
    background: rgba(167, 243, 208, 0.11);
    border-color: rgba(167, 243, 208, 0.35);
}

/* Keep carousel cards the same height as the standard project card. */
.project-card:has(.project-pages) {
    min-height: 540px;
    padding: 0;
}

.project-pages,
.project-page {
    min-height: 540px;
}

.project-page {
    padding: 1.45rem 1.3rem 4.4rem;
}

.project-image,
.project-image-website {
    height: 238px;
    border: 1px solid rgba(20, 90, 62, 0.18);
    box-shadow: 0 10px 22px rgba(32, 55, 44, 0.12);
}

.project-docs h4 {
    color: var(--section-heading);
}

.project-repo-btn {
    color: var(--emerald-dark);
    background: var(--cyber-blue);
    border-color: var(--cyber-blue);
}

.project-repo-btn:hover {
    color: var(--cyber-blue);
    background: var(--emerald-dark);
    border-color: var(--emerald-dark);
}

.project-next {
    color: var(--cream);
    background: var(--emerald-dark);
    border: 1px solid rgba(167, 243, 208, 0.42);
    box-shadow:
        0 8px 18px rgba(32, 55, 44, 0.22),
        0 0 14px rgba(167, 243, 208, 0.16);
}

.project-next:hover {
    color: var(--emerald-dark);
    background: var(--cyber-blue);
    border-color: var(--cyber-blue);
}

/* Keep the single IT project visually substantial without stretching too wide. */
.single-project-grid {
    width: 100%;
    max-width: 820px;
}

.single-project-grid .project-card {
    min-height: 0;
}


/* ---------- Contact: stronger emerald/cyan balance on gray section ---------- */

.contact-main-card {
    max-width: 1050px;
    padding: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--cream);
    background:
        radial-gradient(
            circle at 82% 15%,
            rgba(167, 243, 208, 0.15),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            rgba(11, 51, 36, 0.92),
            rgba(20, 90, 62, 0.86)
        );
    border: 1px solid rgba(167, 243, 208, 0.28);
    box-shadow:
        0 20px 46px rgba(32, 55, 44, 0.24),
        0 0 28px rgba(167, 243, 208, 0.10);
}

.contact-cta h3 {
    color: var(--cream);
}

.contact-cta p {
    color: rgba(244, 251, 247, 0.88);
}

.contact-divider {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(167, 243, 208, 0.40),
        transparent
    );
}

.contact-item {
    background: rgba(244, 251, 247, 0.09);
    border-color: rgba(167, 243, 208, 0.22);
    box-shadow: 0 12px 24px rgba(32, 55, 44, 0.16);
}

.contact-item:hover {
    background: rgba(244, 251, 247, 0.13);
    border-color: rgba(167, 243, 208, 0.48);
}

.contact-item i,
.contact-item span {
    color: var(--cyber-blue);
}

.contact-item p {
    color: rgba(244, 251, 247, 0.92);
}

.social-btn {
    background: rgba(244, 251, 247, 0.09);
    border-color: rgba(167, 243, 208, 0.24);
}

.social-btn i {
    color: var(--cyber-blue);
}

.social-btn:hover {
    background: var(--cyber-blue);
    border-color: var(--cyber-blue);
}

.social-btn:hover i {
    color: var(--emerald-dark);
}

.contact .x-icon {
    filter:
        brightness(0)
        saturate(100%)
        invert(81%)
        sepia(43%)
        saturate(1356%)
        hue-rotate(152deg)
        brightness(104%)
        contrast(101%);
}

.contact .social-btn:hover .x-icon {
    filter:
        brightness(0)
        saturate(100%)
        invert(12%)
        sepia(70%)
        saturate(3962%)
        hue-rotate(105deg)
        brightness(72%)
        contrast(109%);
}


/* ---------- Footer: polished two-line ending ---------- */

.footer {
    padding: 1.15rem var(--page-x);
    background:
        linear-gradient(
            180deg,
            #145A3E 0%,
            #0B3324 100%
        );
    border-top: 1px solid rgba(167, 243, 208, 0.22);
    box-shadow: inset 0 1px 0 rgba(244, 251, 247, 0.04);
}

.copyright {
    color: var(--cream);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.45;
    opacity: 0.96;
}

.footer-built {
    margin: 0.28rem 0 0;
    color: rgba(244, 251, 247, 0.72);
    font-size: 0.7rem;
    line-height: 1.45;
    letter-spacing: 0.18px;
}










/* ========================================
   28. Final Theme Refinements
   Header scaling, project blending,
   themed contact card, and matching footer
======================================== */

/* ---------- Header: responsive tab scaling ---------- */

header {
    gap: 1.25rem;
}

header nav {
    flex: 1;
    min-width: 0;
}

.navlist {
    justify-content: flex-end;
    gap: clamp(0.8rem, 1.55vw, 2.15rem);
}

.navlist a {
    font-size: clamp(0.74rem, 0.48vw + 0.38rem, 0.93rem);
    white-space: nowrap;
}






/* ---------- Projects: softer lines and better blending ---------- */

.project-card,
.featured-project,
.early-project {
    background:
        radial-gradient(
            circle at 88% 8%,
            rgba(167, 243, 208, 0.10),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            rgba(229, 233, 244, 0.80),
            rgba(196, 207, 226, 0.80)
        );
    border-color: rgba(20, 90, 62, 0.18);
}

.project-card::before {
    height: 3px;
    opacity: 0.78;
    background:
        linear-gradient(
            90deg,
            rgba(20, 90, 62, 0.80),
            rgba(30, 111, 80, 0.72),
            rgba(167, 243, 208, 0.62)
        );
}

.project-group-header::after {
    opacity: 0.72;
    background:
        linear-gradient(
            90deg,
            rgba(20, 90, 62, 0.28),
            rgba(30, 111, 80, 0.14),
            transparent
        );
}

.project-divider {
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(20, 90, 62, 0.20),
            rgba(167, 243, 208, 0.16),
            transparent
        );
    background-clip: content-box;
}

.project-card-header > i {
    background:
        linear-gradient(
            145deg,
            rgba(244, 251, 247, 0.50),
            rgba(220, 226, 239, 0.50)
        );
    border-color: rgba(20, 90, 62, 0.15);
}

.project-tools li {
    background: rgba(244, 251, 247, 0.38);
    border-color: rgba(20, 90, 62, 0.14);
}

.project-card:hover {
    border-color: rgba(167, 243, 208, 0.34);
    box-shadow:
        0 22px 42px rgba(32, 55, 44, 0.17),
        0 0 22px rgba(167, 243, 208, 0.08);
}


/* ---------- Contact: fully aligned with site theme ---------- */

.contact-main-card {
    background:
        radial-gradient(
            circle at 82% 16%,
            rgba(167, 243, 208, 0.17),
            transparent 32%
        ),
        radial-gradient(
            circle at 12% 88%,
            rgba(121, 217, 166, 0.16),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            rgba(20, 90, 62, 0.94),
            rgba(30, 111, 80, 0.88)
        );
    border-color: rgba(167, 243, 208, 0.26);
}

.contact-item,
.social-btn {
    background:
        linear-gradient(
            145deg,
            rgba(244, 251, 247, 0.11),
            rgba(244, 251, 247, 0.07)
        );
    border-color: rgba(167, 243, 208, 0.20);
}

.contact-item:hover {
    background:
        linear-gradient(
            145deg,
            rgba(244, 251, 247, 0.16),
            rgba(167, 243, 208, 0.09)
        );
    border-color: rgba(167, 243, 208, 0.42);
}

.contact-email-btn {
    background: var(--cyber-blue);
    color: var(--emerald-dark);
    border-color: var(--cyber-blue);
}

.contact-email-btn:hover {
    background: transparent;
    color: var(--cyber-blue);
    border-color: var(--cyber-blue);
}

.social-btn:hover {
    background: rgba(167, 243, 208, 0.92);
    border-color: var(--cyber-blue);
}


/* ---------- Footer: match the fixed header ---------- */

.footer {
    padding: 1.05rem var(--page-x);
    background:
        radial-gradient(
            circle at 85% 0%,
            rgba(167, 243, 208, 0.10),
            transparent 32%
        ),
        rgba(20, 90, 62, 0.98);
    border-top: 1px solid rgba(167, 243, 208, 0.20);
    box-shadow:
        inset 0 1px 0 rgba(244, 251, 247, 0.04),
        0 -8px 24px rgba(32, 55, 44, 0.14);
    backdrop-filter: blur(14px);
}

.copyright {
    color: var(--cream);
    font-size: 0.79rem;
    font-weight: 600;
    opacity: 0.96;
}

.footer-built {
    color: rgba(244, 251, 247, 0.70);
    font-size: 0.69rem;
}




/* ========================================
   29. Header Navigation Spacing Refinement
======================================== */

/* Give desktop navigation more room whenever there is available width. */
header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: clamp(2rem, 4vw, 4rem);
}

.navlist {
    justify-content: flex-end;
    gap: clamp(1.15rem, 2vw, 2.4rem);
}














/* ========================================
   FINAL CONTACT FORM COLOR POLISH
   Appended override for the Formspree form
======================================== */

.contact-main-card {
    background:
        radial-gradient(circle at 88% 8%, rgba(167, 243, 208, 0.13), transparent 30%),
        linear-gradient(
            135deg,
            rgba(20, 90, 62, 0.97) 0%,
            rgba(30, 111, 80, 0.96) 52%,
            rgba(11, 51, 36, 0.96) 100%
        );
    border: 1px solid rgba(167, 243, 208, 0.28);
    box-shadow:
        0 24px 55px rgba(32, 55, 44, 0.30),
        0 0 30px rgba(167, 243, 208, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.contact-cta h3 {
    color: var(--cream);
    text-shadow: 0 0 18px rgba(167, 243, 208, 0.12);
}

.contact-cta > p {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(244, 251, 247, 0.92);
    line-height: 1.55;
}

/* Contact form layout */

.contact-form {
    width: 100%;
    max-width: 790px;
    margin: 1.5rem auto 0;
    display: grid;
    gap: 1rem;
    text-align: left;
}

.contact-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.contact-form-group label {
    color: rgba(244, 251, 247, 0.92);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.25px;
}

.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    color: var(--cream);
    background: rgba(244, 251, 247, 0.14);
    border: 1px solid rgba(244, 251, 247, 0.19);
    border-radius: 14px;
    outline: none;
    font: inherit;
    font-size: 0.84rem;
    caret-color: var(--cyber-blue);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 8px 18px rgba(32, 55, 44, 0.08);
    transition:
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.contact-form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder {
    color: rgba(244, 251, 247, 0.56);
}

.contact-form-group input:hover,
.contact-form-group textarea:hover {
    background: rgba(244, 251, 247, 0.18);
    border-color: rgba(167, 243, 208, 0.36);
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    background: rgba(244, 251, 247, 0.20);
    border-color: var(--cyber-blue);
    box-shadow:
        0 0 0 4px rgba(167, 243, 208, 0.13),
        0 0 22px rgba(167, 243, 208, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Submit button */

.contact-form .contact-email-btn {
    justify-self: center;
    margin-top: 0.45rem;
    padding: 0.82rem 1.8rem;
    color: var(--emerald-dark);
    background: linear-gradient(135deg, #2FBF71, var(--cyber-blue));
    border-color: var(--cyber-blue);
    cursor: pointer;
    box-shadow:
        0 0 22px rgba(167, 243, 208, 0.42),
        0 10px 22px rgba(32, 55, 44, 0.16);
}

.contact-form .contact-email-btn:hover {
    color: var(--cream);
    background: transparent;
    border-color: #79D9A6;
    box-shadow:
        0 0 30px rgba(167, 243, 208, 0.55),
        0 12px 24px rgba(32, 55, 44, 0.20);
}

/* Separators */

.contact-divider {
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(167, 243, 208, 0.34),
            rgba(244, 251, 247, 0.20),
            rgba(167, 243, 208, 0.34),
            transparent
        );
}

/* Contact information cards */

.contact-item {
    background:
        linear-gradient(
            145deg,
            rgba(244, 251, 247, 0.14),
            rgba(244, 251, 247, 0.09)
        );
    border-color: rgba(167, 243, 208, 0.28);
    box-shadow:
        0 12px 24px rgba(32, 55, 44, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.contact-item:hover {
    background:
        linear-gradient(
            145deg,
            rgba(244, 251, 247, 0.20),
            rgba(167, 243, 208, 0.10)
        );
    border-color: rgba(167, 243, 208, 0.62);
}

.contact-item i,
.contact-item span {
    color: var(--cyber-blue);
    text-shadow: 0 0 14px rgba(167, 243, 208, 0.22);
}

.contact-item p {
    color: rgba(244, 251, 247, 0.96);
}

/* Social buttons */

.social-btn {
    background:
        linear-gradient(
            145deg,
            rgba(244, 251, 247, 0.15),
            rgba(244, 251, 247, 0.09)
        );
    border-color: rgba(167, 243, 208, 0.28);
    box-shadow:
        0 10px 22px rgba(32, 55, 44, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.social-btn i {
    color: var(--cyber-blue);
    text-shadow: 0 0 14px rgba(167, 243, 208, 0.20);
}

.social-btn:hover {
    background: var(--cyber-blue);
    border-color: var(--cyber-blue);
    box-shadow:
        0 0 24px rgba(167, 243, 208, 0.42),
        0 12px 24px rgba(32, 55, 44, 0.18);
}

.social-btn:hover i {
    color: var(--emerald-dark);
    text-shadow: none;
}

.contact .x-icon {
    filter:
        brightness(0)
        saturate(100%)
        invert(82%)
        sepia(59%)
        saturate(1182%)
        hue-rotate(145deg)
        brightness(97%)
        contrast(88%);
}

.contact .social-btn:hover .x-icon {
    filter:
        brightness(0)
        saturate(100%)
        invert(12%)
        sepia(70%)
        saturate(4825%)
        hue-rotate(278deg)
        brightness(74%)
        contrast(108%);
}





/* ========================================
   FINAL CONTACT UI REFINEMENTS
   Comfortable spacing, clearer hierarchy,
   polished EmailJS feedback states
======================================== */

.contact {
    padding-top: clamp(3.2rem, 5vw, 4.6rem);
    padding-bottom: clamp(3.6rem, 6vw, 5.2rem);
}

.contact-header {
    max-width: 820px;
    margin-bottom: clamp(1.8rem, 3vw, 2.5rem);
}

.contact-subtitle {
    color: var(--emerald-dark);
}

.contact-title {
    color: var(--section-heading);
    margin-bottom: 0.75rem;
}

.contact-intro {
    max-width: 760px;
    color: rgba(32, 55, 44, 0.82);
    font-size: 0.86rem;
    line-height: 1.62;
}

.contact-content {
    width: 100%;
}

.contact-main-card {
    position: relative;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: clamp(1.7rem, 3vw, 2.6rem);
    overflow: hidden;
    border-radius: 30px;
    text-align: center;
    background:
        radial-gradient(circle at 88% 8%, rgba(167, 243, 208, 0.15), transparent 28%),
        radial-gradient(circle at 10% 100%, rgba(121, 217, 166, 0.15), transparent 32%),
        linear-gradient(
            135deg,
            rgba(20, 90, 62, 0.98) 0%,
            rgba(30, 111, 80, 0.97) 52%,
            rgba(98, 49, 176, 0.97) 100%
        );
    border: 1px solid rgba(167, 243, 208, 0.24);
    box-shadow:
        0 28px 60px rgba(32, 55, 44, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.contact-main-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            120deg,
            rgba(255, 255, 255, 0.06),
            transparent 34%,
            rgba(167, 243, 208, 0.05)
        );
}

.contact-main-card > * {
    position: relative;
    z-index: 1;
}

.contact-cta {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

.contact-cta h3 {
    color: var(--cream);
    font-size: clamp(1.45rem, 2.5vw, 1.9rem);
    line-height: 1.2;
    margin-bottom: 0.65rem;
    text-shadow: 0 0 18px rgba(167, 243, 208, 0.12);
}

.contact-cta > p {
    max-width: 760px;
    margin: 0 auto 1.45rem;
    color: rgba(244, 251, 247, 0.90);
    font-size: 0.86rem;
    line-height: 1.62;
}

/* Contact form layout */

.contact-form {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
    text-align: left;
}

.contact-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form-group label {
    color: rgba(244, 251, 247, 0.94);
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    color: var(--cream);
    background:
        linear-gradient(
            145deg,
            rgba(244, 251, 247, 0.16),
            rgba(244, 251, 247, 0.11)
        );
    border: 1px solid rgba(244, 251, 247, 0.20);
    border-radius: 15px;
    outline: none;
    font: inherit;
    font-size: 0.86rem;
    line-height: 1.45;
    caret-color: var(--cyber-blue);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 10px 20px rgba(32, 55, 44, 0.08);
    transition:
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.contact-form-group textarea {
    min-height: 165px;
    resize: vertical;
}

.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder {
    color: rgba(244, 251, 247, 0.52);
}

.contact-form-group input:hover,
.contact-form-group textarea:hover {
    background: rgba(244, 251, 247, 0.18);
    border-color: rgba(167, 243, 208, 0.34);
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    background: rgba(244, 251, 247, 0.20);
    border-color: var(--cyber-blue);
    transform: translateY(-1px);
    box-shadow:
        0 0 0 4px rgba(167, 243, 208, 0.13),
        0 0 22px rgba(167, 243, 208, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* Submit button and loading state */

.contact-form .contact-email-btn {
    justify-self: center;
    min-width: 190px;
    margin-top: 0.45rem;
    padding: 0.86rem 1.85rem;
    cursor: pointer;
    color: var(--emerald-dark);
    background: linear-gradient(135deg, #30E2F0, var(--cyber-blue));
    border-color: var(--cyber-blue);
    box-shadow:
        0 0 24px rgba(167, 243, 208, 0.42),
        0 12px 22px rgba(32, 55, 44, 0.15);
}

.contact-form .contact-email-btn:hover {
    color: var(--cream);
    background: transparent;
    border-color: #79D9A6;
    box-shadow:
        0 0 30px rgba(167, 243, 208, 0.52),
        0 14px 26px rgba(32, 55, 44, 0.18);
}

.contact-form .contact-email-btn:focus-visible {
    outline: 3px solid rgba(244, 251, 247, 0.72);
    outline-offset: 4px;
}

.contact-form .contact-email-btn:disabled {
    cursor: wait;
    opacity: 0.78;
    transform: none;
}

/* EmailJS status feedback */

.contact-form-status {
    min-height: 1.5rem;
    margin: 0.15rem auto 0;
    padding: 0;
    color: rgba(244, 251, 247, 0.90);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

.contact-form-status-success,
.contact-form-status-error {
    display: block;
    width: min(100%, 640px);
    padding: 0.72rem 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.contact-form-status-success {
    color: #DFFFF1;
    background: rgba(48, 190, 128, 0.16);
    border: 1px solid rgba(118, 255, 190, 0.28);
    box-shadow: 0 0 18px rgba(48, 190, 128, 0.10);
}

.contact-form-status-error {
    color: #FFE4E8;
    background: rgba(210, 70, 98, 0.17);
    border: 1px solid rgba(255, 144, 164, 0.30);
    box-shadow: 0 0 18px rgba(210, 70, 98, 0.10);
}

/* Dividers */

.contact-divider {
    width: 100%;
    height: 1px;
    margin: clamp(1.7rem, 3vw, 2.3rem) 0;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(167, 243, 208, 0.34),
            rgba(244, 251, 247, 0.18),
            rgba(167, 243, 208, 0.34),
            transparent
        );
}

/* Contact details */

.contact-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.contact-item {
    min-height: 122px;
    padding: 1.15rem 1rem;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            145deg,
            rgba(244, 251, 247, 0.15),
            rgba(244, 251, 247, 0.09)
        );
    border-color: rgba(167, 243, 208, 0.24);
    box-shadow:
        0 12px 24px rgba(32, 55, 44, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.contact-item:hover {
    transform: translateY(-5px);
    background:
        linear-gradient(
            145deg,
            rgba(244, 251, 247, 0.20),
            rgba(167, 243, 208, 0.09)
        );
    border-color: rgba(167, 243, 208, 0.55);
    box-shadow:
        0 18px 32px rgba(32, 55, 44, 0.16),
        0 0 22px rgba(167, 243, 208, 0.14);
}

.contact-item i {
    color: var(--cyber-blue);
    font-size: 1.62rem;
    margin-bottom: 0.42rem;
    text-shadow: 0 0 14px rgba(167, 243, 208, 0.22);
}

.contact-item span {
    color: var(--cyber-blue);
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.contact-item p {
    max-width: 100%;
    margin: 0;
    color: rgba(244, 251, 247, 0.96);
    font-size: 0.76rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

/* Social links */

.contact-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}

.social-btn {
    width: 54px;
    height: 54px;
    min-height: 54px;
    padding: 0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            145deg,
            rgba(244, 251, 247, 0.15),
            rgba(244, 251, 247, 0.09)
        );
    border-color: rgba(167, 243, 208, 0.25);
    box-shadow:
        0 10px 20px rgba(32, 55, 44, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.social-btn i {
    color: var(--cyber-blue);
    font-size: 1.55rem;
    text-shadow: 0 0 12px rgba(167, 243, 208, 0.20);
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.03);
    background: var(--cyber-blue);
    border-color: var(--cyber-blue);
    box-shadow:
        0 0 22px rgba(167, 243, 208, 0.38),
        0 14px 24px rgba(32, 55, 44, 0.16);
}

.social-btn:hover i {
    color: var(--emerald-dark);
    text-shadow: none;
}

.contact .x-icon {
    width: 23px;
    height: 23px;
    filter:
        brightness(0)
        saturate(100%)
        invert(82%)
        sepia(59%)
        saturate(1182%)
        hue-rotate(145deg)
        brightness(97%)
        contrast(88%);
}

.contact .social-btn:hover .x-icon {
    filter:
        brightness(0)
        saturate(100%)
        invert(12%)
        sepia(70%)
        saturate(4825%)
        hue-rotate(278deg)
        brightness(74%)
        contrast(108%);
}






/* ========================================
   29. Shayla HTML Pairing
   Selector alignment for leadership, projects,
   education, company metadata, and contact form
======================================== */

/* ---------- Header navigation ---------- */

header nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* ---------- Desktop / mobile profile helpers ---------- */

.desktop-only {
    display: flex;
}

/* ---------- Experience metadata ---------- */

.company-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.2rem;
}

.company-meta .company-date,
.company-meta .company-location {
    display: inline-flex;
    align-items: center;
    padding: 0.24rem 0.6rem;
    color: var(--emerald-dark);
    background: rgba(30, 111, 80, 0.10);
    border: 1px solid rgba(30, 111, 80, 0.18);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
}

/* ---------- Leadership section ---------- */

.leadership-grid {
    max-width: 1220px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.leadership-card {
    min-height: 100%;
}

.leadership-card .certification-status {
    color: #E8FFF1;
    background: rgba(167, 243, 208, 0.12);
    border-color: rgba(167, 243, 208, 0.28);
}

/* ---------- Shayla's two project cards ---------- */

.projects .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 980px;
}

.projects .project-status {
    color: var(--emerald-dark);
    background: rgba(30, 111, 80, 0.11);
    border: 1px solid rgba(30, 111, 80, 0.20);
}

/* ---------- Education section ---------- */

.education-timeline {
    grid-template-columns: minmax(0, 1fr);
    max-width: 920px;
}

.education-card {
    width: 100%;
}

/* ---------- Contact section ---------- */

.contact-content {
    width: 100%;
}

.contact-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 790px;
    margin-left: auto;
    margin-right: auto;
}

.contact-item a {
    color: inherit;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--cyber-blue);
}

.contact-form-status {
    min-height: 1.3em;
    margin: 0.15rem 0 0;
    color: rgba(244, 251, 247, 0.88);
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: center;
}

.contact-form .contact-email-btn {
    color: #FFFFFF;
    background: linear-gradient(
        135deg,
        var(--emerald-main),
        var(--emerald-bright)
    );
    border-color: rgba(121, 217, 166, 0.82);
    box-shadow:
        0 12px 26px rgba(11, 51, 36, 0.24),
        0 0 20px rgba(121, 217, 166, 0.24);
}

.contact-form .contact-email-btn:hover {
    color: #FFFFFF;
    background: linear-gradient(
        135deg,
        var(--emerald-dark),
        var(--emerald-main)
    );
    border-color: var(--emerald-soft);
    box-shadow:
        0 15px 30px rgba(11, 51, 36, 0.28),
        0 0 24px rgba(121, 217, 166, 0.30);
}





/* ========================================
   30. Alternating Section Background System
   Home → Green
   About → Light
   Focus → Green
   Experience → Light
   Leadership → Green
   Skills → Light
   Projects → Green
   Education → Light
   Contact → Green
======================================== */

/* ---------- Shared emerald background ---------- */

#home,
#focus,
#leadership,
#projects,
#contact {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(
            circle at 80% 28%,
            rgba(167, 243, 208, 0.18),
            transparent 34%
        ),
        radial-gradient(
            circle at 18% 78%,
            rgba(121, 217, 166, 0.22),
            transparent 36%
        ),
        radial-gradient(
            circle at 42% 35%,
            rgba(255, 255, 255, 0.07),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #145A3E 0%,
            #1E6F50 52%,
            #27845F 100%
        );
}

/* ---------- Shared soft sage-gray background ---------- */

#about,
#experience,
#skills,
#education {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(
            circle at 14% 22%,
            rgba(121, 217, 166, 0.13),
            transparent 34%
        ),
        radial-gradient(
            circle at 82% 76%,
            rgba(30, 111, 80, 0.08),
            transparent 42%
        ),
        radial-gradient(
            circle at 72% 18%,
            rgba(255, 255, 255, 0.58),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #EEF5F1 0%,
            #E6F0EA 52%,
            #DCE8E2 100%
        );
}

/* ---------- Consistent overlay treatment ---------- */

#home::before,
#focus::before,
#leadership::before,
#projects::before,
#contact::before {
    background:
        linear-gradient(
            120deg,
            rgba(255, 255, 255, 0.08),
            transparent 32%,
            rgba(167, 243, 208, 0.06)
        ),
        radial-gradient(
            ellipse at 50% 100%,
            rgba(0, 0, 0, 0.12),
            transparent 55%
        );
}

#about::before,
#experience::before,
#skills::before,
#education::before {
    background:
        linear-gradient(
            120deg,
            rgba(255, 255, 255, 0.34),
            transparent 34%,
            rgba(121, 217, 166, 0.08)
        ),
        radial-gradient(
            ellipse at 50% 100%,
            rgba(20, 90, 62, 0.05),
            transparent 58%
        );
}

/* ========================================
   Light Section Typography
======================================== */

#about .about-subtitle,
#experience .experience-subtitle,
#skills .skills-subtitle,
#education .experience-subtitle {
    color: var(--emerald-dark);
}

#about .about-title,
#experience .experience-title,
#skills .skills-title,
#education .experience-title {
    color: var(--section-heading);
}

#about .about-text-card p,
#experience .experience-intro,
#skills .skills-intro,
#education .experience-intro {
    color: rgba(23, 60, 43, 0.91);
}

/* ========================================
   Skills on Light Background
======================================== */

#skills .skills-card {
    background:
        linear-gradient(
            155deg,
            rgba(255, 255, 255, 0.82),
            rgba(239, 247, 242, 0.72)
        );
    border-color: rgba(30, 111, 80, 0.19);
    box-shadow:
        0 16px 38px rgba(14, 59, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

#skills .skills-card:hover {
    border-color: rgba(30, 111, 80, 0.38);
    box-shadow:
        0 22px 46px rgba(14, 59, 42, 0.17),
        0 0 24px rgba(121, 217, 166, 0.15);
}

#skills .skills-card i {
    color: var(--emerald-main);
    background: rgba(30, 111, 80, 0.10);
    border-color: rgba(30, 111, 80, 0.20);
    box-shadow:
        0 8px 18px rgba(14, 59, 42, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

#skills .skills-card h3 {
    color: var(--section-heading);
}

#skills .skills-card h3::after {
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(30, 111, 80, 0.34),
            transparent
        );
}

#skills .skills-list li {
    color: var(--emerald-dark);
    background: rgba(30, 111, 80, 0.08);
    border-color: rgba(30, 111, 80, 0.16);
    box-shadow: none;
}

#skills .skills-card:hover .skills-list li {
    background: rgba(30, 111, 80, 0.12);
    border-color: rgba(30, 111, 80, 0.25);
}

/* ========================================
   Projects on Emerald Background
======================================== */

#projects .portfolio-subtitle,
#projects .project-group-header span {
    color: var(--cyber-blue);
}

#projects .portfolio-title,
#projects .project-group-header h3 {
    color: var(--cream);
}

#projects .portfolio-intro {
    color: var(--white-soft);
}

#projects .project-card,
#projects .featured-project,
#projects .early-project {
    background:
        linear-gradient(
            155deg,
            rgba(244, 251, 247, 0.18),
            rgba(244, 251, 247, 0.10)
        );
    border-color: rgba(167, 243, 208, 0.30);
    box-shadow:
        0 18px 42px rgba(11, 51, 36, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#projects .project-card:hover {
    border-color: rgba(167, 243, 208, 0.55);
    box-shadow:
        0 24px 50px rgba(11, 51, 36, 0.28),
        0 0 28px rgba(167, 243, 208, 0.18);
}

#projects .project-card::before {
    background:
        linear-gradient(
            90deg,
            var(--emerald-soft),
            var(--cyber-blue),
            var(--emerald-bright)
        );
}

#projects .project-card-header > i {
    color: var(--cyber-blue);
    background: rgba(167, 243, 208, 0.12);
    border-color: rgba(167, 243, 208, 0.28);
}

#projects .project-status,
#projects .status-complete,
#projects .status-near-complete,
#projects .status-early {
    color: #E7FFF2;
    background: rgba(167, 243, 208, 0.12);
    border-color: rgba(167, 243, 208, 0.26);
}

#projects .project-card h3 {
    color: var(--cream);
}

#projects .project-card p,
#projects .project-highlights li {
    color: rgba(234, 246, 239, 0.94);
}

#projects .project-highlights li::before {
    background: var(--cyber-blue);
}

#projects .project-divider {
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(167, 243, 208, 0.42),
            transparent
        );
    background-clip: content-box;
}

#projects .project-tools li {
    color: #E7FFF2;
    background: rgba(167, 243, 208, 0.10);
    border-color: rgba(167, 243, 208, 0.23);
}

#projects .project-card:hover .project-tools li {
    background: rgba(167, 243, 208, 0.16);
    border-color: rgba(167, 243, 208, 0.40);
}

/* ========================================
   Contact on Emerald Background
======================================== */

#contact .contact-subtitle {
    color: var(--cyber-blue);
}

#contact .contact-title {
    color: var(--cream);
}

#contact .contact-intro {
    color: var(--white-soft);
}

#contact .contact-main-card {
    background:
        linear-gradient(
            155deg,
            rgba(244, 251, 247, 0.18),
            rgba(244, 251, 247, 0.11)
        );
    border-color: rgba(167, 243, 208, 0.28);
    box-shadow:
        0 22px 52px rgba(11, 51, 36, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#contact .contact-cta h3 {
    color: var(--cream);
}

#contact .contact-cta p {
    color: var(--white-soft);
}

#contact .contact-form label {
    color: var(--cream);
}

#contact .contact-form input,
#contact .contact-form textarea {
    color: var(--section-heading);
    background: #EAF4EE;
    border-color: rgba(167, 243, 208, 0.38);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.64),
        0 8px 20px rgba(11, 51, 36, 0.10);
}

#contact .contact-form input::placeholder,
#contact .contact-form textarea::placeholder {
    color: rgba(23, 60, 43, 0.58);
}

#contact .contact-form input:focus,
#contact .contact-form textarea:focus {
    background: #F4FBF7;
    border-color: var(--emerald-soft);
    box-shadow:
        0 0 0 4px rgba(121, 217, 166, 0.16),
        0 10px 24px rgba(11, 51, 36, 0.12);
}

#contact .contact-form .contact-email-btn {
    color: #FFFFFF;
    background:
        linear-gradient(
            135deg,
            var(--emerald-bright),
            var(--emerald-main)
        );
    border-color: var(--emerald-soft);
    box-shadow:
        0 12px 28px rgba(11, 51, 36, 0.28),
        0 0 20px rgba(121, 217, 166, 0.22);
}

#contact .contact-form .contact-email-btn:hover {
    color: #FFFFFF;
    background:
        linear-gradient(
            135deg,
            var(--emerald-main),
            var(--emerald-dark)
        );
    border-color: var(--cyber-blue);
}

#contact .contact-divider {
    background: rgba(167, 243, 208, 0.22);
}

#contact .contact-item,
#contact .social-btn {
    background: rgba(244, 251, 247, 0.14);
    border-color: rgba(167, 243, 208, 0.24);
}

#contact .contact-item i,
#contact .contact-item span,
#contact .social-btn i {
    color: var(--cyber-blue);
}

#contact .contact-item p,
#contact .contact-item a {
    color: var(--white-soft);
}

#contact .contact-item:hover,
#contact .social-btn:hover {
    background: rgba(167, 243, 208, 0.16);
    border-color: rgba(167, 243, 208, 0.42);
}

/* ========================================
   Education Light Background Confirmation
======================================== */

#education .timeline-item,
#education .featured-experience {
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.84),
            rgba(235, 244, 239, 0.76)
        );
    border-color: rgba(30, 111, 80, 0.22);
}

#education .timeline-item:hover {
    border-color: rgba(30, 111, 80, 0.40);
}


/* ========================================
   RESPONSIVE SCALING
   All desktop/base styles appear above.
   Breakpoint-specific scaling begins here.
======================================== */

/* ========================================
   15. Large Desktop Refinements
======================================== */

@media (min-width: 1400px) {
    header,
    .home,
    .about,
    .focus,
    .skills,
    .projects,
    .certifications,
    .experience,
    .contact,
    .footer {
        padding-left: var(--page-x-large);
        padding-right: var(--page-x-large);
    }

    .home-content h1 {
        font-size: 2.75rem;
    }

    .home-content p {
        max-width: 550px;
        font-size: 0.95rem;
    }

    .img-box {
        max-width: 650px;
    }
}

/* ========================================
   16. Desktop Refinements
======================================== */

@media (min-width: 1101px) {
    .about,
    .focus,
    .skills,
    .projects,
    .certifications,
    .experience,
    .contact {
        min-height: calc(100vh - var(--header-height));
    }

    .focus-header,
    .skills-header,
    .portfolio-header,
    .certifications-header,
    .experience-header,
    .contact-header {
        max-width: 1050px;
        margin-bottom: 2rem;
    }
}

/* ========================================
   17. Responsive Header / Hamburger
   Hamburger used through tablet + small laptop widths
======================================== */

@media (max-width: 1100px) {
    :root {
        --current-header-height: var(--mobile-header-height);
    }

    header {
        min-height: var(--mobile-header-height);
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }

    body {
        padding-top: var(--current-header-height);
    }

    .logo {
        font-size: clamp(1.35rem, 2.6vw, 1.65rem);
    }

    #menu-icon {
        display: flex;
        position: relative;
        z-index: 10000;
        flex-shrink: 0;
    }

    .navlist {
        display: none;
    }

    .navlist.open {
        position: fixed;
        top: var(--mobile-header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--mobile-header-height));
        height: calc(100svh - var(--mobile-header-height));
        padding: 2rem clamp(1.25rem, 6vw, 4rem);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: clamp(1rem, 2.5vh, 1.5rem);
        overflow-y: auto;
        background:
            radial-gradient(circle at 75% 20%, rgba(167, 243, 208, 0.12), transparent 34%),
            rgba(20, 90, 62, 0.985);
        border-top: 1px solid rgba(167, 243, 208, 0.22);
        box-shadow: 0 18px 36px rgba(32, 55, 44, 0.28);
        backdrop-filter: blur(16px);
        z-index: 9998;
    }

    .navlist.open li {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .navlist.open a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 180px;
        padding: 0.45rem 0.8rem;
        color: var(--cream);
        font-size: clamp(1rem, 2vw, 1.12rem);
        font-weight: 700;
        text-align: center;
    }

    .navlist.open a:hover,
    .navlist.open a.active {
        color: var(--cyber-blue);
    }

    #home,
    #about,
    #focus,
    #skills,
    #projects,
    #certifications,
    #experience,
    #contact {
        scroll-margin-top: var(--mobile-header-height);
    }
}

/* ========================================
   18. Tablet / Small Laptop
======================================== */

@media (min-width: 768px) and (max-width: 1100px) {
    header {
        padding-left: var(--page-x-mobile);
        padding-right: var(--page-x-mobile);
    }

    .home,
    .about,
    .focus,
    .skills,
    .projects,
    .certifications,
    .experience,
    .contact,
    .footer {
        padding-left: var(--page-x-mobile);
        padding-right: var(--page-x-mobile);
    }

    .home {
        height: calc(100vh - var(--current-header-height));
        height: calc(100svh - var(--current-header-height));
        min-height: 540px;
        gap: clamp(1.25rem, 3vw, 2rem);
    }

    .home-content h1 {
        font-size: 2.35rem;
    }

    .home-content p {
        font-size: 0.88rem;
    }

    .img-box {
        width: min(38vw, 390px);
        height: min(46vw, 460px);
        transform: translateX(0.5rem);
    }

    .img-box img {
        width: min(34vw, 320px);
        max-width: 320px;
    }

    .about {
        min-height: auto;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .about-left,
    .about-right {
        max-width: 820px;
        margin: 0 auto;
        text-align: center;
    }

    .about-right .about-title {
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
        font-size: clamp(2rem, 5vw, 2.8rem);
    }

    .about-visual {
        width: min(100%, 470px);
        min-height: 410px;
    }

    .about-blob {
        width: min(80%, 370px);
    }

    .about-photo {
        width: clamp(205px, 27vw, 235px);
        transform: translateY(10px);
    }

    .about-bubble {
        width: 145px;
    }

    .about-text-card {
        max-width: 780px;
        margin: 0 auto;
        text-align: left;
    }

    .focus-grid,
    .skills-grid,
    .portfolio-grid,
    .timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .focus-card {
        min-height: 330px;
    }

    .skills-card {
        min-height: 215px;
    }

    .skills-list {
        gap: 0.44rem;
    }

    .skills-list li {
        font-size: 0.69rem;
    }

    .timeline {
        gap: 1.1rem;
    }

    .timeline-item {
        padding: 1.45rem;
    }

    .company-logo {
        width: 64px;
        height: 64px;
    }

    .company-info h3 {
        font-size: 1.02rem;
    }

    .experience-highlights li {
        font-size: 0.77rem;
    }
}

/* ========================================
   19. Mobile Navigation + Layout
======================================== */

@media (max-width: 767px) {
    body {
        padding-top: var(--mobile-header-height);
    }

    header {
        min-height: var(--mobile-header-height);
        padding: 0.85rem var(--page-x-mobile);
    }

    .logo {
        font-size: 1.35rem;
    }

    .home {
        height: auto;
        min-height: calc(100vh - var(--current-header-height));
        min-height: calc(100svh - var(--current-header-height));
        padding: 2.15rem 5% 3rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        text-align: center;
    }

    .home-content {
        display: contents;
    }

    .hero-kicker {
        order: 1;
        margin-bottom: 0.55rem;
        font-size: 0.68rem;
        letter-spacing: 1.9px;
    }

    .home-content h1 {
        order: 2;
        margin-bottom: 1.15rem;
        font-size: clamp(1.85rem, 7.8vw, 2.25rem);
        line-height: 1.08;
    }

    .home-img {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: center;
        margin: 0 0 1.35rem;
    }

    .img-box {
        width: min(82vw, 300px);
        max-width: 300px;
        height: 380px;
        min-height: 380px;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        transform: none;
    }

    .img-box img {
        width: min(76vw, 255px);
        max-width: 255px;
        height: auto;
        transform: none;
    }

    .liquid-shape {
        position: absolute;
        top: 28px;
        left: 50%;
        width: min(80vw, 280px);
        height: 280px;
        z-index: 1;
        pointer-events: none;
        opacity: 0.94;
        transform: translateX(-50%);
        animation: floatBlobMobile 8s ease-in-out infinite;
    }

    .home-content p {
        order: 4;
        position: relative;
        z-index: 4;
        max-width: 390px;
        margin: 0 auto 1.45rem;
        font-size: 0.9rem;
        line-height: 1.52;
    }

    .hero-tags {
        order: 5;
        max-width: 390px;
        margin: 0 auto 1.5rem;
        justify-content: center;
        gap: 0.62rem;
    }

    .hero-tags span {
        padding: 0.4rem 0.85rem;
        font-size: 0.7rem;
    }

    .btn-box {
        order: 6;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        max-width: 260px;
    }

    .about,
    .focus,
    .skills,
    .projects,
    .certifications,
    .experience,
    .contact {
        min-height: auto;
        padding: 4rem var(--page-x-mobile) 3.5rem;
    }

    .about {
        padding-top: 3rem;
        padding-bottom: 3.5rem;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        text-align: center;
    }

    .about-left,
    .about-right {
        max-width: 100%;
        text-align: center;
    }

    .about-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-left > .about-subtitle {
        margin-bottom: 0.35rem;
    }

    .about-left > .about-title {
        margin-bottom: 0.45rem;
        font-size: clamp(2rem, 10vw, 2.45rem);
    }

    .about-visual {
        width: min(92vw, 350px);
        max-width: 350px;
        min-height: 365px;
    }

    .about-blob {
        width: min(78%, 275px);
    }

    .about-photo {
        width: min(53vw, 180px);
        max-width: 180px;
        transform: translateY(12px);
    }

    .about-blob {
        filter:
            drop-shadow(0 0 20px rgba(77, 224, 210, 0.30))
            drop-shadow(0 0 42px rgba(20, 150, 165, 0.20));
    }

    .about-bubble {
        width: 118px;
        min-height: 82px;
        padding: 0.55rem 0.5rem;
        border-radius: 16px;
    }

    .about-bubble h4 {
        font-size: 0.69rem;
    }

    .about-bubble p {
        font-size: 0.5rem;
    }

    .bubble-education {
        top: 4px;
        left: 50%;
        transform: translateX(-50%);
    }

    .bubble-interests {
        left: 0;
        bottom: 14px;
    }

    .bubble-focus {
        right: 0;
        bottom: 14px;
    }

    .about-right .about-subtitle {
        margin-top: 0.2rem;
        font-size: 0.66rem;
        letter-spacing: 2px;
    }

    .about-right .about-title {
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
        font-size: clamp(1.7rem, 8.5vw, 2.25rem);
        line-height: 1.1;
    }

    .about-text-card {
        padding: 1.2rem;
        text-align: left;
    }

    .about-text-card p {
        font-size: 0.84rem;
        line-height: 1.62;
        margin-bottom: 0.78rem;
    }

    .about-text-card p,
    .focus-intro,
    .skills-intro,
    .portfolio-intro,
    .certifications-intro,
    .contact-intro {
        font-size: 0.86rem;
        line-height: 1.6;
    }

    .focus-title,
    .skills-title,
    .portfolio-title,
    .certifications-title,
    .experience-title,
    .contact-title {
        font-size: 2rem;
    }

    .focus-grid,
    .skills-grid,
    .portfolio-grid,
    .timeline,
    .contact-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .focus-card,
    .skills-card,
    .project-card,
    .timeline-item {
        min-height: auto;
        padding: 1.5rem 1.25rem;
    }

    .skills-card {
        align-items: center;
        padding-top: 1.35rem;
        padding-bottom: 1.25rem;
    }

    .skills-card i {
        width: 54px;
        height: 54px;
        margin-bottom: 0.72rem;
        font-size: 1.62rem;
    }

    .skills-card h3 {
        font-size: 1rem;
    }

    .skills-card h3::after {
        margin-top: 0.7rem;
        margin-bottom: 0.8rem;
    }

    .skills-list {
        gap: 0.5rem;
    }

    .skills-list li {
        padding: 0.38rem 0.72rem;
        font-size: 0.7rem;
    }

    .focus-card {
        min-height: auto;
        height: auto;
        overflow: visible;
        text-align: center;
    }

    .focus-divider {
        margin-top: 1.1rem;
    }

    .focus-tools {
        gap: 0.5rem;
    }

    .focus-tools li {
        padding: 0.36rem 0.68rem;
        font-size: 0.68rem;
    }

    .focus-card p {
        max-width: 100%;
        line-height: 1.62;
    }

    .focus-tools li {
        opacity: 0.9;
    }

    .experience-header {
        margin-bottom: 1.7rem;
    }

    .experience-intro {
        margin-top: 1rem;
        font-size: 0.84rem;
        line-height: 1.6;
    }

    .timeline {
        gap: 1.15rem;
    }

    .timeline-item {
        padding: 1.35rem 1.15rem;
        border-radius: 24px;
    }

    .timeline-item::before {
        height: 4px;
    }

    .company-header {
        align-items: center;
        gap: 0.85rem;
        margin-bottom: 1rem;
        padding-bottom: 0.9rem;
    }

    .company-logo {
        width: 58px;
        height: 58px;
        padding: 0.52rem;
        border-radius: 16px;
    }

    .company-info h4 {
        font-size: 0.84rem;
    }

    .company-info h3 {
        font-size: 1rem;
    }

    .company-info span {
        padding: 0.22rem 0.52rem;
        font-size: 0.65rem;
    }

    .experience-summary {
        font-size: 0.84rem;
        line-height: 1.62;
    }

    .experience-highlights {
        gap: 0.75rem;
    }

    .experience-highlights li {
        padding-left: 1.25rem;
        font-size: 0.82rem;
        line-height: 1.62;
    }

    .experience-tools {
        gap: 0.45rem;
    }

    .experience-tools li {
        padding: 0.32rem 0.62rem;
        font-size: 0.67rem;
    }

    .contact-main-card {
        padding: 1.45rem;
        border-radius: 24px;
    }

    .contact-cta h3 {
        font-size: 1.35rem;
    }

    .contact-email-btn {
        width: 100%;
        max-width: 240px;
        padding: 0.8rem 1.3rem;
        font-size: 0.9rem;
    }

    .contact-divider {
        margin: 1.5rem 0;
    }

    .contact-item {
        min-height: auto;
        padding: 1.15rem 1rem;
    }

    .contact-socials {
        gap: 1rem;
    }

    .social-btn {
        width: 62px;
        height: 62px;
        min-height: 62px;
        border-radius: 18px;
    }

    .social-btn i {
        font-size: 1.8rem;
    }

    .x-icon {
        width: 27px;
        height: 27px;
    }

    .footer {
        padding: 0.8rem var(--page-x-mobile);
    }

    .copyright {
        font-size: 0.75rem;
    }
}

/* ========================================
   20. Standard Small Phones
======================================== */

@media (max-width: 430px) {
    .home {
        padding-top: 1.85rem;
    }

    .home-content h1 {
        font-size: clamp(1.8rem, 8.3vw, 2.12rem);
    }

    .home-content p,
    .hero-tags {
        max-width: 370px;
    }

    .img-box {
        width: min(82vw, 285px);
        max-width: 285px;
        height: 360px;
        min-height: 360px;
    }

    .img-box img {
        width: min(74vw, 240px);
        max-width: 240px;
    }

    .liquid-shape {
        top: 18px;
        width: min(80vw, 280px);
        height: 280px;
    }

    .about-visual {
        width: min(90vw, 315px);
        max-width: 315px;
        min-height: 325px;
    }

    .about-photo {
        width: min(50vw, 168px);
        max-width: 168px;
    }

    .about-blob {
        width: min(78%, 245px);
    }

    .about-bubble {
        width: 108px;
        min-height: 78px;
    }

    .bubble-interests,
    .bubble-focus {
        bottom: 12px;
    }
}

/* ========================================
   21. Extra Small Phones
======================================== */

@media (max-width: 390px) {
    .home {
        padding-top: 1.65rem;
    }

    .home-content h1 {
        font-size: 1.7rem;
    }

    .home-content p,
    .hero-tags {
        max-width: 325px;
    }

    .img-box {
        width: min(82vw, 275px);
        max-width: 275px;
        height: 345px;
        min-height: 345px;
    }

    .img-box img {
        width: min(72vw, 230px);
        max-width: 230px;
        transform: none;
    }

    .liquid-shape {
        top: 18px;
        width: 265px;
        height: 265px;
    }

    .about-visual {
        max-width: 280px;
        min-height: 295px;
    }

    .about-photo {
        max-width: 170px;
    }

    .about-blob {
        width: 220px;
    }

    .about-bubble {
        width: 110px;
    }
}

/* ========================================
   22. Very Small Phones
======================================== */

@media (max-width: 360px) {
    .hero-kicker {
        font-size: 0.64rem;
    }

    .home-content h1 {
        font-size: 1.58rem;
    }

    .home-content p,
    .hero-tags {
        max-width: 300px;
    }

    .img-box {
        width: min(82vw, 255px);
        max-width: 255px;
        height: 325px;
        min-height: 325px;
    }

    .img-box img {
        width: min(70vw, 215px);
        max-width: 215px;
        transform: none;
    }

    .liquid-shape {
        top: 18px;
        width: 245px;
        height: 245px;
    }

    .about-visual {
        max-width: 255px;
        min-height: 275px;
    }

    .about-photo {
        max-width: 160px;
    }

    .about-blob {
        width: 200px;
    }

    .about-bubble {
        width: 100px;
    }

    .contact-main-card {
        padding: 1.25rem;
    }
}

/* ========================================
   23. Short Laptop / Desktop Heights
   Keeps Home locked to the visible viewport
======================================== */

@media (min-width: 768px) and (max-height: 760px) {
    .home {
        height: calc(100vh - var(--current-header-height));
        height: calc(100svh - var(--current-header-height));
        min-height: 500px;
        padding-top: 1rem;
        padding-bottom: 1.25rem;
        gap: 2rem;
    }

    .home-content {
        transform: none;
    }

    .hero-kicker {
        margin-bottom: 0.5rem;
    }

    .home-content h1 {
        margin-bottom: 0.6rem;
        font-size: clamp(2.15rem, 3.6vw, 2.75rem);
    }

    .home-content p {
        font-size: 0.84rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
    }

    .hero-tags {
        margin-bottom: 0.95rem;
        gap: 0.45rem;
    }

    .hero-tags span {
        padding: 0.34rem 0.72rem;
        font-size: 0.68rem;
    }

    .btn,
    .contact-email-btn {
        min-height: 42px;
    }

    .img-box {
        width: min(30vw, 390px);
        height: min(35vw, 455px);
        transform: translateX(0.5rem);
    }

    .img-box img {
        width: min(28vw, 340px);
        max-width: 340px;
    }
}

/* ========================================
   Focus Areas One-Viewport Fit
======================================== */

@media (min-width: 1101px) and (max-height: 900px) {
    .focus {
        height: calc(100vh - var(--header-height));
        height: calc(100svh - var(--header-height));
        min-height: 0;
        padding-top: clamp(2.25rem, 3.5vh, 2.8rem);
        padding-bottom: clamp(1.65rem, 2.6vh, 2.15rem);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        overflow: hidden;
    }

    .focus-header {
        margin-bottom: clamp(1.7rem, 2.5vh, 2.1rem);
    }

    .focus-subtitle {
        margin-bottom: 0.35rem;
        font-size: 0.64rem;
        letter-spacing: 2.3px;
    }

    .focus-title {
        margin-bottom: 0.5rem;
        font-size: clamp(2rem, 3.2vw, 2.45rem);
    }

    .focus-intro {
        max-width: 780px;
        font-size: clamp(0.84rem, 0.4vw + 0.48rem, 0.92rem);
        line-height: 1.58;
    }

    .focus-grid {
        gap: 1.05rem;
    }

    .focus-card {
        min-height: 0;
        height: clamp(320px, 43vh, 360px);
        padding: 1.2rem 1rem 1.05rem;
        overflow: hidden;
    }

    .focus-card i {
        width: 50px;
        height: 50px;
        margin-bottom: 0.9rem;
        color: #2CE8FF;
        font-size: 1.55rem;
        box-shadow:
            0 0 18px rgba(167, 243, 208, 0.25);
    }

    .focus-card h3 {
        margin-bottom: 0.68rem;
        font-size: 1.06rem;
        line-height: 1.28;
        font-weight: 800;
        letter-spacing: -0.015em;
    }

    .focus-card p {
        max-width: 92%;
        margin-left: auto;
        margin-right: auto;
        font-size: clamp(0.72rem, 0.26vw + 0.47rem, 0.78rem);
        line-height: 1.56;
    }

    .focus-divider {
        margin: 0.72rem 0 0.62rem;
    }

    .focus-tools {
        gap: 0.3rem;
        width: 100%;
        max-width: 100%;
        align-content: flex-start;
        overflow: visible;
    }

    .focus-tools li {
        padding: 0.24rem 0.48rem;
        font-size: 0.58rem;
        font-weight: 600;
        opacity: 0.88;
    }
}

/* ========================================
   24. Reduced Motion Accessibility
======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   25. Mid-Width / Short-Viewport Hero Fit
   Prevents the next section from appearing
======================================== */

@media (min-width: 768px) and (max-width: 1250px) and (max-height: 900px) {
    .home {
        height: calc(100vh - var(--current-header-height));
        height: calc(100svh - var(--current-header-height));
        min-height: 520px;
        padding-top: clamp(0.75rem, 1.8vh, 1.25rem);
        padding-bottom: clamp(0.75rem, 1.8vh, 1.25rem);
        overflow: hidden;
    }

    .hero-kicker {
        margin-bottom: 0.45rem;
        font-size: 0.68rem;
    }

    .home-content h1 {
        font-size: clamp(2.1rem, 4vw, 3rem);
        margin-bottom: 0.55rem;
    }

    .home-content p {
        font-size: clamp(0.78rem, 0.45vw + 0.42rem, 0.9rem);
        line-height: 1.48;
        margin-bottom: 0.72rem;
    }

    .hero-tags {
        margin-bottom: 0.85rem;
    }

    .btn {
        min-height: 42px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .img-box {
        width: min(34vw, 410px, 54vh);
        height: min(40vw, 500px, 66vh);
    }

    .img-box img {
        width: min(30vw, 350px, 49vh);
        max-width: 350px;
    }
}

/* ========================================
   Projects + Certifications Responsive
======================================== */

@media (min-width: 768px) and (max-width: 1100px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .projects-grid .project-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 620px;
        width: 100%;
        margin: 0 auto;
    }

    .single-project-grid {
        grid-template-columns: 1fr;
        max-width: 760px;
    }

    .certification-card {
        grid-template-columns: auto minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .projects,
    .certifications {
        padding: 4rem var(--page-x-mobile) 3.5rem;
    }

    .portfolio-header,
    .certifications-header {
        margin-bottom: 1.8rem;
    }

    .project-group {
        margin-bottom: 2.2rem;
    }

    .project-group-header {
        text-align: center;
    }

    .projects-grid,
    .single-project-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .project-card {
        padding: 1.35rem 1.15rem 1.2rem;
        border-radius: 24px;
    }

    .project-card-header {
        align-items: flex-start;
    }

    .project-card-header > i {
        width: 48px;
        height: 48px;
        font-size: 1.45rem;
    }

    .project-card h3 {
        font-size: 1rem;
    }

    .project-card p {
        font-size: 0.82rem;
        line-height: 1.62;
    }

    .project-highlights {
        gap: 0.66rem;
    }

    .project-highlights li {
        font-size: 0.79rem;
        line-height: 1.58;
    }

    .project-tools {
        gap: 0.44rem;
    }

    .project-tools li {
        padding: 0.31rem 0.6rem;
        font-size: 0.66rem;
    }

    .certification-card {
        min-height: auto;
        padding: 1.35rem 1.15rem;
        grid-template-columns: 1fr;
        text-align: center;
        border-radius: 24px;
    }

    .certification-icon {
        width: 62px;
        height: 62px;
        margin: 0 auto;
    }

    .certification-heading {
        flex-direction: column;
        align-items: center;
        gap: 0.65rem;
    }

    .certification-content p {
        font-size: 0.84rem;
        line-height: 1.62;
        text-align: left;
    }

    .certification-topics {
        justify-content: center;
    }
}

@media (max-width: 430px) {
    .project-status,
    .certification-status {
        font-size: 0.62rem;
    }

    .project-card-header {
        gap: 0.6rem;
    }
}

/* ========================================
   Project Carousel Responsive
======================================== */

@media (min-width: 768px) and (max-width: 1100px) {
    .project-card:has(.project-pages),
    .project-pages {
        min-height: 600px;
    }

    .project-image {
        height: 300px;
    }
}

@media (max-width: 767px) {
    .project-card:has(.project-pages) {
        padding: 0;
        min-height: 0;
    }

    .project-pages {
        min-height: 690px;
    }

    .project-page {
        padding: 1.35rem 1.15rem 4.75rem;
    }

    .project-image {
        height: 360px;
        object-position: center 30%;
        border-radius: 18px;
    }

    .project-docs {
        padding-top: 0.9rem;
        text-align: left;
    }

    .project-docs h4 {
        font-size: 1rem;
    }

    .project-docs p {
        font-size: 0.82rem;
        line-height: 1.6;
    }

    .project-next {
        right: 0.9rem;
        bottom: 0.9rem;
        width: 44px;
        height: 44px;
        font-size: 1.8rem;
    }
}

@media (max-width: 430px) {
    .project-pages {
        min-height: 660px;
    }

    .project-image {
        height: 325px;
    }
}

@media (max-width: 390px) {
    .project-pages {
        min-height: 640px;
    }

    .project-image {
        height: 300px;
    }
}

/* ========================================
   Carousel Responsive Refinements
======================================== */

@media (min-width: 768px) and (max-width: 1100px) {
    .project-card:has(.project-pages),
    .project-pages {
        min-height: 610px;
    }

    .project-image {
        height: 300px;
    }

    .project-image-website {
        height: 350px;
    }
}

@media (max-width: 767px) {
    .project-group-header {
        text-align: center;
        margin-bottom: 0.95rem;
    }

    .project-group-header span {
        font-size: 0.68rem;
        letter-spacing: 2.1px;
    }

    .project-card:has(.project-pages) {
        padding: 0;
        min-height: 0;
    }

    .project-pages {
        min-height: 700px;
    }

    .project-page {
        padding: 1.35rem 1.15rem 4.8rem;
    }

    .project-image {
        height: 360px;
        border-radius: 18px;
    }

    .project-image-website {
        height: 390px;
        object-fit: contain;
        object-position: center top;
    }

    .project-docs {
        padding-top: 0.9rem;
        text-align: left;
    }

    .project-docs h4 {
        font-size: 1rem;
    }

    .project-docs p {
        font-size: 0.82rem;
        line-height: 1.6;
    }

    .project-next {
        right: 0.9rem;
        bottom: 0.9rem;
        width: 44px;
        height: 44px;
        font-size: 1.8rem;
    }
}

@media (max-width: 430px) {
    .project-pages {
        min-height: 680px;
    }

    .project-image {
        height: 325px;
    }

    .project-image-website {
        height: 365px;
    }
}

@media (max-width: 390px) {
    .project-pages {
        min-height: 660px;
    }

    .project-image {
        height: 300px;
    }

    .project-image-website {
        height: 340px;
    }
}

/* ========================================
   25. Final Tablet Refinements
======================================== */

@media (min-width: 768px) and (max-width: 1100px) {
    .project-card,
    .project-card:has(.project-pages),
    .project-pages,
    .project-page {
        min-height: 560px;
    }

    .project-image,
    .project-image-website {
        height: 270px;
    }

    .about-left > .about-title {
        font-size: clamp(1.85rem, 4vw, 2.25rem);
    }

    .about-right .about-title {
        max-width: 680px;
        font-size: clamp(1.55rem, 3.4vw, 2rem);
    }
}

/* ========================================
   26. Final Mobile Refinements
======================================== */

@media (max-width: 767px) {
    .projects {
        padding-top: 3.25rem;
        padding-bottom: 3.25rem;
    }

    .project-card,
    .project-card:has(.project-pages) {
        min-height: 0;
    }

    .project-pages,
    .project-page {
        min-height: 650px;
    }

    .project-page {
        padding: 1.25rem 1.1rem 4.25rem;
    }

    .project-image,
    .project-image-website {
        height: 300px;
        border-radius: 17px;
    }

    .project-docs h4 {
        font-size: 0.95rem;
    }

    .project-docs p {
        font-size: 0.78rem;
        line-height: 1.55;
    }

    .project-docs .project-highlights li {
        font-size: 0.75rem;
        line-height: 1.5;
    }

    .project-repo-btn {
        width: 100%;
        min-height: 42px;
        margin-top: 0.8rem;
        font-size: 0.76rem;
    }

    .project-next {
        right: 0.8rem;
        bottom: 0.8rem;
        width: 42px;
        height: 42px;
        font-size: 1.65rem;
    }

    .about-left > .about-title {
        font-size: clamp(1.8rem, 8vw, 2.15rem);
    }

    .about-right .about-title {
        max-width: 540px;
        font-size: clamp(1.4rem, 6.6vw, 1.85rem);
        line-height: 1.2;
    }

    .about-right .about-subtitle {
        font-size: 0.6rem;
        letter-spacing: 1.7px;
    }
}

@media (max-width: 430px) {
    .project-pages,
    .project-page {
        min-height: 625px;
    }

    .project-image,
    .project-image-website {
        height: 270px;
    }
}

@media (max-width: 390px) {
    .project-pages,
    .project-page {
        min-height: 610px;
    }

    .project-image,
    .project-image-website {
        height: 250px;
    }
}

/* ---------- Responsive final refinements ---------- */

@media (min-width: 768px) and (max-width: 1100px) {
    .project-card,
    .project-card:has(.project-pages),
    .project-pages,
    .project-page {
        min-height: 555px;
    }

    .project-image,
    .project-image-website {
        height: 250px;
    }
}

@media (max-width: 767px) {
    .project-group-header {
        gap: 0.65rem;
    }

    .project-group-header span {
        font-size: 0.62rem;
        letter-spacing: 1.6px;
    }

    .project-card,
    .project-card:has(.project-pages) {
        min-height: 0;
    }

    .project-pages,
    .project-page {
        min-height: 640px;
    }

    .project-page {
        padding: 1.3rem 1.15rem 4.35rem;
    }

    .project-image,
    .project-image-website {
        height: 285px;
    }

    .contact-main-card {
        padding: 1.35rem;
    }

    .contact-item {
        background: rgba(244, 251, 247, 0.10);
    }

    .footer {
        padding: 1rem var(--page-x-mobile);
    }

    .copyright {
        font-size: 0.73rem;
    }

    .footer-built {
        margin-top: 0.22rem;
        font-size: 0.64rem;
    }
}

@media (max-width: 430px) {
    .project-pages,
    .project-page {
        min-height: 615px;
    }

    .project-image,
    .project-image-website {
        height: 255px;
    }
}

@media (max-width: 390px) {
    .project-pages,
    .project-page {
        min-height: 600px;
    }

    .project-image,
    .project-image-website {
        height: 235px;
    }
}

@media (min-width: 1101px) and (max-width: 1320px) {
    header {
        padding-left: 5%;
        padding-right: 5%;
    }

    .logo {
        font-size: 1.55rem;
    }

    .navlist {
        gap: clamp(0.62rem, 1.15vw, 1.35rem);
    }

    .navlist a {
        font-size: clamp(0.7rem, 0.38vw + 0.32rem, 0.82rem);
    }
}

@media (min-width: 1101px) and (max-width: 1180px) {
    .navlist {
        gap: 0.72rem;
    }

    .navlist a {
        font-size: 0.72rem;
    }
}

/* ---------- Mobile refinements ---------- */

@media (max-width: 767px) {
    .project-card::before {
        height: 3px;
    }

    .project-group-header::after {
        opacity: 0.58;
    }

    .footer {
        padding: 0.95rem var(--page-x-mobile);
    }
}

/* Large desktop */
@media (min-width: 1500px) {
    .navlist {
        gap: 2.6rem;
    }
}

/* Standard desktop */
@media (min-width: 1321px) and (max-width: 1499px) {
    .navlist {
        gap: 2rem;
    }
}

/* Medium desktop - preserve comfortable spacing before hamburger mode */
@media (min-width: 1201px) and (max-width: 1320px) {
    header {
        column-gap: 2.2rem;
    }

    .navlist {
        gap: 1.5rem;
    }

    .navlist a {
        padding-inline: 0.15rem;
    }
}

/* Small desktop */
@media (min-width: 1101px) and (max-width: 1200px) {
    header {
        column-gap: 1.6rem;
    }

    .navlist {
        gap: 1.15rem;
    }

    .navlist a {
        padding-inline: 0.08rem;
        font-size: 0.76rem;
    }
}

/* ========================================
   FINAL OVERRIDE - MOBILE HEADER LAYOUT
   Keeps logo left and hamburger right.
======================================== */

@media (max-width: 1100px){

    header{
        display:flex !important;
        align-items:center;
        justify-content:space-between;
        gap:1rem;
        padding:0.85rem var(--page-x-mobile);
    }

    .logo{
        margin:0;
        flex:0 0 auto;
    }

    nav{
        display:flex;
        justify-content:flex-end;
        align-items:center;
        flex:1;
        min-width:0;
    }

    #menu-icon{
        display:flex;
        align-items:center;
        justify-content:center;
        margin-left:auto;
        order:2;
        position:relative;
        right:0;
        top:0;
        flex-shrink:0;
    }

    .navlist{
        display:none;
    }

    .navlist.open{
        display:flex;
        position:fixed;
        top:var(--mobile-header-height);
        left:0;
        width:100%;
        height:calc(100svh - var(--mobile-header-height));
        z-index:9998;
    }
}

/* Contact form mobile refinements */

@media (max-width: 767px) {
    .contact-main-card {
        padding: 1.35rem 1rem;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        margin-top: 1.25rem;
        gap: 0.9rem;
    }

    .contact-form-group input,
    .contact-form-group textarea {
        font-size: 0.82rem;
    }

    .contact-form .contact-email-btn {
        width: 100%;
        max-width: 240px;
    }
}

/* Tablet refinements */

@media (min-width: 768px) and (max-width: 1100px) {
    .contact-main-card {
        max-width: 940px;
        padding: 2rem;
    }

    .contact-form {
        max-width: 760px;
    }

    .contact-item {
        min-height: 116px;
    }
}

/* Mobile refinements */

@media (max-width: 767px) {
    .contact {
        padding-top: 3.2rem;
        padding-bottom: 3.6rem;
    }

    .contact-header {
        margin-bottom: 1.6rem;
    }

    .contact-main-card {
        padding: 1.35rem 1rem;
        border-radius: 24px;
    }

    .contact-cta h3 {
        font-size: 1.4rem;
    }

    .contact-cta > p {
        font-size: 0.82rem;
        line-height: 1.55;
        margin-bottom: 1.25rem;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .contact-form {
        gap: 0.9rem;
    }

    .contact-form-group input,
    .contact-form-group textarea {
        padding: 0.9rem 0.95rem;
        font-size: 0.84rem;
    }

    .contact-form-group textarea {
        min-height: 145px;
    }

    .contact-form .contact-email-btn {
        width: 100%;
        max-width: 245px;
        min-width: 0;
    }

    .contact-form-status-success,
    .contact-form-status-error {
        padding: 0.68rem 0.82rem;
        font-size: 0.78rem;
    }

    .contact-divider {
        margin: 1.5rem 0;
    }

    .contact-details {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .contact-item {
        min-height: auto;
        padding: 1rem;
    }

    .contact-socials {
        gap: 0.8rem;
    }

    .social-btn {
        width: 50px;
        height: 50px;
        min-height: 50px;
        border-radius: 15px;
    }

    .social-btn i {
        font-size: 1.45rem;
    }

    .contact .x-icon {
        width: 22px;
        height: 22px;
    }
}

/* Small phone refinements */

@media (max-width: 430px) {
    .contact-main-card {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .contact-form-group label {
        font-size: 0.74rem;
    }

    .contact-form-group input,
    .contact-form-group textarea {
        border-radius: 13px;
    }

    .contact-socials {
        gap: 0.65rem;
    }

    .social-btn {
        width: 46px;
        height: 46px;
        min-height: 46px;
        border-radius: 14px;
    }
}

/* ---------- Tablet pairing ---------- */

@media (min-width: 768px) and (max-width: 1100px) {
    .leadership-grid,
    .projects .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .education-timeline {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Mobile pairing ---------- */

@media (max-width: 767px) {
    .desktop-only {
        display: none;
    }

    .leadership-grid,
    .projects .projects-grid,
    .education-timeline,
    .contact-details {
        grid-template-columns: minmax(0, 1fr);
    }

    .company-meta {
        gap: 0.38rem;
    }

    .company-meta .company-date,
    .company-meta .company-location {
        font-size: 0.64rem;
    }

    .certification-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .certification-status {
        white-space: normal;
    }

    .contact-form-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ========================================
   Alternating Background Mobile Consistency
======================================== */

@media (max-width: 767px) {
    #home,
    #focus,
    #leadership,
    #projects,
    #contact {
        background:
            radial-gradient(
                circle at 78% 20%,
                rgba(167, 243, 208, 0.16),
                transparent 36%
            ),
            radial-gradient(
                circle at 14% 82%,
                rgba(121, 217, 166, 0.18),
                transparent 38%
            ),
            linear-gradient(
                145deg,
                #145A3E 0%,
                #1E6F50 58%,
                #27845F 100%
            );
    }

    #about,
    #experience,
    #skills,
    #education {
        background:
            radial-gradient(
                circle at 15% 18%,
                rgba(121, 217, 166, 0.11),
                transparent 36%
            ),
            linear-gradient(
                145deg,
                #EEF5F1 0%,
                #E6F0EA 58%,
                #DCE8E2 100%
            );
    }
}

/* ========================================
   FINAL MOBILE COLOR + HERO PHOTO FIX
   These overrides intentionally come last.
======================================== */

@media (max-width: 767px) {

    /* Show Shayla's portrait inside the mobile hero. */
    .profile-inline {
        order: 3;
        position: relative;
        z-index: 4;
        width: min(72vw, 280px);
        height: min(82vw, 340px);
        margin: 0 auto 1.35rem;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        overflow: visible;
    }

    .profile-inline::before {
        content: "";
        position: absolute;
        inset: 8% 2% 2%;
        z-index: 1;
        border-radius: 44% 56% 52% 48% / 42% 42% 58% 58%;
        background:
            linear-gradient(
                145deg,
                var(--emerald-bright),
                var(--emerald-main)
            );
        filter:
            drop-shadow(0 0 24px rgba(121, 217, 166, 0.34));
    }

    .profile-inline img {
        position: relative;
        z-index: 2;
        width: min(64vw, 235px);
        max-width: 235px;
        height: auto;
        object-fit: contain;
        filter:
            drop-shadow(0 14px 24px rgba(11, 51, 36, 0.28));
    }

    /* Use the dedicated mobile portrait instead of the desktop image block. */
    .home-img,
    .desktop-only {
        display: none !important;
    }

    /* Keep hero content ordering intentional on mobile. */
    .hero-kicker {
        order: 1;
    }

    .home-content h1 {
        order: 2;
    }

    .home-content p {
        order: 4;
    }

    .hero-tags {
        order: 5;
    }

    .btn-box {
        order: 6;
    }

    /* Remove all blue/purple-looking card fills on mobile. */
    .timeline-item,
    .featured-experience,
    .education-card,
    #education .timeline-item,
    #education .featured-experience,
    .project-card,
    .featured-project,
    .early-project,
    .skills-card,
    .certification-card,
    .leadership-card,
    .about-text-card,
    .about-bubble,
    .contact-main-card,
    .contact-item,
    .social-btn {
        background:
            linear-gradient(
                145deg,
                rgba(247, 252, 249, 0.96),
                rgba(226, 240, 232, 0.94)
            ) !important;
        border-color: rgba(30, 111, 80, 0.24) !important;
        box-shadow:
            0 15px 32px rgba(11, 51, 36, 0.14),
            inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
    }

    .timeline-item:hover,
    .project-card:hover,
    .skills-card:hover,
    .certification-card:hover,
    .leadership-card:hover,
    .contact-item:hover,
    .social-btn:hover {
        border-color: rgba(30, 111, 80, 0.42) !important;
        box-shadow:
            0 20px 38px rgba(11, 51, 36, 0.18),
            0 0 22px rgba(121, 217, 166, 0.14) !important;
    }

    /* Dark readable text on light mobile cards. */
    .timeline-item,
    .timeline-item h3,
    .timeline-item h4,
    .timeline-item p,
    .timeline-item li,
    .project-card,
    .project-card h3,
    .project-card h4,
    .project-card p,
    .project-card li,
    .skills-card,
    .skills-card h3,
    .certification-card,
    .certification-card h3,
    .certification-card p,
    .leadership-card,
    .leadership-card h3,
    .leadership-card p,
    .about-text-card,
    .about-text-card p,
    .contact-main-card,
    .contact-main-card h3,
    .contact-main-card p,
    .contact-item,
    .contact-item p,
    .contact-item a {
        color: var(--section-text) !important;
    }

    /* Emerald accents remain consistent. */
    .project-card-header > i,
    .skills-card i,
    .certification-icon,
    .contact-item i,
    .contact-item span,
    .social-btn i,
    .company-info h4 {
        color: var(--emerald-dark) !important;
    }

    .project-tools li,
    .experience-tools li,
    .skills-list li,
    .certification-topics li,
    .company-meta span,
    .company-info span,
    .project-status {
        color: var(--emerald-dark) !important;
        background: rgba(30, 111, 80, 0.09) !important;
        border-color: rgba(30, 111, 80, 0.18) !important;
    }

    .project-card::before,
    .timeline-item::before {
        background:
            linear-gradient(
                90deg,
                var(--emerald-dark),
                var(--emerald-main),
                var(--emerald-bright)
            ) !important;
    }
}

@media (max-width: 430px) {
    .profile-inline {
        width: min(78vw, 255px);
        height: min(92vw, 315px);
        margin-bottom: 1.2rem;
    }

    .profile-inline img {
        width: min(69vw, 215px);
        max-width: 215px;
    }
}

/* ========================================
   FINAL MOBILE HERO BLOB MATCH
   Uses the exact same SVG shape as desktop.
======================================== */

@media (max-width: 767px) {
    .profile-inline {
        position: relative;
        width: min(76vw, 300px);
        height: min(88vw, 360px);
        margin: 0 auto 1.35rem;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        overflow: visible;
        isolation: isolate;
    }

    .profile-inline::before {
        content: "";
        position: absolute;
        inset: -2%;
        z-index: 1;
        width: 104%;
        height: 104%;
        border-radius: 0;
        background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20500%20500%22%3E%0A%3Cpath%20fill%3D%22%232FBF71%22%20d%3D%22M421.8%2C291.7Q393%2C333%2C368%2C372Q343%2C411%2C296.5%2C444Q250%2C477%2C212%2C429.5Q174%2C382%2C130.5%2C363Q87%2C344%2C85.5%2C297Q84%2C250%2C63%2C190Q42%2C130%2C103%2C115.5Q164%2C101%2C207%2C79Q250%2C57%2C288%2C88Q326%2C119%2C383.5%2C129.5Q441%2C140%2C466%2C195Q491%2C250%2C421.8%2C291.7Z%22%2F%3E%0A%3C%2Fsvg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        filter: drop-shadow(0 0 30px rgba(167, 243, 208, 0.34));
        animation: mobileDesktopBlob 8s ease-in-out infinite;
    }

    .profile-inline img {
        position: relative;
        z-index: 2;
        width: min(66vw, 240px);
        max-width: 240px;
        height: auto;
        object-fit: contain;
        filter: drop-shadow(0 14px 24px rgba(11, 51, 36, 0.28));
    }
}

@media (max-width: 430px) {
    .profile-inline {
        width: min(82vw, 270px);
        height: min(96vw, 330px);
    }

    .profile-inline img {
        width: min(71vw, 220px);
        max-width: 220px;
    }
}

@keyframes mobileDesktopBlob {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    25% {
        transform: translateY(-5px) rotate(0.5deg) scale(1.008);
    }

    50% {
        transform: translateY(-9px) rotate(-0.5deg) scale(1.012);
    }

    75% {
        transform: translateY(-4px) rotate(0.5deg) scale(1.008);
    }
}

/* ========================================
   FINAL RESPONSIVE COLOR CONSISTENCY
   Mobile and tablet preserve the desktop
   color system for every section.
======================================== */

@media (max-width: 1100px) {

    /* ==================================================
       DARK / EMERALD SECTIONS
       Focus, Leadership, Projects, Contact
    ================================================== */

    #focus .focus-card,
    #leadership .certification-card,
    #leadership .leadership-card,
    #projects .project-card,
    #projects .featured-project,
    #projects .early-project,
    #contact .contact-main-card,
    #contact .contact-item,
    #contact .social-btn {
        background:
            linear-gradient(
                155deg,
                rgba(244, 251, 247, 0.18),
                rgba(244, 251, 247, 0.10)
            ) !important;

        border-color: rgba(167, 243, 208, 0.28) !important;

        box-shadow:
            0 18px 42px rgba(11, 51, 36, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;

        color: var(--cream) !important;
    }

    #focus .focus-card:hover,
    #leadership .certification-card:hover,
    #leadership .leadership-card:hover,
    #projects .project-card:hover,
    #contact .contact-item:hover,
    #contact .social-btn:hover {
        border-color: rgba(167, 243, 208, 0.52) !important;

        box-shadow:
            0 24px 48px rgba(11, 51, 36, 0.28),
            0 0 24px rgba(167, 243, 208, 0.16) !important;
    }

    /* Dark-section headings and body text */
    #focus .focus-card h3,
    #leadership .certification-heading h3,
    #projects .project-card h3,
    #projects .project-docs h4,
    #contact .contact-cta h3 {
        color: var(--cream) !important;
    }

    #focus .focus-card p,
    #leadership .certification-content p,
    #projects .project-card p,
    #projects .project-highlights li,
    #projects .project-docs p,
    #contact .contact-cta p,
    #contact .contact-item p,
    #contact .contact-item a {
        color: var(--white-soft) !important;
    }

    /* Dark-section eyebrow labels and accents */
    #focus .focus-subtitle,
    #leadership .certifications-subtitle,
    #leadership .certification-provider,
    #projects .portfolio-subtitle,
    #projects .project-group-header span,
    #contact .contact-subtitle,
    #contact .contact-item i,
    #contact .contact-item span,
    #contact .social-btn i {
        color: var(--cyber-blue) !important;
    }

    /* Focus chips */
    #focus .focus-tools li {
        color: #E7FFF2 !important;
        background: rgba(167, 243, 208, 0.10) !important;
        border-color: rgba(167, 243, 208, 0.24) !important;
    }

    /* Leadership pills */
    #leadership .certification-status,
    #leadership .certification-topics li {
        color: #E7FFF2 !important;
        background: rgba(167, 243, 208, 0.10) !important;
        border-color: rgba(167, 243, 208, 0.24) !important;
    }

    #leadership .certification-divider {
        background:
            linear-gradient(
                90deg,
                transparent,
                rgba(167, 243, 208, 0.44),
                transparent
            ) !important;
    }

    /* Project icons, status pills, and tool chips */
    #projects .project-card-header > i {
        color: var(--cyber-blue) !important;
        background: rgba(167, 243, 208, 0.12) !important;
        border-color: rgba(167, 243, 208, 0.28) !important;
    }

    #projects .project-status,
    #projects .status-complete,
    #projects .status-near-complete,
    #projects .status-early,
    #projects .project-tools li {
        color: #E7FFF2 !important;
        background: rgba(167, 243, 208, 0.10) !important;
        border-color: rgba(167, 243, 208, 0.23) !important;
    }

    #projects .project-highlights li::before {
        background: var(--cyber-blue) !important;
    }

    #projects .project-divider {
        background:
            linear-gradient(
                90deg,
                transparent,
                rgba(167, 243, 208, 0.40),
                transparent
            ) !important;
        background-clip: content-box !important;
    }

    /* Contact form remains emerald glass with pale inputs */
    #contact .contact-form label {
        color: var(--cream) !important;
    }

    #contact .contact-form input,
    #contact .contact-form textarea {
        color: var(--section-heading) !important;
        background: #EAF4EE !important;
        border-color: rgba(167, 243, 208, 0.38) !important;

        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.64),
            0 8px 20px rgba(11, 51, 36, 0.10) !important;
    }

    #contact .contact-form input::placeholder,
    #contact .contact-form textarea::placeholder {
        color: rgba(23, 60, 43, 0.58) !important;
    }

    #contact .contact-form input:focus,
    #contact .contact-form textarea:focus {
        background: #F4FBF7 !important;
        border-color: var(--emerald-soft) !important;

        box-shadow:
            0 0 0 4px rgba(121, 217, 166, 0.16),
            0 10px 24px rgba(11, 51, 36, 0.12) !important;
    }

    #contact .contact-form .contact-email-btn {
        color: #FFFFFF !important;

        background:
            linear-gradient(
                135deg,
                var(--emerald-bright),
                var(--emerald-main)
            ) !important;

        border-color: var(--emerald-soft) !important;

        box-shadow:
            0 12px 28px rgba(11, 51, 36, 0.28),
            0 0 20px rgba(121, 217, 166, 0.22) !important;
    }

    #contact .contact-divider {
        background: rgba(167, 243, 208, 0.22) !important;
    }

    /* ==================================================
       LIGHT / SAGE SECTIONS
       About, Experience, Skills, Education
    ================================================== */

    #about .about-text-card,
    #about .about-bubble,
    #experience .timeline-item,
    #experience .featured-experience,
    #skills .skills-card,
    #education .timeline-item,
    #education .featured-experience,
    #education .education-card {
        background:
            linear-gradient(
                145deg,
                rgba(255, 255, 255, 0.84),
                rgba(235, 244, 239, 0.76)
            ) !important;

        border-color: rgba(30, 111, 80, 0.22) !important;

        box-shadow:
            0 16px 36px rgba(11, 51, 36, 0.13),
            inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
    }

    #about .about-text-card p,
    #about .about-bubble h4,
    #about .about-bubble p,
    #experience .timeline-item h3,
    #experience .timeline-item h4,
    #experience .timeline-item p,
    #experience .timeline-item li,
    #skills .skills-card h3,
    #education .timeline-item h3,
    #education .timeline-item h4,
    #education .timeline-item p,
    #education .timeline-item li {
        color: var(--section-text) !important;
    }

    #experience .company-info h4,
    #education .company-info h4,
    #skills .skills-card i {
        color: var(--emerald-dark) !important;
    }

    #experience .company-info span,
    #experience .experience-tools li,
    #education .company-info span,
    #education .experience-tools li,
    #skills .skills-list li {
        color: var(--emerald-dark) !important;
        background: rgba(30, 111, 80, 0.09) !important;
        border-color: rgba(30, 111, 80, 0.18) !important;
    }

    #skills .skills-card i {
        background: rgba(30, 111, 80, 0.10) !important;
        border-color: rgba(30, 111, 80, 0.20) !important;
        box-shadow:
            0 8px 18px rgba(14, 59, 42, 0.10),
            inset 0 1px 0 rgba(255, 255, 255, 0.62) !important;
    }

    #skills .skills-card h3::after {
        background:
            linear-gradient(
                90deg,
                transparent,
                rgba(30, 111, 80, 0.34),
                transparent
            ) !important;
    }

    #experience .timeline-item::before,
    #education .timeline-item::before {
        background:
            linear-gradient(
                90deg,
                var(--emerald-dark),
                var(--emerald-main),
                var(--emerald-bright)
            ) !important;
    }
}

/* Small-phone scaling changes size only, never color. */
@media (max-width: 430px) {
    #focus .focus-card,
    #leadership .certification-card,
    #projects .project-card,
    #contact .contact-main-card,
    #experience .timeline-item,
    #skills .skills-card,
    #education .timeline-item {
        border-radius: 22px;
    }
}

/* ========================================
   FINAL LEADERSHIP ICON CONSISTENCY
   Mobile and tablet match desktop exactly.
======================================== */

@media (max-width: 1100px) {
    #leadership .certification-icon {
        width: 66px;
        height: 66px;
        display: flex;
        align-items: center;
        justify-content: center;

        color: var(--cyber-blue) !important;
        background: rgba(11, 51, 36, 0.74) !important;
        border: 1px solid rgba(167, 243, 208, 0.34) !important;
        border-radius: 19px;

        font-size: 2rem;

        box-shadow:
            0 0 18px rgba(167, 243, 208, 0.15) !important;
    }

    #leadership .certification-icon i {
        color: var(--cyber-blue) !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        text-shadow: none !important;
        font-size: inherit;
        line-height: 1;
    }

    #leadership .certification-card:hover .certification-icon {
        color: var(--cyber-blue) !important;
        background: rgba(11, 51, 36, 0.82) !important;
        border-color: rgba(167, 243, 208, 0.48) !important;

        box-shadow:
            0 0 22px rgba(167, 243, 208, 0.20) !important;
    }
}

@media (max-width: 767px) {
    #leadership .certification-icon {
        width: 66px;
        height: 66px;
        margin: 0 auto;
        border-radius: 19px;
        font-size: 2rem;
    }
}

@media (max-width: 430px) {
    #leadership .certification-icon {
        width: 62px;
        height: 62px;
        border-radius: 18px;
        font-size: 1.9rem;
    }
}
