@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  width: 100%;
  min-height: 100vh;
  background-color: #eae7db;
  overflow-x: hidden; /* Allow vertical scroll, block only horizontal */
}

nav {
  width: 100%;
  height: 10vh;
  position: sticky;
  top: 0;
  background: transparent;
  z-index: 1000;
}

.nav-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.logo {
  color: #24305e;
  font-size: 2rem;
  font-weight: bold;
}

.logo span {
  color: #0000FF;
}

/* Hamburger & Cancel icons */
.hamburg,
.cancel {
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 15px;
  color: #24305e;
  display: none;
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.nav-container .links {
  display: flex;
  flex-wrap: wrap;
}

.nav-container .links a {
  font-size: 1.1rem;
  color: #24305e;
  margin: 0 15px;
  text-decoration: none;
  font-weight: 550;
  transition: 0.3s;
}

.nav-container .links a:hover {
  color: #0000FF;
  border-bottom: 2px solid #0000FF;
}

/* Dropdown (mobile nav) */
.dropdown {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateY(-100%);
  backdrop-filter: blur(4px) brightness(40%);
  box-shadow: 0 0 20px black;
  transition: transform 0.3s ease-in-out;
}

.dropdown.active {
  transform: translateY(0);
}

.dropdown .links {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 20px 0;
}

.dropdown .links a {
  color: white;
  padding: 12px 0;
  font-size: 1.2rem;
}

.dropdown .links a:hover {
  background-color: #0000FF;
}

.dropdown .cancel {
  position: absolute;
  top: 15px;
  right: 20px;
  color: white;
}

/* Section */
section {
  width: 100%;
  min-height: 90vh;
}

.main-container {
  width: 100%;
  min-height: 90vh;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap; /* Helps on smaller screens */
}

.main-container .content {
  color: #24305e;
  width: min(90%, 500px);
}

.content h1 {
  font-size: clamp(1.5rem, 1rem + 2vw, 2.2rem);
  margin-bottom: 10px;
}

.content h1 span {
  font-weight: 700;
  color: #0000FF;
}

.content .typewriter {
  font-size: clamp(1.2rem, 1rem + 3vw, 2rem);
  font-weight: 700;
  margin: 10px 0;
}

.typewriter span {
  color: #0000FF;
}

.content p {
  font-size: clamp(0.9rem, 1vw + 0.5rem, 1.1rem);
  margin: 15px 0;
  line-height: 1.6;
}

.content button {
  padding: 0.8rem 1.5rem;
  background-color: #0000FF;
  color: white;
  border: none;
  outline: none;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.content button:hover {
  transform: scale(1.05);
  color: #0000FF;
  border: 2px solid #0000FF;
  background-color: transparent;
  box-shadow: 0 0 20px 2px #0000FF;
}




.main-container .image {
  width: min(90%, 400px);
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 30px #0000FF;
  display: flex;               /* Center content */
  align-items: center;         /* Vertical center */
  justify-content: center;     /* Horizontal center */
  background-color: transparent;      /* Optional: adds a clean background */
}

.main-container .image img {
  width: 100%;
  height: 100%;
  object-fit: contain;         /* Ensures H1.png fits without cropping */
  object-position: center;     /* Keeps image centered */
  padding: 10%;                /* Adds spacing so logo doesn’t touch edges */
}

/* Animation */
.main-container .image:hover {
  animation: animate 1.5s ease-in-out infinite;
}

@keyframes animate {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}


/* Tablet */
@media (max-width: 884px) {
  .logo {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 1.5rem;
  }

  .nav-container .links {
    display: none;
  }

  .hamburg {
    display: block;
  }

  .main-container {
    flex-direction: column-reverse;
    text-align: center;
    padding: 2rem 1rem;
  }

  .main-container .content {
    width: 100%;
  }

  .main-container .image {
    width: 60%;
  }
}

/* Mobile */
@media (max-width: 440px) {
  .main-container .image {
    width: 80%;
  }

  .content button {
    width: 100%;
    margin-top: 10px;
  }
}


/* Desktop dropdown */
.dropdown-container {
  position: relative;
}
.dropdown-container .dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  border-radius: 8px;
  z-index: 100;
  flex-direction: column;
}
.dropdown-container:hover .dropdown-content {
  display: flex;
}
.dropdown-container .dropdown-content a {
  display: block;
  padding: 10px 16px;
  color: #24305e;
  text-decoration: none;
  font-weight: 600;
  opacity: 0; /* for AOS animation */
}

/* Mobile dropdown */
.mobile-dropdown .mobile-dropdown-content {
  display: none;
  flex-direction: column;
  padding-left: 10px;
}
.mobile-dropdown .mobile-dropdown-content.show {
  display: flex;
}
.mobile-dropdown a {
  display: block;
  padding: 10px 0;
}


/* Hamburger lines */
.nav__toggle {
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav__toggle span {
  height: 3px;
  width: 100%;
  background: #000; /* change color if needed */
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* When active -> show X */
.nav__toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.open span:nth-child(2) {
  opacity: 0; /* hide middle line */
}

.nav__toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

