
:root {
  --text: #e3e3ec;
  --background: #0b0b15;
  --primary: #9a98da;
  --secondary: #26228b;
  --accent: #3c36e2;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Floating particles */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(156, 152, 218, 0.3);
  border-radius: 50%;
  animation: float 20s infinite linear;
}

@keyframes float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Topbar */
.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(11, 11, 21, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(156, 152, 218, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: #6BAFF8;
  text-decoration: none;
  letter-spacing: -0.5px;
  position: relative;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.nav-links a:hover {
  color: var(--primary);
  background: rgba(156, 152, 218, 0.1);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 2rem 2rem;
}

.hero-text {
  animation: slideInUp 1s ease-out;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero-text p {
  font-size: 1.1rem;
  color: rgba(227, 227, 236, 0.8);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons button {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-buttons button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  transition: left 0.3s ease;
  z-index: -1;
}

.hero-buttons button:hover::before {
  left: 0;
}

.hero-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(156, 152, 218, 0.3);
}

/* Shorten Card */
.shorten-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(156, 152, 218, 0.1);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  animation: slideInRight 1s ease-out;
  position: relative;
  overflow: hidden;
}

.shorten-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.shorten-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.shorten-card h2::before {
  font-size: 1.5rem;
}

/* Form Styles */
.coolinput {
  margin-bottom: 1.5rem;
}

.coolinput .text {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.coolinput .input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(11, 11, 21, 0.8);
  border: 2px solid rgba(156, 152, 218, 0.2);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.coolinput .input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(156, 152, 218, 0.1);
}

.coolinput .input::placeholder {
  color: rgba(227, 227, 236, 0.5);
}

/* Checkbox Styles */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background: rgba(156, 152, 218, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(156, 152, 218, 0.1);
  transition: all 0.3s ease;
}

.checkbox-row:hover {
  background: rgba(156, 152, 218, 0.1);
  border-color: rgba(156, 152, 218, 0.3);
}

.checkbox-container {
  position: relative;
  cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  cursor: pointer;
}

.checkmark {
  width: 20px;
  height: 20px;
  background: rgba(11, 11, 21, 0.8);
  border: 2px solid rgba(156, 152, 218, 0.3);
  border-radius: 6px;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-container input:checked + .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

.checkmark::after {
  content: '';
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-container input:checked + .checkmark::after {
  display: block;
}

.checkbox-row span {
  color: var(--text);
  font-weight: 500;
}

/* Password Container */
.password-container {
  display: none;
  animation: slideInUp 0.3s ease-out;
}

/* Captcha */
.captcha-wrapper {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
}

/* Submit Button */
.shorten-card button[type="submit"] {
  width: 100%;
  padding: 1.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.shorten-card button[type="submit"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  transition: left 0.3s ease;
  z-index: -1;
}

.shorten-card button[type="submit"]:hover::before {
  left: 0;
}

.shorten-card button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(156, 152, 218, 0.3);
}

/* Error Messages */
.shorten-card p[style*="color: red"] {
  color: #ff6b6b !important;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Mobile Responsive */
@media (max-width: 480px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(11, 11, 21, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 2rem;
    transition: right 0.3s ease;
  }

  .nav-links.show {
    right: 0;
  }

  .nav-links a {
    padding: 1rem 2rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(156, 152, 218, 0.1);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
    padding: 100px 1rem 2rem;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .shorten-card {
    padding: 2rem;
  }

  .topbar {
    padding: 1rem;
  }
}

/* Dropdown Button */
.dropbtn {
  color: white;
  padding: 16px;
  font-size: 16px;
  border: none;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--background);
  min-width: 160px;
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: var(--text);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: var(--background);}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {display: block;}

button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2rem;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary);
  transition: left 0.3s ease;
  z-index: -1;
}

button:hover::before {
  left: 0;
}

button:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(156, 152, 218, 0.3);
}