/**
 * Custom CSS Fixes for ANG Solutions Website
 * This file contains accessibility fixes, browser compatibility, and custom styles
 * Version: 1.3
 * Last Updated: December 2025
 */

/* ========================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   Centralized theming - change these to update site-wide
   ======================================== */
:root {
  /* ===== BRAND COLORS ===== */
  --ang-primary: #77BEFF;
  --ang-primary-dark: #5ba8eb;
  --ang-primary-light: #a8d4ff;
  --ang-primary-rgb: 119, 190, 255;

  /* Accent Colors - Gradient palette */
  --ang-accent-purple: #8b5cf6;
  --ang-accent-pink: #ec4899;
  --ang-accent-green: #22c55e;
  --ang-accent-orange: #f59e0b;

  /* Status Colors */
  --ang-success: #22c55e;
  --ang-error: #ef4444;
  --ang-warning: #f59e0b;
  --ang-info: #3b82f6;

  /* ===== DARK THEME (Default) ===== */
  /* Text Colors - Slate palette for better readability */
  --ang-text-heading: #f1f5f9;
  --ang-text-primary: #e2e8f0;
  --ang-text-secondary: #94a3b8;
  --ang-text-muted: #64748b;
  --ang-text-subtle: #475569;

  /* Background Colors */
  --ang-bg-primary: #0d1117;
  --ang-bg-secondary: #161b22;
  --ang-bg-tertiary: #21262d;
  --ang-bg-alt: #0a0f14;
  --ang-bg-card: rgba(255, 255, 255, 0.03);
  --ang-bg-card-hover: rgba(255, 255, 255, 0.06);
  --ang-bg-overlay: rgba(13, 17, 23, 0.9);
  --ang-bg-hover: rgba(255, 255, 255, 0.08);

  /* Border Colors */
  --ang-border-color: rgba(255, 255, 255, 0.12);
  --ang-border-light: rgba(255, 255, 255, 0.06);
  --ang-border-focus: rgba(119, 190, 255, 0.5);

  /* Header/Footer */
  --ang-header-bg: rgba(13, 17, 23, 0.95);
  --ang-footer-bg: #0a0f14;

  /* Component-specific Colors */
  --ang-card-bg: rgba(255, 255, 255, 0.02);
  --ang-card-border: rgba(255, 255, 255, 0.08);
  --ang-card-border-hover: rgba(119, 190, 255, 0.25);
  --ang-input-bg: rgba(255, 255, 255, 0.05);
  --ang-input-border: rgba(255, 255, 255, 0.1);

  /* Gradient Presets */
  --ang-gradient-primary: linear-gradient(135deg, var(--ang-primary), var(--ang-accent-purple));
  --ang-gradient-vibrant: linear-gradient(135deg, var(--ang-primary), var(--ang-accent-purple), var(--ang-accent-pink));
  --ang-gradient-subtle: linear-gradient(135deg, rgba(119, 190, 255, 0.1), rgba(139, 92, 246, 0.1));

  /* Shadows - Dark Mode */
  --ang-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --ang-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --ang-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --ang-shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.3);
  --ang-shadow-glow: 0 0 20px rgba(119, 190, 255, 0.3);
  --ang-shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);
  --ang-shadow-card-hover: 0 20px 40px rgba(0, 0, 0, 0.35);

  /* Container max width */
  --ang-container-padding: 5%;

  /* Spacing Scale */
  --ang-spacing-xs: 4px;
  --ang-spacing-sm: 8px;
  --ang-spacing-md: 16px;
  --ang-spacing-lg: 24px;
  --ang-spacing-xl: 32px;
  --ang-spacing-xxl: 48px;

  /* Border Radius Scale */
  --ang-radius-sm: 4px;
  --ang-radius-md: 8px;
  --ang-radius-lg: 12px;
  --ang-radius-xl: 16px;
  --ang-radius-2xl: 20px;
  --ang-radius-full: 50%;

  /* Transitions */
  --ang-transition-fast: 0.15s ease;
  --ang-transition-normal: 0.25s ease;
  --ang-transition-slow: 0.4s ease;
  --ang-transition-theme: 0.4s ease;

  /* Font Sizes */
  --ang-font-xs: 0.75rem;
  --ang-font-sm: 0.875rem;
  --ang-font-base: 1rem;
  --ang-font-lg: 1.125rem;
  --ang-font-xl: 1.25rem;
  --ang-font-2xl: 1.5rem;
  --ang-font-3xl: 2rem;
  --ang-font-4xl: 2.5rem;

  /* Z-Index Scale */
  --ang-z-dropdown: 1000;
  --ang-z-sticky: 1020;
  --ang-z-fixed: 1030;
  --ang-z-modal-backdrop: 1040;
  --ang-z-modal: 1050;
  --ang-z-popover: 1060;
  --ang-z-tooltip: 1070;
  --ang-z-theme-toggle: 9999;
  --ang-z-skip-link: 10000;

  /* Touch Target Size (WCAG 2.2) */
  --ang-touch-target: 44px;
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
  /* Text Colors */
  --ang-text-heading: #0f172a;
  --ang-text-primary: #1e293b;
  --ang-text-secondary: #475569;
  --ang-text-muted: #64748b;
  --ang-text-subtle: #94a3b8;

  /* Background Colors */
  --ang-bg-primary: #ffffff;
  --ang-bg-secondary: #f8fafc;
  --ang-bg-tertiary: #f1f5f9;
  --ang-bg-alt: #e2e8f0;
  --ang-bg-card: rgba(0, 0, 0, 0.02);
  --ang-bg-card-hover: rgba(0, 0, 0, 0.04);
  --ang-bg-overlay: rgba(255, 255, 255, 0.95);
  --ang-bg-hover: rgba(0, 0, 0, 0.04);

  /* Border Colors */
  --ang-border-color: rgba(0, 0, 0, 0.1);
  --ang-border-light: rgba(0, 0, 0, 0.05);
  --ang-border-focus: rgba(59, 130, 246, 0.5);

  /* Header/Footer */
  --ang-header-bg: rgba(255, 255, 255, 0.95);
  --ang-footer-bg: #f1f5f9;

  /* Component Colors - Light Mode */
  --ang-card-bg: #ffffff;
  --ang-card-border: rgba(0, 0, 0, 0.08);
  --ang-card-border-hover: rgba(59, 130, 246, 0.25);
  --ang-input-bg: #ffffff;
  --ang-input-border: rgba(0, 0, 0, 0.15);

  /* Primary Color Adjustment for Light Mode */
  --ang-primary: #3b82f6;
  --ang-primary-dark: #2563eb;
  --ang-primary-light: #60a5fa;
  --ang-primary-rgb: 59, 130, 246;

  /* Gradient Presets - Light Mode */
  --ang-gradient-primary: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --ang-gradient-vibrant: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
  --ang-gradient-subtle: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));

  /* Shadows - Light Mode */
  --ang-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --ang-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --ang-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --ang-shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);
  --ang-shadow-glow: 0 0 20px rgba(59, 130, 246, 0.2);
  --ang-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
  --ang-shadow-card-hover: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* ========================================
   THEME TOGGLE BUTTON
   ======================================== */
