/* —— Variables —— */
:root {
  --bg-base: #0a0a17;
  --accent: #b358f7;
  --glass-bg: rgba(15,15,23,0.6);
  --text-light: #e0e0e0;
  --grid-light: rgba(179,88,247,0.05);
}

/* —— Reset & Base Styles —— */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-base);
  color: var(--text-light);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* —— Animated Grid Overlay —— */
.grid-overlay {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 49%,
    var(--grid-light) 50%,
    var(--grid-light) 51%,
    transparent 52%
  );
  background-size: 100% 20px;
  animation: moveGrid 12s linear infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes moveGrid {
  to { background-position: 0 20px; }
}

/* —— Rain Canvas —— */
#rainCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* —— Background Layer —— */
.bg {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('bg.jpg') center/cover no-repeat;
  filter: brightness(0.4) contrast(1.3);
  z-index: 0;
  animation: bgShift 30s ease-in-out infinite;
}
@keyframes bgShift {
  50% { transform: scale(1.05) translateY(-10px); }
}

/* —— Utility Container —— */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 3;
}

/* —— Header & Nav —— */
.site-header {
  padding: 1rem 0;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--text-light);
  text-shadow: 0 0 8px var(--accent);
  display: inline-block;
  margin-right: 2rem;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}
nav {
  display: inline-block;
}
nav a {
  color: var(--text-light);
  margin-right: 1.5rem;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.5s forwards;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}
nav a:hover::after {
  width: 100%;
}
nav a:hover {
  text-shadow: 0 0 6px var(--accent);
}

/* —— Hero Section & Glassmorphism —— */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80vh;
  position: relative;
  z-index: 3;
}
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 500px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.7);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease-out 1s forwards;
}
.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 8px var(--accent);
  opacity: 0;
  animation: fadeIn 1s ease-out 1.2s forwards;
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeIn 1s ease-out 1.4s forwards;
}
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border: 2px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  opacity: 0;
  animation: fadeIn 1s ease-out 1.6s forwards;
  transition: background 0.3s, box-shadow 0.3s, color 0.3s;
}
.btn:hover {
  background: var(--accent);
  color: var(--bg-base);
  box-shadow: 0 0 12px var(--accent);
}

/* —— Footer —— */
footer {
  padding: 1rem 0;
  text-align: center;
  background: rgba(10,10,23,0.8);
  position: relative;
  z-index: 3;
  font-size: 0.9rem;
  opacity: 0;
  animation: fadeIn 1s ease-out 1.8s forwards;
}

/* —— Key Animations —— */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);     }
}
