/* GLOBAL RESET & BODY STYLES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    text-decoration: none;
  }
  
  body {
    background: #fff;       /* White background for a bright, minimalist look */
    color: #333;            /* Dark gray text for good contrast */
    overflow-x: hidden;
  }

  /* Smooth scrolling */
  html {
    scroll-behavior: smooth;
  }

  #top {
    scroll-margin-top: 150px;
  }

  #projects {
    scroll-margin-top: 150px;
  }

  #contact {
    scroll-margin-top: 150px;
  }
  
  /* WRAPPER */
  .wrapper {
    width: 1280px;
    max-width: 95%;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* HEADER & NAVBAR */
/* Keep your existing header flex styles, but add the fixed positioning */
header {
    position: fixed;       /* Pin the header to the top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;          /* Sit above other elements */
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 40px 0 30px;  /* Same spacing you had before */
    
    /* IMPORTANT: Retain your flex rules so the logo and nav stay aligned */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
  
  /* The wrapper or container below the header should have some
     top margin or padding to offset the header's height */
     .hero-header, 
     section, 
     main {
       margin-top: 150px; /* or whatever the header’s height is */
     }

     #projects {
        margin-top: 0; /* removes that extra 150px above Projects */
        padding: 40px 0; /* optional: reduce from 60px 0 to 40px 0 */
      }      
  
  .logo {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-left: 40px; 
  }
  
  .logo-img {
    height: 45px;
    width: 45px;   /* or auto if it’s a wide logo */
    margin-right: 8px;
    object-fit: contain; /* ensures it doesn't stretch weirdly */    
  }
  .logo i {
    height: 45px;
    width: 45px;
    background-color: #00b4d8; /* Bright accent color for logo icon */
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    padding: 10px;
    margin-right: 5px;
    cursor: pointer;
    text-align: center;
  }
  
  .logo .logo-text {
    font-size: 24px;
    font-weight: 500;
    color: #333;
  }
  
  nav .togglebtn {
    width: 35px;
    height: 35px;
    position: absolute;
    top: 45px;
    right: 3%;
    z-index: 5;
    cursor: pointer;
    display: none;
  }
  
  nav .togglebtn span {
    display: block;
    background-color: #00b4d8;
    margin: 5px 0;
    width: 100%;
    height: 3px;
    transition: 0.3s;
    transition-property: transform, opacity;
  }
  
  nav .navlinks {
    list-style-type: none;
  }
  
  nav .navlinks li {
    display: inline-block;
  }
  
  nav .navlinks li a {
    color: #333;
    margin-right: 2.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  nav .navlinks li a:hover {
    color: #00b4d8;
  }
  
  /* HERO SECTION */
  .hero-header {
    width: 100%;
    background: #fff; /* Removed dark background, now white for minimalism */
    min-height: 80vh;
  }
  
  .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-top: 4rem;
  }
  
  .hero-pic {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid #f0f0f0; /* Lighter border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  #hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* or contain, depending on your preference */
    display: block;
  }

  .hero-pic img {
    height: 100%;
    width: 100%;
    transition: 0.5s;
  }
  
  .hero-pic img:hover {
    transform: scale(1.2);
  }
  
  .hero-text {
    max-width: 500px;
    display: flex;
    flex-direction: column;
  }
  
  .hero-text h1 {
    color: #00b4d8; /* Accent color for main heading */
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  
  .hero-text h5 {
    color: #333;
    font-size: 20px;
    margin-bottom: 1rem;
  }
  
  .hero-text h5 span {
    color: #00b4d8; 
    font-size: 20px;
  }
  
  .hero-text p {
    color: #555; /* Slightly lighter than #333 for paragraph text */
    line-height: 1.6;
    margin-bottom: 2rem;
  }
  
  .btn-group {
    margin: 20px 0;
  }
  
  .btn-group .btn {
    border: 2px solid #00b4d8;
    color: #fff;
    background-color: #00b4d8;
    padding: 12px 25px;
    margin: 5px 0;
    margin-right: 7px;
    border-radius: 30px;
    box-shadow: 0 5px 15px -5px rgba(255, 111, 97, 0.4);
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .btn-group .btn:hover {
    background-color: #fff;
    color: #00b4d8;
  }
  
  /* PROJECTS SECTION */
  #projects {
    padding: 20px 0;
    background-color: #fafafa; /* Light gray background for contrast */
    text-align: center;
  }
  
  #projects h2 {
    color: #00b4d8;
    margin-bottom: 10px;
    font-size: 2rem;
  }
  
  #projects .section-intro {
    color: #333;
    max-width: 600px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
  }
  