/* Hide fixed toggle - we're using header toggle now */
.theme-toggle {
  display: none !important;
}

/* Header Theme Toggle */
.theme-toggle-header {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--ang-border-color);
  background: var(--ang-bg-secondary);
  color: var(--ang-text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 100;
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
  margin: 0;
}

.theme-toggle-header:hover {
  background: var(--ang-primary);
  border-color: var(--ang-primary);
  color: #fff;
  transform: rotate(15deg);
}

.theme-toggle-header:active {
  transform: scale(0.95);
}

.theme-toggle-header:focus {
  outline: 2px solid var(--ang-primary);
  outline-offset: 2px;
}

.theme-toggle-header .icon-sun,
.theme-toggle-header .icon-moon {
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

/* Dark mode: show sun icon */
.theme-toggle-header .icon-sun {
  display: block;
}

.theme-toggle-header .icon-moon {
  display: none;
}

/* Light mode: show moon icon */
[data-theme="light"] .theme-toggle-header .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle-header .icon-moon {
  display: block;
}

/* Mobile toggle - smaller */
.theme-toggle-mobile {
  width: 36px;
  height: 36px;
  font-size: 0.9rem;
}

/* ========================================
   THEME TRANSITION STYLES
   ======================================== */
body,
.header,
.site-footer,
.card,
.btn,
.form-control,
.offcanvas,
.section-title,
.widget {
  transition: background-color var(--ang-transition-theme),
    color var(--ang-transition-theme),
    border-color var(--ang-transition-theme),
    box-shadow var(--ang-transition-theme);
}

/* ========================================
   LIGHT THEME OVERRIDES
   Using !important to override template hardcoded colors
   ======================================== */
[data-theme="light"] body {
  background-color: var(--ang-bg-primary) !important;
  color: var(--ang-text-primary) !important;
}

[data-theme="light"] .header {
  background: var(--ang-header-bg) !important;
  box-shadow: var(--ang-shadow-sm);
}

[data-theme="light"] .header .nav-link,
[data-theme="light"] .navbar-nav .nav-link {
  color: var(--ang-text-primary) !important;
}

[data-theme="light"] .header .nav-link:hover,
[data-theme="light"] .navbar-nav .nav-link:hover {
  color: var(--ang-primary) !important;
}

/* Footer styles moved to FIX 7 section */

[data-theme="light"] .section-title h2,
[data-theme="light"] .section-title .title,
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6,
[data-theme="light"] .h1,
[data-theme="light"] .h2,
[data-theme="light"] .h3,
[data-theme="light"] .h4,
[data-theme="light"] .h5,
[data-theme="light"] .h6 {
  color: var(--ang-text-primary) !important;
}

[data-theme="light"] .widget-title {
  color: var(--ang-text-primary) !important;
}

[data-theme="light"] p,
[data-theme="light"] .text-body {
  color: var(--ang-text-secondary) !important;
}

[data-theme="light"] .card,
[data-theme="light"] .service-item,
[data-theme="light"] .feature-info,
[data-theme="light"] .team-member,
[data-theme="light"] .candidate-details {
  background: var(--ang-bg-secondary) !important;
  border: 1px solid var(--ang-border-color) !important;
}

[data-theme="light"] .form-control,
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
  background: var(--ang-bg-primary) !important;
  border-color: var(--ang-border-color) !important;
  color: var(--ang-text-primary) !important;
}

