body {
    background: #fdf6e3; /* cream background everywhere */
    color: #333;
    margin: 0;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
  }
  
  header {
    background: #2c3e50;
    color: white;
    padding: 1rem;
    text-align: center;
  }
  
  nav a {
    margin: 0 1rem;
    color: white;
    text-decoration: none;
  }
  
  nav a:hover {
    color: #1abc9c;
  }
  
  main {
    padding: 2rem;
  }
  
  footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
  }
  

  /* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Global */
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
  }
  
  /* Home Page */
  body.home-page {
    background: #fdf6e3; /* cream */
    color: #333;
  }
  
  .hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 2rem;
  }
  
  .hero-left {
    flex: 1;
    max-width: 50%;
  }
    
  
  .hero-left h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-left h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-left p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
  }
  
  .hero-left .btn {
    padding: 0.75rem 1.5rem;
    background: #333;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
  }
  
  .hero-right {
    flex: 1;
    max-width: 60%;   /* only half the screen */
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .slideshow {
    position: relative;
    width: 100%;        /* right side fills column */
    height: 80vh;       /* adjust height */
    overflow: hidden;   /* only show one image at a time */
  }
  
  .slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out; /* smooth slide */
  }
  
  .slides img {
    min-width: 100%;   /* each image takes full container width */
    height: 100%;
    object-fit: cover; /* crop nicely */
  }
  
  /* Navigation buttons */
  .slideshow button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
  }
  
  .slideshow .prev {
    left: 10px;
  }
  
  .slideshow .next {
    right: 10px;
  }
  
  
  .call-to-action {
    text-align: center;
    padding: 5rem 2rem;
    background: #fff;
  }
  
  .call-to-action h2 {
    margin-bottom: 1rem;
    font-size: 2.2rem;
  }
  
  .call-to-action p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
  }
  
  .call-to-action .btn {
    padding: 0.75rem 1.5rem;
    background: #0077cc;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
  }
  
  /* Header + Footer */
header {
    background: #fff;
    padding: 1rem;
    text-align: center;
  }
  
  nav a {
    margin: 0 1rem;
    text-decoration: none;
    color: #333;
    font-weight: 600;
  }
  
  nav a.active {
    color: #0077cc;
  }
  
  footer {
    background: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #666;
  }
  
  /* About Page */
  .about-container {
    max-width: 700px;
    margin: 5rem auto;
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }


  /* Projects Section - Dark background extends to end of page */
  .projects-section {
    margin-top: 25vh; /* pushes projects down so only the title shows initially */
    padding: 10vh 2rem 6rem 2rem; /* Large top padding to hide projects initially */
    background: #262524; /* Dark grey background */
    text-align: center;
    min-height: 100vh; /* Ensure it extends to full viewport height */
  }

  .projects-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ecf0f1; /* Light color for dark background */
    font-weight: 600; /* Match About Me thickness */
    cursor: pointer;
    transition: color 0.3s ease;
  }

  .projects-section h2:hover {
    color: #bdc3c7; /* Slightly darker on hover */
  }

  .projects-gallery {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
    padding: 1rem 0;
  }

  .project-item {
    flex-shrink: 0;
    width: 300px;
    text-align: center;
  }

  .project-item a {
    display: block;
    text-decoration: none;
    color: inherit;
  }

  .project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: none;
    border-radius: 0; /* Sharp 90-degree edges */
  }

  .project-item h3 {
    margin: 1rem 0 0 0;
    font-size: 1.2rem;
    color: #ecf0f1; /* Light color for dark background */
    font-weight: 400;
    text-align: center;
  }
  
  /* Contact Page */
  main {
    max-width: 720px;
    margin: 3rem auto;
    padding: 0 1rem;
  }

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

  main > p {
    margin-bottom: 2rem;
    color: #555;
  }

  section + section {
    margin-top: 2.5rem;
  }

  /* Contact info */
  [aria-labelledby="contact-info-heading"] a {
    color: #0077cc;
  }

  /* Form */
  form {
    display: grid;
    gap: 1rem;
  }

  form > div label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
  }

  input[type="text"],
  input[type="email"],
  textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 10px;
    font-size: 1rem;
    color: #111;
    transition: border-color 0.2s, box-shadow 0.2s;
  }

  textarea {
    resize: vertical;
  }

  input:focus,
  textarea:focus,
  button:focus {
    outline: none;
    border-color: #0077cc;
    box-shadow: 0 0 0 3px rgba(0,119,204,0.15);
  }

  button[type="submit"] {
    appearance: none;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    background: #0077cc;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease-in-out, transform 0.05s ease-in-out;
    width: max-content;
  }

  button[type="submit"]:hover {
    background: #005fa3;
  }

  button[type="submit"]:active {
    transform: translateY(1px);
  }

  /* Status message */
  #form-status {
    min-height: 1.25rem;
    color: #0077cc;
  }

  /* Current page indicator */
  a[aria-current="page"] {
    color: #0077cc;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  


  /*ADAPT TO PHONE:
  /* Phones (screen width ≤ 768px) */
@media (max-width: 768px) {
    header {
      flex-direction: column;
      align-items: flex-start;
    }
  
    nav ul {
      flex-direction: column;
      gap: 0.5rem;
    }
  
    .hero {
      flex-direction: column;   /* stack text above slideshow */
      text-align: center;
    }
  
    .hero-left, 
    .hero-right {
      max-width: 100%;          /* full width on small screens */
    }
  
    .slideshow {
      height: 40vh;             /* smaller height for mobile */
    }
  
    form {
      width: 100%;              /* form fits screen */
    }
  
    input, textarea, button {
      width: 100%;              /* nice big touch-friendly inputs */
    }

    /* Inside your existing @media (max-width: 768px) */
    .slideshow button {
        font-size: 1.2rem;        /* smaller icons */
        padding: 0.3rem 0.6rem;   /* smaller clickable area */
        top: auto;                /* remove middle alignment */
        bottom: 10px;             /* move to bottom of slideshow */
        transform: none;          /* reset centering */
        background: rgba(0,0,0,0.4); /* slightly transparent background */
        border-radius: 50%;       /* make them circular */
    }
    
    .slideshow .prev {
        left: 10px;
    }
    
    .slideshow .next {
        right: 10px;
    }

    /* Projects gallery mobile */
    .projects-section {
      padding: 2rem 1rem;
    }

    .projects-section h2 {
      font-size: 2rem;
      margin-bottom: 2rem;
    }

    .projects-gallery {
      gap: 1rem;
      padding: 0.5rem 0;
    }

    .project-item {
      width: 250px;
    }

    .project-image {
      height: 150px;
    }
  
  }
  