@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ==================== ROOT VARIABLES ==================== */
:root {
  --primary: #60a5fa;
  --primary-dark: #3b82f6;
  --primary-light: #93c5fd;
  --secondary: #34d399;
  --accent: #fbbf24;
  --dark: #0a0f1e;
  --dark-light: #1a2332;
  --dark-card: #151b2b;
  --gray: #94a3b8;
  --gray-light: #cbd5e1;
  --white: #ffffff;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --dark-text: #f1f5f9;
  --light-text: rgba(255, 255, 255, 0.85);
  --border: rgba(96, 165, 250, 0.2);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* ==================== RESET & BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'DM Sans', sans-serif;
}

body {
  background: linear-gradient(135deg, #0a0f1e 0%, #1a2030 25%, #0f1829 50%, #1a1f35 75%, #0a0f1e 100%);
  background-attachment: fixed;
  background-size: 200% 200%;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  animation: gradientAnimation 15s ease infinite;
  position: relative;
}

/* Floating orbs background effects */
body::before {
  content: "";
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  top: -250px;
  right: -250px;
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -200px;
  left: -200px;
  animation: float 15s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: 0;
}

/* ==================== ANIMATIONS ==================== */
@keyframes float {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(50px, 50px);
  }
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==================== HEADER & NAVBAR ==================== */
header {
  background-color: rgba(10, 15, 30, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 0;
  position: relative;
  z-index: 1;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: 0.5rem;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.logo span {
  font-weight: 600;
}

.logo:hover {
  transform: translateY(-2px);
  text-shadow: 0 5px 15px rgba(96, 165, 250, 0.4);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  z-index: 100;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
  font-size: 0.95rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-light);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  padding: 0.5rem;
  z-index: 101;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 98;
  pointer-events: auto;
}

.nav-overlay.active {
  display: block;
}

/* ==================== BUTTONS ==================== */
.cta-button {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--primary-light);
  border: 1px solid var(--border);
  padding: 0.6rem 1.5rem;
  border-radius: 2rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.2);
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2) 0%, rgba(52, 211, 153, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cta-button:hover::before {
  opacity: 1;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4);
  border-color: var(--primary);
}

.secondary-button {
  background-color: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  padding: 0.6rem 1.5rem;
  border-radius: 2rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-block;
}

.secondary-button:hover {
  background: rgba(96, 165, 250, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(96, 165, 250, 0.3);
}

.btn-nav {
  padding: 0.6rem 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  color: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: 2rem;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.2);
}

.btn-nav:hover {
  background: rgba(96, 165, 250, 0.15);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4);
}

/* ==================== HERO SECTION ==================== */
.hero {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  background: transparent;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 15px rgba(96, 165, 250, 0.2);
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--text-primary);
  font-weight: 300;
  letter-spacing: -0.02em;
  font-family: 'Poppins', sans-serif;
}

.hero-title strong,
.hero-title .highlight {
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 0.3rem;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  animation: fadeInRight 0.8s ease-out;
}

.hero-image img,
.hero-img {
  max-width: 100%;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s, box-shadow 0.5s;
  border: 1px solid var(--glass-border);
}

.hero-image img:hover,
.hero-img:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 70px rgba(96, 165, 250, 0.3);
}

.hero-visual {
  position: relative;
  height: 500px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  animation: fadeInRight 0.8s ease-out;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  height: 100%;
  gap: 1px;
  background: var(--border);
}

.grid-item {
  background: linear-gradient(135deg, var(--dark-card), var(--dark-light));
  transition: all 0.3s ease;
}

.grid-item:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 0 30px rgba(96, 165, 250, 0.5);
}

.grid-item:nth-child(2),
.grid-item:nth-child(5),
.grid-item:nth-child(8) {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(96, 165, 250, 0.15));
}

/* ==================== SECTIONS ==================== */
.features,
.content-section {
  padding: 5rem 2rem;
  position: relative;
  background: transparent;
  z-index: 1;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-primary);
  font-weight: 300;
  letter-spacing: -0.02em;
  font-family: 'Poppins', sans-serif;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 3px;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* ==================== FEATURES GRID ==================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1) 0%, rgba(52, 211, 153, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(96, 165, 250, 0.3);
  border-color: var(--border);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
  position: relative;
  z-index: 1;
  font-family: 'Poppins', sans-serif;
}

.feature-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ==================== CONTENT GRID ==================== */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.content-text p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.05rem;
}

.content-text p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.content-image img,
.content-img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s;
  border: 1px solid var(--glass-border);
}

.content-image img:hover,
.content-img:hover {
  transform: scale(1.03);
}

/* ==================== PRODUCTS ==================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--glass-border);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(96, 165, 250, 0.3);
  border-color: var(--border);
}

.product-image {
  height: 200px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(52, 211, 153, 0.15));
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.product-content {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.product-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.product-features {
  list-style: none;
  margin-bottom: 1rem;
}

.product-features li {
  padding: 0.3rem 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.product-features li::before {
  content: "✓";
  color: var(--secondary);
  font-weight: bold;
}

/* ==================== FORMS ==================== */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--glass-border);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: #1a2332;
  color: var(--text-primary);
  padding: 0.5rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ==================== FOOTER ==================== */
footer {
  padding: 4rem 2rem 2rem;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--glass-border);
  background: var(--dark);
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.footer-section {
  margin-bottom: 2.5rem;
}

.footer-section:first-child {
  margin-bottom: 3rem;
}

.footer-section h3 {
  display: none;
}

.footer-section:first-child h3 {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-section:first-child p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.footer-links li {
  display: inline;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s;
  font-size: 0.95rem;
  position: relative;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-section:last-child .footer-links {
  margin-top: 1rem;
  opacity: 0.7;
}

.footer-section:last-child .footer-links a {
  font-size: 0.9rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.footer-bottom div {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
  .hero,
  .content-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
  }

  .hamburger {
    display: flex;
  }

  /* Hide nav-links by default on mobile */
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 75%;
    max-width: 280px;
    background: rgba(26, 77, 143, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    border-left: 1px solid var(--glass-border);
  }

  /* Show nav-links when active */
  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
  }

  /* Hide desktop CTA button on mobile */
  .navbar > .cta-button,
  .navbar > .btn-nav {
    display: none;
  }

  /* Show mobile CTA inside menu */
  .nav-links li.mobile-cta {
    display: block;
  }

  .nav-links li.mobile-cta .cta-button {
    display: block;
    margin-top: 1rem;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 3rem 1.5rem;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    justify-content: center;
  }

  .hero-buttons a {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1.5rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    gap: 0.5rem 1rem;
  }

  .footer-section:first-child p {
    font-size: 1rem;
  }

  .form-container {
    padding: 2rem 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .features-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    width: 85%;
  }

  .logo {
    font-size: 1.2rem;
    letter-spacing: 0.3rem;
  }
}

/* Hide mobile CTA on desktop */
@media (min-width: 769px) {
  .nav-links li.mobile-cta {
    display: none;
  }
}

/* ==================== UTILITY CLASSES ==================== */
.nav-slogan {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.05em;
}

/* Hide slogan on mobile */
@media (max-width: 768px) {
  .nav-slogan {
    display: none;
  }
}