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

:root {
  /* Brand Colors */
  --primary: #e53935;
  --secondary: #333333;
  --background: #ffffff;
  --muted: #f8f9fa;
  --card: #ffffff;
  --foreground: #333333;
  --muted-foreground: #6b7280;
  --border: #e5e7eb;
  --input: #f9fafb;
  --accent: #e53935;

  /* Typography */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --container-padding: 1rem;
  --section-padding: 5rem 0;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 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);

  /* Transitions */
  --transition: all 0.3s ease;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

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

.animate-fade-up {
  animation: fadeUp 0.6s ease-out forwards;
}

.animate-delay-100 {
  animation-delay: 0.1s;
}

.animate-delay-200 {
  animation-delay: 0.2s;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  background-color: transparent;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

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

.logo-image {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
}

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

.nav-link {
  text-decoration: none;
  color: var(--foreground);
  font-weight: 500;
  transition: var(--transition);
}

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

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  color: inherit;
}

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

.btn-primary:hover {
  background-color: #d32f2f;
  color: white;
  text-decoration: none;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-full {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--background) 0%, var(--muted) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("modern-it-office-with-servers-and-technology.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.05;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 10;
  max-width: 4xl;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

/* Sections */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  text-align: center;
  max-width: 32rem;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 4rem;
}

/* Intro Section */
.intro {
  padding: var(--section-padding);
  background-color: var(--background);
}

.intro-content {
  text-align: center;
  max-width: 4xl;
  margin: 0 auto;
}

.intro-text {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 3rem;
  line-height: 1.7;
}

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

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

/* Services Section */
.services {
  padding: var(--section-padding);
  background-color: var(--muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--card);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

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

.service-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(229, 57, 53, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.service-bullets {
  list-style: none;
  margin-bottom: 1rem;
}

.service-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.service-bullets li::before {
  content: "";
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.service-description {
  color: var(--foreground);
  font-size: 0.875rem;
}

/* Billing Solutions Section */
.billing-solutions {
  padding: var(--section-padding);
  background-color: var(--background);
}

.billing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.billing-card {
  background-color: var(--card);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

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

.billing-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(229, 57, 53, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.billing-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.billing-features {
  list-style: none;
  margin-bottom: 1rem;
}

.billing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.billing-features li::before {
  content: "";
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.billing-description {
  color: var(--foreground);
  font-size: 0.875rem;
}

.billing-features-section {
  background-color: var(--muted);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
}

.billing-features-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.billing-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.billing-benefit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground);
}

.benefit-icon {
  width: 24px;
  height: 24px;
  background-color: rgba(229, 57, 53, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

/* Why Choose Us Section */
.why-choose-us {
  padding: var(--section-padding);
  background-color: var(--background);
}

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

.feature {
  text-align: center;
  padding: 2rem 1rem;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background-color: rgba(229, 57, 53, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.feature-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Contact Section */
.contact {
  padding: var(--section-padding);
  background-color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 6xl;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  background-color: var(--card);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(229, 57, 53, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.contact-label {
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.contact-value {
  color: var(--muted-foreground);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-input,
.form-textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--input);
  font-size: 0.875rem;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background-color: var(--secondary);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-brand .logo-text {
  color: white;
}

.footer-description {
  color: #d1d5db;
  margin-top: 1rem;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
}

.footer-list li {
  margin-bottom: 0.5rem;
}

.footer-link {
  color: #d1d5db;
  text-decoration: none;
  transition: var(--transition);
}

.footer-link:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #4b5563;
  padding-top: 1rem;
  text-align: center;
  color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 1.5rem;
  }

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

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

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

/* Loading states and interactions */
.service-card,
.feature,
.contact-card,
.billing-card {
  opacity: 0;
  animation: fadeUp 0.6s ease-out forwards;
}

.service-card:nth-child(1) {
  animation-delay: 0.1s;
}
.service-card:nth-child(2) {
  animation-delay: 0.2s;
}
.service-card:nth-child(3) {
  animation-delay: 0.3s;
}
.service-card:nth-child(4) {
  animation-delay: 0.4s;
}
.service-card:nth-child(5) {
  animation-delay: 0.5s;
}
.service-card:nth-child(6) {
  animation-delay: 0.6s;
}

.billing-card:nth-child(1) {
  animation-delay: 0.1s;
}
.billing-card:nth-child(2) {
  animation-delay: 0.2s;
}
.billing-card:nth-child(3) {
  animation-delay: 0.3s;
}
.billing-card:nth-child(4) {
  animation-delay: 0.4s;
}
.billing-card:nth-child(5) {
  animation-delay: 0.5s;
}
.billing-card:nth-child(6) {
  animation-delay: 0.6s;
}
