/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* Put gradient on html so it fills under browser chrome */
html {
  height: 100%;
  background: linear-gradient(135deg, #4fc3f7, #81d4fa, #b3e5fc);
  background-size: cover;
}

body, html {
  height: 100%;
  font-family: "Segoe UI", sans-serif;
}

/* Background */
body {
  margin: 0;
  min-height: 100dvh;           /* modern dynamic viewport unit (fallbacks below) */
  min-height: 100vh;
  -webkit-fill-available: fill-available;
  background: transparent;      /* let html show through */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  /* optional: stop the white overscroll bounce on some browsers */
  overscroll-behavior: none;
}}

/* Overlay */
body::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.1);
  z-index: 0;
}

/* Center Container */
.center-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: calc(env(safe-area-inset-top) + 20px) calc(env(safe-area-inset-right) + 20px) calc(env(safe-area-inset-bottom) + 20px) calc(env(safe-area-inset-left) + 20px);
}


html::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: rgba(0,0,0,0.06); /* subtle overlay */
  z-index: 0;
}

/* Logo */
.logo {
  opacity: 0;
  animation: fadeIn 1s forwards 0.5s;
}
.logo img {
  width: 500px;
  max-width: 80%;
  height: auto;
}

/* Navigation */
.nav-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 1s forwards 1.2s;
}
.nav-links a {
  text-decoration: none;
  padding: 15px 30px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
  transition: 0.3s;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Fade-in Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 20px;
  }
  .nav-links a {
    width: 80%;
    margin: 0 auto;
    padding: 12px 20px;
  }
  .logo img {
    width: 90%;
    max-width: 350px;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .nav-links a {
    width: 100%;
    font-size: 1rem;
    padding: 10px 15px;
  }
}
