:root {
  --bg-dark: #151718;
  --bg-surface: #1c1e20;
  --bg-glass: rgba(32,34,37,0.7);
  --text-light: #f2f2f2;
  --text-muted: #b0b0b0;
  --accent-light: #f5f5f5;
  --border: rgba(255,255,255,0.06);
  --radius: 12px;
  --max-width: 1100px;
}

/* Global Layout */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text-light);
  background: var(--bg-dark);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  margin-bottom: 0.5rem;
}
p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* NAVIGATION */
.glass-nav {
  position: sticky;
  top: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}
nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}
nav a:hover, nav a.active { opacity: 0.7; }

/* Dropdown */
.dropdown {
  position: relative;
}
.dropdown > a { cursor: pointer; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 9999;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 0.7rem 1rem;
  color: var(--text-light);
  text-decoration: none;
  transition: background 0.2s ease;
}
.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* HERO */
.hero {
  text-align: center;
  padding: 4rem 1rem 2rem;
  background: radial-gradient(circle at 50% 20%, #1a1c1e 0%, #111213 80%);
}
.hero h1 {
  font-size: 2.4rem;
  letter-spacing: -0.5px;
  font-weight: 600;
}
.hero p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* CARDS */
.card {
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.card, .small-card {
  background: linear-gradient(145deg, #1c1e20, #181a1c);
  box-shadow: 0 3px 8px rgba(0,0,0,0.25), 0 0 1px rgba(255,255,255,0.05) inset;
}

.featured-card {
  text-align: center;
  margin: 2rem auto 3rem;
  max-width: 700px;
}

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

/* Small Cards - used on Home page and Extension lists */
.small-card {
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: var(--bg-surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.small-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.small-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--text-light);
}

.small-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Legal Content */

.legal-content {
  margin: 100px;
}

/* Horizontal scroll container for small cards */
.other-extensions-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  max-width: 80vw;
  margin: 0 auto;
}

.other-extensions-scroll::-webkit-scrollbar {
  height: 8px;
}
.other-extensions-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
.other-extensions-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.extensions-scroll .small-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  scrollbar-width: none;
}
.extensions-scroll::-webkit-scrollbar {
  display: none;
}

.other-extensions-header {
  margin-left: 8vw;
}

/* BUTTONS */
.button {
  display: inline-block;
  background: var(--accent-light);
  color: #1a1a1a;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}
.button:hover { 
  background: #e6e6e6; 
  transform: translateY(-1px); 
}
.button.secondary {
  background: #1a73e8;
  color: var(--text-light);
  border: none;
}
.button.secondary:hover {
  background: #1669d8;
  transform: translateY(-1px);
}

/* Responsive Facebook iframe */
.fb-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
  max-width: 100%;
}

.fb-container iframe {
  width: 500px;
  height: 80vh;
  border: none;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

@media (max-width: 700px) {
  .fb-container iframe {
    width: 95vw;
    height: 70vh;
  }
}

/* FOOTER */
footer {
  background: var(--bg-surface);
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.footer-links {
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: var(--text-light);
  margin: 0 0.5rem;
  text-decoration: none;
}
.footer-links a:hover { opacity: 0.6; }

.link {
  color: lightblue;
}

/* ANIMATIONS */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .nav-container {
    flex-direction: column;
    gap: 0.5rem;
  }
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .featured-card {
    padding: 1.5rem;
  }
}
