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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --bg-dark: #0a0a0a;
  --bg-card: rgba(255, 255, 255, 0.1);
  --border-color: rgba(255, 255, 255, 0.2);
}

/* Reset and layout fit */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

html, body {
  width: 100%;
  height: 100vh;
  overflow-x:hidden;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
}

a {
  text-decoration: none !important;
  color: var(--text-primary);
}

/* ====================== NAVBAR ====================== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  margin-right: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 10, 0.85);
}

/* Logo container */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

/* SVG inside logo */
.logo svg {
  width: 36px;
  height: 36px;
  stroke: var(--primary);
  transition: all 0.3s ease;
}

.logo:hover svg {
  stroke: var(--primary-dark);
}

/* Optional: adjust text next to SVG */
.logo span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}


/* Menu container */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Auth Buttons */
.auth-buttons {
  display: flex;
  gap: 1rem;
}

.login,
.signup {
  padding: 0.5rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

.login {
  background: rgba(255, 255, 255, 0.05);
}

.login:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.signup {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.signup:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

/* ====================== HAMBURGER ====================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ====================== HERO ====================== */
.hero {
  padding: 1.5rem 2rem;
  min-height: 100vh;
  overflow: hidden;
  align-items: center;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-top: 5.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 400;
  max-width: 580px;
}

.cta-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 4rem;
}

.cta-button {
  padding: 1.1rem 1.4rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-button-secondary {
  padding: 1.2rem 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-button:hover,
.cta-button-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.1);
}

/* Stats */
.stats-container {
  display: flex;
  gap: 4rem;
  margin-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
}

/* Graphics */
.hero-graphics {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  height: 100%;
  z-index: 1;
}

.gradient-orb {
  position: absolute;
  width: 800px;
  height: 800px;
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, rgba(99,102,241,0.1) 25%, rgba(99,102,241,0) 70%);
  border-radius: 50%;
  filter: blur(40px);
}

.floating-cards {
  position: relative;
  width: 100%;
  height: 100%;
}

.card {
  position: absolute;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.card-1 {
  width: 300px;
  height: 200px;
  top: 20%;
  right: 20%;
  --rotation: -15deg;
  transform: rotate(var(--rotation));
  animation: float 6s ease-in-out infinite;
}

.card-2 {
  width: 250px;
  height: 150px;
  top: 40%;
  right: 40%;
  --rotation: 10deg;
  transform: rotate(var(--rotation));
  animation: float 8s ease-in-out infinite;
}

.card-3 {
  width: 200px;
  height: 120px;
  top: 60%;
  right: 30%;
  --rotation: -5deg;
  transform: rotate(var(--rotation));
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform: translateY(0) rotate(var(--rotation)); }
  50% { transform: translateY(-20px) rotate(var(--rotation)); }
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 992px) {

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 70px;
    right: 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.2rem;
    background: rgba(10,10,10,0.95);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    width: 85%;
    max-width: 320px;
    display: none;
  }

  .nav-menu.active {
    display: flex;
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.6rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .auth-buttons {
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  .auth-buttons a {
    width: 100%;
  }

  .hero {
    padding: 1rem 2rem 4rem;
    text-align: center;
  }

  .hero-graphics {
    display: none;
  }

  .hero h1 {
    font-size: 4.5rem;
  }

  .hero p {
    font-size: 1.1rem;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-group {
    justify-content: center;
    flex-direction: row;
    gap: 1rem;
  }

  .stats-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .stat-item {
    align-items: center;
  }
}
