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

:root {
  --primary-color: #1e40af;
  --primary-dark: #1e3a8a;
  --secondary-color: #64748b;
  --accent-color: #3b82f6;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-dark: #0f172a;
  --border-color: #e2e8f0;
  --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);
  --border-radius: 0.5rem;
  --transition: all 0.3s ease;
}

[data-theme='dark'] {
  --primary-color: #3b82f6;
  --primary-dark: #2563eb;
  --secondary-color: #94a3b8;
  --accent-color: #60a5fa;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-light: #64748b;
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-dark: #000000;
  --border-color: #334155;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5);
}

body {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

[data-theme='dark'] .header {
  background-color: rgba(15, 23, 42, 0.95);
}

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

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

.logo {
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: opacity 0.3s ease;
  opacity: 1;
}

.logo-dark {
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: opacity 0.3s ease;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
}

.nav-brand a {
  position: relative;
  display: inline-block;
}

[data-theme='dark'] .logo {
  opacity: 0;
}

[data-theme='dark'] .logo-dark {
  opacity: 1;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

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

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

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
}

.nav-toggle:hover {
  border-color: var(--primary-color);
  background-color: var(--bg-secondary);
}

.language-toggle,
.theme-toggle {
  background: none;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-primary);
}

.language-toggle {
  margin-right: 0.5rem;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.theme-toggle {
  margin-left: 0.5rem;
}

.language-toggle:hover,
.theme-toggle:hover {
  background-color: var(--bg-secondary);
  border-color: var(--primary-color);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* Dropdown Menu Styles */
.nav-dropdown {
  position: relative;
}

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

.dropdown-arrow {
  width: 16px;
  height: 16px;
  transition: var(--transition);
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 1000;
  list-style: none;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border-radius: 0;
}

.dropdown-link:hover {
  background-color: var(--primary-color);
  color: white;
}

.hamburger {
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition);
  position: relative;
  display: block;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition);
}

.hamburger::before {
  top: -5px;
}

.hamburger::after {
  top: 5px;
}

/* Animated hamburger states */
.nav-toggle.active .hamburger {
  background-color: transparent;
}

.nav-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
  left: 0;
}

.nav-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
  left: 0;
}

/* Hero Section */
.hero {
  padding: 8rem 0 6rem;
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    var(--bg-primary) 100%
  );
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

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

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

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.team-image {
  width: 100%;
  height: 400px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.hero-team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition);
}

.hero-team-photo:hover {
  transform: scale(1.05);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Section Styling */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

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

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about {
  background-color: var(--bg-secondary);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  gap: 2rem;
}

.stat {
  text-align: center;
  padding: 2rem;
  background-color: var(--bg-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

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

.stat-label {
  color: var(--text-secondary);
  font-weight: 500;
}

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

.service-card {
  background-color: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
}

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

.service-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  color: var(--primary-color);
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

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

.service-hero .service-title {
  font-size: 2.5rem;
  text-align: center;
}

.service-hero .service-subtitle {
  text-align: left;
}

.service-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Service Page Styles */
.service-hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    var(--bg-primary) 100%
  );
  text-align: center;
}

.service-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.service-icon-large {
  width: 6rem;
  height: 6rem;
  margin: 0 auto 2rem;
  color: var(--primary-color);
  font-size: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon-large svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

.service-details {
  padding: 5rem 0;
}

.service-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.service-description {
  padding-right: 2rem;
}

.service-description h2 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.service-description h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 2rem 0 1rem;
}

.service-description p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 2rem;
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.benefit-item {
  padding: 1.5rem;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
}

.benefit-item h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.benefit-item p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.9rem;
}

.service-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cta-box {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
}

.cta-box h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.cta-box p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

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

.cta-box .btn:hover {
  background-color: var(--bg-secondary);
}

.related-services {
  background-color: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--border-radius);
}

.related-services h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.related-services ul {
  list-style: none;
  padding: 0;
}

.related-services li {
  margin-bottom: 0.5rem;
}

.related-services a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.related-services a:hover {
  color: var(--primary-dark);
}

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

.service-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

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

.contact-item {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.contact-item strong {
  color: var(--text-primary);
}

.contact-form {
  background-color: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

[data-theme='dark'] .form-group input,
[data-theme='dark'] .form-group textarea {
  background-color: #2d3748;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 3rem 0 1rem;
}

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

.footer-brand h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-self: end;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #334155;
  color: var(--text-light);
}

/* Hide mobile menu on desktop */
.nav-menu-mobile {
  display: none;
}

/* Responsive Design */
/* Large tablets and small desktops */
@media (max-width: 1024px) and (min-width: 769px) {
  .service-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Small tablets */
@media (max-width: 768px) and (min-width: 481px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

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

  /* Move logo to align with content on mobile */
  .nav-brand {
    margin-left: 1rem;
  }

  .nav-menu-mobile {
    display: flex;
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: var(--bg-primary);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 4rem 2rem 3rem;
    z-index: 9998 !important;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    margin: 0 !important;
    list-style: none;
  }

  .nav-menu-mobile.active {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
    z-index: 10000;
    position: relative;
  }

  /* Ensure header stays on top of mobile menu */
  .header {
    position: fixed;
    z-index: 9999;
  }

  .nav {
    position: relative;
  }

  .mobile-logo {
    margin: 0.25rem 0;
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }

  .mobile-menu-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
  }

  .nav-menu-mobile.active .mobile-menu-logo {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-nav-link {
    font-size: 1.4rem;
    font-weight: 400;
    padding: 0.6rem 0;
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    text-align: left;
    width: 100%;
    margin: 0.1rem 0;
  }

  .nav-menu-mobile.active .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-menu-mobile.active .mobile-nav-link:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-menu-mobile.active .mobile-nav-link:nth-child(2) {
    transition-delay: 0.15s;
  }
  .nav-menu-mobile.active .mobile-nav-link:nth-child(3) {
    transition-delay: 0.2s;
  }
  .nav-menu-mobile.active .mobile-nav-link:nth-child(4) {
    transition-delay: 0.25s;
  }
  .nav-menu-mobile.active .mobile-nav-link:nth-child(5) {
    transition-delay: 0.3s;
  }
  .nav-menu-mobile.active .mobile-nav-link:nth-child(6) {
    transition-delay: 0.35s;
  }
  .nav-menu-mobile.active .mobile-nav-link:nth-child(7) {
    transition-delay: 0.4s;
  }
  .nav-menu-mobile.active .mobile-nav-link:nth-child(8) {
    transition-delay: 0.45s;
  }
  .nav-menu-mobile.active .mobile-nav-link:nth-child(9) {
    transition-delay: 0.5s;
  }

  .mobile-nav-link:hover,
  .mobile-nav-link:focus {
    color: var(--primary-color);
    transform: translateX(5px);
  }

  /* Add overlay to prevent body scroll */
  body.nav-open {
    overflow: hidden;
  }
}

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

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

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

.about-content {
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-content {
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.footer-links {
  justify-self: center;
}

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

.service-content {
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-description {
  padding-right: 0;
}

.service-hero {
  padding: 6rem 0 3rem;
}

.service-icon-large {
  width: 4rem;
  height: 4rem;
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }

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

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

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

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

  .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

/* Support Features Section */
.support-features {
  padding: 4rem 0;
  background-color: var(--bg-secondary);
}

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

.support-item {
  background-color: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  text-align: left;
  transition: var(--transition);
}

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

.support-item h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.support-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

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

@media (max-width: 768px) {
  .support-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .support-item {
    padding: 1.5rem;
  }

  .support-item h3 {
    font-size: 1.125rem;
  }
}
