/* Global Styles */
:root {
  --water: #00bfff;
  --earth: #228B22;
  --fire: #ff4500;
  --air: #87CEEB;
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-blur: blur(10px);
}

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

body {
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  color: white;
  overflow-x: hidden;
}

/* Header */
header {
  height: 50vh;
  background: url('https://images.unsplash.com/photo-1506748686214-e9df14d4d9d0?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

header .overlay {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2rem 4rem;
  border-radius: 10px;
  text-align: center;
  backdrop-filter: blur(8px);
}

header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

header p {
  font-size: 1.2rem;
  color: #ccc;
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 3rem;
}

/* Cards */
.card {
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: var(--glass-blur);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Icons */
.icon {
  margin-bottom: 1rem;
}

.icon svg {
  width: 80px;
  height: 80px;
  transition: transform 0.5s ease;
}

.card:hover .icon svg {
  transform: rotate(10deg) scale(1.1);
}

/* Themed Coloring */
.water svg path {
  fill: var(--water);
}
.earth svg circle {
  fill: var(--earth);
}
.earth svg path {
  fill: #8B4513;
}
.fire svg path {
  fill: var(--fire);
}
.air svg path {
  fill: var(--air);
}
.air svg circle {
  fill: white;
  opacity: 0.6;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background: #000;
  color: #999;
  margin-top: 3rem;
}