:root {
  --color-bg: #0a0a0f;
  --color-bg-secondary: #12121a;
  --color-surface: #16161f;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #ffffff;
  --color-text-secondary: #8a8f98;
  --color-accent: #00b4d8;
  --color-accent-glow: rgba(0, 180, 216, 0.4);
  --color-purple: #7c3aed;
  --color-blue: #3b82f6;
  --gradient-accent: linear-gradient(135deg, #00b4d8 0%, #0096c7 50%, #00b4d8 100%);
  --gradient-glow: linear-gradient(135deg, rgba(0, 180, 216, 0.15), rgba(124, 58, 237, 0.15));
}

[data-theme="light"] {
  --color-bg: #f8f9fb;
  --color-bg-secondary: #eef1f4;
  --color-surface: #fafbfc;
  --color-border: rgba(0, 0, 0, 0.12);
  --color-text: #2c3e50;
  --color-text-secondary: #5a6c7d;
  --color-accent: #00b4d8;
  --color-accent-glow: rgba(0, 180, 216, 0.3);
  --color-purple: #7c3aed;
  --color-blue: #3b82f6;
  --gradient-accent: linear-gradient(135deg, #00b4d8 0%, #0096c7 50%, #00b4d8 100%);
  --gradient-glow: linear-gradient(135deg, rgba(0, 180, 216, 0.08), rgba(124, 58, 237, 0.08));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  max-width: 100vw;
}

/* Animated Grid Background */
.page-bg {
  position: relative;
  min-height: 100vh;
  background: var(--color-bg);
  width: 100%;
  max-width: 100vw;
}

.page-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 70%, transparent 100%);
}

[data-theme="light"] .page-bg::before {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

/* Glow Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.glow-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.3), transparent 70%);
  top: -200px;
  left: -100px;
  animation: float 20s ease-in-out infinite;
}

.glow-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.25), transparent 70%);
  top: 50%;
  right: -150px;
  animation: float 25s ease-in-out infinite reverse;
}

.glow-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 70%);
  bottom: 10%;
  left: 20%;
  animation: float 18s ease-in-out infinite 5s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

[data-theme="light"] .navbar {
  background: rgba(248, 249, 251, 0.9);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(248, 249, 251, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.lang-switch:hover {
  color: var(--color-text);
  border-color: var(--color-accent);
  background: rgba(0, 180, 216, 0.05);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-text-secondary);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-accent);
  background: rgba(0, 180, 216, 0.05);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.mobile-menu {
  display: none;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--color-border);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 999;
}

[data-theme="light"] .mobile-menu {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-menu.active {
  display: block;
}

#mobileMenuBtn svg {
  color: var(--color-text);
}

.mobile-nav-link {
  display: block;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.3s ease;
}

.mobile-nav-link.flex {
  display: flex;
}

.mobile-nav-link:hover {
  color: var(--color-text);
}

/* Logo switching based on theme */
.logo-dark {
  display: block;
}

.logo-light {
  display: none;
}

[data-theme="light"] .logo-dark {
  display: none;
}

[data-theme="light"] .logo-light {
  display: block;
}

/* Buttons */
.button-primary {
  background: var(--gradient-accent);
  color: #ffffff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px var(--color-accent-glow);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--color-accent-glow), 0 10px 40px rgba(0,0,0,0.3);
}

.button-secondary {
  background: transparent;
  color: var(--color-text);
  font-weight: 500;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.button-secondary:hover {
  border-color: var(--color-accent);
  background: rgba(0, 180, 216, 0.1);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 180, 216, 0.1);
  border: 1px solid rgba(0, 180, 216, 0.3);
  border-radius: 100px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Hero Styles */
.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--color-accent) 50%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-description {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  width: 100%;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
  }
}

/* Bento Cards */
.bento-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  min-width: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .bento-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .bento-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 180, 216, 0.1);
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.05), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bento-card:hover {
  border-color: rgba(0, 180, 216, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 180, 216, 0.2);
}

