/* Global */
* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Manrope', sans-serif;
    }

/* Headings (h1–h6) */
    h1, h2, h3, h4, h5, h6 {
      font-family: 'Space Grotesk', sans-serif;
      color: #b3d7fc;
    }

    body {
      background-color: #fff;
      color: #fff;
      letter-spacing: 0.5px; /* try 0.5px to 1px for modern look */
    }

    .btn-primary { 
      background-color: #003366;
      color: white;
      padding: 0.6rem 1.2rem;
      text-decoration: none;
      border-radius: 4px;
      display: inline-block;
      font-weight: 600;
      transition: background 0.3s;
    }

    .btn-primary:hover {
      background-color: #004080;
    }
/* Global */


/* Sidebar Navigation Menu */
    .sidebar-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center;
      position: fixed;
      top: 40px;
      left: 0;
      width: 240px;
      height: calc(100vh - 150px);
      background-color: #040404; /* ← solid black background */
      color: #fff;
      z-index: 2;
      transform: translateX(0);
      overflow-y: auto;
      scrollbar-width: none; /* Firefox */
      -ms-overflow-style: none; /* Internet Explorer 10+ */
      padding: 2rem 1.5rem 1.5rem 1.5rem; /* ⬅️ added top padding */
    }

    .sidebar-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
    }

    .toggle-btn {
      box-shadow: -1px 0 0 #040404; /* matches border color */
      position: fixed;
      top: 40px;
      left: 240px;
      width: 40px;
      height: 40px;
      background: #040404;
      color: #0077b5;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2.2rem;
      cursor: pointer;
      z-index: 999;
    }

    .sidebar ul {
      list-style: none;
      margin-top: 4rem;
      text-align: center;
    }

    .sidebar ul li {
      margin-bottom: 1.5rem;
    }

    .sidebar ul li a {
      text-decoration: none;
      color: rgb(255, 255, 255);
      font-size: 1.4rem;
      font-weight: 600;
      font-family: 'Space Manrope', sans-serif;
      
    }

    .sidebar-avatar {
      width: 160px;
      height: 160px;
      object-fit: cover;
      border-radius: 50%; /* Makes it a circle */
      border: 4px solid #003366;
      padding: 4px;
      display: block;
      margin: 0 auto 1.5rem;
    }

    .social-links {
      display: flex;
      justify-content: center;
      gap: 1rem;
      margin-top: 2rem;
    }

    .social-links a {
      font-size: 1.5rem;
      color: #0077b5;
      transition: color 0.3s ease;
    }

    .social-links a:hover {
      color: #0d8cd1; /* LinkedIn blue, adjust if needed */
    }


/* Tablet big */
    @media (max-width: 1024px) {
      .sidebar-wrapper {
        transform: translateX(-100%); /* hides it off screen*/
        transition: none; /* important: let GSAP control */
        z-index: 1000;
      }

      .main-content {
        margin-left: 0;
        transform: none !important;
      }

      .toggle-btn {
        position: fixed;
        left: 0;
        transform: translateX(0);
        z-index: 1100;
        transition: none;
      }
    }
/* Tablet big */

/* Tablet */
    @media (max-width: 480px) {
      .sidebar-wrapper {
        width: 200px;
        top: 0;
      }

  #overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(4px); /* the blur effect */
    -webkit-backdrop-filter: blur(4px); /*safari */
  }

  body.noscroll {
  overflow: hidden;
  height: 100vh;
  touch-action: none; /* Prevents swipe scrolling on mobile */
}

  .toggle-btn {
    top: 0;
  }

}
/* Tablet */

/* Sidebar Navigation Menu */

/* Main Sections */
    .main-content {
      margin-left: 280px;
      padding: 2rem 4rem;
      overflow-y: auto;

    }

    @media (max-width: 1024px) {
      .main-content {
        margin-left: 0;
        padding: 1.5rem; /* Or reduce if needed */
        width: 100%;
        transform: none !important;
      }
    }

    @media (max-width: 768px) {
      .main-content {
        margin: 0;     /* ✅ removes sidebar space */
        padding: 0;
        width: 100%;        /* ✅ ensure it uses full width */
      }
    }
/* Main Sections */

