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

:root {
  --sage-green: #9ba17b;
  --warm-beige: #f5f0e1;
  --soft-brown: #9d775a;
  --muted-gold: #c4a35a;
  --sun-yellow: #f5c94e;
  --white-smoke: #fdfdfd;
  --text-dark: #2c3e2d;
  --text-medium: #5a6b5d;
  --text-light: #8b9d8e;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(
    135deg,
    var(--warm-beige) 0%,
    var(--white-smoke) 50%,
    #f8f6f0 100%
  );
  color: var(--text-dark);
  overflow: hidden;
  height: 100vh;
  cursor: default;
}

/* Add custom cursor for different interactions */
.main-content {
  cursor: default;
}

.logo {
  cursor: pointer;
}

.main-heading,
.sub-heading {
  cursor: default;
  user-select: none;
}

/* Ensure text is always visible */
::selection {
  background: rgba(155, 161, 123, 0.3);
  color: var(--text-dark);
}

::-moz-selection {
  background: rgba(155, 161, 123, 0.3);
  color: var(--text-dark);
}

.container {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Enhanced Background Animation */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    var(--sage-green) 0%,
    rgba(155, 161, 123, 0.3) 40%,
    transparent 70%
  );
  opacity: 0.15;
  animation: float 25s infinite linear;
  filter: blur(1px);
}

.floating-element:nth-child(1) {
  top: 10%;
  left: 20%;
  width: 120px;
  height: 120px;
  animation-delay: 0s;
  animation-duration: 30s;
}

.floating-element:nth-child(2) {
  top: 70%;
  left: 80%;
  width: 60px;
  height: 60px;
  animation-delay: -8s;
  animation-duration: 22s;
}

.floating-element:nth-child(3) {
  top: 40%;
  left: 10%;
  width: 180px;
  height: 180px;
  animation-delay: -15s;
  animation-duration: 35s;
}

.floating-element:nth-child(4) {
  top: 20%;
  left: 70%;
  width: 90px;
  height: 90px;
  animation-delay: -22s;
  animation-duration: 28s;
}

.floating-element:nth-child(5) {
  top: 60%;
  left: 40%;
  width: 150px;
  height: 150px;
  animation-delay: -5s;
  animation-duration: 40s;
}

.floating-element:nth-child(6) {
  top: 80%;
  left: 15%;
  width: 75px;
  height: 75px;
  animation-delay: -12s;
  animation-duration: 25s;
}

.floating-element:nth-child(7) {
  top: 30%;
  left: 60%;
  width: 45px;
  height: 45px;
  animation-delay: -18s;
  animation-duration: 20s;
}

@keyframes float {
  0% {
    transform: translateY(0px) translateX(0px) rotate(0deg) scale(0.8);
    opacity: 0.1;
  }
  25% {
    opacity: 0.3;
    transform: translateY(-20vh) translateX(10px) rotate(90deg) scale(1);
  }
  50% {
    opacity: 0.2;
    transform: translateY(-40vh) translateX(-10px) rotate(180deg) scale(1.1);
  }
  75% {
    opacity: 0.15;
    transform: translateY(-60vh) translateX(15px) rotate(270deg) scale(0.9);
  }
  100% {
    transform: translateY(-100vh) translateX(0px) rotate(360deg) scale(0.8);
    opacity: 0;
  }
}

/* Geometric Background Patterns */
.geometric-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.pattern-circle {
  position: absolute;
  border: 1px solid rgba(155, 161, 123, 0.1);
  border-radius: 50%;
  animation: rotate 60s linear infinite;
}

.pattern-circle:nth-child(1) {
  width: 300px;
  height: 300px;
  top: 20%;
  left: 60%;
  animation-delay: 0s;
}

.pattern-circle:nth-child(2) {
  width: 500px;
  height: 500px;
  top: 40%;
  left: 20%;
  animation-delay: -20s;
  animation-direction: reverse;
}