[data-theme="light"] .form-control::placeholder,
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: var(--ang-text-muted) !important;
}

[data-theme="light"] .offcanvas,
[data-theme="light"] .offcanvas-body {
  background: var(--ang-bg-primary) !important;
  color: var(--ang-text-primary) !important;
}

[data-theme="light"] .btn-dark {
  background: var(--ang-text-primary) !important;
  color: var(--ang-bg-primary) !important;
}

[data-theme="light"] .inner-header.page-header-bg,
[data-theme="light"] .inner-header {
  background-color: var(--ang-bg-tertiary) !important;
}

[data-theme="light"] .main-banner,
[data-theme="light"] .banner-section {
  background: var(--ang-bg-secondary) !important;
}

[data-theme="light"] .banner-title {
  color: var(--ang-text-primary) !important;
}

[data-theme="light"] .accordion-item {
  background: var(--ang-bg-secondary) !important;
  border-color: var(--ang-border-color) !important;
}

[data-theme="light"] .accordion-button {
  background: var(--ang-bg-secondary) !important;
  color: var(--ang-text-primary) !important;
}

[data-theme="light"] .accordion-button:not(.collapsed) {
  background: var(--ang-bg-tertiary) !important;
}

[data-theme="light"] a:not(.btn) {
  color: var(--ang-primary) !important;
}

[data-theme="light"] a:not(.btn):hover {
  color: var(--ang-primary-dark) !important;
}

/* Navigation specific overrides */
[data-theme="light"] .dropdown-menu {
  background: var(--ang-bg-primary) !important;
  border-color: var(--ang-border-color) !important;
}

[data-theme="light"] .dropdown-item {
  color: var(--ang-text-primary) !important;
}

[data-theme="light"] .dropdown-item:hover {
  background: var(--ang-bg-secondary) !important;
}

/* Buttons */
[data-theme="light"] .btn-link {
  color: var(--ang-primary) !important;
}

[data-theme="light"] .btn-primary {
  background-color: var(--ang-primary) !important;
  border-color: var(--ang-primary) !important;
}

/* Footer link styles moved to FIX 7 section */

/* Counter/Stats sections */
[data-theme="light"] .counter-title,
[data-theme="light"] .counter span {
  color: var(--ang-text-primary) !important;
}

/* Testimonials */
[data-theme="light"] .testimonial-item,
[data-theme="light"] .testimonial-content {
  background: var(--ang-bg-secondary) !important;
}

