/* HelixCode Website - Complete Styling */

:root {
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --accent-1: #10b981;
  --accent-2: #f59e0b;
  --accent-3: #ef4444;
  --accent-4: #8b5cf6;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
}

[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-light: #334155;
  --border-medium: #475569;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all 0.3s ease;
  line-height: 1.6;
  font-size: clamp(0.875rem, 1vw, 1rem); /* Responsive font sizing */
}

.container {
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  max-width: 1200px; /* Re-add proper container constraint */
}

/* Navigation - Now Sticky Below Logo */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 0;
}

[data-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.95);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px; /* Re-add proper container constraint */
  margin: 0 auto;
  padding: 1rem 2rem;
  gap: 2rem;
}

/* Logo Header Section - Properly Centered and Above Navbar */
.logo-header-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem; /* Reduced vertical space by 50% (from 0.5rem) */
  padding: 2rem 2rem 0.5rem 2rem;
  width: 100%;
  background: var(--bg-primary);
  position: relative;
  z-index: 101;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.logo-img {
  height: 96px; /* Much bigger logo */
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.nav-title {
  font-size: 3rem; /* Much bigger title */
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.02em;
  text-align: center;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  z-index: 101;
}

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

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

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

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

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0 1rem; /* Add horizontal padding for spacing */
}

.nav-link:first-child {
  padding-left: 2rem; /* Extra left padding for Home from logo */
}

.nav-link:hover {
  color: var(--primary-600);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-500);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent-1); /* Light green from logo */
}

.nav-link.active::after {
  width: 100%;
  background: var(--accent-1); /* Light green from logo */
}

/* Theme Toggle as Nav Item */
.nav-theme-toggle {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}

.theme-toggle {
  position: relative;
  top: auto;
  right: auto;
  z-index: 1000;
}

.theme-toggle-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 60px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.theme-toggle-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 224px; /* Reduced from 280px by 20% to 224px */
  padding-bottom: 3rem; /* Add bottom padding to prevent buttons from touching edge */
  margin-top: 0;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
  animation: gradient-pulse 8s ease-in-out infinite;
  z-index: -1;
}

@keyframes gradient-pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.hero-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  max-width: 1200px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 500px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: white;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn-secondary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
  transition: left 0.6s ease;
}

.btn-secondary:hover::after {
  left: 100%;
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-500);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  position: relative;
  overflow: hidden;
}

.btn-outline::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.1), transparent);
  transition: left 0.6s ease;
}

.btn-outline:hover::after {
  left: 100%;
}

.btn-outline:hover {
  background: var(--bg-secondary);
  border-color: var(--primary-500);
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-sm);
}

.btn-large {
  padding: 1.5rem 2rem;
  font-size: 1.125rem;
}

.btn-xlarge {
  padding: 2rem 3rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.btn-icon {
  font-size: 1.25em;
}

/* Terminal Window */
.floating-card {
  perspective: 1000px;
}

.card-content {
  transform-style: preserve-3d;
  animation: float-card 6s ease-in-out infinite;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
  33% { transform: translateY(-20px) rotateX(5deg) rotateY(5deg); }
  66% { transform: translateY(10px) rotateX(-3deg) rotateY(-3deg); }
}

.terminal-window {
  background: var(--bg-secondary);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}

.terminal-header {
  background: var(--bg-tertiary);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.terminal-dots {
  display: flex;
  gap: 0.25rem;
}

.terminal-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-3);
}

.terminal-dots span:nth-child(2) {
  background: var(--accent-2);
}

.terminal-dots span:nth-child(3) {
  background: var(--accent-1);
}

.terminal-body {
  padding: 2rem;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
}

.terminal-line {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.terminal-output {
  color: var(--accent-1);
  animation: typewriter 0.5s ease-in-out;
}

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

/* Toast System */
.toast-container {
  position: fixed;
  top: 100px;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: slideInRight 0.3s ease-out;
  max-width: 350px;
  backdrop-filter: blur(10px);
}

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

/* Features Section */
.features {
  padding: 6rem 0 4rem; /* Added bottom padding */
  background: var(--bg-secondary);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s ease-out;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-1));
  border-radius: 2px;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); /* At least two columns, minimum 500px */
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(14, 165, 233, 0.2);
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-1);
  font-weight: bold;
}

/* Mission Section */
.mission {
  padding: 6rem 0 4rem; /* Added bottom padding */
  background: var(--bg-primary);
  position: relative;
}

