/* =========================
   Global / Base Styles
   ========================= */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3 {
    margin: 0;
    padding: 0;
}

p {
    margin: 0.3em 0;
    font-size: 1em;
}

/* =========================
   Header (Hero) with BG Image + Overlay
   Works with your existing HTML (no class needed)
   ========================= */
header {
    position: relative;
    color: #FFF;
    text-align: center;
    padding: 3.5em 1em;                 /* taller hero feel */
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);

    /* Background image (replace URL with your working link or local path) */
    background-image: url('https://images.unsplash.com/photo-1503264116251-35a269479413?w=1600');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;      /* set to 'fixed' for parallax */
    background-color: #333333;          /* fallback color */
}

/* Dark overlay to keep text readable on any photo */
header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);      /* slightly lighter than 0.55 to avoid looking black */
    z-index: 0;
}

/* Keep header content above overlay */
header > * {
    position: relative;
    z-index: 1;
}

/* =========================
   Header Content Blocks
   ========================= */
.avatar-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;            /* centers on desktop too */
    max-width: 1100px;
}

.profile-picture {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid #FFF;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.profile-picture:hover {
    transform: scale(1.05);
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.personal-info {
    text-align: center;
}

h1 {
    font-size: 2em;
    margin-bottom: 0.5em;
}

/* Contact / Links under header */
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 0.5em;
}

.contact-info a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease-in-out;
}

.contact-info a:hover {
    color: #ffcc00;
}

/* Slight text shadow for readability on busy images */
header h1,
header p,
.contact-info a {
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* =========================
   Sections
   ========================= */
section {
    max-width: 800px;
    margin: 2em auto;
    padding: 1.5em;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

h2 {
    color: #000066;
    margin-bottom: 0.5em;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.3em;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin-bottom: 1em;
    line-height: 1.4;
}

li a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

li a:hover {
    color: #ff6600;
}

/* =========================
   Footer
   ========================= */
footer {
    text-align: center;
    padding: 1em;
    background-color: #333;
    color: #fff;
    font-size: 0.9em;
    border-top: 1px solid #444;
}

/* =========================
   Icons
   ========================= */
.fas,
.fab {
    font-family: 'Font Awesome 5 Free';
}

/* =========================
   Responsive
   ========================= */
@media screen and (max-width: 900px) {
    h1 { font-size: 1.75em; }
}

@media screen and (max-width: 768px) {
    .profile-picture {
        width: 150px;
        height: 150px;
    }
    
    h1 {
        font-size: 1.5em;
    }

    p {
        font-size: 0.95em;
    }

    .avatar-section {
        flex-direction: column;
        align-items: center;
    }

    section {
        padding: 1em;
    }
}