/* Blog/Case studies */
[data-theme="light"] .blog-post,
[data-theme="light"] .case-studies-item {
  background: var(--ang-bg-secondary) !important;
}

[data-theme="light"] .blog-post-title a,
[data-theme="light"] .case-studies-title a {
  color: var(--ang-text-primary) !important;
}

/* FAQ page */
[data-theme="light"] .faq-content {
  background: var(--ang-bg-secondary) !important;
}

/* Pricing */
[data-theme="light"] .pricing-table {
  background: var(--ang-bg-secondary) !important;
  border-color: var(--ang-border-color) !important;
}

[data-theme="light"] .pricing-title {
  color: var(--ang-text-primary) !important;
}

/* Career page */
[data-theme="light"] .job-item {
  background: var(--ang-bg-secondary) !important;
  border-color: var(--ang-border-color) !important;
}

/* Contact page */
[data-theme="light"] .contact-info {
  background: var(--ang-bg-secondary) !important;
}

/* Modal */
[data-theme="light"] .modal-content {
  background: var(--ang-bg-primary) !important;
  color: var(--ang-text-primary) !important;
}

/* Tables */
[data-theme="light"] table,
[data-theme="light"] .table {
  color: var(--ang-text-primary) !important;
}

[data-theme="light"] .table-bordered,
[data-theme="light"] .table thead th {
  border-color: var(--ang-border-color) !important;
}

/* List items */
[data-theme="light"] .list-unstyled li,
[data-theme="light"] ul li {
  color: var(--ang-text-secondary);
}

/* Blockquote */
[data-theme="light"] blockquote {
  background: var(--ang-bg-secondary) !important;
  border-left-color: var(--ang-primary) !important;
}

/* Pre/Code */
[data-theme="light"] pre,
[data-theme="light"] code {
  background: var(--ang-bg-tertiary) !important;
  color: var(--ang-text-primary) !important;
}

/* Override dark backgrounds in light mode */
[data-theme="light"] .bg-dark,
[data-theme="light"] .bg-black,
[data-theme="light"] [style*="background-color: #000"],
[data-theme="light"] [style*="background:#000"] {
  background-color: var(--ang-bg-secondary) !important;
}

/* Text color overrides */
[data-theme="light"] .text-white {
  color: var(--ang-text-primary) !important;
}

/* Border overrides */
[data-theme="light"] .border,
[data-theme="light"] .border-top,
[data-theme="light"] .border-bottom,
[data-theme="light"] .border-start,
[data-theme="light"] .border-end {
  border-color: var(--ang-border-color) !important;
}

/* Owl carousel */
[data-theme="light"] .owl-carousel .owl-nav button,
[data-theme="light"] .swiper-button-next,
[data-theme="light"] .swiper-button-prev {
  background: var(--ang-bg-secondary) !important;
  color: var(--ang-text-primary) !important;
}

/* Back to top button */
[data-theme="light"] .back-to-top {
  background: var(--ang-primary) !important;
}

/* Inner pages banner */
[data-theme="light"] .breadcrumb-item,
[data-theme="light"] .breadcrumb-item a {
  color: var(--ang-text-secondary) !important;
}

[data-theme="light"] .breadcrumb-item.active {
  color: var(--ang-primary) !important;
}

/* SVG icons */
[data-theme="light"] .icon-svg path,
[data-theme="light"] .icon-svg circle,
[data-theme="light"] .icon-svg rect {
  fill: var(--ang-text-primary);
}

/* Verification page */
[data-theme="light"] #result-section,
[data-theme="light"] #error-message {
  background: var(--ang-bg-secondary) !important;
}

/* Cursor (if used) */
[data-theme="light"] #cursor .cursor__circle {
  border-color: var(--ang-primary) !important;
}



/* Search overlay */
[data-theme="light"] .search-overlay {
  background: var(--ang-bg-overlay) !important;
}

/* Logo - navbar only, footer logo handled in FIX 7 */
[data-theme="light"] .navbar-brand img {
  filter: invert(1) hue-rotate(180deg);
}

/* Section backgrounds */
[data-theme="light"] .space-ptb,
[data-theme="light"] .space-pb,
[data-theme="light"] .space-pt,
[data-theme="light"] section {
  background-color: var(--ang-bg-primary);
}

