/* General Style Sub */
@charset "UTF-8";
:root{
  --dark:#0b1c2d;
  --gray:#6b7280;
  --light:#f9fafb;
  --transition:.45s ease;
}

*{margin:0;padding:0;box-sizing:border-box;}
body{
  font-family:'Inter',sans-serif;
  background:var(--base-60);
  color:var(--text-main);
  line-height:1.7;
  overflow-x:hidden;
  scroll-behavior:smooth;
}

/* ================= HEADER ================= */
header {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 14px 75px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  transition: background 0.45s ease, color 0.45s ease, padding 0.3s ease;
}

header.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  color: #111;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

header.sticky .logo {
  color: #111;
  text-shadow: none;
}

header.sticky .nav-links li a {
  color: #0b0b0b;
  background: rgba(255, 255, 255, 0.2);
}

header.sticky .hamburger span {
  background: #111;
}

/* ================= LOGO ================= */
.logo img {
  height: 24px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

/* ================= NAVIGATION ================= */
nav {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
  font-size: 14px;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.nav-links li a::after {
  content:'';
  position:absolute;
  width:0;
  height:2px;
  bottom:-6px;
  left:0;
  background: var(--blue, #007bff);
  transition: width 0.3s ease;
}

.nav-links li a:hover {
  color: var(--blue, #007bff);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width:100%;
}

.nav-links li a.active {
  font-weight: 600;
  color: var(--blue, #007bff);
}

/* ================= HAMBURGER ================= */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  cursor: pointer;
  z-index: 2100;
  transition: transform 0.3s ease;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.35s ease, background 0.35s ease;
}

/* Active (X icon) */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 9px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.hamburger:hover {
  transform: scale(1.1);
}


/* Tablet & below (<=1060px) */
@media screen and (max-width: 1060px) {
  header { padding: 14px 40px; }
  .nav-links { gap: 25px; font-size: 14px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  footer { padding: 50px 40px; font-size: 14px; }
}

/* Tablet (<=900px) */
@media screen and (max-width: 900px) {
  .hamburger { display: flex; }

  /* Default hidden state */
  .nav-links {
    position: fixed;
    left: 0;
    flex-direction: column;
    width: 100%;
    padding: 40px 25px 25px;
    gap: 25px;
    transform: translateY(-120%); /* fully hidden above viewport */
    transition: transform 0.4s ease, background 0.3s ease;
    z-index: 2000;
  }

  header:has(.nav-links.active) {
    background: none; /* removes background from header when nav-links is active */
  }

  /* Visible when active */
  .nav-links.active {
    z-index: -999;
    top: 0px; /* only set top when showing */
    padding: 65px 25px 0px;
    transform: translateY(0);
  }

  /* Non-sticky background + hamburger color */
  header:not(.sticky) .nav-links { background: rgba(255, 255, 255, 1); }
  header:not(.sticky) .hamburger span { background: #111; }

  /* Sticky background + hamburger color */
  header.sticky .nav-links { background: rgba(255, 255, 255, 1); }
  header.sticky .hamburger span { background: #111; }

  /* Link colors */
  header:not(.sticky) .nav-links li a { color: #111; }
  header.sticky .nav-links li a { color: #111; }

  .nav-links li a {
    font-size: 18px;
    transition: color 0.3s ease, transform 0.3s ease;
  }
  .nav-links li a:hover {
    color: var(--blue, #007bff);
    transform: translateX(5px);
  }
}

/* Mobile (<=480px) */
@media screen and (max-width: 480px) {
  header { padding: 12px 20px; }
  .nav-links li a { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  footer { padding: 30px 20px; font-size: 13px; }

  /* Keep same hide/show logic */
  .nav-links { transform: translateY(-120%); }
  .nav-links.active { top: 48px; transform: translateY(0); }

    header:has(.nav-links.active) {
      background: none; /* removes background from header when nav-links is active */
    }

    /* Visible when active */
    .nav-links.active {
      z-index: -999;
      top: 0px; /* only set top when showing */
      padding: 65px 25px 0px;
      transform: translateY(0);
    }

}

/* Very small devices (<=360px) */
@media screen and (max-width: 360px) {
  header { padding: 10px 15px; }
  .nav-links li a { font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 15px; }
  footer { padding: 25px 15px; font-size: 12px; }

  /* Keep same hide/show logic */
  .nav-links { transform: translateY(-120%); }
  .nav-links.active { top: 43px; transform: translateY(0); }

  header.sticky .nav-links li a { font-size: 12px; }  

  header:has(.nav-links.active) {
    background: none; /* removes background from header when nav-links is active */
  }

  /* Visible when active */
  .nav-links.active {
    z-index: -999;
    top: 0px; /* only set top when showing */
    padding: 65px 25px 0px;
    transform: translateY(0);
  }

}

/* Tiny devices (<=280px) */
@media screen and (max-width: 280px) {
  header { padding: 8px 10px; }
  .nav-links li a { font-size: 12px; }
  footer { padding: 20px 10px; font-size: 11px; }

  /* Keep same hide/show logic */
  .nav-links { transform: translateY(-120%); }
  .nav-links.active { top: 39px; transform: translateY(0); }

  header:has(.nav-links.active) {
    background: none; /* removes background from header when nav-links is active */
  }

  /* Visible when active */
  .nav-links.active {
    z-index: -999;
    top: 0px; /* only set top when showing */
    padding: 65px 25px 0px;
    transform: translateY(0);
  }

}