/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Theme: DARK Glassmorphism */
  --bg: #0a0a14;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #6366f1; /* Indigo accent */
  --accent-secondary: #ec4899; /* Pink accent for gradients */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Typography Pair: Righteous (headings) + Poppins (body) */
  --font-heading: 'Righteous', cursive;
  --font-body: 'Poppins', sans-serif;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  background-attachment: fixed;
}

/* Background Texture: Geometric SVG pattern (subtle hexagons) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill-rule='evenodd' fill='%23ffffff' fill-opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Background Blobs for Glassmorphism */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  filter: blur(100px);
  opacity: 0.15;
  border-radius: 50%;
}

.blob-1 { top: -100px; left: -100px; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); }
.blob-2 { bottom: -100px; right: -100px; background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%); }

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

/* Layout Archetype: Horizontal Sections Magazine (paper tear edge) */
section {
  padding: 60px 0;
  position: relative;
  background: var(--bg);
}

/* Odd sections: full-bleed. Even sections: contained. */
section:nth-of-type(odd) {
  width: 100%;
}

section:nth-of-type(even) .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.container {
  width: 100%;
  padding: 0 5%;
}

/* Paper Tear Edge Dividers */
.section-divider {
  position: absolute;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--bg);
  z-index: 10;
}

.divider-top {
  top: -20px;
  clip-path: polygon(0% 100%, 5% 85%, 10% 95%, 15% 80%, 20% 90%, 25% 75%, 30% 85%, 35% 70%, 40% 80%, 45% 65%, 50% 75%, 55% 60%, 60% 70%, 65% 55%, 70% 65%, 75% 50%, 80% 60%, 85% 45%, 90% 55%, 95% 40%, 100% 50%, 100% 100%, 0% 100%);
}

.divider-bottom {
  bottom: -20px;
  clip-path: polygon(0% 0%, 5% 15%, 10% 5%, 15% 20%, 20% 10%, 25% 25%, 30% 15%, 35% 30%, 40% 20%, 45% 35%, 50% 25%, 55% 40%, 60% 30%, 65% 45%, 70% 35%, 75% 50%, 80% 40%, 85% 55%, 90% 45%, 95% 60%, 100% 50%, 100% 0%, 0% 0%);
}

/* Alternating Gradients */
section.gradient-bg {
  background: linear-gradient(3deg, #0a0a14, #121225);
}

/* Navigation: Classic Fixed Top Bar */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 20, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 5%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero: Minimal hero */
.hero {
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 5%;
}

.hero h1 {
  font-size: 5rem;
  margin-bottom: 1rem;
  color: var(--text);
  max-width: 900px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2rem;
}

/* Buttons: Sharp rectangular with 3px border */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 3px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn:hover {
  color: var(--bg);
}

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

.btn:hover::before {
  width: 100%;
}

/* Glass Panels / Cards */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-glass);
  transition: transform 0.3s ease;
}

.glass-panel:hover {
  transform: translateY(-5px);
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* Interactive: Progress Tracker */
.progress-tracker {
  margin: 40px 0;
}

.tracker-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 40px;
}

.tracker-steps::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--glass-border);
  z-index: 0;
}

.progress-bar {
  position: absolute;
  top: 20px;
  left: 0;
  height: 4px;
  background: var(--accent);
  z-index: 1;
  width: 0%;
  transition: width 0.5s ease;
}

.step-node {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-heading);
}

.step-node.active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 15px var(--accent);
}

.step-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.step-content.active {
  display: block;
}

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

/* Testimonials: Card Grid Masonry (3-column) */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.testimonial-card {
  padding: 1.5rem;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1rem;
}

.testimonial-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.stars {
  color: #fbbf24;
  margin-top: 5px;
}

/* Marquee: Partners */
.marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  padding: 30px 0;
  background: rgba(255,255,255,0.02);
}

.marquee-content {
  display: inline-block;
  animation: scroll 20s linear infinite;
}

.marquee-item {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0 40px;
  color: var(--text-muted);
  opacity: 0.6;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Newsletter Section */
.newsletter-section {
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 2rem auto 0;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: white;
  font-family: var(--font-body);
}

/* Footer: Gradient Footer */
footer {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  padding: 60px 0 20px;
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 1rem;
}

.social-links a {
  font-size: 1.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 20px 5%;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

/* Related Items Grid */
.related-grid {
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 3rem; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg);
    flex-direction: column;
    padding: 2rem;
    text-align: center;
  }
  .nav-links.show {
    display: flex;
  }
  .mobile-toggle { display: block; }
  .newsletter-form { flex-direction: column; }
  .tracker-steps { flex-wrap: wrap; justify-content: center; gap: 20px; }
  .tracker-steps::before, .progress-bar { display: none; }
}
