:root {
  --primary: #1e3a5f;
  --primary-light: #2d5a8f;
  --accent: #4a90e2;
  --accent-light: #6ba3e8;
  --text: #2c3e50;
  --text-light: #5a6c7d;
  --bg: #ffffff;
  --bg-light: #f8fafb;
  --bg-gradient: linear-gradient(135deg, #f8fafb 0%, #e8f1f7 100%);
  --shadow: 0 4px 20px rgba(30, 58, 95, 0.08);
  --shadow-lg: 0 10px 40px rgba(30, 58, 95, 0.12);
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --primary: #6ba3e8;
  --primary-light: #4a90e2;
  --accent: #64b5f6;
  --accent-light: #90caf9;
  --text: #e4e6eb;
  --text-light: #b0b3b8;
  --bg: #18191a;
  --bg-light: #242526;
  --bg-gradient: linear-gradient(135deg, #242526 0%, #1a1b1c 100%);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] nav {
  background: rgba(24, 25, 26, 0.95);
}

[data-theme="dark"] .stat-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .client-card,
[data-theme="dark"] .contact-item,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .benefit-icon {
  background: var(--bg-light);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
  background: var(--bg);
  border-color: #3a3b3c;
  color: var(--text);
}

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

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--bg);
}

h1,
h2,
h3,
h4 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 1.2;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

nav.scrolled {
  box-shadow: var(--shadow-lg);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 1px;
}

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

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

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

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

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

.nav-cta {
  background: var(--accent);
  color: white;
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

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

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary);
  margin: 5px 0;
  transition: 0.3s;
}

/* Theme Toggle */
.theme-toggle {
  background: var(--bg-light);
  border: 2px solid var(--accent);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 1rem;
}

.theme-toggle:hover {
  transform: rotate(20deg) scale(1.1);
  background: var(--accent);
}

.theme-icon {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

[data-theme="dark"] .theme-icon {
  content: "☀️";
}

/* Footer */
footer {
  background: var(--primary);
  color: white;
  padding: 4rem 2rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  text-decoration: none;

  margin-bottom: 0.8rem;
}

.footer-section a:hover {
  color: white;
  padding-left: 5px;
  transition: all 0.3s ease;
}

/* Footer contact icon alignment */
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact-icon {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}

/* Footer sections: targeted styling hooks */
.footer-brand h3 {
  letter-spacing: 0.08em;
  display: block;
}

.footer-brand p {
  max-width: 32ch;
}

.footer-services a,
.footer-company a {
  font-weight: 500;
  display: block;
}

.footer-contact {
  display: inline-block;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 968px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
    margin-right: 0.5rem;
  }

  .theme-icon {
    font-size: 1.1rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

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

  .section-title h2 {
    font-size: 2.2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

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

/* Success Message */
.success-message {
  display: none;
  background: #4caf50;
  color: white;
  padding: 1rem;
  border-radius: 10px;
  margin-top: 1rem;
  text-align: center;
}

.success-message.show {
  display: block;
  animation: fadeInUp 0.5s ease;
}

.error-message {
  background: #e74c3c;
}
