/* CSS Variables for theming */
:root {
  --background: #000000;
  --foreground: #ffffff;
  --secondary: #404040;
  --primary: #D52B1E;
  --text-muted: #a3a3a3;
  --border: #333333;
  --hero-bg: rgb(29, 28, 28);
  --footer-bg: #000000;
  --footer-border: #333333;
  --primary-hover: #b91c1c;
  --card-bg: #404040;
  --card-hover: #4a4a4a;
}

[data-theme="light"] {
  --background: #ffffff;
  --foreground: #000000;
  --secondary: #f5f5f5;
  --primary: #D52B1E;
  --text-muted: #666666;
  --border: #e5e5e5;
  --hero-bg: #f8f8f8;
  --footer-bg: #f5f5f5;
  --footer-border: #e5e5e5;
  --primary-hover: #b91c1c;
  --card-bg: #f0f0f0;
  --card-hover: #e8e8e8;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  color: var(--foreground);
  background: var(--background);
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background-color 0.3s ease;
}

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

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo .logo {
  height: 50px;
  width: auto;
  display: block;
  max-width: 200px;
}



.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link {
  color: var(--foreground);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: var(--secondary);
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: var(--accent);
}

.signup-btn {
  padding: 0.6rem 1.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  transition: all 0.3s ease;
}

.signup-btn {
  background: var(--primary);
  color: var(--primary-foreground);
}

.signup-btn:hover {
  background: #ff6666;
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--foreground);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Secondary Navbar */
.secondary-navbar {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  transition: background-color 0.3s ease;
}



.secondary-navbar .nav-container {
  height: 60px;
  justify-content: center;
}

.secondary-navbar .nav-links {
  gap: 3rem;
}

.secondary-navbar .nav-links a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}

.secondary-navbar .nav-links a:hover {
  color: red;
  font-weight: 600;
}

.secondary-navbar .pay-bill-link {
  color: var(--foreground) !important;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: underline !important;
  text-decoration-color: var(--primary) !important;
  text-underline-offset: 3px;
}

.secondary-navbar .pay-bill-link:hover {
  color: var(--primary-hover) !important;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: underline !important;
  text-decoration-color: var(--primary-hover) !important;
  text-underline-offset: 3px;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  transform: translateY(-150%);
  transition: transform 0.3s ease;
  z-index: 998;
  display: none;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateY(0);
  display: block;
}

