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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Dark mode styles */
body.dark-mode {
  background-color: #0f172a;
  color: #e2e8f0;
}

body.dark-mode .navbar {
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .nav-link {
  color: #f1f5f9;
}

body.dark-mode .nav-link:hover {
  color: #60a5fa;
}

body.dark-mode .nav-link::after {
  background-color: #60a5fa;
}

body.dark-mode .bar {
  background-color: #f1f5f9;
}

body.dark-mode .logo-text {
  color: #60a5fa;
}

body.dark-mode .section-header h2 {
  color: #f1f5f9;
}

body.dark-mode .section-header p {
  color: #94a3b8;
}

body.dark-mode .about {
  background: #1e293b;
}

body.dark-mode .about-text h3 {
  color: #f1f5f9;
}

body.dark-mode .about-text p {
  color: #94a3b8;
}

body.dark-mode .stat {
  background: #334155;
  color: #e2e8f0;
}

body.dark-mode .stat h4 {
  color: #60a5fa;
}

body.dark-mode .stat p {
  color: #94a3b8;
}

body.dark-mode .service-card {
  background: #334155;
  border-color: #475569;
}

body.dark-mode .service-card h3 {
  color: #f1f5f9;
}

body.dark-mode .service-card p {
  color: #94a3b8;
}

body.dark-mode .service-card li {
  color: #94a3b8;
}

body.dark-mode .process {
  background: #1e293b;
}

body.dark-mode .step h3 {
  color: #f1f5f9;
}

body.dark-mode .step p {
  color: #94a3b8;
}

body.dark-mode .contact-info h3 {
  color: #f1f5f9;
}

body.dark-mode .contact-info p {
  color: #94a3b8;
}

body.dark-mode .contact-item {
  background: #334155;
}

body.dark-mode .contact-item h4 {
  color: #f1f5f9;
}

body.dark-mode .contact-item p {
  color: #94a3b8;
}

body.dark-mode .contact-form {
  background: #334155;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
  background: #475569;
  border-color: #64748b;
  color: #e2e8f0;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
  border-color: #60a5fa;
}

body.dark-mode .form-group input::placeholder,
body.dark-mode .form-group textarea::placeholder {
  color: #94a3b8;
}

body.dark-mode .footer {
  background: #0f172a;
}

body.dark-mode .footer-section p {
  color: #94a3b8;
}

body.dark-mode .footer-section ul li a {
  color: #94a3b8;
}

body.dark-mode .footer-section ul li a:hover {
  color: #fbbf24;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

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

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

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  color: #333;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.theme-toggle:hover {
  background: rgba(37, 99, 235, 0.1);
  transform: scale(1.1);
}

.theme-toggle .fa-sun {
  display: block;
}

.theme-toggle .fa-moon {
  display: none;
}

body.dark-mode .theme-toggle {
  color: #e2e8f0;
}

body.dark-mode .theme-toggle:hover {
  background: rgba(96, 165, 250, 0.1);
}

body.dark-mode .theme-toggle .fa-sun {
  display: none;
}

body.dark-mode .theme-toggle .fa-moon {
  display: block;
}

/* Logo Styles */
.nav-logo {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.75rem;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo-text {
  color: #2563eb;
  font-weight: 700;
  font-size: 1.8rem;
  font-family: "Inter", sans-serif;
  white-space: nowrap;
}

/* Ensure logo container doesn't overflow */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

/* Logo accessibility improvements */
.logo-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  background-color: #ffffff;
}

.logo-link:hover .logo-image {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #2563eb;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #2563eb;
  transition: width 0.3s ease;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 120px 0 80px;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.highlight {
  color: #fbbf24;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

.btn {
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  white-space: nowrap;
}

.btn-primary {
  background: #fbbf24;
  color: #1f2937;
}

.btn-primary:hover {
  background: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: #1f2937;
  transform: translateY(-2px);
}

.hero-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.2);
  animation: float 6s ease-in-out infinite;
}

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

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1f2937;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.section-header p {
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* About Section */
.about {
  padding: 100px 0;
  background: #f9fafb;
}

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

.about-text h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #1f2937;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: #6b7280;
  font-size: 1.1rem;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

.stat {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stat h4 {
  font-size: 2rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.stat p {
  color: #6b7280;
  font-weight: 500;
}

.about-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 6rem;
  color: #2563eb;
  opacity: 0.1;
}

/* Services Section */
.services {
  padding: 100px 0;
}

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

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: white;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1f2937;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.service-card p {
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.service-card ul {
  list-style: none;
}

.service-card li {
  padding: 0.5rem 0;
  color: #6b7280;
  position: relative;
  padding-left: 1.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.service-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.services-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Process Section */
.process {
  padding: 100px 0;
  background: #f9fafb;
}

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

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

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0 auto 1.5rem;
}

.step h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1f2937;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.step p {
  color: #6b7280;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Contact Section */
.contact {
  padding: 100px 0;
}

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

.contact-info h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1f2937;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.contact-info p {
  color: #6b7280;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 10px;
}

.contact-item i {
  font-size: 1.5rem;
  color: #2563eb;
  margin-right: 1rem;
  width: 40px;
  flex-shrink: 0;
}

.contact-item h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #1f2937;
}

.contact-item p {
  color: #6b7280;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  width: 50px;
  height: 50px;
  background: #2563eb;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.social-link:hover {
  background: #1d4ed8;
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
}

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

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: 60px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: #fbbf24;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-section p {
  color: #d1d5db;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

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

.footer-section ul li a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-section ul li a:hover {
  color: #fbbf24;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  /* Mobile Logo Styles */
  .logo-image {
    width: 32px;
    height: 32px;
  }

  .logo-text {
    font-size: 1.4rem;
  }

  .logo-link {
    gap: 0.5rem;
  }

  /* Hide logo text on very small screens */
  @media (max-width: 480px) {
    .logo-text {
      display: none;
    }

    .logo-link {
      gap: 0;
    }

    .logo-image {
      width: 36px;
      height: 36px;
    }
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    height: calc(100vh - 70px);
    overflow-y: auto;
  }

  body.dark-mode .nav-menu {
    background-color: #1e293b;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 1rem 0;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    display: block;
  }

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

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.3;
  }

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

  .hero-buttons {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    max-width: 250px;
    text-align: center;
  }

  .hero-graphic {
    font-size: 5rem;
  }

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

  .about-text h3 {
    font-size: 1.8rem;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .service-card {
    padding: 1.5rem;
  }

  .service-card h3 {
    font-size: 1.3rem;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .contact-item i {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .container {
    padding: 0 15px;
  }

  .nav-container {
    padding: 0 15px;
  }

  /* Mobile fixes for social links and services CTA */
  .social-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .services-cta {
    text-align: center;
    margin-top: 3rem;
  }

  .services-cta .btn {
    display: inline-block;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
    line-height: 1.4;
  }

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

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .service-card {
    padding: 1.25rem;
  }

  .service-card h3 {
    font-size: 1.2rem;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .about-text h3 {
    font-size: 1.6rem;
  }

  .contact-info h3 {
    font-size: 1.6rem;
  }

  .hero-graphic {
    font-size: 4rem;
  }

  .about-graphic {
    font-size: 4rem;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  /* Additional mobile fixes for very small screens */
  .social-links {
    justify-content: center;
    gap: 0.75rem;
  }

  .social-link {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .services-cta {
    text-align: center;
    margin-top: 2rem;
  }

  .services-cta .btn {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }

  /* Ensure contact section social links are centered on mobile */
  .contact-info .social-links {
    justify-content: center;
    margin-top: 1rem;
  }

  /* Ensure footer social links are centered on mobile */
  .footer-section .social-links {
    justify-content: center;
  }

  /* Center the Send Message button on mobile */
  .contact-form .btn {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    display: block;
  }

  .service-icon-large {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }

  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .social-link {
    width: 45px;
    height: 45px;
  }

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

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for anchor links */
html {
  scroll-padding-top: 80px;
}

/* Services Page Styles */
.services-hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  position: relative;
}

.services-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.services-hero .container {
  position: relative;
  z-index: 2;
}

.services-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.services-hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  font-weight: 500;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.detailed-services {
  padding: 80px 0;
}

.service-detail {
  margin-bottom: 4rem;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.service-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.service-icon-large {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  flex-shrink: 0;
}

.service-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.service-header h3 {
  font-size: 1.2rem;
  color: #6b7280;
  font-weight: 500;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.service-detail p {
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.service-features {
  margin: 2rem 0;
}

.service-features h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
}

.feature-item i {
  color: #10b981;
  font-size: 1.1rem;
  width: 20px;
  flex-shrink: 0;
}

.feature-item span {
  color: #6b7280;
  font-weight: 500;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.service-note {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid #2563eb;
  font-style: italic;
  color: #374151;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Dark mode styles for services page */
body.dark-mode .services-hero {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

body.dark-mode .services-hero::before {
  background: rgba(0, 0, 0, 0.2);
}

body.dark-mode .service-detail {
  background: #334155;
  border-color: #475569;
}

body.dark-mode .service-header h2 {
  color: #f1f5f9;
}

body.dark-mode .service-header h3 {
  color: #94a3b8;
}

body.dark-mode .service-detail p {
  color: #94a3b8;
}

body.dark-mode .service-features h4 {
  color: #f1f5f9;
}

body.dark-mode .feature-item span {
  color: #94a3b8;
}

body.dark-mode .service-note {
  background: #475569;
  color: #e2e8f0;
  border-left-color: #60a5fa;
}

/* Responsive design for services page */
@media (max-width: 768px) {
  .services-hero h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .services-hero p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .service-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .service-icon-large {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }

  .service-header h2 {
    font-size: 1.6rem;
  }

  .service-header h3 {
    font-size: 1rem;
  }

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

  .feature-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .feature-item i {
    width: auto;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

  .service-detail {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .services-hero h1 {
    font-size: 1.6rem;
  }

  .services-hero p {
    font-size: 0.9rem;
  }

  .service-header h2 {
    font-size: 1.4rem;
  }

  .service-header h3 {
    font-size: 0.9rem;
  }

  .service-detail p {
    font-size: 1rem;
  }

  .service-features h4 {
    font-size: 1.1rem;
  }

  .cta-content h2 {
    font-size: 1.6rem;
  }

  .cta-content p {
    font-size: 0.9rem;
  }

  .service-detail {
    padding: 1.25rem;
  }
}

/* Additional Mobile Improvements */
@media (max-width: 768px) {
  /* Improve touch targets */
  .btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .social-link {
    min-width: 44px;
    min-height: 44px;
  }

  /* Better mobile spacing */
  .hero {
    padding: 100px 0 60px;
  }

  .about {
    padding: 60px 0;
  }

  .services {
    padding: 60px 0;
  }

  .process {
    padding: 60px 0;
  }

  .contact {
    padding: 60px 0;
  }

  .detailed-services {
    padding: 60px 0;
  }

  .cta-section {
    padding: 60px 0;
  }

  /* Improve mobile navigation */
  .nav-menu {
    padding: 1rem 0;
  }

  .nav-item {
    margin: 0.5rem 0;
  }

  /* Better mobile form experience */
  .form-group input,
  .form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Improve mobile card layouts */
  .service-card {
    margin-bottom: 1rem;
  }

  .step {
    margin-bottom: 1rem;
  }

  /* Better mobile text readability */
  .hero-title,
  .section-header h2,
  .about-text h3,
  .contact-info h3 {
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
  }

  /* Improve mobile button layout */
  .hero-buttons {
    width: 100%;
  }

  .cta-buttons {
    width: 100%;
  }

  /* Better mobile contact layout */
  .contact-item {
    padding: 1.5rem;
  }

  /* Improve mobile footer */
  .footer {
    padding: 40px 0 20px;
  }

  .footer-content {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  /* Even better mobile spacing */
  .hero {
    padding: 80px 0 40px;
  }

  .about,
  .services,
  .process,
  .contact,
  .detailed-services,
  .cta-section {
    padding: 40px 0;
  }

  /* Smaller mobile padding */
  .container {
    padding: 0 10px;
  }

  .nav-container {
    padding: 0 10px;
  }

  /* Better mobile text sizes */
  .hero-title {
    font-size: 1.6rem;
    line-height: 1.4;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .section-header p {
    font-size: 0.9rem;
  }

  /* Improve mobile service cards */
  .service-card {
    padding: 1rem;
  }

  .service-card h3 {
    font-size: 1.1rem;
  }

  .service-card p {
    font-size: 0.9rem;
  }

  /* Better mobile contact form */
  .contact-form {
    padding: 1rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.75rem;
    font-size: 16px;
  }

  /* Improve mobile stats */
  .stat {
    padding: 1rem;
  }

  .stat h4 {
    font-size: 1.5rem;
  }

  .stat p {
    font-size: 0.9rem;
  }

  /* Better mobile icons */
  .service-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .service-icon-large {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* Improve mobile social links */
  .social-link {
    width: 40px;
    height: 40px;
  }

  /* Better mobile navigation */
  .nav-logo h2 {
    font-size: 1.5rem;
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  /* Improve mobile hamburger */
  .bar {
    width: 22px;
    height: 2px;
  }

  /* Better mobile spacing for sections */
  .section-header {
    margin-bottom: 2rem;
  }

  /* Improve mobile service details */
  .service-detail {
    padding: 1rem;
  }

  .service-header h2 {
    font-size: 1.3rem;
  }

  .service-header h3 {
    font-size: 0.85rem;
  }

  .service-detail p {
    font-size: 0.9rem;
  }

  .service-features h4 {
    font-size: 1rem;
  }

  .feature-item span {
    font-size: 0.9rem;
  }

  /* Better mobile CTA */
  .cta-content h2 {
    font-size: 1.4rem;
  }

  .cta-content p {
    font-size: 0.85rem;
  }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
    width: 100%;
  }

  .container,
  .nav-container,
  .hero-container {
    max-width: 100%;
    overflow-x: hidden;
  }
}

/* Improve mobile performance */
@media (max-width: 768px) {
  .hero-graphic {
    animation: float 8s ease-in-out infinite;
  }

  .service-card:hover {
    transform: none;
  }

  .service-card:active {
    transform: scale(0.98);
  }
}

/* Better mobile dark mode */
@media (max-width: 768px) {
  body.dark-mode .nav-menu {
    background-color: rgba(30, 41, 59, 0.98);
  }

  body.dark-mode .nav-link {
    color: #f1f5f9;
  }

  body.dark-mode .nav-link:hover {
    background-color: rgba(96, 165, 250, 0.1);
  }
}

/* Mobile-specific animations */
@media (max-width: 768px) {
  .fade-in-up {
    animation-duration: 0.4s;
  }

  .service-card,
  .step,
  .stat {
    animation-delay: 0.1s;
  }
}

/* Improve mobile accessibility */
@media (max-width: 768px) {
  .btn:focus,
  .nav-link:focus,
  .social-link:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
  }

  .form-group input:focus,
  .form-group textarea:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
  }
}

/* Mobile-specific loading states */
@media (max-width: 768px) {
  .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }

  .contact-form:disabled {
    opacity: 0.6;
    pointer-events: none;
  }
}

/* Terms of Service & Privacy Policy Styles */
.terms-hero,
.privacy-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.terms-hero::before,
.privacy-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.terms-hero .section-header,
.privacy-hero .section-header {
  position: relative;
  z-index: 2;
}

.terms-hero h1,
.privacy-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.terms-hero p,
.privacy-hero p {
  font-size: 1.2rem;
  opacity: 1;
  color: white;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.terms-content,
.privacy-content {
  padding: 80px 0;
  background: #f8fafc;
}

body.dark-mode .terms-content,
body.dark-mode .privacy-content {
  background: #1e293b;
}

.terms-wrapper,
.privacy-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

body.dark-mode .terms-wrapper,
body.dark-mode .privacy-wrapper {
  background: #334155;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

.terms-section,
.privacy-section {
  padding: 40px;
  border-bottom: 1px solid #e2e8f0;
}

body.dark-mode .terms-section,
body.dark-mode .privacy-section {
  border-bottom-color: #475569;
}

.terms-section:last-child,
.privacy-section:last-child {
  border-bottom: none;
}

.terms-section h2,
.privacy-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

body.dark-mode .terms-section h2,
body.dark-mode .privacy-section h2 {
  color: #f1f5f9;
}

.terms-section h2::before,
.privacy-section h2::before {
  content: "";
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
  margin-right: 12px;
  flex-shrink: 0;
}

.terms-section h3,
.privacy-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #374151;
  margin: 1.5rem 0 0.5rem 0;
}

body.dark-mode .terms-section h3,
body.dark-mode .privacy-section h3 {
  color: #d1d5db;
}

.terms-section p,
.privacy-section p {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 1rem;
}

body.dark-mode .terms-section p,
body.dark-mode .privacy-section p {
  color: #9ca3af;
}

.terms-section ul,
.privacy-section ul {
  color: #4b5563;
  line-height: 1.7;
  margin: 1rem 0;
  padding-left: 1.5rem;
}

body.dark-mode .terms-section ul,
body.dark-mode .privacy-section ul {
  color: #9ca3af;
}

.terms-section li,
.privacy-section li {
  margin-bottom: 0.5rem;
}

.terms-section strong,
.privacy-section strong {
  color: #1e293b;
  font-weight: 600;
}

body.dark-mode .terms-section strong,
body.dark-mode .privacy-section strong {
  color: #f1f5f9;
}

.terms-footer,
.privacy-footer {
  background: #f1f5f9;
  padding: 30px 40px;
  text-align: center;
  border-top: 1px solid #e2e8f0;
}

body.dark-mode .terms-footer,
body.dark-mode .privacy-footer {
  background: #475569;
  border-top-color: #64748b;
}

.terms-footer p,
.privacy-footer p {
  margin-bottom: 0.5rem;
  color: #64748b;
  font-size: 0.9rem;
}

body.dark-mode .terms-footer p,
body.dark-mode .privacy-footer p {
  color: #94a3b8;
}

.terms-footer p:last-child,
.privacy-footer p:last-child {
  margin-bottom: 0;
}

/* Mobile Responsive Styles for Terms & Privacy */
@media (max-width: 768px) {
  .terms-hero,
  .privacy-hero {
    padding: 100px 0 60px;
  }

  .terms-hero h1,
  .privacy-hero h1 {
    font-size: 2rem;
  }

  .terms-hero p,
  .privacy-hero p {
    font-size: 1rem;
    padding: 0 20px;
  }

  .terms-content,
  .privacy-content {
    padding: 40px 0;
  }

  .terms-wrapper,
  .privacy-wrapper {
    margin: 0 20px;
    border-radius: 12px;
  }

  .terms-section,
  .privacy-section {
    padding: 30px 20px;
  }

  .terms-section h2,
  .privacy-section h2 {
    font-size: 1.3rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .terms-section h2::before,
  .privacy-section h2::before {
    margin-right: 0;
    margin-bottom: 8px;
  }

  .terms-section h3,
  .privacy-section h3 {
    font-size: 1.1rem;
  }

  .terms-section ul,
  .privacy-section ul {
    padding-left: 1.2rem;
  }

  .terms-footer,
  .privacy-footer {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .terms-hero h1,
  .privacy-hero h1 {
    font-size: 1.8rem;
  }

  .terms-section,
  .privacy-section {
    padding: 25px 15px;
  }

  .terms-section h2,
  .privacy-section h2 {
    font-size: 1.2rem;
  }

  .terms-section h3,
  .privacy-section h3 {
    font-size: 1rem;
  }

  .terms-wrapper,
  .privacy-wrapper {
    margin: 0 15px;
  }
}
