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

body {
  font-family: 'Inter', sans-serif;
  background-color: #0d0d0d;
  color: white;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.3s ease, color 0.3s ease;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse at 20% 20%, rgba(120, 119, 198, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 0%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
              radial-gradient(ellipse at 0% 50%, rgba(120, 255, 220, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 50%, rgba(120, 119, 255, 0.12) 0%, transparent 50%),
              radial-gradient(ellipse at 0% 80%, rgba(255, 180, 120, 0.1) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 100%, rgba(180, 120, 255, 0.08) 0%, transparent 50%);
  animation: modernGradientFlow 25s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
  transform: translate(-10%, -10%);
  z-index: -1;
}

body.light {
  background-color: #f4f4f4;
  color: #111;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  font-weight: bold;
  font-size: 2rem;
}

.theme-icon {
  font-size: 1.2rem;
  cursor: pointer;
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex-grow: 1;
  text-align: left;
  max-width: 650px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1rem;
  animation: fadeIn 1.5s ease;
}

.main-content h1 {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.2;
}

.main-content p {
  margin-top: 1rem;
  color: #aaa;
  font-size: 1rem;
}

body.light .main-content p {
  color: #555;
}

footer {
  display: flex;
  justify-content: center;
  padding: 5rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

footer a {
  color: inherit;
  text-decoration: none;
  font-size: 1.2rem;
  border: 2px solid #333;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.5s ease;
  min-width: 45px;
  min-height: 45px;
}

footer a:hover {
  background: rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}