/* Dark mode and theme toggle styles for CloudCoders */

/* Dark mode color variables */
html[data-theme="dark"] {
  --color-text: #e2e8f0;
  --color-muted: #a3b2c6;
  --color-surface: #111827;
  --color-section: #0f172a;
  --color-border: rgba(255, 255, 255, 0.08);
}

/* Button style (works for both themes) */
.navbar .theme-toggle {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  border: none;
  border-radius: 20px;
  padding: 3px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  color: #64748b;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-left: 8px;
  width: 56px;
  height: 28px;
  position: relative;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.navbar .theme-toggle:hover {
  background: linear-gradient(135deg, #cbd5e1 0%, #b8c5d6 100%);
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.12),
    0 2px 4px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-2px) scale(1.02);
}

.navbar .theme-toggle:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.navbar .theme-toggle .toggle-slider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  position: relative;
}

.navbar .theme-toggle .toggle-thumb {
  position: absolute;
  left: 3px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #288EEA 0%, #31a9e1 50%, #3db5e8 100%);
  border-radius: 50%;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 
    0 2px 4px rgba(40, 142, 234, 0.3),
    0 1px 2px rgba(40, 142, 234, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar .theme-toggle .toggle-icon-moon,
.navbar .theme-toggle .toggle-icon-sun {
  font-size: 12px;
  position: absolute;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 5;
}

.navbar .theme-toggle .toggle-icon-moon {
  left: 8px;
  color: #64748b;
  opacity: 0;
}

.navbar .theme-toggle .toggle-icon-sun {
  right: 8px;
  color: #f59e0b;
  opacity: 0;
}

.navbar .theme-toggle .toggle-thumb .bi {
  color: #fff;
  font-size: 12px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

html[data-theme="dark"] .navbar .theme-toggle {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .navbar .theme-toggle:hover {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .navbar .theme-toggle .toggle-thumb {
  left: 31px;
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fcd34d 100%);
  box-shadow: 
    0 2px 4px rgba(245, 158, 11, 0.3),
    0 1px 2px rgba(245, 158, 11, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

html[data-theme="dark"] .navbar .theme-toggle .toggle-icon-moon {
  opacity: 0;
}

html[data-theme="dark"] .navbar .theme-toggle .toggle-icon-sun {
  opacity: 1;
}

.navbar-mobile .theme-toggle {
  margin: 0;
  width: 56px;
  height: 28px;
}

html[data-theme="dark"] .navbar-mobile .mobile-menu-header {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .navbar-mobile .mobile-menu-title {
  color: #e2e8f0;
}

html[data-theme="dark"] .mobile-nav-toggle {
  color: #fff;
}

/* Dark mode overrides using brand blues */
html[data-theme="dark"] body {
  background: #0b1220;
  color: #cbd5e1;
}

/* Override gray text color that's hard to read in dark mode */
html[data-theme="dark"] .theme-btn {
  color: #64748b;
}

html[data-theme="dark"] .ai-development .ai-dev-desc {
  color: #a3b2c6;
}

html[data-theme="dark"] .ai-development .stat-label {
  color: #a3b2c6;
}

html[data-theme="dark"] .comparison .section-title p {
  color: #a3b2c6;
}

html[data-theme="dark"] .comparison .comparison-col.traditional {
  color: #a3b2c6;
}

html[data-theme="dark"] .team .section-title p {
  color: #a3b2c6;
}

html[data-theme="dark"] .technical-practices .section-title p {
  color: #a3b2c6;
}

html[data-theme="dark"] .technical-practices .practice-card p {
  color: #a3b2c6;
}

html[data-theme="dark"] a { color: #79b9ff; }
html[data-theme="dark"] a:hover { color: #a8d4ff; }

html[data-theme="dark"] .section-bg { background-color: #0b1220; }

html[data-theme="dark"] .ai-process {
  background: #1a365d;
}

html[data-theme="dark"] .fixed-price {
  background: #1a365d;
}

html[data-theme="dark"] #header { border-bottom-color: rgba(255,255,255,0.06); }
html[data-theme="dark"] #header::before { background: rgba(15,23,42,0.85); }
html[data-theme="dark"] #header.header-scrolled::before,
html[data-theme="dark"] #header.header-inner-pages::before { background: rgba(15,23,42,0.95); }

html[data-theme="dark"] .navbar a,
html[data-theme="dark"] .navbar a:focus { color: #e2e8f0; }

html[data-theme="dark"] .navbar .dropdown ul {
  background: #0f172a;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}
html[data-theme="dark"] .navbar .dropdown ul a { color: #cbd5e1; }

html[data-theme="dark"] .navbar-mobile ul {
  background-color: #0f172a;
  box-shadow: -12px 0 30px rgba(0,0,0,0.5);
}
html[data-theme="dark"] .navbar-mobile a,
html[data-theme="dark"] .navbar-mobile a:focus { color: #e2e8f0; }

/* Cards and surfaces */
html[data-theme="dark"] .projects .project-showcase,
html[data-theme="dark"] .why-cloudcoders .icon-box,
html[data-theme="dark"] .ai-process .process-step,
html[data-theme="dark"] .technical-practices .practice-card,
html[data-theme="dark"] .metrics .metric-card {
  background: #0f172a;
  border-color: rgba(255,255,255,0.06);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

html[data-theme="dark"] .projects .project-visual { background: #0b1220; }

/* Headings and text */
html[data-theme="dark"] .projects .project-header h3,
html[data-theme="dark"] .projects .project-tech h4,
html[data-theme="dark"] .projects .project-features h4,
html[data-theme="dark"] .section-title h2,
html[data-theme="dark"] .why-cloudcoders .icon-box h4,
html[data-theme="dark"] .ai-process .process-step h4,
html[data-theme="dark"] .technical-practices .practice-card h4,
html[data-theme="dark"] .team-member .member-content h3 { color: #e2e8f0; }

html[data-theme="dark"] .projects .project-description,
html[data-theme="dark"] .projects .feature-item span,
html[data-theme="dark"] .why-cloudcoders .intro-text,
html[data-theme="dark"] .why-cloudcoders .icon-box p,
html[data-theme="dark"] .ai-process .process-description,
html[data-theme="dark"] .ai-process .process-step p,
html[data-theme="dark"] .technical-practices .section-title p,
html[data-theme="dark"] .technical-practices .practice-card p,
html[data-theme="dark"] .team-member .member-bio,
html[data-theme="dark"] .metrics .metric-label { color: #a3b2c6; }

html[data-theme="dark"] .projects .feature-item {
  background: #0b1220;
  border-color: rgba(255,255,255,0.06);
}

html[data-theme="dark"] .navbar .lang-selector { border-left-color: rgba(255,255,255,0.08); }
html[data-theme="dark"] .slideshow-nav { background: rgba(15,23,42,0.9); }
html[data-theme="dark"] .slideshow-nav:hover { background: #0f172a; }

/* Hero button hover */
html[data-theme="dark"] #hero .btn-get-started-secondary:hover {
  background: #0f172a;
  color: #288EEA;
}

/* Technologies section */
html[data-theme="dark"] .technologies .tech-item {
  background: linear-gradient(135deg, #0f172a 0%, #123a63 100%);
  border-color: rgba(40, 142, 234, 0.28);
  color: #fff;
}

html[data-theme="dark"] .technologies .tech-icon {
  filter: brightness(0) invert(1);
}

html[data-theme="dark"] .technologies .tech-item:hover {
  color: #fff;
}

/* Differentiators section */
html[data-theme="dark"] .differentiators .diff-card {
  background: #0f172a;
  border-color: rgba(255,255,255,0.06);
}

/* Why Us accordion */
html[data-theme="dark"] .why-us .accordion-list li {
  background: #0f172a;
  border-color: rgba(255,255,255,0.06);
}

/* Portfolio items */
html[data-theme="dark"] .portfolio .portfolio-item {
  background: #0f172a;
  border-color: rgba(255,255,255,0.06);
}

/* Testimonials */
html[data-theme="dark"] .testimonials .testimonial-item {
  background: #0f172a;
  border-color: rgba(255,255,255,0.06);
}

/* FAQ */
html[data-theme="dark"] .faq .faq-list li {
  background: #0f172a;
  border-color: rgba(255,255,255,0.06);
}

/* Contact form loading */
html[data-theme="dark"] .contact .php-email-form .loading {
  background: #0f172a;
}

/* Footer newsletter form */
html[data-theme="dark"] #footer .footer-newsletter form {
  background: #0f172a;
}

/* Fixed price section */
html[data-theme="dark"] .fixed-price {
  background: #0f172a;
  color: #cbd5e1;
}

html[data-theme="dark"] .fixed-price .fixed-price-content h2 {
  color: #e2e8f0;
}

html[data-theme="dark"] .fixed-price .fixed-price-content p {
  color: #a3b2c6;
}

html[data-theme="dark"] .fixed-price .benefit-card:hover {
  background: #0b1220;
  border-color: #288EEA;
}

html[data-theme="dark"] .fixed-price .benefit-card span {
  color: #cbd5e1;
}

/* Comparison section */
html[data-theme="dark"] .comparison {
  background: #0f172a;
  color: #cbd5e1;
}

html[data-theme="dark"] .comparison .comparison-table {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .comparison .comparison-header {
  background: linear-gradient(135deg, #1e3a5f 0%, #288EEA 100%);
}

html[data-theme="dark"] .comparison .comparison-row {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .comparison .comparison-col.feature {
  background: #1a365d;
  color: #e2e8f0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .comparison .comparison-col.cloudcoders {
  background: rgba(40, 142, 234, 0.1);
  color: #79b9ff;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .comparison .comparison-col.traditional {
  background: #0f172a;
  color: #a3b2c6;
}

/* Feature item hover */
html[data-theme="dark"] .projects .feature-item:hover {
  background: #0b1220;
  border-color: #288EEA;
}

/* Swiper pagination */
html[data-theme="dark"] .swiper-pagination-bullet-active {
  background-color: #288EEA;
}

/* Footer background */
html[data-theme="dark"] #footer {
  background: linear-gradient(135deg, #0a1929 0%, #0d1b2a 100%);
  color: #cbd5e1;
  border-top: 2px solid rgba(40, 142, 234, 0.3);
}

html[data-theme="dark"] #footer .footer-top {
  background: transparent;
}

html[data-theme="dark"] #footer .footer-links h4 {
  color: #e2e8f0;
}

html[data-theme="dark"] #footer .footer-links ul li a {
  color: #a3b2c6;
}

html[data-theme="dark"] #footer .footer-links ul li a:hover {
  color: #288EEA;
}

html[data-theme="dark"] #footer .footer-contact h3 {
  color: #e2e8f0;
}

html[data-theme="dark"] #footer .footer-contact p {
  color: #a3b2c6;
}

html[data-theme="dark"] #footer .footer-newsletter h4 {
  color: #e2e8f0;
}

html[data-theme="dark"] #footer .footer-newsletter p {
  color: #a3b2c6;
}

html[data-theme="dark"] #footer .copyright {
  color: #a3b2c6;
}

html[data-theme="dark"] #footer .credits a {
  color: #288EEA;
}

/* Breadcrumbs */
html[data-theme="dark"] .breadcrumbs {
  background: #0f172a;
}

html[data-theme="dark"] .breadcrumbs ol li a {
  color: #79b9ff;
}

html[data-theme="dark"] .breadcrumbs h2 {
  color: #e2e8f0;
}

/* AI Development section */
html[data-theme="dark"] .ai-development {
  background: #1a365d;
  color: #cbd5e1;
}

html[data-theme="dark"] .ai-dev-desc {
  color: #a3b2c6;
}

html[data-theme="dark"] .ai-dev-features .ai-feature {
  color: #cbd5e1;
}

html[data-theme="dark"] .ai-dev-visual {
  background: #1a365d;
}

html[data-theme="dark"] .ai-icon-large {
  color: #288EEA;
}

/* AI Process description background */
html[data-theme="dark"] .ai-process .process-description {
  background: #0f172a;
  color: #a3b2c6;
}

html[data-theme="dark"] .ai-process .process-description .highlight {
  color: #288EEA;
}

/* Guarantee section */
html[data-theme="dark"] .guarantee .guarantee-content {
  color: #cbd5e1;
}

html[data-theme="dark"] .guarantee .guarantee-list li {
  color: #cbd5e1;
}

html[data-theme="dark"] .guarantee .highlight {
  background: rgba(40, 142, 234, 0.2);
  border-color: #288EEA;
  color: #e2e8f0;
}

/* Contact section */
html[data-theme="dark"] .contact .info {
  background: #0f172a;
  border-color: rgba(40, 142, 234, 0.3);
}

html[data-theme="dark"] .contact .info h4 {
  color: #e2e8f0;
}

html[data-theme="dark"] .contact .info p {
  color: #a3b2c6;
}

html[data-theme="dark"] .contact .info-box {
  background: #0f172a;
  border-color: rgba(255,255,255,0.06);
}

html[data-theme="dark"] .contact .info-box h3 {
  color: #e2e8f0;
}

html[data-theme="dark"] .contact .info-box p {
  color: #a3b2c6;
}

html[data-theme="dark"] .contact .info-box i {
  color: #288EEA;
}

html[data-theme="dark"] .contact .php-email-form {
  background: #0f172a;
  border-color: rgba(40, 142, 234, 0.3);
  border-radius: 20px;
}

html[data-theme="dark"] .contact .php-email-form input,
html[data-theme="dark"] .contact .php-email-form textarea {
  background: #0b1220;
  border-color: rgba(255,255,255,0.1);
  color: #cbd5e1;
}

html[data-theme="dark"] .contact .php-email-form input:focus,
html[data-theme="dark"] .contact .php-email-form textarea:focus {
  border-color: #288EEA;
}

html[data-theme="dark"] .contact .php-email-form button {
  background: #288EEA;
  color: #fff;
}

html[data-theme="dark"] .contact .php-email-form button:hover {
  background: #209dd8;
}

/* Hero badges */
html[data-theme="dark"] #hero .badge-card {
  background: rgba(40, 142, 234, 0.15);
  border-color: rgba(40, 142, 234, 0.3);
}

html[data-theme="dark"] #hero .badge-card:hover {
  background: rgba(40, 142, 234, 0.25);
  border-color: rgba(40, 142, 234, 0.4);
}

/* Hero secondary button */
html[data-theme="dark"] #hero .btn-get-started-secondary {
  background: rgba(40, 142, 234, 0.15);
  border-color: rgba(40, 142, 234, 0.3);
  color: #cbd5e1;
}

html[data-theme="dark"] #hero .btn-get-started-secondary:hover {
  background: #0f172a;
  color: #288EEA;
}

/* Guarantee section title underline */
html[data-theme="dark"] .guarantee .section-title h2::before {
  background: rgba(40, 142, 234, 0.3);
}

/* Slideshow dots */
html[data-theme="dark"] .projects .slideshow-dots .dot {
  background: rgba(40, 142, 234, 0.4);
  border-color: rgba(40, 142, 234, 0.6);
}

html[data-theme="dark"] .projects .slideshow-dots .dot.active {
  background: #288EEA;
  border-color: #288EEA;
}

html[data-theme="dark"] .projects .slideshow-dots .dot:hover {
  background: rgba(40, 142, 234, 0.6);
}

/* Slideshow nav buttons */
html[data-theme="dark"] .projects .slideshow-nav {
  background: rgba(15, 23, 42, 0.9);
}

html[data-theme="dark"] .projects .slideshow-nav:hover {
  background: #0f172a;
}

html[data-theme="dark"] .projects .slideshow-nav i {
  color: #cbd5e1;
}

html[data-theme="dark"] .projects .slideshow-nav:hover i {
  color: #288EEA;
}

/* Light gray backgrounds that need dark mode */
html[data-theme="dark"] .projects .feature-item {
  background: #0b1220;
  border-color: rgba(255,255,255,0.06);
}

html[data-theme="dark"] .technologies {
  background: #0b1220;
}

html[data-theme="dark"] .fixed-price .benefit-card {
  background: #0f172a;
  border-color: rgba(255,255,255,0.06);
}

html[data-theme="dark"] .metrics {
  background: #0b1220;
}

html[data-theme="dark"] .metrics .metric-card {
  background: #0f172a;
  border-color: rgba(255,255,255,0.06);
}

html[data-theme="dark"] .metrics .metric-value {
  color: #e2e8f0;
}

html[data-theme="dark"] .metrics .metric-label {
  color: #a3b2c6;
}

/* Footer light gray backgrounds */
html[data-theme="dark"] #footer .footer-newsletter {
  background: #0f172a;
}

html[data-theme="dark"] #footer .footer-top {
  background: #0b1220;
}

html[data-theme="dark"] #footer .footer-newsletter form input {
  background: #0b1220;
  border-color: rgba(255,255,255,0.1);
  color: #cbd5e1;
}

html[data-theme="dark"] #footer .footer-newsletter form input:focus {
  border-color: #288EEA;
}

html[data-theme="dark"] #footer .footer-newsletter form input::placeholder {
  color: #64748b;
}

html[data-theme="dark"] #footer .footer-newsletter form button {
  background: #288EEA;
  color: #fff;
}

html[data-theme="dark"] #footer .footer-newsletter form button:hover {
  background: #209dd8;
}

