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

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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f7f9;
    color: #333;
    line-height: 1.6;
}

/* ==========================
   LINKS
========================== */

a {
    color: #00509e;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

header {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 2.5rem 1rem;
}

.profile-photo {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    margin-bottom: 1rem;
}

header h1 {
    font-size: 2.8rem;
    margin-bottom: .5rem;
}

header p {
    font-size: 1.1rem;
}

/* ==========================
   NAVIGATION
========================== */

nav {
    margin-top: 1.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

nav li {
    list-style: none;
}

nav a {
    color: white;
    padding: .7rem 1.2rem;
    border-radius: 5px;
    transition: background-color .3s;
}

nav a:hover {
    background-color: #00509e;
    text-decoration: none;
}

/* ==========================
   MAIN LAYOUT
========================== */

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;

    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* ==========================
   SIDEBAR
========================== */

aside {
    flex: 1;
}

aside section {
    margin-bottom: 2rem;
}

/* ==========================
   MAIN CONTENT
========================== */

.content {
    flex: 3;
}

/* ==========================
   SECTION CARDS
========================== */

section {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

section h2 {
    color: #003366;
    margin-bottom: 1rem;
    border-bottom: 2px solid #003366;
    padding-bottom: .5rem;
}

/* ==========================
   ARTICLES
========================== */

article {
    margin-bottom: 2rem;
}

article:last-child {
    margin-bottom: 0;
}

article h3 {
    color: #00509e;
    margin-bottom: .5rem;
}

/* ==========================
   LISTS
========================== */

ul {
    margin-left: 1.5rem;
    margin-top: .5rem;
}

li {
    margin-bottom: .5rem;
}

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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
    gap: 1rem;
}

.skills-grid ul {
    margin-left: 1.2rem;
}

/* ==========================
   ADDRESS
========================== */

address {
    font-style: normal;
}

address p {
    margin-bottom: .6rem;
}

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

footer {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
}


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

@media (max-width: 768px) {

    header h1 {
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    main {
        flex-direction: column;
    }

    aside,
    .content {
        width: 100%;
    }

    section {
        padding: 1.5rem;
    }

    .profile-photo {
        width: 140px;
        height: 140px;
    }
}