@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap");

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

body {
  font-family: "Lato", sans-serif;
  color: #333;
  line-height: 1.6;
  background: #f4f7fb;
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
}

img {
  width: 100%;
}

/* ================= NAVBAR ================= */

.navbar {
  background: linear-gradient(180deg, #0a1024 0%, #10182f 100%);
  height: 90px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  position: sticky;
  top: 0;
  z-index: 100;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
}

.flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== BRAND ===== */

.brand {
  display: flex;
  align-items: center;
  gap: 0px;
  transition: transform 0.3s ease;
}

.brand:hover {
  transform: translateY(-2px);
}

.brand-logo {
  width: 158px;
  height: 158px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.brand:hover .brand-logo {
  transform: rotate(-5deg) scale(1.05);
}

.brand-text h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.5px;
  color: #f4f7ff;
}

.aether {
  color: #f4f7ff;
}

.cloud {
  background: linear-gradient(90deg, #247cff, #7b42ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 0.62rem;
  letter-spacing: 5px;
  margin-top: 6px;
  color: #5a6480;
  font-weight: 700;
  display: inline-flex;
  gap: 0.5rem;
}

.tagline span {
  transition:
    color 0.3s ease,
    background 0.4s ease;
}

.brand:hover .tagline span {
  background: linear-gradient(90deg, #247cff, #7b42ff, #00c6ff);
  background-size: 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 3s linear infinite;
}

/* ===== NAV LINKS ===== */

.navbar nav {
  background: transparent;
  border: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding: 0;
}

.navbar nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
}

.navbar nav a {
  color: #dbe4ff;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 16px;
  position: relative;

  transition:
    background 0.35s ease-out,
    color 0.35s ease-out,
    transform 0.35s ease-out,
    box-shadow 0.35s ease-out,
    padding 0.35s ease-out,
    letter-spacing 0.35s ease-out;
}

/* Hover Style */

.navbar nav a:hover {
  color: #f8e4ff;

  background: linear-gradient(
    135deg,
    rgba(180, 92, 255, 0.24),
    rgba(236, 72, 194, 0.24)
  );

  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);

  box-shadow:
    0 6px 18px rgba(180, 92, 255, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);

  transform: translateY(-1px) scale(1.03);
  letter-spacing: 0.5px;
  background-size: 200%;
  animation: navGlow 3s linear infinite;
}

/* Active Link */

.navbar nav a.active {
  color: #ffffff;

  background: linear-gradient(
    135deg,
    rgba(36, 124, 255, 0.22),
    rgba(123, 66, 255, 0.22)
  );

  box-shadow:
    0 4px 14px rgba(36, 124, 255, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

@keyframes navGlow {
  from {
    background-position: 0%;
  }

  to {
    background-position: 200%;
  }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .navbar {
    height: auto;
    padding: 15px 0;
  }

  .flex {
    flex-direction: column;
    gap: 15px;
  }

  .brand-text h1 {
    font-size: 1.6rem;
  }

  .tagline {
    font-size: 0.62rem;
    transition: all 0.4s ease;
  }

  .navbar nav ul {
    gap: 0;
  }
}

@keyframes gradientMove {
  0% {
    background-position: 0%;
  }

  100% {
    background-position: 300%;
  }
}
