/* SECTIONS.CSS */

/* NAVIGATION */
.navbar {
  position: fixed;
  top: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1280px;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text-primary);
  font-weight: 700;
  font-size: var(--text-lg);
}

.logo-img {
  height: 32px;
  width: 32px;
  margin-right: var(--space-2);
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border-glass);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Mobile: Click to toggle */
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex !important; /* Override nav-links a */
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4) !important;
  color: var(--color-text-secondary) !important;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.dropdown-item:hover {
  background: var(--gradient-glass-hover);
  color: var(--color-text-primary) !important;
}

.dropdown-item i {
  width: 20px;
  color: var(--color-accent);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  padding-top: 180px;
  padding-bottom: 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Modified: Equal split to pull image left */
  gap: var(--space-4); /* Modified: Tighter gap to bring image closer */
  padding-right: var(--space-8);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4.5rem; /* Large display size */
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
}

/* BACKGROUND ORBS */
.fixed-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s infinite ease-in-out;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #4f46e5 0%, transparent 70%);
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #c026d3 0%, transparent 70%);
  bottom: -200px;
  right: -200px;
  animation-delay: -5s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #0ea5e9 0%, transparent 70%); /* Sky Blue */
  top: 40%;
  left: 30%;
  opacity: 0.3;
  animation-delay: -10s;
  animation-duration: 25s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, -50px);
  }
}

/* APP MOCKUP */
.app-mockup {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease-out;
  max-width: 600px; /* Smaller size */
  margin: 0; /* No auto margins - let grid handle positioning */
}

.app-mockup:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0);
}

.mockup-header {
  height: 32px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.red {
  background: #ef4444;
}
.yellow {
  background: #f59e0b;
}
.green {
  background: #22c55e;
}

.mockup-screen {
  background: #0f172a; /* Inner app bg */
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.mockup-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--color-text-muted);
  gap: var(--space-4);
  background: linear-gradient(to bottom, #1e293b, #0f172a);
}

/* FEATURES SECTION */
.features-section {
  padding: var(--space-16) 0;
  position: relative;
}

.section-header {
  max-width: 100%; /* Full width for proper centering */
  margin: 0 auto var(--space-16);
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
  background: var(--gradient-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(280px, auto));
  gap: var(--space-6);
}

/* Feature grid spanning logic */
.bento-card-lg {
  grid-column: span 2;
}
.bento-card-md {
  grid-column: span 1;
}
.bento-card-tall {
  grid-row: span 2;
}

/* CTA SECTION */
.cta-section {
  padding: var(--space-16) 0;
}

.cta-card {
  padding: var(--space-16);
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1) 0%,
    rgba(139, 92, 246, 0.1) 100%
  );
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--color-border-glass);
  padding: var(--space-8) 0;
  margin-top: var(--space-16);
  background: var(--color-bg-dark-900);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.footer-text {
  display: flex;
  gap: var(--space-4);
}

.footer-credits a {
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.footer-links {
  display: flex;
  gap: var(--space-6);
}

.footer-separator {
  color: var(--color-border-glass);
}

[data-theme="light"] .footer-separator {
  color: var(--color-text-secondary);
}

.footer-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

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

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-12);
  }

  .hero-subtitle {
    margin: 0 auto 2rem auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card-lg {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .nav-links { 
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border-bottom: 1px solid var(--color-border-glass);
    z-index: 50;
  }

  /* Light Mode Mobile Menu */
  [data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
    padding: 1rem;
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-menu-btn { display: block; }
  
  .hero-title { font-size: 3rem; }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-card-lg, .bento-card-md { grid-column: span 1; }

  /* Stack Footer on Mobile */
  .footer-bottom {
    flex-direction: column-reverse;
    gap: var(--space-6);
    text-align: center;
  }

  .footer-text {
    flex-direction: column;
    gap: var(--space-2);
  }
}

/* Light Mode Desktop Dropdown */
[data-theme="light"] .dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .dropdown-item {
  color: var(--color-text-secondary) !important;
}

[data-theme="light"] .dropdown-item:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text-primary) !important;
}

/* SLIDESHOW */
.slideshow-container {
  position: absolute; /* Changed to absolute to sit behind overlay/indicators */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  overflow: hidden;
  background: #000;
  z-index: 1;
}

.screen-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20; /* Above slides */
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0) 60%
  );
  pointer-events: none;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5); /* Inner frame shadow */
}

