:root {
  --primary-color: #007bff;
  /* Light blue accent */
  --primary-dark: #0056b3;
  --bg-color: #ffffff;
  --text-color: #333333;
  --text-light: #666666;
  --light-gray: #f8f9fa;
  --border-color: #e9ecef;
  --max-width: 1200px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-height: 70px;
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  /* Prevent horizontal scroll from entry animations */
  opacity: 0;
  animation: fadeInPage 0.8s ease-out forwards;
}

/* Animations */
@keyframes fadeInPage {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

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

.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered text animations within sections */
.fade-in-section h1,
.fade-in-section h2 {
  transition-delay: 0.1s;
}

.fade-in-section p {
  transition-delay: 0.2s;
}

.fade-in-section .btn,
.fade-in-section .contact-info {
  transition-delay: 0.3s;
}

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

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-color);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 5px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

/* Header */
header {
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s ease;
}

header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-color);
  position: relative;
}

/* Nav link underline animation */
.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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

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

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.1);
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-height);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1.125rem;
}

/* About Section */
.about {
  background-color: var(--light-gray);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.disclaimer {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #fff;
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
  text-align: left;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.disclaimer:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Apps Section */
.apps-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Contact Section */
.contact {
  background-color: var(--light-gray);
  text-align: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.1rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s ease;
}

.contact-item:hover {
  transform: translateX(5px);
  color: var(--primary-color);
}

/* Privacy Page */
.privacy-page {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
}

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
}

.privacy-content h1 {
  margin-bottom: 2rem;
}

.privacy-content p {
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  background-color: #fff;
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smoother drawer animation */
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
  }

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

  .nav-links a {
    font-size: 1.25rem;
    padding: 15px;
  }

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