.mission-content {
  max-width: 800px;
  margin: 0 auto;
}

.mission-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-primary);
}

.mission-statement {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.mission-points {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mission-point {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.mission-point:hover {
  transform: translateX(8px);
  box-shadow: 
    0 15px 30px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(16, 185, 129, 0.2);
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

.point-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.point-content h4 {
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.point-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Platforms Section */
.platforms {
  padding: 6rem 0 5rem; /* Increased bottom padding from 4rem to 5rem */
  background: var(--bg-secondary);
  position: relative;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); /* At least two columns, minimum 500px */
  gap: 2rem;
  margin-top: 3rem;
}

.platform-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

.platform-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(139, 92, 246, 0.2);
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

.platform-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.platform-title {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.platform-list {
  list-style: none;
  padding: 0;
}

.platform-list li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

/* Download Section */
.download {
  padding: 6rem 0 4rem; /* Added bottom padding */
  background: var(--bg-primary);
  position: relative;
}

.download-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.download-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.download-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.download-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.download-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--primary-500);
  margin-bottom: 0.5rem;
  animation: countUp 2s ease-out;
}

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

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

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr 1px 1fr; /* 4 columns with white separators */
  gap: 0; /* No gap, let separators handle spacing */
  margin: 0 auto 3rem;
  padding: 0 2rem;
  max-width: 1200px;
  align-items: start;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.footer-separator {
  width: 1px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.3); /* More visible white separator */
  align-self: stretch;
  justify-self: center;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-column h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-column a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--primary-500);
}

.footer-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-bottom a {
  color: var(--primary-500);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(45deg);
  opacity: 0.7;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Parallax Scrolling Effect */
.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-1) 50%, var(--accent-4) 100%);
  opacity: 0.03;
  transform: translateZ(-1px) scale(2);
  z-index: -1;
}

/* Responsive */
@media (max-width: 1200px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .hero-content {
    gap: 3rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  /* Navigation Mobile Fix */
  .container {
    padding: 0 1rem;
  }
  
  .nav-container {
    padding: 0.5rem 1rem;
  }
  
  .logo-header-section {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1rem 0.5rem 1rem;
  }
  
  .nav-logo {
    justify-content: center;
  }
  
  .logo-img {
    height: 48px; /* Smaller on mobile */
  }
  
  .nav-title {
    font-size: 1.5rem; /* Smaller on mobile */
  }
  
  .nav-content {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
  }
  
  /* Hero Section Mobile Fix */
  .hero {
    min-height: auto;
    padding-top: 120px; /* Reduced mobile header spacing */
    padding-bottom: 2rem;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    padding: 0 1rem; /* Reduced mobile padding */
    width: 100%;
    max-width: none;
  }

  .hero-text {
    flex: 1;
    max-width: none;
    width: 100%;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    width: 100%;
    max-width: none;
  }

  .hero-features-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .hero-feature {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }

  .hero-trust-badges {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .trust-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .btn-large {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  /* Section Headers Mobile Fix */
  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  /* Grid Layouts Mobile Fix */
  .features-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 1.5rem;
  }

  .platforms-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 1.5rem;
  }

  .integrations-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 1rem;
  }

  /* Feature Cards Mobile Fix */
  .feature-card {
    padding: 1.5rem;
    margin: 0 auto;
    max-width: none;
    width: 100%;
  }

  .feature-icon {
    font-size: 2rem;
  }

  .feature-title {
    font-size: 1.1rem;
  }

  .feature-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* Terminal Mobile Fix */
  .terminal-window {
    max-width: 100%;
    min-width: 250px;
    margin: 0 auto;
  }

  .terminal-body {
    padding: 1rem;
    font-size: 0.8rem;
  }

  .terminal-line {
    font-size: 0.8rem;
  }

  /* Cards Mobile Fix */
  .card {
    padding: 1.5rem;
    margin: 0 auto 1rem;
    max-width: none;
    width: calc(100% - 2rem);
  }

  .integration-card {
    padding: 1rem;
  }

  .integration-title {
    font-size: 1rem;
  }

  .integration-description {
    font-size: 0.85rem;
  }

  /* Footer Mobile Fix */
  .footer {
    padding: 2rem 0;
  }

  .footer-content {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 2rem;
    padding: 0 1rem;
  }

  .footer-brand {
    text-align: center;
    margin-bottom: 1rem;
  }

  .footer-links {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 1.5rem;
  }

  .footer-column {
    text-align: center;
  }

  .footer-separator {
    display: none; /* Hide separators on mobile */
  }

  .footer-bottom {
    padding: 1rem;
    text-align: center;
  }

  /* Animations Mobile Fix */
  .card:hover {
    transform: translateY(-2px);
  }

  .btn:hover {
    transform: translateY(-1px);
  }
}
  .container {
    padding: 0 1rem;
  }
  
  .nav-container {
    padding: 1rem;
  }
  
  .logo-header-section {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1rem 0.5rem 1rem;
  }
  
  .nav-logo {
    justify-content: center;
  }
  
  .logo-img {
    height: 64px; /* Smaller on mobile */
  }
  
  .nav-title {
    font-size: 2rem; /* Smaller on mobile */
  }
  
  .nav-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-theme-toggle {
    display: none;
  }
  
  .theme-toggle {
    position: relative;
    top: auto;
    right: auto;
    z-index: 1000;
  }
  
}

