/* ===== BASE STYLES ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #f59e0b;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --light-gray: #e2e8f0;
  --dark-bg: #0f172a;
  --card-bg: #ffffff;
  --dark-card-bg: #1e293b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  transition: all 0.3s ease;
}

body.dark-mode {
  background-color: var(--dark-bg);
  color: var(--light);
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  min-width: 120px; /* Ensures consistent minimum width */
  background-color: var(--primary);
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: none;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-subtitle {
  color: var(--gray);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}



body.dark-mode .section-subtitle {
  color: var(--light-gray);
}

/* Main logo in header */
.navbar .logo {
    display: block;
    width: 180px; /* adjust to your logo's aspect ratio */
    height: 80px;
    background: url('../images/logo-icon.png') no-repeat center center;
    background-size: contain;
    text-indent: -9999px; /* hides the text */
    overflow: hidden;
}

/* Dark mode logo (if you have one) */
body.dark-mode .navbar .logo {
    background-image: url('../images/logo-icon.png');
}

/* Footer logo */
.footer-logo {
    display: block;
    width: 150px;
    height: 80px;
    background: url('../images/logo-icon.png') no-repeat center center;
    background-size: contain;
    text-indent: -9999px;
    overflow: hidden;
    margin: 0 auto 1rem;
}

/* Thank You Page Styles */
.thank-you-message {
  text-align: center;
  max-width: 600px;
  margin: 5rem auto;
  padding: 3rem 2rem;
  background: var(--card-bg);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.dark-mode .thank-you-message {
  background: var(--dark-card-bg);
}

.thank-you-icon {
  font-size: 5rem;
  color: #4CAF50;
  margin-bottom: 1.5rem;
}

.thank-you-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

@media (max-width: 600px) {
  .thank-you-actions {
    flex-direction: column;
  }
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0; /* Remove padding here (let .navbar handle height) */
}

body.dark-mode .header {
  background-color: rgba(15, 23, 42, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px; /* Fixed height (adjust to preference) */
  padding: 0 2rem; /* Horizontal padding only */
  box-sizing: border-box; /* Prevents height inflation */
}

.logo {
  height: 30px; /* Keeps logo sharp on high-DPI screens */
}

.logo span {
  color: var(--dark);
}

body.dark-mode .logo span {
  color: var(--light);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .header {
    padding: 0.2rem 0;
  }
  .navbar {
    height: 45px;
    padding: 0.3rem 0;
  }
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--dark);
}

body.dark-mode .theme-toggle {
  color: var(--light);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

body.dark-mode .menu-toggle {
  color: var(--light);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--light);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  body.dark-mode .nav-links {
    background-color: var(--dark-bg);
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .menu-toggle {
    display: block;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 10rem 0 5rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
}

body.dark-mode .hero {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(15, 23, 42, 0) 100%);
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-text {
  flex: 1;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: 2rem;
  max-width: 600px;
}

body.dark-mode .hero-subtitle {
  color: var(--light-gray);
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 8rem 0 4rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

/* ===== SERVICES SECTION ===== */
.services-grid {
  display: grid;
  /* Default: 4 columns */
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: var(--card-bg);
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Medium screens: 2x2 layout (approx tablet size) */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small screens: 1 column (mobile) */
@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark mode styles (unchanged from your original) */
body.dark-mode .service-card {
  background-color: var(--dark-card-bg);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-description {
  color: var(--gray);
  flex-grow: 1;
  margin-bottom: 1rem;
}

body.dark-mode .service-description {
  color: var(--light-gray);
}

/* Service Card Button - Add to your existing CSS */
.btn-service {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem 1rem;
  margin-top: 1.5rem;
  background-color: var(--primary);
  color: white;
  border-radius: 0.25rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-service:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Dark Mode Styles */
body.dark-mode .btn-service {
  background-color: var(--primary-dark);
  color: var(--dark-text);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

body.dark-mode .btn-service:hover {
  background-color: var(--dark-primary-light);
}

/* ===== ABOUT SECTION ===== */
.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-text {
  flex: 1;
}

.about-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-description {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

body.dark-mode .about-description {
  color: var(--light-gray);
}

.about-features {
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.feature-icon {
  color: var(--primary);
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

.about-image {
  flex: 1;
}

.about-image img {
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@media (max-width: 1024px) {
  .about-content {
    flex-direction: column;
  }
}

/* ===== CONTACT SECTION ===== */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--light-gray);
  border-radius: 0.375rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
  background-color: var(--dark-card-bg);
  border-color: var(--dark);
  color: var(--light);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--dark);
  color: var(--light);
  padding: 4rem 0 2rem;
}

body.dark-mode .footer {
  background-color: #020617;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 1rem;
}

.footer-logo span {
  color: var(--primary);
}

.footer-description {
  color: var(--light-gray);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light);
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-links h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--light);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--light-gray);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light-gray);
  font-size: 0.875rem;
}

/* ===== SERVICE PAGES ===== */
.service-hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
}

body.dark-mode .service-hero {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(15, 23, 42, 0) 100%);
}

.service-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.service-hero-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.service-hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray);
}

body.dark-mode .service-hero-subtitle {
  color: var(--light-gray);
}

.service-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin: 3rem 0;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.service-feature-icon {
  color: var(--primary);
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

.pricing-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.pricing-card {
  background-color: var(--card-bg);
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid var(--light-gray);
}

body.dark-mode .pricing-card {
  background-color: var(--dark-card-bg);
  border-color: var(--dark);
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  position: relative;
}

.popular-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background-color: var(--primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.pricing-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.pricing-period {
  font-size: 1rem;
  color: var(--gray);
  font-weight: 400;
}

body.dark-mode .pricing-period {
  color: var(--light-gray);
}

.pricing-features {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-feature-icon {
  color: var(--primary);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 640px) {
  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}