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

/* CSS Variables for Light/Dark Mode */
:root {
  --primary-color: #dc2626;
  --primary-dark: #b91c1c;
  --secondary-color: #f59e0b;
  --bg-color: #ffffff;
  --bg-secondary: #f8fafc;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --border-color: #e5e7eb;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
}

[data-theme="dark"] {
  --bg-color: #111827;
  --bg-secondary: #1f2937;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --border-color: #374151;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3),
    0 4px 6px -4px rgb(0 0 0 / 0.3);
}

/* Base Styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Header */
.header {
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.nav {
  padding: 1.5rem 0;
}

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

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  height: 60px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.brand-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1;
}

.brand-tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 500;
  line-height: 1;
}

.theme-toggle {
  margin-left: auto;
}

.theme-btn {
  background: none;
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.theme-btn:hover {
  background: var(--bg-secondary);
  transform: scale(1.05);
}

/* Hero Section */
.hero {
  background: var(--bg-color);
  color: var(--text-primary);
  padding: 6rem 0 8rem;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center,
    var(--bg-secondary) 0%,
    var(--bg-color) 70%
  );
  pointer-events: none;
}

.hero-logo {
  height: 300px;
  width: auto;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.hero-description {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

.cta-button {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--primary-dark);
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

/* Features Section */
.features {
  background: var(--bg-secondary);
}

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

.feature-card {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Contact Section */
.contact {
  background: var(--bg-secondary);
}

.contact-intro {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.contact-info {
  margin-bottom: 2rem;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.contact-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-color);
  border: 2px solid var(--primary-color);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  max-width: 100%;
}

.contact-email-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--primary-color);
  color: white;
}

.contact-email-btn:hover .email-text strong,
.contact-email-btn:hover .email-text small {
  color: white;
}

.email-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.email-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
}

.email-text strong {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.email-text small {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .nav {
    padding: 1rem 0;
  }

  .logo {
    height: 50px;
  }

  .brand-name {
    font-size: 1.5rem;
  }

  .brand-tagline {
    font-size: 0.75rem;
  }

  .hero-logo {
    height: 150px;
  }

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

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .contact-content {
    margin: 0 1rem;
  }

  .contact-email-btn {
    padding: 1.25rem 1.5rem;
  }

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

  section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .logo-container {
    gap: 0.75rem;
  }

  .logo {
    height: 45px;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .brand-tagline {
    font-size: 0.7rem;
  }

  .hero {
    padding: 3rem 0 4rem;
  }

  .hero-logo {
    height: 180px;
  }

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

  .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .contact-content {
    margin: 0 0.5rem;
  }

  .contact-email-btn {
    padding: 1rem 1.25rem;
    gap: 0.75rem;
  }

  .email-text strong {
    font-size: 1.1rem;
  }
}

/* Animation for smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation for form submission */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}
