html {
    scroll-padding-top: 70px; /* Adjust this value based on your header's height + a little buffer */
    scroll-behavior: smooth; /* Optional: Adds smooth scrolling effect */
  }
  
  /* --- Crucial Addition for Fixed Headers --- */
  /* You also need to ensure the main content isn't initially hidden */
  /* Add padding to the top of the main content area equal to the header height */
  
  main {
    padding-top: 70px; /* Match the scroll-padding-top value (or header height) */
  }


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

body {
    font-family: 'Poppins', sans-serif; /* Modern, clean font */
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8; /* Light background */
    overflow-x: hidden; /* Prevent horizontal scrollbars */
}

/* Header and Navigation */
header {
    background-color: #fff; /* White header */
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    position: sticky; /* Make header stick to top */
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
}

nav ul li {
    display: inline;
    margin: 0 1.5rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease; /* Smooth hover effect */
}

nav a:hover {
    color: #0077cc; /* Highlight on hover */
}

/* Hero Section */
#hero {
    background-color: #e0f2ff; /* Light blue background */
    padding: 6rem 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

#hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.5rem;
}

#hero h2 {
    font-size: 1.8rem;
    font-weight: 400;
    color: #555;
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 2rem;
}

/* Sections */
section {
    padding: 4rem 1rem;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 2rem;
    text-align: center;
}

/* About Section */
#about .container{
    text-align: center;
}

#about p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}
/* Experience Section */
#experience .experience-item {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    background-color: #fff;
}

#experience .experience-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#experience .experience-item .company {
    font-weight: 500;
    color: #0077cc;
    margin-bottom: 0.25rem;
}

#experience .experience-item .date {
    font-style: italic;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
}

#experience .experience-item .description {
    font-size: 1rem;
    color: #444;
}

/* Skills Section */


/* Apply to ALL elements with class="skills-list" */
.skills-list {
    list-style: none; /* Remove bullet points */
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap; /* Wrap skills to the next line */
    justify-content: center;
}

/* Apply to ALL <li> elements inside any .skills-list */
.skills-list li {
    background-color: #e0f2ff; /* Light blue */
    padding: 0.5rem 1rem;
    margin: 0.5rem;
    border-radius: 5px;
    font-weight: 500;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Specific styling for Technology list items */
#technologies .skills-list li {
    background-color: #d4f0d4; /* Option 1: Soft Mint Green */
    /* Or use one of the other options: */
    /* background-color: #c8e6c9; */ /* Option 2: Material Design Green 100 */
    /* background-color: #ddeedd; */ /* Option 3: Pale Sage Green */

    /* Keep other styles like padding, margin, border-radius consistent
       if you haven't already applied them via a general .skills-list li rule.
       If you HAVE a general rule, you might only need the background-color override.
       Example of inheriting/keeping other styles: */
    padding: 0.5rem 1rem;
    margin: 0.5rem;
    border-radius: 5px;
    font-weight: 500;
    color: #333; /* Ensure text is still readable */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}



/* Projects Section */
.project-item {
    margin-bottom: 2rem;
    border: none;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.5rem;
}

.project-item .description {
    font-size: 1rem;
    color: #444;
    text-align: center;
    margin-bottom: 1rem;
}
/* Buttons */
.button {
    display: inline-block;
    background-color: #0077cc; /* Primary blue color */
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.button:hover {
    background-color: #005fa3; /* Darker blue on hover */
}

/* Contact Section */
#contact {
    background-color: #f4f4f4; /* Light gray */
}

#contact p {
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 1.1rem;
    color: #444;
}

#contact a {
    color: #0077cc;
}

/* Footer */
footer {
    background-color: #222; /* Dark background */
    color: #fff;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

/* Responsive Design */
/*@media (max-width: 768px) {
    nav ul li {
        display: block;
        margin: 0.75rem 0;
    }*/


/* --- Ensure your header is actually fixed on mobile --- */
/* You'll likely need a media query for this */

@media (max-width: 768px) { /* Adjust breakpoint as needed */
    header {
      position: fixed; /* Or sticky */
      top: 0;
      left: 0;
      width: 100%;
      background-color: #fff; /* Give it a background so content doesn't show through */
      z-index: 1000; /* Make sure it stays on top */
      height: 60px; /* Example height - adjust */
      /* Add any other necessary styling (padding, box-shadow, etc.) */
    }
  
    /* Adjust scroll-padding and main padding specifically for mobile if header height changes */
    html {
      scroll-padding-top: 70px; /* Mobile header height + buffer */
    }
    main {
      padding-top: 70px; /* Mobile header height + buffer */
    }
  
    /* You might also need styles to make your mobile nav usable */
    /* e.g., hide the list by default, add a burger menu button, etc. */
    /* This example assumes the nav list is always visible for simplicity */
    header nav ul {
        display: flex; /* Or however you arrange items */
        justify-content: space-around; /* Example */
        list-style: none;
        padding: 0;
        margin: 0;
        height: 100%;
        align-items: center;
    }
     header nav ul li a {
        padding: 5px 10px; /* Adjust padding for touch targets */
     }
  

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 0.5rem;
    }

    section {
        padding: 3rem 0.5rem;
    }

    .project-item {
        padding: 1rem;
    }

    #skills .skills-list li {
        margin: 0.5rem 0.25rem;
    }
    #about p{
        font-size: 1rem;
    }
}

@media (min-width: 769px) {
    /* Reset or adjust styles if needed */
    header {
        position: static; /* Or relative, depending on your desktop layout */
        /* Reset other mobile-specific styles */
    }
    html {
        scroll-padding-top: 0; /* Or desktop header height if fixed there too */
    }
    main {
        padding-top: 0; /* Or desktop header height if fixed there too */
    }
 }