/* =========================================================
   GLOBAL SETTINGS
========================================================= */

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

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

body {
    font-family: Arial, Helvetica, sans-serif;

    background: #f4f7fb;
    color: #1f2937;

    line-height: 1.6;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}


/* =========================================================
   CSS VARIABLES
========================================================= */

:root {
    --primary: #287bb5;
    --primary-dark: #1f6393;

    --accent: #ffa500;

    --background: #f4f7fb;
    --section-bg: #ffffff;

    --card-bg: #ffffff;

    --text: #1f2937;
    --muted: #667085;

    --border: #e5e7eb;

    --shadow:
        0 8px 25px rgba(0, 0, 0, 0.08);

    --radius: 14px;
}


/* =========================================================
   GENERAL ELEMENTS
========================================================= */

a {
    color: inherit;
}

button,
a {
    font-family: inherit;
}

button {
    cursor: pointer;
}

section {
    width: 100%;
    padding: 100px 7%;
}


/* =========================================================
   HEADER
========================================================= */

header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 70px;

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

    padding: 0 5%;

    background: var(--accent);

    z-index: 1000;

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


/* Logo */

.logo {
    font-size: 28px;

    font-weight: 700;

    color: var(--primary);

    white-space: nowrap;
}


/* Navigation */

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;

    align-items: center;

    gap: 28px;

    list-style: none;
}

.nav-links a {
    position: relative;

    text-decoration: none;

    font-size: 15px;

    font-weight: 600;

    color: #111827;

    transition:
        color 0.3s ease;
}

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


/* Small underline */

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

    position: absolute;

    left: 0;
    bottom: -6px;

    width: 0;
    height: 2px;

    background: var(--primary);

    transition:
        width 0.3s ease;
}

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


/* Hamburger */

.menu-toggle {
    display: none;

    border: none;

    background: transparent;

    font-size: 28px;

    color: #111827;

    padding: 5px;

    line-height: 1;
}


/* Dark mode button */

.dark-mode-btn {
    border: none;

    border-radius: 20px;

    padding: 7px 12px;

    background: #111827;

    color: white;

    font-size: 12px;

    font-weight: 600;

    white-space: nowrap;
}


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

.hero {
    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 80px;

    padding-top: 120px;

    background:
        linear-gradient(
            135deg,
            #eaf4ff,
            #dcecff
        );
}


/* Hero text */

.hero-content {
    width: min(600px, 100%);
}

.hero-greeting {
    font-size: 20px;

    margin-bottom: 10px;

    color: var(--text);
}

.hero-content h1 {
    font-size: clamp(42px, 6vw, 70px);

    line-height: 1.1;

    color: var(--primary);

    margin-bottom: 15px;
}

.hero-content h2 {
    font-size: clamp(25px, 4vw, 40px);

    line-height: 1.2;

    margin-bottom: 20px;

    color: #111827;
}

.hero-description {
    max-width: 600px;

    font-size: 18px;

    color: var(--muted);

    margin-bottom: 30px;
}


/* Hero buttons */

.hero-buttons {
    display: flex;

    align-items: center;

    gap: 15px;

    flex-wrap: wrap;
}

.hero-buttons a {
    display: inline-block;

    padding: 13px 25px;

    border-radius: 8px;

    text-decoration: none;

    font-weight: 700;

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

.primary-btn {
    background: var(--primary);

    color: white;
}

.secondary-btn {
    background: white;

    color: var(--primary);

    border: 2px solid var(--primary);
}

.hero-buttons a:hover {
    transform: translateY(-3px);

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


/* Profile photo */

.hero-photo {
    width: 300px;
    height: 300px;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 50%;

    border: 7px solid white;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.18);
}

.hero-photo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center 35%;
}


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

.section-heading {
    max-width: 750px;

    margin: 0 auto 55px;

    text-align: center;
}

.section-heading > span {
    display: block;

    font-size: 28px;

    margin-bottom: 5px;
}

