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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(37, 99, 235, 0.045),
            transparent 28%
        ),
        #f6f8fc;
    color: #1e293b;
    line-height: 1.7;
    transition: background 0.3s ease, color 0.3s ease;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #1d4ed8;
}


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

.hero {
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(37, 99, 235, 0.18),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(59, 130, 246, 0.12),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #07111f 0%,
            #0d1728 55%,
            #111d34 100%
        );

    color: white;
    text-align: center;

    padding: 100px 20px 90px;
}

.hero::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;

    top: -220px;
    right: -140px;
}

.hero::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border: 1px solid rgba(59, 130, 246, 0.08);
    border-radius: 50%;

    bottom: -180px;
    left: -100px;
}

.hero-container {
    position: relative;
    z-index: 1;

    max-width: 850px;
    margin: auto;
}


/* =========================================================
   PROFILE
========================================================= */

.profile-pic {
    display: block;

    width: 145px;
    height: 145px;

    object-fit: cover;

    border-radius: 50%;

    margin: 0 auto 22px;

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

    box-shadow:
        0 0 0 8px rgba(255, 255, 255, 0.025),
        0 15px 40px rgba(0, 0, 0, 0.3);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.profile-pic:hover {
    transform: translateY(-4px) scale(1.03);

    box-shadow:
        0 0 0 8px rgba(37, 99, 235, 0.12),
        0 20px 45px rgba(0, 0, 0, 0.35);
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    line-height: 1.15;

    font-weight: 750;
    letter-spacing: -0.04em;

    margin-bottom: 12px;
}

.hero h2 {
    font-size: 1.25rem;
    font-weight: 500;

    color: #cbd5e1;

    margin-bottom: 18px;
}

.tech-stack-line {
    color: #60a5fa !important;

    font-size: 0.95rem;
    font-weight: 600;

    letter-spacing: 0.02em;
}

.hero .tagline {
    max-width: 720px;

    margin: 20px auto 0;

    color: #a8b4c7;

    font-size: 1.05rem;
    line-height: 1.8;
}


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

.hero-actions {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 12px;
    flex-wrap: wrap;

    margin-top: 30px;
}

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 11px 20px;

    border-radius: 9px;
    border: 1px solid transparent;

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

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.primary-btn {
    background: #2563eb;
    color: white;

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.25);
}

.primary-btn:hover {
    background: #1d4ed8;
    color: white;

    text-decoration: none;

    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(37, 99, 235, 0.32);
}

.dark-mode-btn {
    background: rgba(255, 255, 255, 0.07);

    color: #e2e8f0;

    border-color: rgba(255, 255, 255, 0.12);

    backdrop-filter: blur(8px);
}

.dark-mode-btn:hover {
    background: rgba(255, 255, 255, 0.12);

    transform: translateY(-2px);
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.container {
    width: min(100%, 1080px);
    margin: 0 auto;
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
    max-width: 100%;

    padding: 82px 35px;
}

.section + .section {
    border-top: 1px solid rgba(15, 23, 42, 0.055);
}

.section-title {
    position: relative;

    font-size: 1.55rem;
    font-weight: 750;

    letter-spacing: -0.025em;

    color: #0f172a;

    margin-bottom: 32px;

    padding-left: 15px;
}

.section-title::before {
    content: "";

    position: absolute;

    left: 0;
    top: 5px;

    width: 4px;
    height: 25px;

    border-radius: 4px;

    background: linear-gradient(
        to bottom,
        #2563eb,
        #60a5fa
    );
}


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

#about > p {
    max-width: 900px;

    color: #475569;

    margin-bottom: 18px;
}

.about-highlights {
    list-style: none;

    margin-top: 28px;

    display: grid;
    gap: 13px;
}

.about-highlights li {
    position: relative;

    padding: 16px 18px 16px 42px;

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

    border: 1px solid #e2e8f0;
    border-radius: 10px;

    color: #475569;

    transition: all 0.2s ease;
}

.about-highlights li::before {
    content: "→";

    position: absolute;

    left: 17px;
    top: 16px;

    color: #2563eb;

    font-weight: 700;
}

.about-highlights li:hover {
    transform: translateX(4px);

    border-color: #bfdbfe;

    box-shadow:
        0 8px 20px rgba(15, 23, 42, 0.05);
}


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