/* Breadcrumbs light gray background */
html[data-theme="dark"] .breadcrumbs {
  background: #0f172a;
}

html[data-theme="dark"] .breadcrumbs ol li a {
  color: #79b9ff;
}

html[data-theme="dark"] .breadcrumbs ol li a:hover {
  color: #a8d4ff;
}

html[data-theme="dark"] .breadcrumbs h2 {
  color: #e2e8f0;
}

/* Team member card border */
html[data-theme="dark"] .team-member {
  border-top: 4px solid #288EEA;
}

/* Pricing section */
html[data-theme="dark"] .pricing .box {
  background: #0f172a;
  border-color: rgba(255,255,255,0.06);
}

html[data-theme="dark"] .pricing .box h3 {
  color: #e2e8f0;
}

html[data-theme="dark"] .pricing .box h4 {
  color: #cbd5e1;
}

html[data-theme="dark"] .pricing .box ul li {
  color: #a3b2c6;
}

html[data-theme="dark"] .pricing .box .btn-wrap {
  background: #0b1220;
}

html[data-theme="dark"] .pricing .buy-btn {
  background: #0f172a;
  border-color: rgba(255,255,255,0.1);
  color: #cbd5e1;
}

html[data-theme="dark"] .pricing .buy-btn:hover {
  background: #288EEA;
  color: #fff;
}