.slideshow-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  border-radius: 20px;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.indicator.active {
  background: white;
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Changed to cover for better fill */
  opacity: 0;
  transform: scale(1.05); /* Slight zoom out effect */
  transition: opacity 1s ease-in-out, transform 6s ease;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* STATS GRID */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* COMPARISON TABLE */
.comparison-wrapper {
  padding: var(--space-6);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
  /* Scrollbar Styling */
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.comparison-wrapper::-webkit-scrollbar {
  height: 6px;
}
.comparison-wrapper::-webkit-scrollbar-track {
  background: transparent;
}
.comparison-wrapper::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.2);
  border-radius: 4px;
}

.comparison-table {
  width: 100%;
  min-width: 600px; /* Force scroll on mobile */
  border-collapse: collapse;
  text-align: left;
  color: var(--color-text-secondary);
}

.comparison-table th {
  padding: var(--space-4);
  color: var(--color-text-primary);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-weight: 600;
}

.comparison-table td {
  padding: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: var(--text-sm);
}

.comparison-table .feature-name {
  color: var(--color-text-primary);
  font-weight: 500;
}

.comparison-table .text-accent {
  color: var(--color-accent);
}

.display-text {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 800;
  margin-bottom: var(--space-2);
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* TESTIMONIALS SECTION */
.testimonials-section {
  padding: var(--space-16) 0;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-4) var(--space-2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  margin: 0 -1rem; /* Negative margin to allow full bleed on mobile */
  padding-left: 1rem;
  padding-right: 1rem;
}

.testimonials-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Scroll shadow hints mask */
.testimonials-section .container {
  mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
}

.testimonial-card {
  min-width: 320px;
  max-width: 320px;
  padding: var(--space-6);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-stars {
  color: #f59e0b;
  margin-bottom: var(--space-4);
  font-size: 0.9rem;
  display: flex;
  gap: 4px;
}

.testimonial-text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  font-style: italic;
  margin-bottom: var(--space-6);
  line-height: 1.6;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.author-avatar.gradient-1 {
  background: linear-gradient(135deg, #ef4444, #f43f5e);
}
.author-avatar.gradient-2 {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}
.author-avatar.gradient-3 {
  background: linear-gradient(135deg, #10b981, #059669);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  color: white;
  font-weight: 600;
  font-size: var(--text-sm);
}

.author-role {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

@media (min-width: 768px) {
  .testimonials-track {
    justify-content: center;
    flex-wrap: wrap;
    overflow: hidden; /* Disable scroll on desktop if we wrap */
  }
  .testimonials-section .container {
    mask-image: none; /* Remove mask on desktop */
    -webkit-mask-image: none;
  }
  .testimonial-card {
    min-width: 300px;
  }
}

/* FAQ */
.faq-hidden {
  display: none;
}

/* OS Selection Modal */
.os-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.os-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.os-modal {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 90%;
  position: relative;
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.os-modal-overlay.open .os-modal {
  transform: scale(1);
}

.close-modal-btn {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.close-modal-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.os-options {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.os-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 100px;
}

.os-btn i {
  font-size: 2rem;
  transition: transform 0.2s;
}

.os-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-primary);
  transform: translateY(-2px);
}

.os-btn.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.command-display {
  background: #0f172a; /* Solid dark for contrast */
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.command-display code {
  display: block;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #e2e8f0;
  white-space: pre-wrap; /* Keeps line breaks */
  word-break: break-all;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.command-display code:hover {
  color: white;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.command-display code.success {
  color: #4ade80; /* Tailwind green-400 */
  border-color: #4ade80;
}

.command-display code::after {
  content: "Click to Copy";
  position: absolute;
  top: -20px;
  left: 83%;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.command-display code:hover::after {
  opacity: 1;
}

.command-display code.success::after {
  content: "Copied!";
  color: #4ade80;
  opacity: 1;
}

.command-display code::before {
  content: "$ ";
  color: var(--color-text-muted);
  user-select: none;
}

.command-display button {
  width: 100%;
}

/* Light Mode Support */
[data-theme="light"] .os-modal {
  background: #ffffff;
}

[data-theme="light"] .command-display {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

[data-theme="light"] .os-btn:hover, 
[data-theme="light"] .os-btn.active {
  background: #f8fafc;
}
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  .app-mockup {
    margin-top: var(--space-8);
  }
  .bento-card-lg,
  .bento-card-md {
    grid-column: span 12;
  }
  .os-modal {
    width: 95%;
    padding: var(--space-4);
  }
  .os-options {
    flex-wrap: wrap;
    justify-content: center;
  }
  .command-display {
    padding: var(--space-2);
  }
  .command-display code {
    font-size: var(--text-xs);
  }
}