.section-heading h2 {
    font-size: clamp(30px, 4vw, 42px);

    color: var(--primary);

    margin-bottom: 10px;
}

.section-heading p {
    color: var(--muted);

    font-size: 16px;
}


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

.skills-section {
    background: var(--section-bg);
}

.skills-container {
    max-width: 1100px;

    margin: 0 auto;

    display: grid;

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

    gap: 25px;
}


/* Skill card */

.skill-card {
    padding: 30px 22px;

    min-height: 190px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    background: var(--card-bg);

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

    border-radius: var(--radius);

    box-shadow: var(--shadow);

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

.skill-card:hover {
    transform: translateY(-7px);

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

.skill-icon {
    font-size: 35px;

    margin-bottom: 10px;
}

.skill-card h3 {
    font-size: 20px;

    margin-bottom: 5px;
}

.skill-card p {
    color: var(--muted);

    font-size: 14px;
}


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

.experience-section {
    background: #f4f7fb;
}

.experience-container {
    max-width: 1000px;

    margin: 0 auto;

    display: grid;

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

    gap: 25px;
}

.experience-card {
    padding: 30px;

    background: var(--card-bg);

    border-radius: var(--radius);

    border-left: 5px solid var(--primary);

    box-shadow: var(--shadow);

    transition:
        transform 0.3s ease;
}

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

.experience-header {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 15px;

    margin-bottom: 15px;
}

.experience-card h3 {
    font-size: 21px;

    color: var(--text);
}

.experience-card h4 {
    font-size: 15px;

    color: var(--primary);

    margin-top: 4px;
}

.experience-icon {
    font-size: 30px;
}

.experience-card > p {
    color: var(--muted);

    font-size: 15px;

    margin-bottom: 20px;
}

.experience-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.experience-tags span {
    padding: 5px 10px;

    border-radius: 20px;

    background: #e6f1fb;

    color: var(--primary);

    font-size: 12px;

    font-weight: 600;
}


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

.projects-section {
    background: var(--section-bg);
}


/* Filter buttons */

.filter-buttons {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

    margin-bottom: 40px;
}

.filter-btn {
    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 8px 18px;

    background: #f1f3f5;

    color: var(--text);

    font-size: 14px;

    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);

    color: white;

    border-color: var(--primary);
}


/* Projects grid */

.projects-container {
    max-width: 1100px;

    margin: 0 auto;

    display: grid;

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

    gap: 25px;
}


/* Project card */

.project-card {
    display: flex;

    flex-direction: column;

    padding: 28px;

    background: var(--card-bg);

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

    border-radius: var(--radius);

    box-shadow: var(--shadow);

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

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

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

.project-icon {
    font-size: 35px;

    margin-bottom: 12px;
}

.project-card h3 {
    font-size: 21px;

    margin-bottom: 12px;
}

.project-card > p {
    color: var(--muted);

    font-size: 15px;

    margin-bottom: 18px;
}


/* Technology badges */

.tech-container {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 20px;
}

.tech-badge {
    padding: 5px 9px;

    border-radius: 15px;

    background: #e8efff;

    color: var(--primary);

    font-size: 11px;

    font-weight: 700;
}


/* Project links */

.project-links {
    display: flex;

    gap: 10px;

    margin-top: auto;

    margin-bottom: 15px;
}

.project-link {
    display: inline-block;

    padding: 8px 13px;

    border-radius: 6px;

    background: var(--primary);

    color: white;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;
}

.project-link:hover {
    background: var(--primary-dark);
}


/* More details */

.details-btn {
    width: 100%;

    padding: 9px;

    border: none;

    border-radius: 6px;

    background: #eef1f4;

    color: var(--primary);

    font-weight: 700;
}


/* Hidden project details */

.project-details {
    display: none;

    margin-top: 15px;

    padding-top: 15px;

    border-top: 1px solid var(--border);

    color: var(--muted);

    font-size: 14px;
}

.project-details.show {
    display: block;
}


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

.about-section {
    background: #f4f7fb;

    text-align: center;
}


/* About toggle */

.about-toggle {
    display: block;

    margin: -25px auto 40px;

    padding: 10px 20px;

    border: none;

    border-radius: 7px;

    background: var(--primary);

    color: white;

    font-weight: 700;
}

.about-toggle:hover {
    background: var(--primary-dark);
}


/* About cards */

.about {
    max-width: 1100px;

    margin: 0 auto;

    display: grid;

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

    gap: 25px;
}

.about-card {
    padding: 30px;

    background: var(--card-bg);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    text-align: center;
}

.about-card h3 {
    color: var(--primary);

    margin-bottom: 15px;

    font-size: 21px;
}

.about-card p {
    color: var(--muted);

    font-size: 15px;
}


/* Existing JavaScript uses this */

.about.hidden {
    display: none;
}


/* =========================================================
   ACHIEVEMENTS
========================================================= */

.achievements-section {
    background: var(--section-bg);
}

.achievements-container {
    max-width: 1000px;

    margin: 0 auto;

    display: grid;

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

    gap: 20px;
}

.achievement-card {
    padding: 30px 20px;

    text-align: center;

    background: var(--card-bg);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    border-top: 4px solid var(--accent);

    transition:
        transform 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-6px);
}

.achievement-icon {
    font-size: 32px;

    margin-bottom: 10px;
}

.achievement-card h3 {
    font-size: 22px;

    color: var(--primary);

    margin-bottom: 5px;
}

.achievement-card p {
    font-size: 14px;

    color: var(--muted);
}


/* =========================================================
   QUALIFICATIONS
========================================================= */

.qualifications-section {
    background: #f4f7fb;
}

.qualification-grid {
    max-width: 900px;

    margin: 0 auto;

    display: grid;

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

    gap: 25px;
}

.qualification-card {
    padding: 30px;

    background: var(--card-bg);

    border-radius: var(--radius);

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

.qualification-card h2 {
    color: var(--primary);

    font-size: 23px;

    margin-bottom: 20px;
}

.qualification-card ul {
    list-style: none;
}

.qualification-card li {
    padding: 10px 0;

    border-bottom: 1px solid var(--border);

    color: var(--muted);

    font-size: 15px;
}

.qualification-card li:last-child {
    border-bottom: none;
}


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

.contact-section {
    background: var(--section-bg);

    text-align: center;
}


/* Contact form */

#contact-form {
    width: min(650px, 100%);

    margin: 0 auto;

    padding: 35px;

    background: var(--card-bg);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    text-align: left;
}


/* Form group */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    font-weight: 700;

    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;

    padding: 12px 14px;

    border: 1px solid #d1d5db;

    border-radius: 7px;

    background: white;

    color: #111827;

    font-size: 15px;

    outline: none;

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(40, 123, 181, 0.12);
}

