@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap");

:root {
  --bg-dark: radial-gradient(circle at center, #091224, #030712);
  --bg-light: radial-gradient(circle at center, #f5f5f5, #e0e0e0);
  --text-dark: #fff;
  --text-light: #111;
  --glow-dark: rgba(0, 110, 255, 0.25);
  --glow-light: rgba(0, 110, 255, 0.15);
  --button-gradient: linear-gradient(90deg, #006eff, #0a84ff);
  --section-bg-dark: rgba(255, 255, 255, 0.05);
  --section-bg-light: rgba(0, 0, 0, 0.05);
  --section-border-dark: rgba(255, 255, 255, 0.1);
  --section-border-light: rgba(0, 0, 0, 0.1);
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  background: var(--bg-dark);
  transition: all 0.3s ease;
  min-width: 320px;
}

body.light {
  background: var(--bg-light);
  color: var(--text-light);
}

.glow {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 120vw;
  height: 120vw;
  max-width: 1200px;
  max-height: 1200px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--glow-dark), transparent 60%);
  filter: blur(120px);
  z-index: -2;
  transition: background 0.3s;
}

body.light .glow {
  background: radial-gradient(circle, var(--glow-light), transparent 60%);
}

header {
  text-align: center;
  padding: 100px 20px 60px 20px;
}

header img {
  width: 180px;
  border-radius: 30%;
  margin-bottom: 20px;
}

header h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  margin: 0;
  letter-spacing: 2px;
}

header p {
  font-size: clamp(1rem, 3vw, 1.5rem);
  opacity: 0.7;
  margin: 10px 0 40px 0;
}

.section {
  width: 90%;
  max-width: 1100px;
  margin: 50px auto;
  padding: 40px 25px;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  background: var(--section-bg-dark);
  border: 1px solid var(--section-border-dark);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.alt-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 120px;
  margin-top: 80px;
}

.alt-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 70px;
  width: 100%;
  padding: 40px 0;
}

.alt-item.reverse {
  flex-direction: row-reverse !important;
}

.alt-img {
  width: 48%;
  max-width: 650px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
}

.alt-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  transition: transform 0.35s ease;
}

.alt-img:hover img {
  transform: scale(1.38);
}

.alt-text {
  width: 42%;
  max-width: 550px;
}

.alt-text h3 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.alt-text p {
  line-height: 1.55;
  opacity: 0.85;
  font-size: 1.15rem;
}

body.light .section {
  background: var(--section-bg-light);
  border: 1px solid var(--section-border-light);
}

.section h2 {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  margin-bottom: 20px;
}

.section p {
  line-height: 1.8;
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  opacity: 0.8;
}

.button {
  display: inline-block;
  background: var(--button-gradient);
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  color: white;
  font-size: 1.1rem;
  margin-top: 20px;
  transition: transform 0.25s, filter 0.25s;
}

.button:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.button-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.toggle-theme {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--button-gradient);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 100;
  transition: transform 0.3s, filter 0.3s;
}

.toggle-theme:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.theme-circle {
  position: fixed;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  top: 20px;
  right: 20px;
  background: white;
  z-index: 99;
  pointer-events: none;
  transform: scale(0);
  transition: transform 0.4s ease-out, background 0.3s;
}

body.light .theme-circle {
  background: #091224;
}

img.dashboard-img {
  max-width: 100%;
  border-radius: 15px;
  margin: 15px 0;
}

@media (max-width: 600px) {
  header h1 {
    font-size: clamp(1.5rem, 7vw, 3rem);
  }
  header p {
    font-size: clamp(0.9rem, 4vw, 1.2rem);
  }
  .button {
    font-size: 1rem;
    padding: 12px 22px;
  }
  .glow {
    width: 200vw;
    height: 200vw;
    filter: blur(80px);
  }
  .section {
    padding: 25px 15px;
  }
}
@media (max-width: 900px) {
  .alt-item,
  .alt-item.reverse {
    flex-direction: column !important;
    gap: 40px;
    padding: 25px 20px;
  }

  .alt-img {
    width: 100% !important;
    max-width: none;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    position: relative;
  }

  .alt-text {
    width: 100% !important;
    max-width: none;
    padding: 0 10px;
    text-align: center;
    position: relative;
    margin-bottom: 50px;
    margin-top: -60px;
  }
}

.clunny-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  opacity: 0.8;
}

body.light .clunny-footer {
  color: #000;
}

body.dark .clunny-footer {
  color: #fff;
}