.skills-grid {
    display: grid;

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

    gap: 18px;
}

.skill-category {
    padding: 24px;

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

    border: 1px solid #e2e8f0;
    border-radius: 13px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.skill-category:hover {
    transform: translateY(-3px);

    border-color: #cbd5e1;

    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.07);
}

.skill-category h4 {
    font-size: 1rem;

    color: #0f172a;

    margin-bottom: 17px;
}

.skill-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.skill {
    display: inline-flex;

    align-items: center;

    padding: 6px 11px;

    border-radius: 7px;

    background: #eff6ff;

    border: 1px solid #dbeafe;

    color: #1e40af;

    font-size: 0.8rem;

    font-weight: 600;

    transition: all 0.2s ease;
}

.skill:hover {
    background: #dbeafe;

    border-color: #bfdbfe;

    transform: translateY(-2px);
}


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

.experience-card {
    position: relative;

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

    border: 1px solid #e2e8f0;
    border-radius: 14px;

    padding: 27px 30px;

    margin-bottom: 20px;

    box-shadow:
        0 5px 18px rgba(15, 23, 42, 0.035);

    transition: all 0.25s ease;
}

.experience-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.08);

    border-color: #cbd5e1;
}


/* ---------- Experience Header ---------- */

.card-header {
    display: grid;

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

    grid-template-areas:
        "title date"
        "company date";

    column-gap: 25px;

    margin-bottom: 18px;
}

.card-header h4 {
    grid-area: title;

    font-size: 1.08rem;

    line-height: 1.4;

    color: #0f172a;
}

.card-header .company {
    grid-area: company;

    margin-top: 3px;
}

.card-header .date {
    grid-area: date;

    align-self: start;

    padding: 5px 10px;

    border-radius: 6px;

    background: #eff6ff;

    border: 1px solid #dbeafe;

    color: #2563eb;

    font-size: 0.78rem;

    font-weight: 650;

    white-space: nowrap;
}

.company {
    color: #2563eb;

    font-size: 0.88rem;

    font-weight: 600;
}

.experience-card ul {
    padding-left: 20px;

    color: #475569;
}

.experience-card li {
    margin-bottom: 11px;
}

.experience-card li:last-child {
    margin-bottom: 0;
}

.experience-card strong {
    color: #1e293b;
}


/* =========================================================
   PROJECTS
========================================================= */

.projects-grid {
    display: grid;

    gap: 24px;
}


/* ---------- Project Card ---------- */

.project-card {
    position: relative;

    overflow: hidden;

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

    border: 1px solid #e2e8f0;

    border-radius: 16px;

    padding: 30px;

    box-shadow:
        0 6px 22px rgba(15, 23, 42, 0.045);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.project-card:hover {
    transform: translateY(-4px);

    border-color: #cbd5e1;

    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.09);
}


/* ---------- Project Header ---------- */

.project-header {
    margin-bottom: 24px;
}

.project-card h4 {
    font-size: 1.2rem;

    line-height: 1.35;

    color: #0f172a;

    margin-bottom: 8px;
}

.project-tech {
    color: #2563eb !important;

    font-size: 0.82rem;

    font-weight: 650;

    line-height: 1.6;
}


/* =========================================================
   FEATURED PROJECT — MAIN IMAGE
========================================================= */

.project-image-main {
    width: 100%;

    margin: 0 0 28px;

    padding: 10px;

    background: #f1f5f9;

    border: 1px solid #e2e8f0;

    border-radius: 12px;

    overflow: hidden;
}

.project-image-main img {
    display: block;

    width: 100%;
    height: auto;

    max-height: 500px;

    object-fit: contain;

    margin: 0 auto;

    border-radius: 7px;

    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.08);
}


/* =========================================================
   PROJECT CONTENT
========================================================= */

.project-content {
    max-width: 950px;
}

.project-description {
    color: #475569;

    margin-bottom: 25px;

    line-height: 1.75;
}

.project-content h5 {
    color: #0f172a;

    font-size: 0.95rem;

    margin: 25px 0 12px;
}

.project-features {
    padding-left: 20px;

    color: #475569;

    margin-bottom: 20px;
}

.project-features li {
    margin-bottom: 8px;
}

.project-content > p:last-of-type {
    color: #64748b;
}