.form-group textarea {
    min-height: 150px;

    resize: vertical;
}


/* Form message */

.form-message {
    min-height: 24px;

    margin-bottom: 10px;

    text-align: center;

    font-weight: 600;
}


/* Submit button */

.submit-btn {
    display: block;

    width: 100%;

    padding: 13px;

    border: none;

    border-radius: 7px;

    background: var(--primary);

    color: white;

    font-size: 16px;

    font-weight: 700;

    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.submit-btn:hover {
    background: var(--primary-dark);

    transform: translateY(-2px);
}


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

footer {
    padding: 30px 5%;

    background: #111827;

    color: white;

    text-align: center;

    font-size: 14px;
}

footer p:first-child {
    margin-bottom: 5px;
}

footer p:last-child {
    color: #9ca3af;
}


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

body.dark-mode {
    --background: #111827;
    --section-bg: #182230;
    --card-bg: #1f2937;

    --text: #f3f4f6;
    --muted: #c0c7d1;

    --border: #374151;

    background: var(--background);

    color: var(--text);
}

body.dark-mode .hero {
    background:
        linear-gradient(
            135deg,
            #17283b,
            #1e354d
        );
}

body.dark-mode .hero-content h2 {
    color: #f3f4f6;
}

body.dark-mode .secondary-btn {
    background: #1f2937;

    color: white;
}

body.dark-mode .nav-links a {
    color: #111827;
}

body.dark-mode .skill-card,
body.dark-mode .project-card,
body.dark-mode .experience-card,
body.dark-mode .about-card,
body.dark-mode .achievement-card,
body.dark-mode .qualification-card,
body.dark-mode #contact-form {
    background: var(--card-bg);

    border-color: var(--border);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: #111827;

    color: white;

    border-color: #4b5563;
}