.bento-card:hover::before {
  opacity: 1;
}

/* Card Sizes */
@media (min-width: 768px) {
  .col-span-4 { grid-column: span 4; }
  .col-span-5 { grid-column: span 5; }
  .col-span-6 { grid-column: span 6; }
  .col-span-7 { grid-column: span 7; }
  .col-span-8 { grid-column: span 8; }
  .col-span-12 { grid-column: span 12; }
}

/* Featured Card */
.bento-card.featured {
  background: linear-gradient(135deg, var(--color-surface), rgba(0, 180, 216, 0.08));
  border-color: rgba(0, 180, 216, 0.2);
}

.bento-card.featured::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

/* Icon Box */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.15), rgba(124, 58, 237, 0.1));
  border: 1px solid rgba(0, 180, 216, 0.2);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.bento-card:hover .icon-box {
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--color-accent-glow);
}

.icon-box svg,
.icon-box i {
  color: var(--color-accent);
}

/* Card Content */
.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}

.card-description {
  color: var(--color-text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Section Styles */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--color-accent);
}

.section-label.justify-center {
  justify-content: center;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 600px;
}

/* Founder Cards */
.founder-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.founder-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--gradient-accent);
  box-shadow: 0 0 20px var(--color-accent-glow);
}

.founder-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
}

.founder-role {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* Contact Card */
.contact-card {
  background: linear-gradient(135deg, var(--color-surface), rgba(0, 180, 216, 0.05));
  border: 1px solid rgba(0, 180, 216, 0.2);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

/* Stats */
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-top: 8px;
}

/* Tech Stack Indicator */
.tech-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.tech-tag {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* Link Styles */
.link-accent {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.link-accent:hover {
  gap: 10px;
}

/* Animations */
.reveal-ready {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

.stagger > *:nth-child(1) { animation-delay: 0.1s; }
.stagger > *:nth-child(2) { animation-delay: 0.15s; }
.stagger > *:nth-child(3) { animation-delay: 0.2s; }
.stagger > *:nth-child(4) { animation-delay: 0.25s; }
.stagger > *:nth-child(5) { animation-delay: 0.3s; }
.stagger > *:nth-child(6) { animation-delay: 0.35s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  margin: 0 auto;
  max-width: 800px;
}

/* Footer */
footer {
  border-top: 1px solid var(--color-border);
  background: rgba(10, 10, 15, 0.5);
}

[data-theme="light"] footer {
  background: rgba(248, 249, 250, 0.8);
}

/* Utility */
.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive */
@media (max-width: 768px) {
  .bento-card {
    padding: 20px;
  }

  .contact-card {
    padding: 28px 20px;
  }

  /* Ensure cards take full width on mobile */
  .bento-grid > * {
    grid-column: span 1 !important;
  }

  /* Fix featured card flex layout on mobile */
  .bento-card.featured .flex {
    flex-direction: column;
    gap: 16px;
  }

  /* Hero stats responsive */
  .flex.items-center.gap-8 {
    flex-wrap: wrap;
    gap: 16px;
  }

  /* Hide stat dividers on mobile */
  .w-px.h-12 {
    display: none;
  }

  /* Stat items in row */
  .flex.items-center.gap-8 > div:not(.w-px) {
    flex: 1;
    min-width: 80px;
    text-align: center;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  /* Reduce glow orbs on mobile */
  .glow-orb-1 {
    width: 300px;
    height: 300px;
    left: -150px;
    top: -150px;
  }

  .glow-orb-2 {
    width: 250px;
    height: 250px;
    right: -125px;
  }

  .glow-orb-3 {
    width: 200px;
    height: 200px;
  }

  /* Hero section mobile adjustments */
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-description {
    font-size: 1rem;
  }
}

/* Reduced section spacing */
section {
  scroll-margin-top: 80px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
