/* GLOBAL RESET */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #0b0b0c; /* deep luxury black */
  color: #f2f2f2;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

/* FULL SCREEN FLEX LAYOUT */
.page-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* NAVIGATION — PREMIUM MINIMAL */
nav {
  background: rgba(12, 12, 14, 0.85);
  padding: 18px;
  text-align: center;
  flex: 0 0 auto;
  backdrop-filter: blur(10px);
}

nav a {
  color: #f2f2f2;
  margin: 0 26px;
  text-decoration: none;
  font-size: 21px;
  font-weight: 500;
  transition: 0.25s ease;
}

nav a:hover {
  color: #7ab8ff;
}

/* TOP MESSAGE — PREMIUM CELEBRATION */
.top-message {
  text-align: center;
  padding: 14px 0;
  flex: 0 0 auto;
  position: relative;
}

/* Spotlight behind header */
.top-message::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

/* Header text */
.top-message h1 {
  font-size: 52px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.4px;
  animation: shimmer 4s infinite linear;
}

/* Shimmer animation */
@keyframes shimmer {
  0% { text-shadow: 0 0 20px rgba(255,255,255,0.05); }
  50% { text-shadow: 0 0 40px rgba(255,255,255,0.12); }
  100% { text-shadow: 0 0 20px rgba(255,255,255,0.05); }
}

/* Underline animation */
.top-message h1::after {
  content: "";
  display: block;
  margin: 12px auto 0;
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, #7ab8ff, #ffffff, #7ab8ff);
  animation: underlineGlow 3s infinite ease-in-out;
}

@keyframes underlineGlow {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* Excellence Badge */
.excellence-badge {
  margin-top: 10px;
  font-size: 18px;
  color: #cfcfcf;
  opacity: 0.85;
  letter-spacing: 0.3px;
}

/* CANVAS WRAPPER */
.canvas-wrapper {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}

/* FIREWORKS CANVAS */
#fireworks {
  width: 100%;
  height: 100%;
  display: block;
}

/* FOOTER MESSAGE — PREMIUM SUBTLE */
.footer-message {
  flex: 0 0 auto;
  text-align: center;
  padding: 18px 0;
  background: rgba(12, 12, 14, 0.85);
  color: #dcdcdc;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.25px;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 10;
  padding-bottom: env(safe-area-inset-bottom);
}

/* Confetti burst */
.confetti {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #7ab8ff;
  opacity: 0.9;
  border-radius: 50%;
  animation: confettiFall 2s ease-out forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(200px) scale(0.4); opacity: 0; }
}

/* SIMPLE, CLEAN, CENTERED CONTENT FOR ABOUT & PROJECTS */
.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 24px;
  text-align: left;
  font-size: 20px;
  line-height: 1.7;
  color: #e5e5e5;
}

/* Page titles */
.container h1 {
  text-align: center;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #ffffff;
}

/* Paragraph spacing */
.container p {
  margin-bottom: 22px;
}

/* PREMIUM AWS-STYLE BACKGROUND PATTERN */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;

  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(225deg, rgba(255,255,255,0.04) 1px, transparent 1px);

  background-size: 40px 40px;
  opacity: 0.25;
}

/* MOBILE RESPONSIVE FIXES */
@media (max-width: 768px) {

  /* Allow scrolling on mobile */
  html, body {
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  /* Ensure fireworks area doesn't collapse */
  .canvas-wrapper {
    height: auto !important;
    min-height: 300px;
  }

  /* Heading */
  .top-message h1 {
    font-size: 26px;
  }

  /* Navigation */
  nav a {
    font-size: 16px;
    margin: 0 12px;
  }

  /* Excellence badge */
  .excellence-badge {
    font-size: 14px;
  }

  /* Fireworks button */
  #fireworksBtn {
    font-size: 14px !important;
    padding: 6px 12px !important;
  }

  /* Footer always visible */
  .footer-message {
    font-size: 13px;
    padding: 14px 0;
    position: relative !important;
    bottom: 0 !important;
    margin-top: 20px;
  }

  /* Visitor counter fix */
  #visitorCounter {
    top: 60px !important;
    right: 10px !important;
    font-size: 16px !important;
    padding: 6px 10px !important;
  }
}
