/* Dark Mode Styles */
:root {
  --primary-color: #00b3b3;
  --secondary-color: #0099cc;
  --dark-color: #333333;
  --light-color: #ffffff;
  --gray-color: #f4f4f4;
  --border-color: #dddddd;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  
  /* Light mode (default) */
  --bg-color: #ffffff;
  --text-color: #333333;
  --card-bg: #ffffff;
  --section-bg: #f4f4f4;
  --header-bg: #ffffff;
  --footer-bg: #00b3b3;
  --footer-text: #ffffff;
}

/* Dark mode */
[data-theme="dark"] {
  --bg-color: #121212;
  --text-color: #f4f4f4;
  --card-bg: #1e1e1e;
  --section-bg: #1a1a1a;
  --header-bg: #1a1a1a;
  --footer-bg: #1a1a1a;
  --footer-text: #f4f4f4;
  --border-color: #333333;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: var(--transition);
}

.header {
  background-color: var(--header-bg);
}

.nav-menu a {
  color: var(--text-color);
}

.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
}

.section {
  background-color: var(--bg-color);
}

section[style*="background-color: var(--gray-color)"] {
  background-color: var(--section-bg) !important;
}

.project-card, .testimonial-card, .contact-form, .benefit-card, .value-card, .achievement-card {
  background: var(--card-bg);
  box-shadow: var(--box-shadow);
}

/* Theme Toggle Switch */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
}

.theme-switch {
  display: inline-block;
  height: 34px;
  position: relative;
  width: 60px;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  background-color: white;
  bottom: 4px;
  content: "";
  height: 26px;
  left: 4px;
  position: absolute;
  transition: .4s;
  width: 26px;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  box-sizing: border-box;
  pointer-events: none;
}

.sun-icon, .moon-icon {
  color: white;
  font-size: 14px;
}

/* Custom toggle design based on screenshot */
.theme-toggle {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 40px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.theme-toggle-inner {
  display: flex;
  width: 200%;
  transition: transform 0.3s ease;
}

.theme-toggle-inner.dark {
  transform: translateX(-50%);
}

.light-side, .dark-side {
  width: 50%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.light-side {
  background: linear-gradient(to bottom, #e6f7ff, #f0f8ff);
}

.dark-side {
  background: #0a1929;
}

.toggle-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sun-icon {
  color: #ffcc00;
  font-size: 18px;
}

.moon-icon {
  color: #ffffff;
  font-size: 18px;
}

.toggle-text {
  margin-left: 5px;
  font-size: 14px;
  font-weight: 500;
}

.light-side .toggle-text {
  color: #333;
}

.dark-side .toggle-text {
  color: #fff;
}


/* Mobile Optimization for Theme Toggle */
@media (max-width: 768px) {
  .theme-switch-wrapper {
    top: 15px;
    right: 15px;
  }

  .theme-toggle {
    width: 50px; /* Smaller width for mobile */
    height: 28px; /* Smaller height for mobile */
    border-radius: 14px;
  }

  .theme-toggle-inner {
    height: 28px;
  }

  .light-side, .dark-side {
    height: 28px;
    padding: 3px;
  }

  .toggle-icon {
    width: 22px; /* Smaller icon container */
    height: 22px;
  }

  .sun-icon, .moon-icon {
    font-size: 14px; /* Slightly smaller icons */
  }

  .toggle-text {
    display: none; /* Hide text on mobile */
  }
}