.mobile-menu-content {
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu-content a {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  transition: color 0.3s ease;
  color: var(--foreground);
}

.mobile-menu-content a:hover {
  color: var(--primary);
}

/* Main Content */
.main {
  margin-top: 120px;
  min-height: calc(100vh - 120px);
  width: 100%;
  overflow-x: hidden;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 2rem;
  background: var(--hero-bg);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.hero-content {
  text-align: left;
  padding: 0 1rem;
  color: var(--foreground);
  max-width: 600px;
}

.title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
  color: var(--foreground);
  transition: color 0.3s ease;
}

.highlight {
  font-size: 3.5rem;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.1;
}

.description {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-bottom: 0;
  font-weight: 400;
  transition: color 0.3s ease;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image .image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.hero-placeholder {
  width: 100%;
  max-width: 500px;
  height: auto;
  aspect-ratio: 500/350;
  background-color: var(--card-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.hero-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: filter 0.3s ease;
}

[data-theme="light"] .hero-placeholder {
  background-color: var(--card-bg);
  border-color: var(--border);
}

/* Features Section */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 4rem 2rem;
  background: var(--background);
  transition: background-color 0.3s ease;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

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

[data-theme="light"] .feature {
  background: var(--secondary);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background: var(--card-hover);
}

.feature-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.feature-icon .image {
  width: 48px;
  height: 48px;
  filter: brightness(0) saturate(100%) invert(100%);
  transition: filter 0.3s ease;
}

[data-theme="light"] .feature-icon .image {
  filter: brightness(0) saturate(100%);
}

.feature h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.feature p {
  color: var(--text-muted);
  line-height: 1.6;
  transition: color 0.3s ease;
}

/* CTA Section */
.cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 4rem 2rem;
  background: var(--background);
  transition: background-color 0.3s ease;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.primary-button,
.secondary-button {
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.primary-button {
  background: var(--primary);
  color: var(--primary-foreground);
}

.primary-button:hover {
  background: #b91c1c;
  transform: translateY(-2px);
}

.secondary-button {
  background: var(--secondary);
  color: var(--secondary-foreground);
  border: 1px solid var(--border);
}

.secondary-button:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  padding: 2rem;
  text-align: center;
  color: var(--muted-foreground);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .title {
    font-size: 3rem;
  }
  .highlight {
    font-size: 3.5rem;
  }
  .description {
    font-size: 1.3rem;
  }
}

@media (max-width: 900px) {
  .title {
    font-size: 2.8rem;
  }
  .highlight {
    font-size: 3.2rem;
  }
  .description {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .secondary-navbar {
    display: none;
  }

  .main {
    margin-top: 70px;
  }

  .title {
    font-size: 2.5rem;
  }
  .highlight {
    font-size: 3rem;
  }
  .description {
    font-size: 1.1rem;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 2rem 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .hero-content {
    padding: 0 1rem;
    text-align: center;
    max-width: 100%;
  }
  
  .hero-placeholder {
    max-width: 450px;
    margin: 0 auto;
  }

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

  .cta {
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
  }

  .nav-container {
    padding: 0 1rem;
  }
}

@media (max-width: 700px) {
  .title {
    font-size: 2.3rem;
  }
  .highlight {
    font-size: 2.7rem;
  }
  .description {
    font-size: 1.05rem;
  }
}

@media (max-width: 600px) {
  .title {
    font-size: 2.2rem;
  }
  .highlight {
    font-size: 2.6rem;
  }
  .description {
    font-size: 1rem;
  }
  
  .hero-placeholder {
    max-width: 350px;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 2.5rem;
  }
  .highlight {
    font-size: 3rem;
  }

  .hero {
    padding: 1.5rem 0.75rem;
  }
  
  .hero-content {
    padding: 0 0.5rem;
    text-align: center;
  }
  
  .hero-placeholder {
    max-width: 300px;
  }

  .features {
    padding: 1.5rem 0.75rem;
  }

  .cta {
    padding: 1.5rem 0.75rem;
  }
}

.services-hero {
  background: rgb(29, 28, 28);
  padding: 4rem 2rem 2rem 2rem;
  text-align: center;
}

.services-title {
  font-size: 3.5rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 1.2rem;
}

.services-highlight {
  color: var(--primary);
  font-weight: 700;
}

.services-description {
  color: #a3a3a3;
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
}

.services-icon {
  margin: 2.5rem auto 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.services-icon svg {
  display: block;
  width: 120px;
  height: 120px;
}

.services-features {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.service-card {
  background: var(--hero-bg);
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.12);
  padding: 2.5rem 2rem 2rem 2rem;
  width: 370px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.service-card:hover {
  background: var(--card-hover);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-card.red-border {
  border-color: var(--primary);
}

.service-card .service-icon {
  background: #181818;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-card .service-icon img,
.service-card .service-icon svg {
  width: 48px;
  height: 48px;
  filter: brightness(0) saturate(100%) invert(100%);
}

.service-card h3 {
  color: var(--foreground);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  transition: color 0.3s ease;
}

.service-card .service-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-align: center;
  transition: color 0.3s ease;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  width: 100%;
}

.service-card ul li {
  color: var(--foreground);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.service-card ul li .check {
  color: var(--primary);
  margin-right: 0.7em;
  font-size: 1.1em;
}

.service-card .primary-button {
  width: 100%;
  margin-bottom: 1rem;
  /* background: var(--primary); */
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 0.9rem 0;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.service-card .primary-button:hover {
  background: #8c8b8b;
}

.service-card .secondary-button {
  width: 100%;
  background: #181818;
  color: #fff;
  font-weight: 600;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 0.9rem 0;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.service-card .secondary-button:hover {
  background: #232323;
} 