/* MangoSoft Custom Styles */
:root {
  --mango-orange: #FFA500;
  --mango-green: #32CD32;
  --mango-orange-light: #FFB733;
  --mango-green-light: #4AE54A;
  --mango-dark: #1a1a1a;
  --mango-gray: #f8f9fa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes scroll-left {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

.brands-carousel {
    display: flex;
    animation: scroll-left 40s linear infinite;
}

.brand-bubble {
    animation: float 5s ease-in-out infinite;
}

/* Custom Utilities */
.gradient-text {
  background: linear-gradient(135deg, var(--mango-orange) 0%, var(--mango-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift {
  transition: all 0.3s ease;
}

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

.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--mango-orange) 0%, var(--mango-green) 100%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #FF8C00 0%, #228B22 100%);
}

/* Loading Animation */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--mango-orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .parallax {
    background-attachment: scroll;
  }
}

/* Hidden elements for animation */
.fade-in-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out;
}

.fade-in-up.animate,
.fade-in-left.animate,
.fade-in-right.animate {
  opacity: 1;
  transform: translate(0, 0);
}

/* Hero Video Overlay */
.hero-overlay {
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.8) 0%, rgba(50, 205, 50, 0.8) 100%);
}

/* Service Cards */
.service-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 165, 0, 0.1), transparent);
  transition: left 0.5s;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, var(--mango-orange) 0%, var(--mango-green) 100%);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Typography */
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Contact Form */
.form-input {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: var(--mango-orange);
  box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1);
  background: white;
}

/* Footer */
.footer-gradient {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* --- Accessibility Styles --- */

/* High Contrast Theme */
.high-contrast body, .high-contrast {
    background-color: #000 !important;
    color: #fff !important;
}

.high-contrast .gradient-text {
    background: none !important;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
}

.high-contrast a {
    color: #0ff !important; /* Cyan for links */
}

.high-contrast button, 
.high-contrast .btn-primary, 
.high-contrast [class*="bg-"] {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}

.high-contrast img, .high-contrast svg {
    filter: grayscale(100%) contrast(200%);
}

/* Disable Animations */
.animations-disabled * {
    animation: none !important;
    transition: none !important;
}

/* Toggle Switch Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

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

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

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

input:focus + .slider {
  box-shadow: 0 0 1px var(--mango-green);
}

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

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* --- Accessibility Styles --- */

/* High Contrast Theme */
.high-contrast body, .high-contrast {
    background-color: #000 !important;
    color: #fff !important;
}

.high-contrast .gradient-text {
    background: none !important;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
}

.high-contrast a {
    color: #0ff !important; /* Cyan for links */
}

.high-contrast button, 
.high-contrast .btn-primary, 
.high-contrast [class*="bg-"] {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}

.high-contrast img, .high-contrast svg {
    filter: grayscale(100%) contrast(200%);
}

/* Disable Animations */
.animations-disabled * {
    animation: none !important;
    transition: none !important;
}

/* Toggle Switch Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

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

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

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

input:focus + .slider {
  box-shadow: 0 0 1px var(--mango-green);
}

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

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}