/* ================================
   Theme Variables
=================================== */
:root {
  --font-family: 'Segoe UI', sans-serif;
  --font-code: 'Fira Code', 'Courier New', monospace;

  /* Colors */
  --color-bg: #0f0f0f;
  --color-text: #ffffff;
  --color-text-muted: #cccccc;
  --color-code-bg: #1e1e2e;
  --color-link: #aaa;
  --color-link-hover: #fff;

  /* Bubbles */
  --color-bubble: rgba(255, 255, 255, 0.1);

  /* Animation & Layout */
  --border-radius: 6px;
  --transition: 0.3s ease;
}

/* ================================
   Base Styles
=================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  overflow: hidden;
}

/* Centered Content */
body {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  animation: fadeIn 2s ease-in-out forwards;
  text-align: center;
}

/* ================================
   Typography & Elements
=================================== */
.logo {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  opacity: 0;
  transform: scale(0.8);
  animation: zoomIn 1s ease-out 0.3s forwards;
}

h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(40px);
  animation: slideUp 1s ease-out 0.7s forwards;
  font-weight: 600;
}

p {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: var(--color-text-muted);
  max-width: 520px;
  line-height: 1.6;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(40px);
  animation: slideUp 1s ease-out 1.2s forwards;
}

code {
  font-family: var(--font-code);
  font-size: 0.95em;
  background: var(--color-code-bg);
  color: var(--color-text);
  padding: 0.2em 0.4em;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ================================
   Footer
=================================== */
footer {
  position: absolute;
  bottom: 20px;
  font-size: 0.85rem;
  color: #888;
  opacity: 0;
  animation: slideUp 1s ease-out 2s forwards;
  text-align: center;
  padding: 0 20px;
}

footer a {
  color: var(--color-link);
  text-decoration: underline;
  transition: color var(--transition);
}

footer a:hover {
  color: var(--color-link-hover);
}

/* ================================
   Bubble Animation
=================================== */
.bubble {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--color-bubble);
  border-radius: 50%;
  animation: floatUp 10s linear infinite;
}

/* ================================
   Keyframes
=================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes floatUp {
  0% { transform: translateY(100vh) scale(0.5); }
  100% { transform: translateY(-10vh) scale(1.2); }
}

/* ================================
   Responsive Design
=================================== */
@media (max-width: 768px) {
  .logo { font-size: 3rem; }
  p { max-width: 90%; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  p { font-size: 1rem; }
  .logo { font-size: 2.5rem; }
}
