:root {
  --c-bg: #f4f1ea;
  --c-text: #2c3e2d;
  --c-text-faded: #5a6b5b;
  --c-primary: #8A9A5B;
  --c-secondary: #E2725B;
  --c-accent: #D4AF37;
  --c-surface: rgba(255, 255, 255, 0.6);
  --c-surface-hover: rgba(255, 255, 255, 0.8);
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 20%),
    radial-gradient(circle at 80% 20%, rgba(138, 154, 91, 0.1) 0%, transparent 25%),
    radial-gradient(circle at 40% 80%, rgba(226, 114, 91, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 70% 60%, rgba(212, 175, 55, 0.1) 0%, transparent 20%);
  z-index: -1;
  animation: dappledLight 20s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes dappledLight {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2%, 3%) scale(1.05); }
  100% { transform: translate(3%, -2%) scale(1); }
}

::-webkit-scrollbar {
  width: 14px;
}

::-webkit-scrollbar-track {
  background: rgba(138, 154, 91, 0.1);
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--c-primary), var(--c-accent));
  border-radius: 10px;
  border: 3px solid var(--c-bg);
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--c-accent), var(--c-secondary));
  border: 3px solid var(--c-bg);
  background-clip: padding-box;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

h1, h2, h3 {
  color: var(--c-primary);
  font-weight: 300;
  letter-spacing: 1px;
}

h1 {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(138, 154, 91, 0.2);
}

.subdomain {
  color: var(--c-accent);
}

.header-text {
  text-align: center;
  font-style: italic;
  color: var(--c-text-faded);
  margin-bottom: 3rem;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

nav a {
  text-decoration: none;
  color: var(--c-text);
  font-weight: bold;
  padding: 1rem 2rem;
  background: var(--c-surface);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  transition: all 0.4s ease;
  display: inline-block;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(138, 154, 91, 0.3);
  animation: breathe 6s infinite ease-in-out alternate;
}

nav a:hover {
  background: var(--c-primary);
  color: #fff;
  border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(138, 154, 91, 0.2);
}

@keyframes breathe {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  33% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  66% { border-radius: 50% 50% 60% 40% / 40% 60% 50% 50%; }
  100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

section {
  background: var(--c-surface);
  border-radius: 20px 50px 30px 40px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

section:hover {
  transform: translateY(-2px);
}

a {
  color: var(--c-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--c-accent);
}

details {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  padding: 1rem;
  margin-top: 1rem;
  border: 1px solid rgba(138, 154, 91, 0.2);
}

summary {
  cursor: pointer;
  font-weight: bold;
  color: var(--c-primary);
  outline: none;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  margin-bottom: 0.8rem;
}

#services-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

#services-container > div, .service-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.4s ease;
  border: 1px solid rgba(138, 154, 91, 0.2);
  animation: breathe 8s infinite ease-in-out alternate-reverse;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#services-container > div:hover, .service-card:hover {
  background: var(--c-primary);
  color: white;
  border-radius: 20px;
  transform: scale(1.05);
}

#services-container > div a, .service-card a {
  color: inherit;
  font-weight: bold;
}

footer {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  color: var(--c-text-faded);
}

#warp {
  display: none;
}

.link-item, .contact-item, .donate-link, .footer-link, .extension-link {
  display: flex;
  align-items: center;
  padding: 0.8rem 1.2rem;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 20px 40px 30px 50px;
  margin-bottom: 0.8rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(138, 154, 91, 0.1);
}

.link-item:hover, .contact-item:hover, .donate-link:hover, .footer-link:hover, .extension-link:hover {
  background: rgba(138, 154, 91, 0.2);
  transform: translateX(5px);
  border-radius: 30px;
}

.contact-label {
  font-weight: bold;
  margin-right: 1rem;
  color: var(--c-primary);
  min-width: 60px;
}

.crypto-address {
  display: block;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.8rem;
  border-radius: 10px;
  word-break: break-all;
  font-family: monospace;
  margin-top: 0.5rem;
  color: var(--c-text-faded);
}

.qr-placeholder img {
  max-width: 100px;
  border-radius: 10px;
  margin-top: 0.5rem;
}

.crypto-item {
  background: rgba(255, 255, 255, 0.5);
  padding: 1.5rem;
  border-radius: 20px 40px 20px 40px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(138, 154, 91, 0.2);
}

.crypto-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  color: var(--c-secondary);
  margin-bottom: 0.5rem;
}

#ddate {
  text-align: center;
  font-style: italic;
  color: var(--c-accent);
  margin-bottom: 2rem;
}