body.dark-mode .experience-tags span {
    background: #263d52;
}

body.dark-mode .tech-badge {
    background: #263d52;
}

body.dark-mode .details-btn {
    background: #374151;

    color: white;
}

body.dark-mode .filter-btn {
    background: #374151;

    color: white;

    border-color: #4b5563;
}


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

@media (max-width: 1000px) {

    .hero {
        gap: 40px;
    }

    .hero-photo {
        width: 250px;
        height: 250px;
    }

    .skills-container {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .projects-container {
        grid-template-columns:
            repeat(2, 1fr);
    }

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

    .achievements-container {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


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

/* =========================================================
   MOBILE RESPONSIVE DESIGN
========================================================= */

@media (max-width: 768px) {

    /* -----------------------------------------------------
       GLOBAL MOBILE FIX
    ----------------------------------------------------- */

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    section {
        width: 100%;
        max-width: 100%;
        padding: 80px 20px;
    }


    /* -----------------------------------------------------
       HEADER
    ----------------------------------------------------- */

    header {
        position: fixed;

        top: 0;
        left: 0;

        width: 100%;
        max-width: 100%;

        height: 65px;

        padding: 0 16px;

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

        z-index: 1000;
    }

    .logo {
        font-size: 23px;

        flex-shrink: 0;
    }

    .menu-toggle {
        display: block;

        margin-left: auto;

        padding: 4px;

        border: none;

        background: transparent;

        font-size: 28px;

        line-height: 1;

        color: #111827;

        z-index: 1002;
    }

    .dark-mode-btn {
        position: absolute;

        top: 7px;

        left: 50%;

        transform: translateX(-50%);

        padding: 4px 9px;

        font-size: 10px;

        white-space: nowrap;

        z-index: 1003;
    }


    /* -----------------------------------------------------
       MOBILE NAVIGATION
    ----------------------------------------------------- */

    nav {
        position: absolute;

        top: 65px;

        right: 0;

        width: 220px;

        z-index: 1001;
    }

    .nav-links {
        display: none;

        width: 100%;

        margin: 0;

        padding: 8px 0;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        background: white;

        border-radius: 0 0 0 12px;

        box-shadow:
            0 8px 20px rgba(0, 0, 0, 0.15);

        list-style: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;

        margin: 0;
        padding: 0;
    }

    .nav-links a {
        display: block;

        width: 100%;

        padding: 13px 20px;

        text-align: center;

        text-decoration: none;
    }


    /* -----------------------------------------------------
       HERO
    ----------------------------------------------------- */

    .hero {
        width: 100%;
        max-width: 100%;

        min-height: 100vh;

        padding:
            100px 20px 60px;

        display: flex;

        flex-direction: column;

        justify-content: center;

        align-items: center;

        gap: 25px;

        text-align: center;

        overflow: hidden;
    }


    /* Hero content */

    .hero-content {
        width: 100%;
        max-width: 500px;

        display: flex;

        flex-direction: column;

        align-items: center;
    }


    /* Profile photo */

    .hero-photo {
        width: 175px;
        height: 175px;

        flex-shrink: 0;

        border-width: 6px;

        margin: 5px auto 5px;
    }


    .hero-greeting {
        font-size: 18px;

        margin-bottom: 5px;
    }


    .hero-content h1 {
        width: 100%;

        margin-bottom: 12px;

        font-size: 42px;

        line-height: 1.1;

        word-break: normal;
    }


    .hero-content h2 {
        width: 100%;
        max-width: 320px;

        margin-bottom: 18px;

        font-size: 26px;

        line-height: 1.25;

        word-break: normal;
    }


    .hero-description {
        width: 100%;
        max-width: 330px;

        margin-bottom: 25px;

        font-size: 16px;

        line-height: 1.7;

        color: var(--muted);
    }


    /* Hero buttons */

    .hero-buttons {
        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 12px;
    }

    .hero-buttons a {
        width: 100%;
        max-width: 280px;

        padding: 13px 20px;

        text-align: center;
    }


    /* -----------------------------------------------------
       SECTION HEADINGS
    ----------------------------------------------------- */

    .section-heading {
        width: 100%;
        max-width: 500px;

        margin:
            0 auto 40px;

        text-align: center;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .section-heading p {
        font-size: 14px;
    }


    /* -----------------------------------------------------
       SKILLS
    ----------------------------------------------------- */

    .skills-container {
        width: 100%;
        max-width: 500px;

        margin: 0 auto;

        display: grid;

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

        gap: 15px;
    }

    .skill-card {
        width: 100%;

        min-height: 155px;

        padding: 20px 10px;

        text-align: center;

        display: flex;

        align-items: center;

        justify-content: center;
    }

    .skill-card h3 {
        font-size: 17px;
    }

    .skill-card p {
        font-size: 12px;
    }


    /* -----------------------------------------------------
       EXPERIENCE
    ----------------------------------------------------- */

    .experience-container {
        width: 100%;

        grid-template-columns: 1fr;

        gap: 18px;
    }

    .experience-card {
        width: 100%;

        padding: 22px;
    }


    /* -----------------------------------------------------
       PROJECTS
    ----------------------------------------------------- */

    .projects-container {
        width: 100%;
        max-width: 600px;

        margin: 0 auto;

        display: grid;

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

        gap: 15px;
    }

    .project-card {
        width: 100%;

        min-width: 0;

        padding: 20px 13px;

        text-align: center;
    }

    .project-card h3 {
        font-size: 16px;

        word-break: normal;
    }

    .project-card > p {
        font-size: 13px;

        line-height: 1.6;
    }

    .tech-container {
        justify-content: center;
    }

    .project-links {
        flex-direction: column;

        gap: 7px;
    }

    .project-link {
        width: 100%;

        text-align: center;

        font-size: 12px;
    }


    /* -----------------------------------------------------
       PROJECT FILTERS
    ----------------------------------------------------- */

    .filter-buttons {
        width: 100%;

        justify-content: center;

        gap: 7px;
    }

    .filter-btn {
        padding: 7px 13px;

        font-size: 12px;
    }


    /* -----------------------------------------------------
       ABOUT
    ----------------------------------------------------- */

    .about {
        width: 100%;
        max-width: 700px;

        margin: 0 auto;

        display: grid;

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

        gap: 15px;
    }

    .about-card {
        width: 100%;

        padding: 22px 15px;

        text-align: center;
    }

    .about-card h3 {
        font-size: 18px;
    }

    .about-card p {
        font-size: 13px;
    }


    /* -----------------------------------------------------
       ACHIEVEMENTS
    ----------------------------------------------------- */

    .achievements-container {
        width: 100%;

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

        gap: 15px;
    }

    .achievement-card {
        padding: 22px 12px;
    }


    /* -----------------------------------------------------
       QUALIFICATIONS
    ----------------------------------------------------- */

    .qualification-grid {
        width: 100%;

        grid-template-columns: 1fr;

        gap: 18px;
    }


    /* -----------------------------------------------------
       CONTACT
    ----------------------------------------------------- */

    #contact-form {
        width: 100%;
        max-width: 600px;

        margin: 0 auto;

        padding: 25px 18px;
    }

}


/* =========================================================
   SMALL PHONES
   480px AND BELOW
========================================================= */

@media (max-width: 480px) {

    section {
        padding-left: 15px;
        padding-right: 15px;
    }


    /* Header */

    header {
        padding-left: 14px;
        padding-right: 14px;
    }

    .logo {
        font-size: 21px;
    }

    .menu-toggle {
        font-size: 26px;
    }


    /* Hero */

    .hero {
        padding:
            95px 15px 50px;

        gap: 20px;
    }

    .hero-photo {
        width: 145px;
        height: 145px;

        border-width: 5px;
    }

    .hero-greeting {
        font-size: 17px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content h2 {
        max-width: 290px;

        font-size: 23px;

        line-height: 1.25;
    }

    .hero-description {
        max-width: 300px;

        font-size: 15px;

        line-height: 1.65;
    }

    .hero-buttons a {
        max-width: 270px;
    }


    /* Skills */

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

        gap: 12px;
    }

    .skill-card {
        min-height: 145px;

        padding: 15px 8px;
    }

    .skill-icon {
        font-size: 28px;
    }

    .skill-card h3 {
        font-size: 15px;
    }


    /* Projects */

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

        gap: 12px;
    }

    .project-card {
        padding: 17px 10px;
    }

    .project-card h3 {
        font-size: 15px;
    }

    .project-card > p {
        font-size: 12px;
    }

    .tech-badge {
        padding: 4px 7px;

        font-size: 10px;
    }


    /* About */

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


    /* Achievements */

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

        gap: 12px;
    }

    .achievement-card {
        padding: 18px 10px;
    }

    .achievement-card h3 {
        font-size: 18px;
    }


    /* Contact */

    #contact-form {
        padding: 20px 15px;
    }

}