[data-theme="light"] .bg-light {
  background-color: var(--ang-bg-secondary) !important;
}

/* Service icons */
[data-theme="light"] .service-icon svg,
[data-theme="light"] .flaticon::before {
  color: var(--ang-primary) !important;
}

/* Counter section */
[data-theme="light"] .counter-section {
  background: var(--ang-bg-secondary) !important;
}

/* Timeline (about page history) */
[data-theme="light"] .timeline-item::before {
  background: var(--ang-border-color);
}

[data-theme="light"] .timeline-dot {
  background: var(--ang-primary) !important;
}

/* Team section */
[data-theme="light"] .team-info {
  background: var(--ang-bg-secondary) !important;
}

[data-theme="light"] .team-name {
  color: var(--ang-text-primary) !important;
}

[data-theme="light"] .team-designation {
  color: var(--ang-text-secondary) !important;
}

/* Awards/Clients logos - keep visible */
[data-theme="light"] .client-logo img,
[data-theme="light"] .award-logo img {
  filter: grayscale(100%) brightness(0.5);
}

[data-theme="light"] .client-logo:hover img,
[data-theme="light"] .award-logo:hover img {
  filter: none;
}

/* Hamburger menu */
[data-theme="light"] .hamburger span,
[data-theme="light"] .hamburger-inner,
[data-theme="light"] .hamburger-inner::before,
[data-theme="light"] .hamburger-inner::after {
  background-color: var(--ang-text-primary) !important;
}

/* Social icons */
[data-theme="light"] .social-icon a,
[data-theme="light"] .social-links a {
  color: var(--ang-text-secondary) !important;
}

[data-theme="light"] .social-icon a:hover,
[data-theme="light"] .social-links a:hover {
  color: var(--ang-primary) !important;
}

/* Feature boxes */
[data-theme="light"] .feature-box,
[data-theme="light"] .feature-item {
  background: var(--ang-bg-secondary) !important;
}

/* Steps section */
[data-theme="light"] .step-item {
  background: var(--ang-bg-secondary) !important;
}

[data-theme="light"] .step-number {
  background: var(--ang-primary) !important;
  color: var(--ang-text-light) !important;
}

/* Call to action sections */
[data-theme="light"] .cta-section {
  background: var(--ang-bg-tertiary) !important;
}

/* Nice select (dropdown) */
[data-theme="light"] .nice-select {
  background: var(--ang-bg-primary) !important;
  border-color: var(--ang-border-color) !important;
  color: var(--ang-text-primary) !important;
}

[data-theme="light"] .nice-select .list {
  background: var(--ang-bg-primary) !important;
}

[data-theme="light"] .nice-select .option:hover {
  background: var(--ang-bg-secondary) !important;
}

/* Progress bars */
[data-theme="light"] .progress {
  background: var(--ang-bg-tertiary) !important;
}

/* Pagination */
[data-theme="light"] .pagination .page-link {
  background: var(--ang-bg-secondary) !important;
  border-color: var(--ang-border-color) !important;
  color: var(--ang-text-primary) !important;
}

[data-theme="light"] .pagination .page-item.active .page-link {
  background: var(--ang-primary) !important;
  color: var(--ang-text-light) !important;
}

/* Swiper pagination dots */
[data-theme="light"] .swiper-pagination-bullet {
  background: var(--ang-text-muted) !important;
}

[data-theme="light"] .swiper-pagination-bullet-active {
  background: var(--ang-primary) !important;
}

/* ========================================
   LIGHT MODE - CRITICAL CONTRAST FIXES
   Fixes for text visibility and button contrast
   ======================================== */

/* Fix muted text and small labels */
[data-theme="light"] .text-muted,
[data-theme="light"] small,
[data-theme="light"] .small {
  color: #475569 !important;
}

/* Fix sub-title visibility */
[data-theme="light"] .sub-title,
[data-theme="light"] .section-title .sub-title {
  color: #3b82f6 !important;
}

/* Fix stats labels in hero */
[data-theme="light"] .counter-stat,
[data-theme="light"] .h4.text-primary,
[data-theme="light"] .text-primary {
  color: #2563eb !important;
}

/* Hero section - banner background text */
[data-theme="light"] .banner-title {
  color: rgba(59, 130, 246, 0.08) !important;
  -webkit-text-stroke-color: rgba(59, 130, 246, 0.15) !important;
}

