:root {
    --main-bg: #e2f0dd;
    --accent: hsl(103, 19%, 46%);
    --text: #516b47;
    --overlay-bg: #e2f0dd6d;
    --soft-shadow: rgba(0, 0, 0, 0.1);
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--main-bg);
    color: var(--text);
    line-height: 1.6;
    text-align: center;
  }
  
  .hero {
    background: url('assets/images/background.jpg') center/cover no-repeat;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  
  .overlay-card {
    background: var(--overlay-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px var(--soft-shadow);
    max-width: 450px;
    animation: floatIn 1.2s ease forwards;
  }
  
  .profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }
  
  h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent);
  }
  
  p {
    margin-bottom: 1rem;
    font-weight: 300;
  }
  
  .btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent);
    color: #e2f0dd;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
  }
  
  .btn:hover {
    background-color:  #4b6242;
  }
  
  .portfolio {
    padding: 4rem 2rem;
  }
  
  .gallery {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin-inline: auto;
    
  }
  
  .gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 12px var(--soft-shadow);
    transition: transform 0.3s ease;
  }
  
  .gallery img:hover {
    transform: scale(1.03);
  }
  
  html {
    scroll-behavior: smooth;
  }

  
  .contact {
    padding: 4rem 2rem;
  }
  
  /* Fade-In Scroll Animation */
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
  }
  
  .fade-in.appear {
    opacity: 1;
    transform: translateY(0);
  }

  /* Float-in Hero Animation */
  @keyframes floatIn {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @media (min-width: 1000px) {
    .gallery {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  
  /* 2 columns on tablets */
  @media (min-width: 600px) and (max-width: 999px) {
    .gallery {
      grid-template-columns: repeat(2, 1fr);
    }
  } 
  
  .footer {
    background-color: #6d8d60;
    color: #e2f0dd;
    padding: 2rem 1rem;
    font-size: 0.9rem;
    margin-top: 4rem;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
  }
  
  .footer p {
    margin: 0.4rem 0;
    font-weight: 300;
  }
  
  @media (max-width: 600px) {
    .hero {
      height: auto;
      padding: 2rem 1rem;
    }
  
    .overlay-card {
      padding: 1.5rem;
      max-width: 90%;
    }
  
    .profile-pic {
      width: 90px;
      height: 90px;
    }
  
    h1 {
      font-size: 1.8rem;
    }
  
    .overlay-card p {
      font-size: 0.95rem;
    }
  
    .btn {
      padding: 0.6rem 1.2rem;
      font-size: 0.9rem;
    }
  }