/* =========================================================
   PROJECT GALLERY
========================================================= */

/*
   Every screenshot now lives inside an identical visual frame.
   This prevents different image dimensions from destroying
   the layout.
*/

.project-gallery {
    display: grid;

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

    gap: 16px;

    margin-top: 26px;
}

.project-gallery-item {
    display: flex;

    flex-direction: column;

    min-width: 0;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 11px;

    overflow: hidden;

    box-shadow:
        0 4px 14px rgba(15, 23, 42, 0.045);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.project-gallery-item:hover {
    transform: translateY(-4px);

    border-color: #cbd5e1;

    box-shadow:
        0 12px 26px rgba(15, 23, 42, 0.09);
}


/* The actual image frame */

.project-gallery-item img {
    display: block;

    width: 100%;

    height: 190px;

    object-fit: contain;

    background: #f1f5f9;

    padding: 8px;

    border-bottom: 1px solid #e2e8f0;
}


/* Image caption */

.project-gallery-item span {
    display: block;

    padding: 11px 12px;

    min-height: 43px;

    text-align: center;

    background: #ffffff;

    color: #334155;

    font-size: 0.78rem;

    font-weight: 650;

    line-height: 1.35;
}


/* =========================================================
   GENERIC PROJECT GALLERY
   For BI Management, where images are direct children
========================================================= */

.project-card:not(.project-card-featured) .project-gallery {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    margin: 22px 0;
}

.project-card:not(.project-card-featured) .project-gallery > img {
    display: block;

    width: 100%;

    height: 170px;

    object-fit: contain;

    padding: 7px;

    background: #f1f5f9;

    border: 1px solid #e2e8f0;

    border-radius: 10px;

    box-shadow:
        0 4px 14px rgba(15, 23, 42, 0.04);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.project-card:not(.project-card-featured) .project-gallery > img:hover {
    transform: translateY(-3px);

    border-color: #cbd5e1;

    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.08);
}


/* =========================================================
   PROJECT STACK
========================================================= */

.project-stack {
    margin-top: 28px;

    padding-top: 22px;

    border-top: 1px solid #e2e8f0;
}

.project-stack h5 {
    margin-bottom: 12px;

    color: #0f172a;

    font-size: 0.95rem;
}

.tech-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.tech-tags span {
    display: inline-flex;

    align-items: center;

    padding: 6px 10px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-radius: 7px;

    color: #475569;

    font-size: 0.76rem;

    font-weight: 600;
}


/* =========================================================
   PROJECT ACTIONS
========================================================= */

.project-actions {
    margin-top: 24px;
}

.project-link {
    display: inline-flex;

    align-items: center;

    font-size: 0.88rem;

    font-weight: 650;
}

.project-link:hover {
    text-decoration: none;

    transform: translateX(3px);
}


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

.leadership-card {
    background: rgba(255, 255, 255, 0.88);

    border: 1px solid #e2e8f0;

    border-radius: 13px;

    padding: 25px 28px;

    margin-bottom: 18px;

    transition: all 0.25s ease;
}

.leadership-card:hover {
    transform: translateY(-3px);

    border-color: #cbd5e1;

    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.07);
}

.leadership-card h4 {
    color: #0f172a;

    font-size: 1.08rem;

    margin-bottom: 3px;
}

.leadership-card .company {
    display: block;

    margin-bottom: 13px;
}

.leadership-card p {
    color: #475569;
}


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

.education-grid {
    display: grid;

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

    gap: 18px;
}

.edu-item {
    position: relative;

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

    border: 1px solid #e2e8f0;

    border-radius: 13px;

    padding: 24px;

    transition: all 0.25s ease;
}

.edu-item:hover {
    transform: translateY(-3px);

    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.07);

    border-color: #cbd5e1;
}

.edu-item h4 {
    color: #0f172a;

    font-size: 1rem;

    line-height: 1.45;

    margin-bottom: 8px;
}

.edu-item p {
    color: #64748b;

    font-size: 0.9rem;

    line-height: 1.6;

    margin-bottom: 16px;
}

.edu-item .date {
    display: inline-flex;

    align-items: center;

    padding: 5px 10px;

    background: #eff6ff;

    border: 1px solid #dbeafe;

    border-radius: 6px;

    color: #2563eb;

    font-size: 0.78rem;

    font-weight: 650;
}