/* Hero section buttons */
[data-theme="light"] .btn-outline-light {
  border-color: #1e293b !important;
  color: #1e293b !important;
  background: transparent !important;
}

[data-theme="light"] .btn-outline-light:hover {
  background: #1e293b !important;
  color: #ffffff !important;
}

/* Primary button effect */
[data-theme="light"] .btn-effect {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  color: #ffffff !important;
}

[data-theme="light"] .btn-effect:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
}

/* Outline primary buttons (service cards) */
[data-theme="light"] .btn-outline-primary {
  border: 2px solid #3b82f6 !important;
  color: #3b82f6 !important;
  background: transparent !important;
}

[data-theme="light"] .btn-outline-primary:hover {
  background: #3b82f6 !important;
  color: #ffffff !important;
}

/* Tech pills in hero */
[data-theme="light"] .tech-pill {
  background: rgba(59, 130, 246, 0.1) !important;
  color: #1e40af !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
}

/* Badge styling */
[data-theme="light"] .badge.bg-primary,
[data-theme="light"] .badge.bg-opacity-25 {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #1e40af !important;
}

/* Service card enhancements */
[data-theme="light"] .service-card-enhanced {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .service-card-enhanced:hover {
  border-color: #3b82f6 !important;
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.15) !important;
}

[data-theme="light"] .service-icon-wrapper {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1)) !important;
  color: #3b82f6 !important;
}

[data-theme="light"] .service-tech-tags span {
  background: #f1f5f9 !important;
  color: #475569 !important;
}

/* Training cards */
[data-theme="light"] .training-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .training-card.featured {
  border-color: #3b82f6 !important;
}

[data-theme="light"] .training-badge .badge-duration {
  background: #3b82f6 !important;
  color: #ffffff !important;
}

/* Why choose cards */
[data-theme="light"] .why-choose-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .why-choose-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1)) !important;
  color: #3b82f6 !important;
}

