/* =========================
   RESET & GLOBAL STYLES
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, 'Segoe UI', sans-serif;
}

body {
    background-color: #f4f6f8;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

/* =========================
   LINKS
========================= */
a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #1e3a8a;
}

/* =========================
   NAVIGATION
========================= */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background-color: #1e3a8a;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: white;
    font-weight: 600;
    font-size: 18px;
    padding: 6px 12px;
    border-radius: 4px;
}

nav a:hover {
    background: #0077cc;
    color: #fff;
}

/* =========================
   HEADER / HERO SECTION
========================= */
header, #hero {
    text-align: center;
    margin-bottom: 30px;
}

header img, #hero img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid #1e3a8a;
}

header h1, #hero h1 {
    font-size: 2rem;
    color: #1e3a8a;
    margin-bottom: 10px;
}

header p, #hero p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

#hero {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* =========================
   MAIN CONTENT / SECTIONS
========================= */
main {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

section {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1 1 300px; /* grows, shrinks, min width */
    max-width: 400px;
}

#hero ul {
    list-style-type: disc;
    text-align: left;
    max-width: 300px;
    margin: 15px auto;
}

#hero li {
    margin-bottom: 8px;
}

/* =========================
   FOOTER
========================= */
footer {
    text-align: center;
    padding: 15px;
    background-color: #1e3a8a;
    color: white;
    margin-top: 40px;
    font-size: 0.9rem;
}

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 600px){
  section img {
    height: 150px;
  }
}
 {
    nav {
        flex-direction: column;
        gap: 10px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    main {
        flex-direction: column;
        align-items: center;
    }

    #hero {
        margin: 20px;
        padding: 20px;
    }

    #hero h1 {
        font-size: 28px;
    }

    /* Projects grid */
main {
    display: grid;
    grid-template-columns: repeat(3, 2fr);
    gap: 20px;
    padding: 20px;
}

section.project-card {
background: white;
  border-radius: 16px;       /* Soft, modern corners */
  overflow: hidden;         /* Clips the image to the card's corners */
  box-shadow: 0 4px 20px rgba(0,0,0,0.08); /* Subtle shadow for depth */
  transition: transform 0.3s ease; /* Smooth lift on hover */
}
}

section.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Project images */
section img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
}