:root {
  /* Colors */
  --bg-color: #0d1117;
  --bg-color-light: #161b22;
  --text-color: #e6edf3;
  --text-color-muted: #8b949e;
  --accent-color: #FF3B3B;
  --accent-color-hover: #ff5e5e;
  --accent-color-glow: rgba(255, 59, 59, 0.4);
  /* Glassmorphism */
  --glass-bg: rgba(22, 27, 34, 0.65);
  --glass-border: rgba(230, 237, 243, 0.1);
  /* Typography */
  --font-base: 'Inter', system-ui, -apple-system, sans-serif;
  --border-radius: 12px;
  --transition-speed: 0.3s;
}

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

body {
  font-family: var(--font-base);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

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

ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.text-accent {
  color: var(--accent-color);
  text-shadow: 0 0 10px rgba(255, 59, 59, 0.3);
}

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

.mb-2 {
  margin-bottom: 2rem;
}

.mb-4 {
  margin-bottom: 4rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
  text-align: center;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-color-glow);
}

.btn-primary:hover {
  background-color: var(--accent-color-hover);
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 6px 20px var(--accent-color-glow);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.btn-outline:hover {
  background-color: var(--accent-color);
  color: #fff;
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.05),
      transparent);
  transition: 0.5s;
}

.glass-card:hover::before {
  left: 100%;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(248, 58, 58, 0.3);
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  transition: all var(--transition-speed);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-logo i.fa-phone {
  font-size: 2.8rem;
  color: var(--accent-color);
}

.brand-text-container {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-title {
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 1px;
}

.brand-title .red {
  color: var(--accent-color);
}

.brand-title .white {
  color: #ffffff;
}

.brand-subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-color);
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}

.brand-subtitle .dots {
  font-size: 1.2rem;
  line-height: 0;
  position: relative;
  top: 1px;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-links li a {
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  position: relative;
  white-space: nowrap;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width var(--transition-speed);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

/* Mid breakpoint: compress nav further on laptop-sized screens */
@media (max-width: 1200px) {
  .nav-links {
    gap: 0.65rem;
  }

  .nav-links li a {
    font-size: 0.78rem;
  }
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 45vh;
  /* Reduced from 85vh for a more compact look on sub-pages */
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 140px;
  /* Adjust for fixed header */
  padding-bottom: 30px;
  position: relative;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 1;
  position: relative;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, #8b949e 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleReveal 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.hero p {
  font-size: 1.4rem;
  color: var(--text-color-muted);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Section specific styling */
section {
  padding: 2.5rem 0;
  /* Reduced from 3.5rem for maximum density */
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, #8b949e);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center;
  color: var(--text-color-muted);
  max-width: 600px;
  margin: 0 auto 3rem auto;
  font-size: 1.1rem;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Premium Stats Section */
.stats-container {
  margin-top: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-color);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-color-muted);
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1), transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  background-color: var(--bg-color-light);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0;
  margin-top: 2rem;
}

footer .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left var(--transition-speed);
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

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

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.1rem;
  }
}

/* Language Selector */
.lang-selector {
  position: relative;
  cursor: pointer;
}

.lang-selector-current {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--text-color);
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  transition: all var(--transition-speed);
}

.lang-selector:hover .lang-selector-current {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-color);
}

.lang-dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  background: var(--bg-color-light);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  min-width: 80px;
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.lang-selector:hover .lang-dropdown {
  display: flex;
}

.lang-btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color-muted);
  text-align: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-color) !important;
}

.lang-btn.active {
  color: var(--accent-color);
  font-weight: 700;
}

/* Modal Legal Popup */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  overflow-y: auto;
  padding: 2rem 1rem;
}

.modal.active {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  max-width: 800px;
  width: 95%;
  margin: auto;
  border: 1px solid rgba(248, 58, 58, 0.4);
  animation: modalFadeIn 0.4s ease;
  max-height: 85vh;
  overflow-y: auto;
  padding: 3.5rem 2.5rem;
  background: var(--bg-color-light);
  border-radius: var(--border-radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

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

.close-modal {
  position: absolute;
  top: 1.2rem;
  right: 1.8rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color-muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}

.close-modal:hover {
  color: var(--accent-color);
}

#legal-modal h2 {
  color: var(--accent-color);
  margin-bottom: 2rem;
  font-size: 1.8rem;
  text-align: center;
}

#legal-modal p {
  color: var(--text-color-muted);
  line-height: 1.8;
  font-size: 0.95rem;
  text-align: justify;
}