/* 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);
}

/* New Theme Toggle - Brittany Chiang Style */
.theme-toggle-container {
  display: flex;
  align-items: center;
  margin-left: 15px;
}

.theme-toggle-button {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease;
  color: var(--text-color);
}

.theme-toggle-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .theme-toggle-button:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.toggle-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, transform 0.5s ease;
}

.light-icon {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0);
}

.dark-icon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.theme-toggle-button.dark-mode .light-icon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.theme-toggle-button.dark-mode .dark-icon {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0);
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .theme-toggle-button {
    width: 32px;
    height: 32px;
  }
  
  .toggle-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .navbar {
    position: relative;
  }
}

/* Enhanced Dark Mode Text Visibility */
[data-theme="dark"] {
  /* Ensure all text is bright white in dark mode */
  color: #ffffff !important;
}

[data-theme="dark"] * {
  color: #ffffff !important;
}

/* Specific fixes for problematic elements */
[data-theme="dark"] .project-description,
[data-theme="dark"] .project-card p,
[data-theme="dark"] .hero-content p,
[data-theme="dark"] .section p,
[data-theme="dark"] .feature-description,
[data-theme="dark"] .service-description,
[data-theme="dark"] .about-content p,
[data-theme="dark"] .testimonial-text,
[data-theme="dark"] .contact-info p,
[data-theme="dark"] .footer-column p {
  color: #ffffff !important;
}

/* Section titles and headings */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: #ffffff !important;
}

/* Project section specific fixes */
[data-theme="dark"] .project-title {
  color: #ffffff !important;
}

[data-theme="dark"] .project-subtitle {
  color: #ffffff !important;
}

/* Industry sectors text */
[data-theme="dark"] .sector-card h3,
[data-theme="dark"] .sector-card p {
  color: #ffffff !important;
}

/* Technology expertise text */
[data-theme="dark"] .tech-card h3,
[data-theme="dark"] .tech-card p {
  color: #ffffff !important;
}

/* Override any gray text colors */
[data-theme="dark"] .text-gray,
[data-theme="dark"] .text-muted,
[data-theme="dark"] .subtitle {
  color: #ffffff !important;
}

/* Links should remain visible but distinct */
[data-theme="dark"] a {
  color: #20B2AA !important;
}

[data-theme="dark"] a:hover {
  color: #1a9999 !important;
}

/* Button text */
[data-theme="dark"] .btn {
  color: #ffffff !important;
}

/* Form elements */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  color: #ffffff !important;
  background-color: #2a2a2a !important;
  border-color: #444444 !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #cccccc !important;
}

/* Navigation text */
[data-theme="dark"] .nav-menu a {
  color: #ffffff !important;
}

/* Footer text override */
[data-theme="dark"] .footer,
[data-theme="dark"] .footer * {
  color: #ffffff !important;
}

