@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  width: 100%;
  height: 100%;
  background: #00032d;
  font-family: 'Space Grotesk', sans-serif;
  color: #ffffff;
  position: relative;
  scroll-behavior: smooth;
}

/* ===== NAV ===== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2.5rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  background: rgba(0, 3, 45, 0.6);
  backdrop-filter: blur(8px);
  transition: background 0.3s ease;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  transition: 0.3s ease;
}

nav a {
  text-decoration: none;
  color: #ffffff;
  border: 1px solid #ffffff;
  padding: 0.4rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  transition: 0.3s ease;
}

nav a.active, nav a:hover {
  background-color: #ffffff;
  color: #00032d;
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  cursor: pointer;
  z-index: 210;
  transition: all 0.3s ease;
}

.hamburger div {
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.hamburger.open div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open div:nth-child(2) {
  opacity: 0;
}
.hamburger.open div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MOBILE MENU ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    flex-direction: column;
    background: rgba(0, 3, 45, 0.97);
    backdrop-filter: blur(12px);
    width: 250px;
    height: 100vh;
    padding-top: 7rem;
    gap: 1.5rem;
    text-align: center;
    transition: right 0.4s ease;
    z-index: 200;
  }

  nav ul.active {
    right: 0;
  }

  nav ul li a {
    display: inline-block;
    font-size: 1rem;
    width: 70%;
    border: 1px solid #fff;
    border-radius: 999px;
    padding: 0.6rem 1rem;
  }

  .hero {
    padding-top: 130px;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  text-align: left;
  padding: 8rem 3rem;
  z-index: 90;
  min-height: 100vh;
}

.hero h1 {
  font-size: 5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 2.5rem;
  z-index: 90;
}

/* ===== TAGS ===== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 90;
  margin-top: 20px;
}

.tags span {
  border: 1px solid #ffffff;
  border-radius: 999px;
  padding: 0.5rem 1.5rem;
  color: #ffffff;
  font-weight: 500;
  font-size: 1.1rem;
  display: inline-block;
  opacity: 0;
  transform: translateY(-50px);
  animation: dropIn 0.8s ease-out forwards;
  animation-delay: calc(var(--i) * 0.1s);
  cursor: pointer;
  transition: 0.3s ease;
}

.tags span:hover {
  background-color: #ffffff;
  color: #00032d;
  transform: scale(1.05);
}

@keyframes dropIn {
  0% { opacity: 0; transform: translateY(-50px) rotate(-5deg); }
  70% { opacity: 1; transform: translateY(10px) rotate(2deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0); }
}

/* ===== FOOTER ===== */
footer {
  position: fixed;
  bottom: 15px;
  width: 100%;
  overflow: hidden;
  z-index: 50;
}

.footer-wrapper {
  display: inline-block;
  width: max-content;
}

.footer-text {
  display: inline-block;
  font-size: 0.9rem;
  color: #ffffff;
  white-space: nowrap;
  animation: scrollLeft 40s linear infinite;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== CANVAS ===== */
canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
}

/* ===== ABOUT PAGE ===== */
.about-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8rem 10%;
  flex-wrap: wrap;
  z-index: 90;
}

.about-text h1 {
  font-size: 5rem;
  line-height: 1.1;
  margin: 0;
  font-weight: 700;
}

.about-text h1 span {
  display: block;
  font-weight: 400;
  color: #a0a0a0;
  font-size: 3.5rem;
}

.about-image img {
  width: 380px;
  border-radius: 24px;
  object-fit: cover;
}

 /* ---------- ACCORDION ---------- */
    .grid-item.about {
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     padding: 1rem;
}
    .accordion-section {
      background-color: #00032d;
      padding: 80px 10%;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .accordion {
      width: 100%;
      max-width: 800px;
      background: #0a0f45;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0,0,0,0.4);
      margin-bottom: 40px;
    }

    .accordion-item {
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .accordion-header {
      padding: 20px 30px;
      cursor: pointer;
      font-size: 20px;
      font-weight: 500;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: 0.3s ease;
    }

    .accordion-header:hover {
      background-color: #10174f;
    }

    .accordion-header svg {
      transition: transform 0.3s ease;
    }

    .accordion-header.active svg {
      transform: rotate(180deg);
    }

    .accordion-content {
      max-height: 0;
      overflow: hidden;
      padding: 0 30px;
      background-color: #0e1447;
      transition: max-height 0.4s ease, padding 0.4s ease;
    }

    .accordion-content p {
      margin: 20px 0;
      font-size: 16px;
      color: #d3d3d3;
      line-height: 1.7;
    }

    .accordion-content.active {
      max-height: 400px;
      padding: 20px 30px;
      overflow-y: auto;
    }

    .experience-title {
      font-size: 28px;
      font-weight: 600;
      margin-bottom: 20px;
      color: #f5f5f5;
    }

    /* ---------- RESPONSIVE ---------- */
    @media (max-width: 900px) {
      nav {
        padding: 20px 30px;
      }

      .about-section {
        flex-direction: column;
        text-align: center;
      }

      .about-text h1 {
        font-size: 60px;
      }

      .about-text h1 span {
        font-size: 48px;
      }

      .about-image img {
        width: 300px;
      }
    }

    @media (max-width: 600px) {
      .about-text h1 {
        font-size: 42px;
      }

      .about-text h1 span {
        font-size: 28px;
      }

      .accordion-header {
        font-size: 18px;
      }

      .accordion-content p {
        font-size: 15px;
      }
    }

@media (max-width: 900px) {
  .about-section {
    flex-direction: column;
    text-align: center;
  }

  .about-text h1 {
    font-size: 60px;
  }

  .about-text h1 span {
    font-size: 48px;
  }

  .about-image img {
    width: 300px;
  }
}

@media (max-width: 600px) {
  .about-text h1 {
    font-size: 42px;
  }

  .about-text h1 span {
    font-size: 28px;
  }

  .accordion-header {
    font-size: 18px;
  }

  .accordion-content p {
    font-size: 15px;
  }
}
