/* Reset + Base Styles */
html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: #fff;
    color: #2C2D3B;
  }

  h1 {
    text-align: center;
  }
  
  /* Header & Navigation */
  header {
    background-color: #000;
    color: #fff;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: bold;
  }
  
  .nav-links {
    display: flex;
    gap: 1.5rem;
  }
  
  .nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
  }

  .a:visited {
    color:#111;
  }
  
  .nav-links a:hover {
    color: #3D427A;
  }
  
  .hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
  }
  
  .theme-toggle {
    font-size: 1.4rem;
    cursor: pointer;
    color: #fff;
    margin-left: 1rem;
  }
  
  /* Hero Section */
  .hero {
    background: linear-gradient(#000, #2C2D3B);
    color: #fff;
    text-align: center;
    padding: 100px 20px;
  }
  
  .hero-img {
    width: 450px;
    height: 450px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #2C2D3B;
    margin-bottom: -20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  

  .hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 2s ease-out 0.2s forwards;
  }
  
  .hero-content h1 {
    font-size: 3rem;
    margin-bottom: -25px;
  }
  
  .hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }
  
  .cta-button {
    background-color: #3D427A;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
  }
  
  .cta-button:hover {
    background-color: #2C2D3B;
    color: #000;
  }
  
  /* Main Sections */
  main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
  }

  body {
    background: #2C2D3B;
    color: #fff;
  }
  
  section {
    margin-bottom: 3rem;
  }
  
  .projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .project-card {
    background: #3D427A;
    padding: 1.5rem;
    flex: 0 0 95%;
    max-width: 95%;
    display: inline-block;
    white-space: normal;
    border-radius: 15px;
    padding: 1.5rem;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }

  .project-card h2 {
    text-align: center;
    margin-top: -10px;
  }

  .project-card a:hover{
    color: #fff;
  }

  .project-img {
    width: 250px;
    height: 250px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: cover;
    margin-top: -75px;
    margin-bottom: -75px;
  }

  .studybuddy-card{
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 75px;
  }

  .studybuddy-card video {
  border: 4px solid #2C2D3B;
  border-radius: 10px;
  }

  .winQuest-card {
    position: relative;
    width: 95%;
  }

  .winQuest-card video {
    border: 2px solid #2C2D3B;
    border-radius: 10px;
    width: 50%;
    height: auto;
    display: block;
    margin-top: -15px;
    margin-bottom: 5px;
    margin-left: auto;
    margin-right: auto;
  }

  .winQuest-flex {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: -15px;
  }

  .TTT-images{
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
  }

  .ttt-img{
    height: 325px;
    width: auto;
    margin:auto;
  }

  .AR-card {
    position: relative;
    width: 95%;
  }

  .AR-card video {
    border: 2px solid #2C2D3B;
    border-radius: 10px;
    width: 50%;
    height: auto;
    display: block;
    margin-top: -15px;
    margin-bottom: 5px;
    margin-left: auto;
    margin-right: auto;
  }

  @media (max-width: 768px) {
    .hero-img {
      height: 95%;
      width: 95%;
    }

    .studybuddy-card {
      flex-direction: column;
      text-align: left;
    }

    .winQuest-flex {
      flex-direction: column;
      text-align: left;
    }

    .TTT-images img {
      height: 25%;
      width: 25%;
    }

    .winQuest-card video {
    width: 95%;
    }

    .AR-card video {
    width: 95%;
    }
  }

  #contact {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #contact form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  }

  .form-group {
    display: flex;
    flex-direction: column;
  }

  #contact .project-card{
    width: 85%;
    max-width: 600px;
  }

  #contact input,
  #contact textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: inherit;
    box-sizing: border-box;
  }

  #contact button {
    align-self: center;
  }

  .contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }

  /* ===== Carousel Styles ===== */
.carousel-container {
    padding-bottom: 1rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
  }
  
  .carousel-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  
  .carousel {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  }

  .carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
  }
  
  /* ===== Carousel Controls ===== */
  .carousel-controls {
    text-align: center;
  }
  
  .carousel-controls button {
    font-size: 1.5rem;
    margin: 0 10px;
    color: #fff;
    background: #3D427A;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .carousel-controls button:hover {
    background-color: #fff;
    color: #000;
  }

  .carousel-controls img{
    height: 50px;
    width: 50px;
    margin-top: 5px;
  }
  
  @media (max-width: 768px) {
    .project-card {
      flex: 0 0 85%;
    }
  }
  
  a:link {
    color: #fff
  }

  a:hover{
    color: #3D427A
  }
  
  /* Footer */
  footer {
    text-align: center;
    padding: 2rem 1rem;
    background: #3D427A;
    color: #fff;
    margin-top: -30px;
  }
  
  /* Responsive Nav */
  @media (max-width: 768px) {
    .nav-links {
      display: none;
      flex-direction: column;
      background-color: #111;
      position: absolute;
      top: 60px;
      right: 0;
      width: 200px;
    }
  
    .nav-links.active {
      display: flex;
    }
  
    .hamburger {
      display: block;
    }
  }
  
  /* Animations */
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  