/* Hero Section */
    .hero {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 4rem;
      position: relative;
      background-image: url('images/pexels-kevin-ku-92347-577585.jpg');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      padding: 4% 2rem;
      color: white;
      overflow: hidden;
      border-radius: 20px;
    }

    .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.8); /* semi-transparent black overlay */
      z-index: 0;
    }

    .hero > * {
      position: relative;
      z-index: 1;
    }

    .hero-text {
      width: 100%;
    }

    .hero-text h1 {
      font-size: 2rem;
      font-weight: 700;
      margin-bottom: 1rem;
      text-align: center;
    }

    .hero-text p {
      font-size: 1rem;
      line-height: 1.5;
      margin-bottom: 1.5rem;
      text-align: center;
    }

    .hero-text button {
      padding: 0.6rem 1.2rem;
      font-size: 1rem;
      border: none;
      border-radius: 4px;
      margin-right: 1rem;
      cursor: pointer;
    }

    .hero-buttons {
      padding-top: 20px;
      display: flex;
      justify-content: center;
      gap: 2rem;
      margin-top: 1.5rem;
      align-items: center;     /* ✅ centers children (buttons) */
      margin: 0 auto;           /* ✅ Centers if it has a width */
    }

    .hero-buttons button {
      width: 100%;
      max-width: 240px;         /* ✅ same width for all buttons */
      text-align: center;
      margin: 0 auto;           /* ✅ centers button if anything goes off */
    }

  @media (max-width: 768px) {
  .hero {
    border-radius: 0;         /* optional: remove rounded corners */
  }
}  

  @media (max-width: 480px) {
  .hero {
    width: 100%;              /* ✅ ensure full width */
    margin: 0;                /* ✅ remove any default side margins */
    border-radius: 0;         /* optional: remove rounded corners */
    flex-direction: column;
    text-align: left;
    align-items: center;
    padding: 2.7rem 1.5rem;
    gap: 1.5rem;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 1.2rem;
    text-align: left;
    margin: 0 auto;   /* centers the whole text block */
  }

  .hero-text button {
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    width: 100%;
    max-width: 240px;       /* Keeps them uniform */
  }

  .hero-buttons {

    align-items: center;    /* ✅ Ensures buttons are centered */
  }
}

/* Hero Section */

/* Sections */
    .section {
      margin-bottom: 3rem;
    }

    .section h2 {
      font-size: 2rem;
      margin-bottom: 1rem;
      text-align: center;
    }

    .section p {
      font-size: 1rem;
      line-height: 1.6;
    }

    @media (max-width: 480px) {
      .section p {
        font-size: 1.2rem;
      }

    }
/* Sections */

/* About Section */
  .skills-section {
  background: #0d0d0d;
  color: #eee;
  padding: 1rem 2rem;
  border-radius: 12px;
}

.skills-section h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
}

.stack-category {
  text-align: left;
  margin-bottom: 2rem;
}

.stack-category h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #ccc;
}

.tech-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 1.5rem;
}

.tech-icons div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #0d0d0d;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-size: 1.2rem;
  color: #fff;
  transition: transform 0.2s ease;
}

.tech-icons div:hover {
  transform: scale(1.05);
}

.tech-icons img {
  height: 30px;
  width: 30px;
}

  @media (max-width: 768px) {
  #about {
    padding-left: 20px;
    padding-right: 20px;
  }

  #about h2 {
    margin-top: 40px;
  }
} 

  @media (max-width: 768px) {
  .skills-section {
    border-radius: 0;         /* optional: remove rounded corners */
  }
} 

@media (max-width: 480px) {
  .tech-icons {
    flex-direction: column;    /* stack vertically */
    align-items: flex-start;   /* ⬅️ align to the left */
    gap: .5rem;
  }

  .tech-icons div {
    width: auto;               /* don't stretch full width */
    margin-bottom: 0.75rem;    /* spacing between rows */
    padding: 0rem 1rem;
  }
}

/* About Section */

/* Portfolio Section */

.portfolio {
  margin-top: 4rem;
}

.portfolio-card {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
}

.portfolio h2 {
  text-align: center;
  font-size: 2rem;
  font-family: 'Space Grotesk', sans-serif;
}

.portfolio-card p {
  margin-bottom: 1rem;
  font-family: 'Manrope Grotesk', sans-serif;
  font-size: 1.1rem;
}

@media (max-width: 480px) {
  .portfolio-card p {
     /* optional */
    margin: 0 auto 1rem;   /* keeps it slightly indented and centered in block */
    font-size: 1.3rem;
  }

  .portfolio {
    margin-top: 40px;
  }
}
/* Portfolio Section */

/* Email Section */
.contact-section {
  padding: 2.5rem 2rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-section h2 {
  font-size: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  font-size: 1rem;
  border: 2px solid #1f1f1f;
  border-radius: 6px;
  width: 100%;
}

.contact-form button {
  padding: 0.8rem;
  background-color: #003366;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.contact-form button:hover {
  background-color: #004080;
}

.contact-form label {
  text-align: left;
  display: block;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #003366;
  box-shadow: 0 0 0 3px rgba(53, 127, 196, 0.15);
  transition: box-shadow 0.2s ease;
}

.honeypot-field { /* Hide honeypot field from users */
  display: none;
}

@media (max-width: 480px) {
.contact-section  {
  padding: 0rem 2rem;
  margin-top: 30px;
  }
.contact-section h2 {
  padding-bottom: 10px;
  }
}
/* Email Section */

/* Footer */
.site-footer {
  background-color: #0d0d0d;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  margin-top: 4rem;
}

.footer-content {
  max-width: 100%;
  margin: 0 auto;
}

.footer-content p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.footer-socials a {
  color: #0077b5;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: #0d8cd1; /* or #ccc or custom hover */
}

/* Footer */

/* background star animation */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -5; /* sits behind everything */
  background: black; /* or match your dark theme */
}
/* background star animation */