html[data-theme="dark"] .pricing .featured .buy-btn {
  background: #288EEA;
  color: #fff;
}

/* Team section */
html[data-theme="dark"] .team {
  background: linear-gradient(135deg, #0b1220 0%, #0f172a 100%);
}

html[data-theme="dark"] .team-member {
  background: #0f172a;
  border-color: rgba(255,255,255,0.06);
}

html[data-theme="dark"] .team-member .member-content h3 {
  color: #e2e8f0;
}

html[data-theme="dark"] .team-member .member-role {
  color: #288EEA;
}

html[data-theme="dark"] .team-member .member-bio {
  color: #a3b2c6;
}

html[data-theme="dark"] .team .member .member-info {
  background: #0f172a;
}

html[data-theme="dark"] .team .member .member-content h3 {
  color: #e2e8f0;
}

html[data-theme="dark"] .team .member .member-content p {
  color: #a3b2c6;
}

html[data-theme="dark"] .team .member .social a {
  background: #0b1220;
  color: #cbd5e1;
}

html[data-theme="dark"] .team .member .social a:hover {
  background: #288EEA;
  color: #fff;
}

/* Contact form messages */
html[data-theme="dark"] .contact .php-email-form .error-message {
  background: rgba(237, 60, 13, 0.9);
  color: #fff;
}

html[data-theme="dark"] .contact .php-email-form .sent-message {
  background: rgba(24, 210, 110, 0.9);
  color: #fff;
}

/* Contact info section */
html[data-theme="dark"] .contact .info .social-links a {
  background: #0b1220;
  color: #cbd5e1;
}

html[data-theme="dark"] .contact .info .social-links a:hover {
  background: #288EEA;
  color: #fff;
}

html[data-theme="dark"] .contact .info .phone:hover i {
  background: #288EEA;
  color: #fff;
}

/* Section title text */
html[data-theme="dark"] .section-title p {
  color: #a3b2c6;
}

html[data-theme="dark"] .section-title h2 {
  color: #e2e8f0;
}

html[data-theme="dark"] .section-title h2::before {
  background: rgba(40, 142, 234, 0.3);
}
