:root {
  --primary-gradient: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  --secondary-gradient: linear-gradient(135deg, #ffa500 0%, #ffcc33 100%);
  --accent-gradient: linear-gradient(135deg, #f4d03f 0%, #f7dc6f 100%);
  --bg-color: #fffef7;
  --card-bg: rgba(255, 215, 0, 0.1);
  --text-color: #2c2c2c;
  --text-inv: #f5f5f5;
  --text-muted: #666;
  --border-color: rgba(255, 215, 0, 0.3);
  --shadow-light: 0 8px 32px rgba(255, 193, 7, 0.2);
  --shadow-heavy: 0 20px 60px rgba(255, 193, 7, 0.3);
  --nav-bg: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] {
  --primary-gradient: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  --secondary-gradient: linear-gradient(135deg, #ffa500 0%, #ffcc33 100%);
  --accent-gradient: linear-gradient(135deg, #f4d03f 0%, #f7dc6f 100%);
  --bg-color: #1a1a1a;
  --card-bg: rgba(255, 215, 0, 0.1);
  --text-color: #f5f5f5;
  --text-inv: #2c2c2c;
  --text-muted: #cccccc;
  --border-color: rgba(255, 215, 0, 0.2);
  --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.5);
  --nav-bg: rgba(26, 26, 26, 0.9);
}

html {
  background-color: #000;
}

html:has(body[data-theme="light"]) {
  background-color: #fff;
}

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

body {
  opacity: 1;
  font-family: "Inter", sans-serif;
  color: var(--text-color);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.6;
  overflow-x: hidden;
  transition: all 1.05s ease;
  min-height: 100vh;
}

body.fade {
  opacity: 0;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 193, 7, 0.1) 0%, transparent 50%);
  z-index: -1;
  animation: float 20s ease-in-out infinite;
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 193, 7, 0.08) 0%, transparent 50%);
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(1deg); }
  66% { transform: translateY(10px) rotate(-1deg); }
}

nav {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: clamp(15px, 2.5vw, 25px) clamp(20px, 4vw, 50px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: clamp(25px, 4vw, 40px);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

nav .logo {
  font-family: "Orbitron", monospace;
  font-size: clamp(1.4em, 3.5vw, 2.2em);
  font-weight: 900;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  position: relative;
}

nav .logo::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scaleX(0.8); }
  50% { opacity: 1; transform: scaleX(1); }
}

.theme-toggle {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 10px 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2em;
  color: var(--text-color);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.theme-toggle::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  transition: left 0.3s ease;
  z-index: -1;
}

.theme-toggle:hover::before {
  left: 0;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  gap: 5px;
  z-index: 101;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  transition: all 0.3s ease;
  border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: clamp(15px, 3vw, 25px);
}

.nav-menu li x {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: clamp(12px, 1.5vw, 16px) clamp(20px, 2.5vw, 28px);
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  font-size: clamp(0.9em, 1.4vw, 1.1em);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

a {
  text-decoration: none;
  color: #236;
  font-weight: 500;
  display: inline-block;
}

[data-theme="dark"] a {
  color: #abf;
}

.nav-menu li x::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  transition: left 0.3s ease;
  z-index: -1;
}

.nav-menu li x:hover::before {
  left: 0;
}

.here::before {
  left: 0 !important;
}

.nav-menu li x:hover , .here {
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
  color: var(--text-inv);
}

main {
  padding: clamp(60px, 12vw, 120px) clamp(20px, 5vw, 50px);
  text-align: center;
  position: relative;
}

.hero-section {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

main h1 {
  font-family: "Orbitron", monospace;
  font-size: clamp(2em, 6vw, 4.5em);
  font-weight: 700;
  margin-bottom: 30px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  animation: slideUp 1s ease-out;
}

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

main p {
  font-size: clamp(1.1em, 2.2vw, 1.4em);
  margin-bottom: 20px;
  color: var(--text-muted);
  font-weight: 300;
  animation: slideUp 1s ease-out 0.2s both;
}

.description-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: clamp(25px, 4vw, 40px);
  margin: 40px auto;
  max-width: 600px;
  box-shadow: var(--shadow-light);
  animation: slideUp 1s ease-out 0.4s both;
}

.description-card p {
  margin: 0;
  font-size: clamp(1em, 2vw, 1.2em);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 60px;
  animation: slideUp 1s ease-out 0.6s both;
}

.feature-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--secondary-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.feature-card h3 {
  font-family: "Orbitron", monospace;
  font-size: 1.3em;
  margin-bottom: 15px;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  opacity: 0.1;
  animation: floatShape 15s linear infinite;
}

.shape:nth-child(1) {
  top: 20%;
  left: 10%;
  width: 60px;
  height: 60px;
  background: var(--primary-gradient);
  border-radius: 50%;
  animation-delay: 0s;
}

.shape:nth-child(2) {
  top: 60%;
  right: 15%;
  width: 40px;
  height: 40px;
  background: var(--secondary-gradient);
  transform: rotate(45deg);
  animation-delay: -5s;
}

.shape:nth-child(3) {
  bottom: 30%;
  left: 20%;
  width: 50px;
  height: 50px;
  background: var(--accent-gradient);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation-delay: -10s;
}

@keyframes floatShape {
  0% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(120deg); }
  66% { transform: translateY(10px) rotate(240deg); }
  100% { transform: translateY(0px) rotate(360deg); }
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 15px;
  gap: 6px;
  z-index: 101;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 15px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.hamburger:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

.hamburger span {
  width: 30px;
  height: 4px;
  background: var(--text-color);
  transition: all 0.3s ease;
  border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(9px, 9px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}
.mobile-nav {
  display: none;
}

@media (max-width: 768px) {
  .nav-menu:not(.mobile-nav) {
    display: none;
  }

  .mobile-nav {
    display: flex;
    position: fixed;
    left: -100%;
    top: 0;
    height: 100vh;
    flex-direction: column;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    width: 280px;
    text-align: center;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-heavy);
    border-right: 1px solid var(--border-color);
    padding: 100px 20px 50px;
    gap: 30px;
    z-index: 99;
    justify-content: flex-start;
  }

  .mobile-nav.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .theme-toggle {
    display: none;
  }

  .mobile-nav li {
    width: 100%;
  }

  .mobile-nav li x {
    width: 100%;
    text-align: center;
    font-size: 1.2em;
    padding: 18px 25px;
  }

  .mobile-theme-item {
    margin-top: auto;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
  }

  .mobile-theme-item .theme-toggle {
    display: flex;
    margin: 0 auto;
    font-size: 1.5em;
    padding: 15px 20px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  main h1 {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .mobile-nav {
    width: 100%;
  }

  .mobile-nav li x {
    width: calc(100% - 20px);
    margin: 0 10px;
  }
}