/* Tablet Responsive */
@media (max-width: 1024px) {
  .logo-header-section {
    gap: 1rem;
    padding: 1.5rem 1.5rem 0.75rem 1.5rem;
  }
  
  .nav-logo {
    justify-content: center;
  }
  
  .logo-img {
    height: 80px; /* Medium size on tablet */
  }
  
  .nav-title {
    font-size: 2.5rem; /* Medium size on tablet */
  }
  
  .nav-theme-toggle {
    margin-left: 0.5rem;
  }
}
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    padding: 0 1rem;
    width: 100%;
    max-width: 1200px;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .mission-point {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  
  .platforms-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .download-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 2rem;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .toast-container {
    right: 1rem;
    left: 1rem;
  }
  
  .toast {
    max-width: none;
  }
  
  .theme-toggle {
    top: 1rem;
    right: 1rem;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .btn-large {
    padding: 1.25rem 1.75rem;
    font-size: 1rem;
  }
  
  .btn-xlarge {
    padding: 1.5rem 2rem;
    font-size: 1.125rem;
  }
  
  .hero-actions {
    gap: 1rem;
  }
  
  .download-actions {
    gap: 1rem;
  }
  
  .footer-logo {
    font-size: 1.125rem;
  }
  
  .nav-logo {
    font-size: 1.125rem;
  }
  
  .feature-card {
    padding: 1rem;
  }
  
  .terminal-body {
    padding: 1rem;
    font-size: 0.8rem;
  }
}

/* ================================================ */

/* Fresh Hero Content Fix - Full Width Text */
.hero-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem; /* Increase margins for better width utilization */
  width: 100%;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-description {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  width: 100%;
  max-width: none;
}

/* Fresh Footer Layout - Complete Recreation */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem;
  width: 100%;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr; /* 4 columns with separators */
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  align-items: start;
}

.footer-brand {
  grid-column: 1;
}

.footer-separator {
  width: 1px;
  height: 200px;
  background-color: rgba(255, 255, 255, 0.5); /* More visible */
  align-self: stretch;
  justify-self: center;
}

.footer-links {
  grid-column: 3;
  display: grid;
  grid-template-columns: 1fr 1px 1fr; /* 2 sub-columns with separator */
  gap: 2rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-column:first-child {
  grid-column: 1;
}

.footer-column:last-child {
  grid-column: 3;
}

/* ================================================ */

/* Fresh Container Structure - Recreation */
.features-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.platforms-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.integrations-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.courses-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.testimonial-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.cta-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Fresh Section Layouts - Recreation */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

/* Fresh Footer Layout - Recreation */
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1px 1fr 1px 1fr; /* 4 columns with separators */
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  align-items: start;
}

.footer-separator {
  width: 1px;
  height: 200px;
  background-color: rgba(255, 255, 255, 0.4);
  align-self: stretch;
  justify-self: center;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1px 1fr; /* 2 sub-columns with separator */
  gap: 2rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
/* ================================================ */
/* SURGICAL FIXES - Only Target What's Broken */

/* Hide Mobile Menu Toggle on Desktop */
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Smooth Scrolling for Navigation Links */
html {
  scroll-behavior: smooth;
}

/* Scroll-to-Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: #0ea5e9;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.5);
}

/* FINAL CRITICAL FIXES */

/* Hide Mobile Menu Toggle on Desktop */
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Scroll-to-Top Button - Green Brand */
.scroll-to-top {
  opacity: 0;
  visibility: hidden;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}
