/* BlueLineLabs Stylesheet - Premium Dark Ice Theme */
:root {
  --bg-dark: #070D18;
  --bg-card: rgba(15, 25, 45, 0.7);
  --primary-cyan: #00E5FF;
  --primary-ice: #A0D4F2;
  --accent-gold: #FFB300;
  --text-main: #F0F6FC;
  --text-muted: #8B949E;
  --text-dim: #484F58;
  --border-glass: rgba(0, 229, 255, 0.12);
  --border-glass-hover: rgba(0, 229, 255, 0.35);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --font-heading: 'Outfit', 'Space Grotesk', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

#apps, #mission {
  scroll-margin-top: 90px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 20% 15%, rgba(0, 229, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 65%, rgba(160, 212, 242, 0.05) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Body Modal Open Scroll Lock */
body.modal-open {
  overflow: hidden !important;
}

a {
  color: var(--primary-cyan);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--primary-ice);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Header & Navigation Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 13, 24, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
  padding: 0.85rem 0;
}

/* Language Switcher Styling */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: rgba(15, 25, 45, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 0.2rem;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.lang-btn:hover {
  color: #FFFFFF;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--primary-cyan), #00A6FF);
  color: #070D18;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
}

.logo-badge {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(0, 166, 255, 0.2));
  border: 1px solid var(--primary-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-badge svg {
  width: 20px;
  height: 20px;
  fill: var(--primary-cyan);
}

.brand-text span {
  color: var(--primary-cyan);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

.nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-link:hover {
  color: #FFFFFF;
}

/* Hamburger Toggle & Mobile Navigation Drawer */
.hamburger-toggle {
  display: none;
  background: rgba(15, 25, 45, 0.8);
  border: 1px solid var(--border-glass-hover);
  color: var(--primary-cyan);
  font-size: 1.3rem;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.hamburger-toggle:hover {
  background: rgba(0, 229, 255, 0.15);
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 8, 16, 0.75);
  backdrop-filter: blur(10px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  height: 100dvh;
  background: rgba(11, 20, 36, 0.98);
  border-left: 1px solid var(--border-glass-hover);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
  z-index: 999;
  padding: 1.75rem 1.5rem calc(4rem + env(safe-area-inset-bottom, 24px));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.5rem;
  overflow-y: auto;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-glass);
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #FFFFFF;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-drawer-links a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  display: block;
}

.mobile-drawer-links a:hover {
  color: var(--primary-cyan);
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--primary-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #FFFFFF 0%, #A0D4F2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subhead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-cyan), #00A6FF);
  color: #070D18;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 229, 255, 0.5);
  color: #070D18;
}

.btn-secondary {
  background: rgba(15, 25, 45, 0.8);
  color: var(--text-main);
  border: 1px solid var(--border-glass-hover);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(0, 229, 255, 0.1);
  color: #FFFFFF;
  border-color: var(--primary-cyan);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.product-card:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.card-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.app-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--primary-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-icon-wrapper svg {
  width: 26px;
  height: 26px;
  fill: var(--primary-cyan);
}

.platform-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--primary-ice);
}

.card-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: #FFFFFF;
}

.card-tagline {
  color: var(--primary-cyan);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.features-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.feature-pill {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.feature-pill.ai-pill {
  border-color: rgba(0, 229, 255, 0.3);
  color: var(--primary-ice);
}

.feature-pill.privacy-pill {
  border-color: rgba(255, 179, 0, 0.3);
  color: var(--accent-gold);
}

/* Media Preview Aspect Ratio Scaling */
.media-preview-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-glass);
}

.media-preview-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.media-preview-container:hover img {
  transform: scale(1.03);
}

.card-cta-group {
  display: flex;
  gap: 0.75rem;
}

/* Mission Section */
.mission-section {
  margin: 6rem 0;
  padding: 3rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(15, 25, 45, 0.8), rgba(7, 13, 24, 0.9));
  border: 1px solid var(--border-glass-hover);
  text-align: center;
}

.mission-quote {
  font-size: 1.4rem;
  font-family: var(--font-heading);
  color: #FFFFFF;
  max-width: 800px;
  margin: 0 auto 1rem;
  line-height: 1.4;
}

.mission-author {
  color: var(--primary-cyan);
  font-weight: 600;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.2rem;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4rem 0 calc(3.5rem + env(safe-area-inset-bottom, 24px));
  background: rgba(4, 8, 16, 0.95);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-title {
  margin-bottom: 1rem;
}

.footer-brand-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 400px;
}

.footer-col-title {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-link:hover {
  color: var(--primary-cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Modal Overlay & Dialogs */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 8, 16, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-dark);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-lg);
  width: 92vw;
  max-width: 620px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #FFFFFF;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

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

/* Carousel Styles for Screenshot Modals */
.carousel-wrapper {
  position: relative;
  margin-top: 1rem;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

.carousel-track::-webkit-scrollbar {
  height: 4px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.4);
  border-radius: 4px;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
  text-align: center;
}

.carousel-slide img {
  max-height: 48vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
}

.carousel-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(7, 13, 24, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass-hover);
  color: var(--primary-cyan);
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.carousel-arrow:hover {
  background: var(--primary-cyan);
  color: #070D18;
}

.carousel-arrow.prev { left: 4px; }
.carousel-arrow.next { right: 4px; }

/* Responsive Media Queries */
@media (max-width: 768px) {
  .desktop-nav {
    display: none !important;
  }
  .hamburger-toggle {
    display: flex;
  }
  .hero-section {
    padding: 3rem 0 2.5rem;
  }
  .hero-headline {
    font-size: 2.3rem;
  }
  .hero-subhead {
    font-size: 1rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .modal-content {
    max-height: 88vh;
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
  }
  .mission-section {
    padding: 2rem 1.25rem;
    margin: 3.5rem 0;
  }
  .mission-quote {
    font-size: 1.15rem;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 1.95rem;
  }
  .product-card {
    padding: 1.25rem;
  }
  .card-cta-group {
    flex-direction: column;
  }
}
