/* Basic reset and global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    /* Add top margin so content isn't hidden behind the fixed navbar */
    margin-top: 80px;

    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
}

/* Make the header/nav fixed at the top */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999; /* ensures the navbar stays above other elements */
}

/* Navigation bar */
.navbar {
    background-color: #f5f5f5; /* Light background for nav */
    padding: 1rem;
    text-align: center;
}

.navbar ul {
    list-style: none;
}

.navbar li {
    display: inline-block;
    margin: 0 1rem;
}

.navbar a {
    text-decoration: none;
    font-weight: bold;
    color: #333;
    font-size: 0.95rem;
}

.navbar a:hover {
    opacity: 0.7; /* Subtle hover effect */
}

/* Hero section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: #eee; /* Light gray background */
    text-align: center;
}

.hero-content {
    max-width: 600px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero h2 {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.intro-text {
    font-size: 1rem;
    color: #444;
}

/* Sections */
.section {
    padding: 2rem 1rem;
    max-width: 900px;
    margin: 1rem auto;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.section h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #333;
}

.section p,
.section ul,
.section ol {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.section ul,
.section ol {
    list-style-position: inside;
    margin-left: 1rem;
}


/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #f5f5f5;
    margin-top: 1rem;
}

html {
    /* smooth scrolling is optional */
    scroll-behavior: smooth;
    /* This pushes the target anchor down by 80px (match your header height) */
    scroll-padding-top: 80px;
}


/* Responsive adjustments */
@media screen and (max-width: 600px) {

    .hero {
        flex-direction: column;
        padding: 2rem 1rem;
    }

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

    /*.navbar li {*/
    /*    display: block;*/
    /*    margin: 0.5rem 0;*/
    /*}*/

    .section {
        margin: 0.5rem auto;
        border-radius: 0;
        box-shadow: none;
    }
}