.pattern-circle:nth-child(3) {
  width: 200px;
  height: 200px;
  top: 60%;
  left: 70%;
  animation-delay: -40s;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Enhanced Logo Section */
.logo-section {
  margin-bottom: 4rem;
  animation: logoEntrance 2s ease-out;
}

.logo-container {
  position: relative;
  filter: drop-shadow(0 10px 30px rgba(155, 161, 123, 0.2));
}

.logo {
  width: 120px;
  height: 120px;
  color: var(--sage-green);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: breathe 6s ease-in-out infinite;
}

.logo:hover {
  transform: scale(1.2) rotate(10deg);
  color: var(--muted-gold);
  filter: drop-shadow(0 15px 35px rgba(196, 163, 90, 0.3));
}

@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2) rotate(-90deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* Content Section */
.content-section {
  text-align: center;
  position: relative;
}

/* Text Reveal Animation */
.text-reveal {
  overflow: hidden;
  margin-bottom: 3rem;
}

.main-heading {
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  animation: slideUp 2s ease-out 0.5s both, colorShift 8s ease-in-out infinite;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: color 0.3s ease;
}

.main-heading:hover {
  color: var(--sage-green);
}

/* Remove the problematic gradient text effect */

.sub-heading {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 400;
  color: var(--sage-green);
  line-height: 1.1;
  animation: slideUp 2s ease-out 1s both;
  opacity: 0.8;
}

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

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes colorShift {
  0%,
  100% {
    color: var(--text-dark);
  }
  33% {
    color: var(--sage-green);
  }
  66% {
    color: var(--muted-gold);
  }
}

/* Essence Symbols */
.essence-symbols {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  animation: symbolsEntrance 2s ease-out 1.5s both;
}

.symbol {
  font-size: 3rem;
  opacity: 0.7;
  transition: all 0.4s ease;
  cursor: pointer;
  animation: float-gentle 4s ease-in-out infinite;
  user-select: none;
}

.symbol:hover {
  cursor: grab;
}

.symbol:active {
  cursor: grabbing;
}

.symbol:nth-child(1) {
  animation-delay: 0s;
}
.symbol:nth-child(2) {
  animation-delay: 1s;
}
.symbol:nth-child(3) {
  animation-delay: 2s;
}

.symbol:hover {
  transform: scale(1.3) rotate(15deg);
  opacity: 1;
  filter: drop-shadow(0 5px 15px rgba(155, 161, 123, 0.4));
}

@keyframes symbolsEntrance {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.5);
  }
  to {
    opacity: 0.7;
    transform: translateY(0) scale(1);
  }
}

@keyframes float-gentle {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Interactive Ripple Effect */
.ripple-effect {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(155, 161, 123, 0.2) 0%,
    rgba(155, 161, 123, 0.1) 50%,
    transparent 70%
  );
  animation: rippleExpand 2s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleExpand {
  0% {
    width: 0;
    height: 0;
    opacity: 0.8;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

/* Mini Game Styles */
.game-container {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(155, 161, 123, 0.2);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 2s ease-out 2s both;
}

.game-ui {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.score-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--sage-green);
}

.score-label {
  font-size: 1rem;
}

.score-value {
  font-size: 1.5rem;
  color: var(--muted-gold);
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.game-toggle {
  background: var(--sage-green);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
  user-select: none;
}

.game-toggle:hover {
  background: var(--soft-brown);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(155, 161, 123, 0.3);
}

.game-toggle.active {
  background: var(--soft-brown);
  animation: pulse 2s ease-in-out infinite;
}

.game-hint {
  display: block;
}

.game-area {
  position: relative;
  height: 250px;
  background: linear-gradient(
    135deg,
    rgba(245, 240, 225, 0.3) 0%,
    rgba(253, 253, 253, 0.1) 100%
  );
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(155, 161, 123, 0.1);
  cursor: grab;
}

.game-area.active {
  animation: gameGlow 3s ease-in-out infinite;
  cursor: grabbing;
}

.collectible {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  animation: collectibleFloat 3s ease-in-out infinite;
}

.collectible:hover {
  transform: scale(1.2);
}

.collectible.pure {
  background: radial-gradient(
    circle,
    var(--sage-green),
    rgba(155, 161, 123, 0.8)
  );
  box-shadow: 0 0 15px rgba(155, 161, 123, 0.5);
}

.collectible.golden {
  background: radial-gradient(
    circle,
    var(--muted-gold),
    rgba(196, 163, 90, 0.8)
  );
  box-shadow: 0 0 15px rgba(196, 163, 90, 0.5);
}

.collectible.toxic {
  background: radial-gradient(circle, #e74c3c, rgba(231, 76, 60, 0.8));
  box-shadow: 0 0 15px rgba(231, 76, 60, 0.5);
}

.collectible.collected {
  animation: collectAnimation 0.5s ease-out forwards;
  pointer-events: none;
}

.game-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--sage-green);
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-message.show {
  opacity: 1;
}

.purity-trail {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--sun-yellow);
  border-radius: 50%;
  pointer-events: none;
  animation: trailFade 1s ease-out forwards;
}

@keyframes gameGlow {
  0%,
  100% {
    box-shadow: inset 0 0 20px rgba(155, 161, 123, 0.1);
  }
  50% {
    box-shadow: inset 0 0 30px rgba(155, 161, 123, 0.2);
  }
}

@keyframes collectibleFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-5px) rotate(180deg);
  }
}

@keyframes collectAnimation {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.5) rotate(180deg);
    opacity: 0.8;
  }
  100% {
    transform: scale(0) rotate(360deg);
    opacity: 0;
  }
}

@keyframes trailFade {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.5);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
  }

  .logo {
    width: 80px;
    height: 80px;
  }

  .essence-symbols {
    gap: 2rem;
    flex-wrap: wrap;
  }

  .symbol {
    font-size: 2.5rem;
  }

  .game-container {
    margin-top: 2rem;
    padding: 1.5rem;
    max-width: 100%;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .game-ui {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .game-area {
    height: 200px;
  }

  .collectible {
    width: 35px;
    height: 35px;
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .essence-symbols {
    gap: 1.5rem;
  }

  .symbol {
    font-size: 2rem;
  }

  .game-container {
    padding: 1rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }

  .game-area {
    height: 180px;
  }

  .collectible {
    width: 32px;
    height: 32px;
    font-size: 1.3rem;
  }

  .game-toggle {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }
}