/* =========================================================
   EXTRA SMALL PHONES
   360px AND BELOW
========================================================= */

@media (max-width: 360px) {

    .logo {
        font-size: 19px;
    }

    .dark-mode-btn {
        font-size: 9px;

        padding: 4px 7px;
    }

    .hero {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-photo {
        width: 130px;
        height: 130px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content h2 {
        font-size: 21px;
    }

    .hero-description {
        max-width: 280px;

        font-size: 14px;
    }

    .hero-buttons a {
        max-width: 250px;
    }

    .skills-container,
    .projects-container {
        gap: 10px;
    }

    .skill-card {
        min-height: 135px;
    }

    .project-card {
        padding: 15px 8px;
    }

}
/* =========================================================
   FORMSPREE CONTACT FORM
========================================================= */

.form-group {
    width: 100%;
    margin-bottom: 18px;
}


.form-group label {
    display: block;

    margin-bottom: 7px;

    font-weight: 600;
}


.form-group input,
.form-group textarea {
    width: 100%;

    box-sizing: border-box;

    padding: 12px 14px;

    border: 2px solid #d1d5db;

    border-radius: 8px;

    font-family: inherit;

    font-size: 15px;

    outline: none;

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


.form-group input:focus,
.form-group textarea:focus {
    border-color: #2f80b7;

    box-shadow:
        0 0 0 3px rgba(47, 128, 183, 0.15);
}


.form-group textarea {
    resize: vertical;

    min-height: 130px;
}


/* Formspree field errors */

[data-fs-error] {
    color: #dc2626;

    font-size: 13px;

    margin-top: 5px;
}


/* Invalid field */

[data-fs-field][aria-invalid="true"] {
    border-color: #dc2626;
}


/* General error */

.form-error {
    margin-bottom: 15px;

    text-align: center;

    font-weight: 600;
}


/* Success */

.form-success {
    color: #16a34a;

    font-size: 15px;

    font-weight: 600;

    text-align: center;

    margin-bottom: 15px;
}


/* Submit button */

.submit-btn {
    width: 100%;

    padding: 13px 20px;

    border: none;

    border-radius: 8px;

    background: #2f80b7;

    color: white;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.submit-btn:hover {
    background: #256b9a;

    transform: translateY(-2px);
}


/* Button while Formspree is submitting */

.submit-btn:disabled {
    opacity: 0.6;

    cursor: not-allowed;

    transform: none;
}