/* ==============================
   Base & Reset
================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #f5f6f8;
}

/* ==============================
   Layout
================================ */

body > header,
body > main,
body > footer {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    background: #ffffff;
}

body > header {
    border-bottom: 3px solid #1f2937;
}

body > footer {
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

body {
    h1 {
        text-align: center;
    }
}

/* ==============================
   Typography
================================ */

h1 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 1.2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.4rem;
}

h3 {
    margin: 0;
    font-size: 1rem;
}

p {
    margin: 0.4rem 0;
}

/* ==============================
   Header / Contact
================================ */

header p {
    margin: 0.25rem 0;
}

address {
    font-style: normal;
    margin-top: 1rem;
}

address p {
    margin: 0.2rem 0;
}

/* ==============================
   Links
================================ */

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

/* ==============================
   Sections
================================ */

section {
    margin-bottom: 1.5rem;
}

article {
    margin-bottom: 1.5rem;
}

article header {
    margin-bottom: 0.5rem;
}

article header p {
    font-size: 0.9rem;
    color: #555;
}

/* ==============================
   Lists
================================ */

ul {
    margin: 0.5rem 0 0.5rem 1.2rem;
    padding: 0;
}

li {
    margin-bottom: 0.4rem;
}

/* ==============================
   Skills Layout Enhancement
================================ */

#skills-heading + ul,
#soft-skills-heading + ul,
#interests-heading + ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.5rem 1rem;
    list-style: disc;
}

/* ==============================
   Icon Styling
================================ */

.mdi {
    margin-right: 0.4rem;
    font-size: 1.1rem;
    vertical-align: middle;
    color: #374151;
}

/* ==============================
   Skills Grid
================================ */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.6rem 1.2rem;
    list-style: none;
    padding-left: 0;
}

.skills-grid li {
    display: flex;
    align-items: center;
}

/* ==============================
   Languages
================================ */

.languages-list {
    list-style: none;
    padding-left: 0;
}

.languages-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}


/* ==============================
   Print Styles
================================ */

@media print {

    body {
        background: #fff;
    }

    body > header,
    body > main,
    body > footer {
        max-width: 100%;
        padding: 1rem;
        border: none;
    }

    a {
        color: black;
        text-decoration: none;
    }

    a::after {
        content: "";
    }

    h2 {
        border-bottom: 1px solid #000;
    }

    footer {
        display: none;
    }
}

/* ==============================
   Responsive Improvements
================================ */

@media (max-width: 600px) {

    body > header,
    body > main,
    body > footer {
        padding: 1.2rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1rem;
    }

}