/* Track overview items */
[data-theme="light"] .track-overview-item {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

/* Training highlights */
[data-theme="light"] .highlight-item i {
  color: #22c55e !important;
}

/* CTA Box */
[data-theme="light"] .cta-box {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
}

[data-theme="light"] .cta-box h3,
[data-theme="light"] .cta-box p,
[data-theme="light"] .cta-box .cta-badge {
  color: #ffffff !important;
}

/* FAQ Accordion */
[data-theme="light"] .accordion-button {
  color: #1e293b !important;
}

[data-theme="light"] .accordion-button:not(.collapsed) {
  color: #3b82f6 !important;
  background: rgba(59, 130, 246, 0.05) !important;
}

/* Marquee items */
[data-theme="light"] .marquee-item {
  color: #64748b !important;
}

[data-theme="light"] .marquee-item .icon {
  color: #3b82f6 !important;
}

/* Lead text */
[data-theme="light"] .lead {
  color: #475569 !important;
}

/* About features */
[data-theme="light"] .about-feature-item span {
  color: #334155 !important;
}

[data-theme="light"] .about-experience-badge {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
  color: #ffffff !important;
}

/* Training stats bar */
[data-theme="light"] .training-stats-bar {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .stat-number {
  color: #1e293b !important;
}

[data-theme="light"] .stat-label {
  color: #64748b !important;
}

/* ========================================
   1. PAGE HEADER BACKGROUNDS
   ======================================== */

/* ==========================================================================
   CRITICAL LAYOUT & STRUCTURE STYLES
   Base styles for body, html, containers, sections, spacing utilities
   These are essential for the entire site structure
   ========================================================================== */

/* ========================================
   BASE HTML & BODY STYLES
   ======================================== */
html {
  scroll-behavior: smooth;
}

@supports not (scroll-behavior: smooth) {
  html {
    overflow-y: auto;
  }
}

body {
  background-color: var(--ang-bg-primary, #0d1117) !important;
  color: var(--ang-text-primary, #e2e8f0);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */
.container {
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1100px;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1200px;
  }
}

/* ========================================
   SECTION SPACING UTILITIES
   ======================================== */

/* Compact section spacing */
.space-small-ptb {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

.space-xs-ptb {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}

.space-compact-pt {
  padding-top: 60px !important;
}

.space-compact-pb {
  padding-bottom: 60px !important;
}

.space-compact-ptb {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

.space-xs-pt {
  padding-top: 40px !important;
}

.space-xs-pb {
  padding-bottom: 40px !important;
}

/* ========================================
   SECTION TITLE STYLES
   ======================================== */
.section-title {
  margin-bottom: 24px;
  text-align: left;
}

.section-title.text-center {
  text-align: center;
}

.section-title .sub-title {
  margin-bottom: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #93c5fd;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-title .sub-title img {
  width: 16px;
  height: auto;
  margin-right: 6px;
}

.section-title .title {
  font-size: clamp(1.25rem, 3vw, 1.6rem) !important;
  line-height: 1.3;
  margin-bottom: 0;
  font-weight: 700;
  color: var(--ang-text-heading, #f1f5f9);
}

.section-title-compact {
  margin-bottom: 20px !important;
}

.section-title-compact .title {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem) !important;
}

/* ========================================
   SECTION BACKGROUNDS
   ======================================== */
.site-content section:nth-child(odd) {
  background-color: var(--ang-bg-primary, #0d1117);
}

.site-content section:nth-child(even) {
  background-color: var(--ang-bg-secondary, #161b22);
}

section .container {
  padding-top: 0;
  padding-bottom: 0;
}

.site-content p {
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--ang-text-secondary, #94a3b8);
}

.site-content .rounded {
  border-radius: var(--ang-radius-lg, 12px) !important;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 991px) {
  .space-pt,
  .space-pb,
  .space-ptb {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .space-medium-pt,
  .space-medium-pb,
  .space-medium-ptb {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  /* Reduce header side padding on medium and smaller screens */
  .header.header-default {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Ensure touch targets are large enough */
  .nav-link,
  .btn,
  button {
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media (max-width: 576px) {
  .section-title h2,
  .section-title .title {
    font-size: 1.5rem !important;
  }

  .section-title .sub-title {
    font-size: 0.75rem;
  }
}

/* ========================================
   SERVICE CARDS - COMPACT STYLING
   ======================================== */
.service-wrapper.service-style-1 {
  background: var(--ang-bg-secondary, #161b22);
  border-radius: var(--ang-radius-md, 8px);
  border: 1px solid var(--ang-border-color, rgba(255, 255, 255, 0.12));
  transition: all var(--ang-transition-normal, 0.25s ease);
  height: 100%;
}

.service-wrapper.service-style-1:hover {
  border-color: var(--ang-primary, #77BEFF);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(119, 190, 255, 0.08);
}

.service-wrapper .service-inner {
  padding: 20px 18px !important;
}

.service-wrapper .service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}

.service-wrapper .service-icon img {
  width: 100%;
  height: auto;
}

.service-wrapper .service-title {
  font-size: 0.95rem !important;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--ang-text-heading, #f1f5f9);
}

.service-wrapper .service-content p {
  font-size: 0.82rem !important;
  line-height: 1.5;
  color: var(--ang-text-secondary, #94a3b8);
  margin-bottom: 12px;
}

/* ========================================
   ACCORDION / FAQ STYLES
   ======================================== */
.accordion-item {
  background: var(--ang-bg-secondary, #161b22);
  border: 1px solid var(--ang-border-color, rgba(255, 255, 255, 0.12));
  border-radius: var(--ang-radius-md, 8px);
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-button {
  background: transparent;
  color: var(--ang-text-primary, #e2e8f0);
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.938rem;
}

.accordion-button:not(.collapsed) {
  background: rgba(119, 190, 255, 0.05);
  color: var(--ang-primary, #77BEFF);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-body {
  padding: 0 20px 20px;
  color: var(--ang-text-secondary, #94a3b8);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ========================================
   LIGHT THEME OVERRIDES
   ======================================== */
[data-theme="light"] body {
  background-color: #ffffff !important;
  color: #1e293b !important;
}

[data-theme="light"] .site-content section:nth-child(odd) {
  background-color: #ffffff;
}

[data-theme="light"] .site-content section:nth-child(even) {
  background-color: #f8fafc;
}

[data-theme="light"] .service-wrapper.service-style-1 {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .service-wrapper.service-style-1:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .accordion-item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .accordion-button {
  color: #1e293b;
}

[data-theme="light"] .accordion-button:not(.collapsed) {
  background: rgba(59, 130, 246, 0.05);
  color: #3b82f6;
}

[data-theme="light"] .accordion-body {
  color: #475569;
}
