/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Light theme (default) */
  --bg-color: #ffffff;
  --text-color: #333333;
  --card-bg: #ffffff;
  --card-border: #cccccc;
  --card-shadow: rgba(0, 0, 0, 0.1);
  --button-bg-start: #599bb3;
  --button-bg-end: #408c99;
  --button-shadow: #276873;
  --button-text: #ffffff;
  --button-text-shadow: #3d768a;
  --error-color: #dc3545;
  --header-bg: #f8f9fa;
  --header-border: #e9ecef;

  /* Additional design tokens */
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --card-bg: #2d2d2d;
    --card-border: #404040;
    --card-shadow: rgba(0, 0, 0, 0.3);
    --button-bg-start: #4a8da8;
    --button-bg-end: #357a85;
    --button-shadow: #1f5a63;
    --button-text: #ffffff;
    --button-text-shadow: #2d5f6b;
    --error-color: #ff6b6b;
    --header-bg: #242424;
    --header-border: #404040;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica",
    "Arial", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.header {
  background-color: var(--header-bg);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--card-shadow);
  border-bottom: 1px solid var(--header-border);
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--button-bg-start);
  letter-spacing: -0.5px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--button-bg-start);
}

/* Hero Section */
.hero {
  background: linear-gradient(
    135deg,
    var(--button-bg-start) 0%,
    var(--button-bg-end) 100%
  );
  color: white;
  padding: 150px 20px 100px;
  text-align: center;
  margin-top: 60px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  font-weight: 400;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(
    to bottom,
    var(--button-bg-start),
    var(--button-bg-end)
  );
  color: var(--button-text);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 4px 8px var(--button-shadow);
  text-shadow: 0 1px 2px var(--button-text-shadow);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px var(--button-shadow);
  filter: brightness(1.1);
}

/* About Section */
.about {
  padding: 100px 20px;
  background-color: var(--bg-color);
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-color);
  letter-spacing: -0.5px;
}

.about-text {
  font-size: 1.2rem;
  color: var(--text-color);
  opacity: 0.85;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Apps Section */
.apps {
  padding: 100px 20px;
  background-color: var(--bg-color);
}

.apps .section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.app-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: 0 4px 6px var(--card-shadow);
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--card-border);
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px var(--card-shadow);
}

.app-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.app-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.app-name {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.app-description {
  font-size: 1rem;
  color: var(--text-color);
  opacity: 0.85;
  line-height: 1.7;
  margin-bottom: 2rem;
  min-height: 100px;
}

.app-link {
  display: inline-block;
  margin-top: 1rem;
  transition: var(--transition);
}

.app-link:hover {
  transform: scale(1.05);
}

.app-link img {
  height: 50px;
  width: auto;
}

/* Contact Section */
.contact {
  padding: 100px 20px;
  background: linear-gradient(
    135deg,
    var(--button-bg-start) 0%,
    var(--button-bg-end) 100%
  );
  color: white;
  text-align: center;
}

.contact .section-title {
  color: white;
}

.contact-text {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  line-height: 1.8;
}

.contact-button {
  display: inline-block;
  background: linear-gradient(
    to bottom,
    var(--button-bg-start),
    var(--button-bg-end)
  );
  color: var(--button-text);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 4px 8px var(--button-shadow);
  text-shadow: 0 1px 2px var(--button-text-shadow);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px var(--button-shadow);
  filter: brightness(1.1);
}

/* Footer */
.footer {
  background-color: var(--card-bg);
  color: var(--text-color);
  padding: 3rem 20px;
  text-align: center;
  border-top: 1px solid var(--card-border);
}

.footer p {
  margin: 0.5rem 0;
  opacity: 0.8;
}

.footer-tagline {
  font-size: 0.9rem;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav .container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .hero {
    padding: 120px 20px 80px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-text {
    font-size: 1.1rem;
  }

  .apps-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .app-description {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

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

  .section-title {
    font-size: 1.75rem;
  }

  .app-card {
    padding: 2rem 1.5rem;
  }

  .cta-button,
  .contact-button {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

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

.app-card {
  animation: fadeInUp 0.6s ease-out;
}

.app-card:nth-child(1) {
  animation-delay: 0.1s;
}
.app-card:nth-child(2) {
  animation-delay: 0.2s;
}
.app-card:nth-child(3) {
  animation-delay: 0.3s;
}
.app-card:nth-child(4) {
  animation-delay: 0.4s;
}
