:root {
  --blue: #38bdf8; /* Matches Earth Glow */
  --orange: #f79e38;
  --dark-bg: #081621;
  --text-grey: #94a3b8;
}

/* Animation Variables */
@property --pulse { syntax: '<length>'; inherits: false; initial-value: 80px; }
@property --pulse2 { syntax: '<length>'; inherits: false; initial-value: 56px; }
@property --r { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  background-color: var(--dark-bg);
  color: #ffffff;
  position: relative;
}

/* --- The Earth Animation (Fixed Background) --- */
.earth {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  aspect-ratio: 1;
  border-radius: 50%;
  background-image: url('https://i.postimg.cc/9QCCCVsQ/earth.png');
  background-repeat: repeat-x;
  background-size: cover;
  animation: earth 40s linear infinite, pulse 2s linear infinite alternate-reverse;
  z-index: 0;
  opacity: 0.8;
  
  box-shadow: 0 -1px 1px 1px white,
  -1px 1px 1px 1px #64BEC8, 
  0 0 var(--pulse) -20px #64BEC8, 
  inset 0 0 76px -10px #64BEC8,
  inset 0 0 var(--pulse2) -10px #64BEC8;
}

.earth:before, .earth:after {
  content: '';
  position: absolute;
  left: 70px;
  height: 10px;
  border-radius: 45%;
  filter: blur(12px);
  transform: rotate(var(--r));
  animation: rotation 10s linear infinite;
}

.earth:before {
  width: 14%;
  box-shadow: inset 0 0 70px 90px #A47478, 0 0 140px 70px #A47478;
}

.earth:after {
  width: 7%;
  box-shadow: inset 0 0 70px -50px white, inset 0 0 70px 90px #E5BC77, 0 0 130px 50px #E5BC77;
}

@keyframes earth { 0% { background-position: 0 0; } 100% { background-position: -199% 0; } }
@keyframes pulse { 0% { --pulse: 8rem; --pulse2: 5.6rem; --r: 0deg; } 100% { --pulse: 10rem; --pulse2: 3.6rem; --r: 180deg; } }
@keyframes rotation { from { --r: 0deg; } to { --r: 180deg; } }

/* --- Site Content --- */
.hero {
  flex: 1;
  max-width: 900px;
  margin: auto;
  padding: 20px;
  text-align: center;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.logo {
  width: 180px; /* Adjusted size */
  margin-bottom: 20px;
  border-radius: 12px; /* Smooth corners for the logo */
}

h1 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--blue); /* CHANGED: Light Blue color */
  text-shadow: 0 2px 15px rgba(56, 189, 248, 0.4); /* Glow effect on text */
  margin-bottom: 8px; /* CHANGED: Reduced gap significantly */
  margin-top: 0;
  font-weight: 700;
}

.description {
  font-size: clamp(16px, 2.5vw, 20px);
  line-height: 1.6;
  max-width: 750px;
  margin: 0 auto; /* CHANGED: No top margin to reduce gap */
  color: var(--text-grey); /* CHANGED: Softer grey color */
  text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

.description a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--orange);
  transition: all 0.3s;
}

.description a:hover {
  color: #ffb86c;
  border-bottom: 1px solid transparent;
}

/* Footer */
.footer {
  position: relative;
  z-index: 10;
  background: rgba(2, 6, 23, 0.6);
  color: #cbd5e1;
  padding: 15px;
  text-align: center;
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.visitor {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 8px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

#visitorCount { color: var(--blue); font-weight: 700; }
.copyright { font-size: 12px; color: #64748b; }
