@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap");

:root {
  --cyan: #00e5ff;
  --purple: #7000ff;
  --magenta: #ff007f;
  --bg-dark: #030712;
}

html {
  font-size: clamp(14px, 1vw + 10px, 16px);
  scroll-behavior: smooth;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* --- ANIMATED AMBIENT BACKGROUND --- */
body {
  margin: 0;
  font-family:
    "Plus Jakarta Sans",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: var(--bg-dark);
  /* Multi-layered radial gradients moving behind content */
  background-image:
    radial-gradient(at 0% 0%, rgba(112, 0, 255, 0.25) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(0, 229, 255, 0.2) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(255, 0, 127, 0.15) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(0, 229, 255, 0.15) 0px, transparent 50%);
  background-size: 180% 180%;
  animation: ambientBackground 18s ease infinite alternate;
  background-attachment: fixed;
  color: #f3f4f6;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@keyframes ambientBackground {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Subtle Sci-Fi Overlay Grid Texture */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
    linear-gradient(
      90deg,
      rgba(255, 0, 0, 0.02),
      rgba(0, 255, 0, 0.01),
      rgba(0, 0, 255, 0.02)
    );
  z-index: 999;
  background-size:
    100% 3px,
    6px 100%;
  pointer-events: none;
  opacity: 0.6;
}

/* --- NAVIGATION --- */
nav {
  user-select: none;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  padding: 1.2rem 1.5rem;
  background: rgba(3, 7, 18, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

nav a {
  color: #d1d5db;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px var(--cyan);
}

nav a:hover {
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.8);
}

nav a:hover::after {
  width: 100%;
}

/* --- HERO SECTION --- */
.hero {
  user-select: none;
  text-align: center;
  padding: 100px 20px 80px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: 650px;
  background-image: url("images/etmtneon_logo.jpeg");
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  filter: contrast(120%) saturate(130%);
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 10%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 10%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* Pulsing Avatar Logo */
.logo {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(
    135deg,
    var(--cyan),
    var(--purple),
    var(--magenta)
  );
  box-shadow:
    0 0 30px rgba(0, 229, 255, 0.5),
    0 0 60px rgba(112, 0, 255, 0.3);
  animation: logoPulse 4s ease-in-out infinite alternate;
  transition: transform 0.4s ease;
}

@keyframes logoPulse {
  0% {
    box-shadow:
      0 0 25px rgba(0, 229, 255, 0.4),
      0 0 50px rgba(112, 0, 255, 0.2);
  }
  100% {
    box-shadow:
      0 0 40px rgba(0, 229, 255, 0.8),
      0 0 80px rgba(255, 0, 127, 0.5);
  }
}

.logo:hover {
  transform: scale(1.1) rotate(3deg);
}

/* --- HEADINGS & GRADIENTS --- */
h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 0;
  background: linear-gradient(
    135deg,
    #ffffff 20%,
    var(--cyan) 60%,
    var(--magenta) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.2));
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 0.5rem;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 1rem;
}

/* --- GLOW CARDS --- */
.card {
  position: relative;
  background: rgba(13, 18, 36, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 35px;
  margin: 40px auto;
  max-width: 1100px;
  width: 90%;

  /* Gradient border effect */
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Pseudo-element gradient border on card */
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(0, 229, 255, 0.4),
    rgba(112, 0, 255, 0.1),
    rgba(255, 0, 127, 0.3)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(0, 229, 255, 0.25);
}

.card img {
  border-radius: 16px;
  max-width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

  transition: transform 0.2s ease;
}

.card img:hover {
  transform: scale(1.12);
}

/* --- BUTTONS --- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00e5ff 0%, #7000ff 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  padding: 16px 32px;
  border-radius: 14px;
  cursor: pointer;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff007f 0%, #00e5ff 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(255, 0, 127, 0.6);
}

.btn:hover::before {
  opacity: 1;
}

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 50px 20px;
  color: #6b7280;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 80px;
  background: rgba(3, 7, 18, 0.95);
  letter-spacing: 1px;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 600px) {
  html {
    size: 40%;
  }
  nav {
    gap: 3.2rem;
    padding: 1rem;
  }

  nav a {
    font-size: 0.75rem;
    letter-spacing: 1px;
  }

  .card {
    padding: 22px;
    border-radius: 18px;
  }
}
