/* Variables */
:root {
  --primary-color: #1a1b2e;
  --secondary-color: #0d1b3e;
  --accent-color: #3b82f6;
  --text-color: #ffffff;
}
html {
  scroll-padding-top: 90px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-color);
  line-height: 1.6;
}

/* Scroll to top button */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  color: var(--text-color);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: #2563eb;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  background: rgba(26, 27, 46, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 40px;
  height: 40px;
}

.navbar-brand h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--accent-color), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

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

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

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

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

/* Main Content
   Note: top padding matches the navbar/scroll-padding offset */
main {
  padding-top: 90px;
}

/* About Section */
.about-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 4rem;
}

.about-content {
  flex: 1;
  max-width: 600px;
}

.about-content h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.text-white {
  color: var(--text-color);
}

.text-gradient {
  background: linear-gradient(45deg, #3b82f6, #60a5fa, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.about-content h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), transparent);
  border-radius: 2px;
}

.about-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.about-image {
  flex: 1;
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image img {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
              0 0 0 10px rgba(59, 130, 246, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4),
              0 0 0 15px rgba(59, 130, 246, 0.2);
}

/* Features Section */
.features-section {
  padding: 4rem 2rem;
  text-align: center;
}

.features-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
  width: max-content;
  padding-bottom: 8px;
}

.features-section h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #4285F4, transparent);
  margin: 5px auto 0;
  border-radius: 5px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(13, 27, 62, 0.3);
  padding: 2rem;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(59, 130, 246, 0.1);
  position: relative;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.feature-card:hover i {
  transform: scale(1.1);
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--accent-color);
}

/* ToS and Privacy Sections */
.tos-section,
.privacy-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.tos-section h2,
.privacy-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  position: relative;
  display: block;
  margin: 0 auto 1.5rem;
  width: max-content;
  padding-bottom: 8px;
}

.tos-section h2::after,
.privacy-section h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #4285F4, transparent);
  margin: 5px auto 0;
  border-radius: 5px;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.faq-item {
  background: rgba(13, 27, 62, 0.3);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(59, 130, 246, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 80%;
  max-width: 900px;
}

.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
}

.faq-item h3 {
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.faq-item p {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

/* Footer */
.footer {
  background: rgba(26, 27, 46, 0.95);
  padding: 3.5rem 2rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: flex-start;
  text-align: center;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  gap: 50px;
}

.footer-section h3 {
  color: var(--accent-color);
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.footer-section ul {
  list-style: none;
  padding-left: 0;
}

.footer-section ul li {
  margin-bottom: 0.6rem;
}

.footer-section ul li a {
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-section ul li a i {
  color: var(--accent-color);
  font-size: 1.1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-section ul li a::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease, left 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

.footer-section ul li a:hover i {
  transform: scale(1.2);
  color: #60a5fa;
}

.footer-section ul li a:hover::before {
  width: 100%;
  left: 0;
}

.footer-bottom {
  width: 100%;
  text-align: center;
  padding-top: 1.2rem;
  padding-bottom: 1rem;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn.primary {
  background: var(--accent-color);
  color: var(--text-color);
  border: none;
}

.btn.secondary {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--text-color);
}

.btn.secondary:hover {
  background: rgba(59, 130, 246, 0.2);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

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

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(26, 27, 46, 0.98);
    padding: 4rem 1.5rem 1.5rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
  }

  .nav-links li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links li:nth-child(2) { transition-delay: 0.2s; }
  .nav-links li:nth-child(3) { transition-delay: 0.3s; }
  .nav-links li:nth-child(4) { transition-delay: 0.4s; }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
  }

  .about-section {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    gap: 2rem;
  }

  .about-content h2 {
    font-size: 2rem;
  }

  .about-content p {
    font-size: 1rem;
  }

  .about-image {
    order: -1;
  }

  .about-image img {
    width: 200px;
    height: 200px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .feature-card {
    padding: 1.2rem;
  }

  .feature-card i {
    font-size: 1.8rem;
  }

  .faq-item {
    width: 100%;
    padding: 1.2rem;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 1rem 1rem;
  }

  .footer-section {
    width: 100%;
  }

  .footer-section ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-bottom {
    margin-top: 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.6rem 1rem;
  }

  .navbar-brand h1 {
    font-size: 1.1rem;
  }

  .logo {
    width: 28px;
    height: 28px;
  }

  .about-content h2 {
    font-size: 1.8rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 0.6rem 1rem;
  }

  .features-section h2,
  .tos-section h2,
  .privacy-section h2 {
    font-size: 1.5rem;
  }

  .feature-card h3 {
    font-size: 0.9rem;
  }

  .faq-item h3 {
    font-size: 1rem;
  }

  .faq-item p {
    font-size: 0.9rem;
  }
}