/* ----- Projects Grid Layout ----- */
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* space between cards */
    margin-top: 20px; /* space above grid */
  }
  
  .project-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 300px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .project-card img {
    /* Make sure the image doesn't overflow its container */
    width: 100%;
    height: 200px;  /* or any height you prefer */
    object-fit: contain; /* preserves aspect ratio and avoids cropping */
    display: block;      /* removes any extra inline spacing */
    margin: 0 auto;      /* centers horizontally if the parent is wider */
  }
  
  .project-card h3 {
    margin: 1rem 0;
    padding: 10px;
    font-size: 1.2rem;
    color: #333;
  }
  
  .project-card button {
    background-color: #fff;
    border: 2px solid #00b4d8; /* accent color */
    color: #00b4d8;
    padding: 8px 16px;
    margin-bottom: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s ease;
    font-weight: 500;
  }
  
  .project-card button:hover {
    background-color: #00b4d8;
    color: #fff;
  }
  
  /* ----- Modal Styles ----- */
  .modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999; /* Sit on top of everything else */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if content is long */
    background-color: rgba(0, 0, 0, 0.5); /* Black overlay */
  }
  
  .modal-content {
    background-color: #fff;
    margin: 5% auto; /* 5% from top, auto center horizontally */
    max-width: 700px;
    padding: 20px;
    border-radius: 6px;
    position: relative;
    text-align: center;
  }
  
  .modal-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
  }
  
  .modal-content h2 {
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
  }
  
  .modal-content p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
    text-align: left;
  }

  .link-btn {
    display: inline-block;
    background-color: #00b4d8; /* Accent color */
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 1rem;  /* some spacing above the button */
    transition: background-color 0.3s ease;
  }
  
  .link-btn:hover {
    background-color: #008bb5; /* Darker shade on hover */
  }
  
  /* The close (X) button */
  .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
  }
  
  .close:hover {
    color: #333;
  }
  
  
/* CONTACT SECTION */
#contact {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
  }
  
  #contact h2 {
    color: #00b4d8;
    margin-bottom: 20px;
    font-size: 2rem;
  }
  
  #contact .section-intro {
    color: #555;
    max-width: 600px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
  }
  
  /* The new container for social icons */
  .contact-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
  /* Style the icons */
  .contact-socials a {
    font-size: 1.5rem;  /* Increase or decrease to taste */
    color: #333;
    transition: color 0.3s ease;
  }
  
  .contact-socials a:hover {
    color: #00b4d8;
  }
  
  /* FOOTER */
  footer {
    background-color: #f8f8f8;   /* Light gray background */
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #ddd;  /* Subtle top border */
  }
  
  footer p {
    color: #333;
    margin: 0; /* No extra spacing */
  }
  
  /* RESPONSIVE NAVBAR (FOR SMALL SCREENS) */
  @media (max-width: 930px) {
    nav .togglebtn {
      display: initial;
    }
    .click {
      top: 45px;
    }
    .click span {
      position: absolute;
      margin-top: 12px;
    }
    .click span:first-child {
      transform: rotate(-40deg);
    }
    .click span:nth-child(2) {
      opacity: 0;
      margin: 0;
    }
    .click span:last-child {
      transform: rotate(45deg);
      top: 0;
    }
    nav .navlinks {
      position: absolute;
      top: 110px;
      right: -100%;
      bottom: 0;
      width: 60%;
      height: 100vh;
      background-color: #fff;
      z-index: 3;
      box-shadow: 5px 13px 30px rgba(0,0,0,0.1);
      transition: 0.5s;
      padding: 25px 0;
    }
    nav .navlinks li {
      display: block;
      margin: 15px 0;
    }
    nav .navlinks li a {
      display: block;
      margin: 0;
      text-align: center;
      color: #333;
    }
    nav .navlinks.open {
      right: 0;
    }
  }
  
  @media (max-width: 768px) {
    .container {
      flex-direction: column;
      padding-top: 2rem;
    }
    .hero-text {
      padding: 40px 0;
      text-align: center;
    }
  }
  