/* =========================================================
   LANGUAGES — CLEAN CARDS
========================================================= */

.languages-box {
    margin-top: 22px;

    padding: 24px;

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

    border: 1px solid #e2e8f0;

    border-radius: 13px;

    box-shadow:
        0 5px 18px rgba(15, 23, 42, 0.035);
}

.languages-box h4 {
    color: #0f172a;

    font-size: 1rem;

    margin-bottom: 17px;
}


/*
   IMPORTANT:
   The HTML already has .languages-grid.
   We style that directly instead of trying to
   manipulate the old paragraph structure.
*/

.languages-grid {
    display: grid;

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

    gap: 12px;
}

.languages-grid > span {
    display: flex;

    flex-direction: column;

    justify-content: center;

    min-height: 78px;

    padding: 15px 16px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-radius: 10px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.languages-grid > span:hover {
    transform: translateY(-3px);

    border-color: #bfdbfe;

    box-shadow:
        0 8px 20px rgba(15, 23, 42, 0.06);
}

.languages-grid strong {
    display: block;

    color: #0f172a;

    font-size: 0.88rem;

    font-weight: 700;

    margin-bottom: 3px;
}

.languages-grid small {
    display: block;

    color: #64748b;

    font-size: 0.78rem;

    font-weight: 500;
}


/* Highlight English */

.languages-grid > span:first-child {
    background: #eff6ff;

    border-color: #dbeafe;
}

.languages-grid > span:first-child strong {
    color: #1e40af;
}

.languages-grid > span:first-child small {
    color: #2563eb;

    font-weight: 650;
}


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

.contact-section {
    text-align: center;
}

.contact-section > p {
    max-width: 650px;

    margin: 0 auto 28px;

    color: #64748b;
}

.contact-links {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 28px;
}

.contact-item {
    display: inline-flex;

    align-items: center;

    padding: 10px 15px;

    border-radius: 9px;

    background: white;

    border: 1px solid #e2e8f0;

    color: #334155;

    font-size: 0.86rem;

    font-weight: 550;

    transition: all 0.2s ease;
}

.contact-item:hover {
    color: #2563eb;

    border-color: #bfdbfe;

    box-shadow:
        0 7px 18px rgba(15, 23, 42, 0.06);

    transform: translateY(-2px);

    text-decoration: none;
}

.download-cv-btn {
    margin-top: 4px;
}


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

footer {
    text-align: center;

    padding: 32px 20px;

    background: #07111f;

    color: #94a3b8;

    font-size: 0.82rem;
}

footer p {
    margin: 0;
}


/* =========================================================
   DARK MODE
========================================================= */

body.dark-mode {
    background:
        radial-gradient(
            circle at top left,
            rgba(37, 99, 235, 0.08),
            transparent 30%
        ),
        #070d17;

    color: #e2e8f0;
}

body.dark-mode .section + .section {
    border-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .section-title {
    color: #f1f5f9;
}

body.dark-mode #about > p {
    color: #a8b4c7;
}


/* ---------- Dark Cards ---------- */

body.dark-mode .about-highlights li,
body.dark-mode .skill-category,
body.dark-mode .experience-card,
body.dark-mode .project-card,
body.dark-mode .leadership-card,
body.dark-mode .edu-item,
body.dark-mode .contact-item,
body.dark-mode .languages-box {
    background: #0e1726;

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


/* ---------- Dark Text ---------- */

body.dark-mode .about-highlights li,
body.dark-mode .experience-card li,
body.dark-mode .project-card p,
body.dark-mode .leadership-card p,
body.dark-mode .edu-item p {
    color: #a8b4c7;
}

body.dark-mode .about-highlights li strong,
body.dark-mode .experience-card strong,
body.dark-mode .skill-category h4,
body.dark-mode .experience-card h4,
body.dark-mode .project-card h4,
body.dark-mode .project-content h5,
body.dark-mode .project-stack h5,
body.dark-mode .leadership-card h4,
body.dark-mode .edu-item h4,
body.dark-mode .languages-box h4 {
    color: #f1f5f9;
}


/* ---------- Dark Project Images ---------- */

body.dark-mode .project-image-main,
body.dark-mode .project-gallery-item img,
body.dark-mode .project-card:not(.project-card-featured) .project-gallery > img {
    background: #111c2d;

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

body.dark-mode .project-gallery-item {
    background: #0e1726;

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

body.dark-mode .project-gallery-item span {
    background: #0e1726;

    color: #e2e8f0;

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

body.dark-mode .project-stack {
    border-color:
        rgba(255, 255, 255, 0.07);
}

body.dark-mode .tech-tags span {
    background: #16233a;

    border-color: #223554;

    color: #cbd5e1;
}


/* ---------- Dark Skills ---------- */

body.dark-mode .skill {
    background: #16233a;

    border-color: #223554;

    color: #bfdbfe;
}

body.dark-mode .skill:hover {
    background: #1d3557;
}


/* ---------- Dark Dates ---------- */

body.dark-mode .card-header .date,
body.dark-mode .edu-item .date {
    background: #10284a;

    border-color: #1d4778;

    color: #93c5fd;
}


/* ---------- Dark Languages ---------- */

body.dark-mode .languages-grid > span {
    background: #16233a;

    border-color: #223554;
}

body.dark-mode .languages-grid strong {
    color: #f1f5f9;
}

body.dark-mode .languages-grid small {
    color: #a8b4c7;
}

body.dark-mode .languages-grid > span:first-child {
    background: #10284a;

    border-color: #1d4778;
}

body.dark-mode .languages-grid > span:first-child strong {
    color: #bfdbfe;
}

body.dark-mode .languages-grid > span:first-child small {
    color: #93c5fd;
}


/* ---------- Dark Contact ---------- */

body.dark-mode .contact-item {
    color: #cbd5e1;
}

body.dark-mode .contact-item:hover {
    color: #60a5fa;

    border-color: #2563eb;
}


/* ---------- Dark Buttons ---------- */

body.dark-mode .primary-btn {
    background: #3b82f6;
}

body.dark-mode .primary-btn:hover {
    background: #2563eb;
}

body.dark-mode .dark-mode-btn {
    background: #16233a;

    border-color:
        rgba(255, 255, 255, 0.08);

    color: #e2e8f0;
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 850px) {

    .section {
        padding: 65px 25px;
    }

    .skills-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }

    .project-gallery {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .project-card:not(.project-card-featured) .project-gallery {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .languages-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .hero {
        padding: 80px 20px 70px;
    }

    .hero h1 {
        font-size: 2.3rem;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 600px) {

    body {
        font-size: 0.94rem;
    }

    .hero {
        padding: 65px 18px 60px;
    }

    .profile-pic {
        width: 120px;
        height: 120px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.05rem;
    }

    .hero .tagline {
        font-size: 0.94rem;
    }

    .hero-actions {
        flex-direction: column;

        width: 100%;
    }

    .hero-actions .btn {
        width: min(100%, 280px);
    }

    .section {
        padding: 55px 18px;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .skill-category,
    .experience-card,
    .project-card,
    .leadership-card,
    .edu-item,
    .languages-box {
        padding: 21px;
    }


    /* ---------- Experience ---------- */

    .card-header {
        display: grid;

        grid-template-columns: 1fr;

        grid-template-areas:
            "title"
            "company"
            "date";

        gap: 5px;
    }

    .card-header .date {
        grid-area: date;

        justify-self: start;

        margin-top: 5px;
    }


    /* ---------- Project Gallery ---------- */

    .project-gallery,
    .project-card:not(.project-card-featured) .project-gallery {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .project-gallery-item img {
        height: 210px;
    }

    .project-card:not(.project-card-featured) .project-gallery > img {
        height: 210px;
    }

    .project-image-main {
        padding: 7px;
    }

    .project-image-main img {
        max-height: 360px;
    }


    /* ---------- Languages ---------- */

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

        gap: 9px;
    }

    .languages-grid > span {
        min-height: 70px;

        padding: 12px;
    }


    /* ---------- Contact ---------- */

    .contact-links {
        flex-direction: column;

        align-items: stretch;
    }

    .contact-item {
        justify-content: center;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

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

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero h2 {
        font-size: 1rem;
    }

    .project-gallery-item img,
    .project-card:not(.project-card-featured) .project-gallery > img {
        height: 190px;
    }
}


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

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

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}