/* ==========================================================================
   Jeelaan - Main Stylesheet
   ========================================================================== */

/* CSS Variables - Brand Colors
   ========================================================================== */
:root {
  /* Primary Brand Color */
  --jeelaan-primary: #6B46C1;
  --jeelaan-primary-light: #8B5CF6;
  --jeelaan-primary-dark: #553C9A;
  
  /* Secondary Colors */
  --jeelaan-secondary: #F5F5F5;
  --jeelaan-secondary-dark: #E5E7EB;
  
  /* Accent Colors */
  --jeelaan-purple: #9333EA;
  --jeelaan-pink: #EC4899;
  --jeelaan-blue: #3B82F6;
  --jeelaan-green: #10B981;
  --jeelaan-orange: #F59E0B;
  --jeelaan-emerald: #059669;
  
  /* Neutral Colors */
  --jeelaan-gray-50: #F9FAFB;
  --jeelaan-gray-100: #F3F4F6;
  --jeelaan-gray-200: #E5E7EB;
  --jeelaan-gray-300: #D1D5DB;
  --jeelaan-gray-400: #9CA3AF;
  --jeelaan-gray-500: #6B7280;
  --jeelaan-gray-600: #4B5563;
  --jeelaan-gray-700: #374151;
  --jeelaan-gray-800: #1F2937;
  --jeelaan-gray-900: #111827;
  
  /* Shadow Colors */
  --jeelaan-shadow-primary: rgba(107, 70, 193, 0.1);
  --jeelaan-shadow-green: rgba(16, 185, 129, 0.1);
  --jeelaan-shadow-blue: rgba(59, 130, 246, 0.1);
  --jeelaan-shadow-light: rgba(0, 0, 0, 0.1);
  --jeelaan-shadow-dark: rgba(0, 0, 0, 0.2);
  
  /* Background Colors */
  --jeelaan-bg-primary: rgba(107, 70, 193, 0.05);
}

/* Base Styles
   ========================================================================== */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: #333333;
  line-height: 1.6;
}

/* Accessibility - Screen Reader Only
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.focus\:not-sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* RemixIcon styles - Let RemixIcon CDN handle icon content */

/* Navigation Styles
   ========================================================================== */
.nav-link {
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 2px;
  left: 0;
  background-color: var(--jeelaan-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--jeelaan-primary);
}

/* Mobile Navigation Links */
#mobile-menu .nav-link {
  padding: 8px 0;
  transition: all 0.3s ease;
}

#mobile-menu .nav-link:hover {
  background-color: var(--jeelaan-shadow-primary);
  color: var(--jeelaan-primary);
}

#mobile-menu .nav-link.active {
  color: var(--jeelaan-primary);
}

/* Hero Section
   ========================================================================== */
.hero-section {
  background-position: right center;
  background-repeat: no-repeat;
  background-size: contain;
}

@media (max-width: 768px) {
  .hero-section {
    background-position: center bottom;
    background-size: 90%;
  }
}

/* Statistics Counter
   ========================================================================== */
.stat-count {
  display: inline-block;
}

/* Gradient Background
   ========================================================================== */
.bg-gradient {
  background: linear-gradient(135deg, var(--jeelaan-primary) 0%, var(--jeelaan-pink) 100%) !important;
  background-image: linear-gradient(135deg, #6B46C1 0%, #EC4899 100%) !important;
  background-color: #6B46C1 !important;
}

/* Ensure buttons with bg-gradient have proper styling */
a.bg-gradient,
button.bg-gradient,
.btn-3d.bg-gradient {
  background: linear-gradient(135deg, #6B46C1 0%, #EC4899 100%) !important;
  background-image: linear-gradient(135deg, #6B46C1 0%, #EC4899 100%) !important;
  color: white !important;
}

/* Intelligent Gradient Classes
   ========================================================================== */
.bg-intelligent {
  background: linear-gradient(135deg, #6B46C1 0%, #D53F8C 100%) !important;
}

.text-intelligent {
  background: linear-gradient(135deg, #6B46C1 0%, #D53F8C 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
  font-size: 2rem !important;
  display: inline-block !important;
}

/* Override text-primary with intelligent gradient for text elements */
span.text-primary,
i.text-primary,
span.font-semibold.text-primary,
.text-primary.font-semibold,
*.text-primary.font-semibold,
*.text-primary {
  background: linear-gradient(135deg, #6B46C1 0%, #D53F8C 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
  display: inline-block !important;
  padding: 0.1rem 0 !important;
  line-height: 1.2 !important;
  -webkit-box-decoration-break: clone !important;
  box-decoration-break: clone !important;
}

/* Override all Tailwind gradient text with intelligent gradient */
.bg-gradient-to-r.from-primary.to-purple-600.bg-clip-text.text-transparent,
.bg-gradient-to-r.from-primary.via-purple-600.to-pink-500.bg-clip-text.text-transparent,
span.bg-clip-text.text-transparent,
.bg-clip-text.text-transparent {
  background: linear-gradient(135deg, #6B46C1 0%, #D53F8C 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
  display: inline-block !important;
  padding: 0.2rem 0 !important;
  line-height: 1.3 !important;
}

/* Ensure RemixIcon classes don't override our gradient */
.text-intelligent.ri-settings-3-line,
.text-intelligent.ri-speed-line,
.text-intelligent.ri-flashlight-line,
.text-intelligent.ri-dashboard-line,
.text-intelligent.ri-weight-line,
.text-intelligent.ri-map-2-line,
.text-intelligent.ri-tools-line,
.text-intelligent.ri-battery-2-line,
.text-intelligent.ri-building-line,
.text-intelligent[class*="ri-"] {
  color: transparent !important;
  background: linear-gradient(135deg, #6B46C1 0%, #D53F8C 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-size: 2rem !important;
  display: inline-block !important;
  padding: 0.2rem 0 !important;
  line-height: 1.3 !important;
}

/* Tab buttons without borders */
.tab-btn {
  border: none !important;
}

/* Text gradient secondary class - used in home page */
.text-gradient-secondary,
span.text-gradient-secondary,
.text-gradient-secondary *,
[class*="text-gradient"] {
  background: linear-gradient(135deg, #6B46C1 0%, #D53F8C 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
  display: inline-block !important;
  padding: 0.4rem 0 !important;
  line-height: 1.5 !important;
  -webkit-box-decoration-break: clone !important;
  box-decoration-break: clone !important;
}

/* Ensure all paragraph spans with text-primary get gradient */
p span.text-primary,
p .text-primary,
span[class*="text-primary"],
.font-semibold[class*="text-primary"] {
  background: linear-gradient(135deg, #6B46C1 0%, #D53F8C 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
  display: inline-block !important;
  padding: 0.1rem 0 !important;
  line-height: 1.2 !important;
  -webkit-box-decoration-break: clone !important;
  box-decoration-break: clone !important;
}

/* Form Styles
   ========================================================================== */
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--jeelaan-primary);
}

/* Custom Checkbox
   ========================================================================== */
.custom-checkbox {
  position: relative;
  cursor: pointer;
  user-select: none;
  padding-left: 30px;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.custom-checkbox:hover input ~ .checkmark {
  border-color: var(--jeelaan-primary);
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--jeelaan-primary);
  border-color: var(--jeelaan-primary);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.custom-checkbox .checkmark:after {
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Custom Switch
   ========================================================================== */
.custom-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

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

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

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

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

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

/* Project Card Effects
   ========================================================================== */
.project-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 3D Effects and Animations
   ========================================================================== */
html {
  perspective: 1000px;
  scroll-behavior: smooth;
}

body {
  transform-style: preserve-3d;
}

/* 3D Card Effects */
.card-3d {
  transform: translateZ(0);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-3d:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* 3D Button Effects */
.btn-3d {
  transform: translateZ(0);
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px var(--jeelaan-shadow-primary);
}

.btn-3d:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px var(--jeelaan-shadow-primary);
}

.btn-3d:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px var(--jeelaan-shadow-primary);
}

/* Floating 3D Elements */
.float-3d {
  animation: float3D 8s ease-in-out infinite;
  transform: translateZ(0);
}

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

/* 3D Text Effects */
.text-3d {
  text-shadow: 0 1px 2px var(--jeelaan-shadow-primary);
  transform: translateZ(0);
}

/* Glass Morphism */
.glass-3d {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateZ(0);
}

/* 3D Section Effects */
.section-3d {
  transform: translateZ(0);
  transition: all 0.3s ease;
}

/* Mobile Menu 3D */
.mobile-menu-3d {
  transform: translateZ(10px);
  backdrop-filter: blur(10px);
}

/* 3D Language Switcher Effects */
.language-switcher-3d {
  transform: translateZ(0);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 2px 8px var(--jeelaan-shadow-primary);
}

.language-switcher-3d:hover {
  transform: translateY(-2px) translateZ(10px);
  box-shadow: 0 8px 16px var(--jeelaan-shadow-primary);
}

.language-dropdown-3d {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.language-dropdown-3d .group:hover {
  transform: translateZ(5px);
}

/* Floating WhatsApp Button Animation
   ========================================================================== */
.whatsapp-float {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 99999 !important;
  animation: whatsapp-float 3s ease-in-out infinite;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px var(--jeelaan-shadow-dark) !important;
  transition: all 0.3s ease !important;
  margin: 0 !important;
  padding: 0 !important;
  transform-origin: center !important;
  background-color: var(--jeelaan-green) !important;
  text-decoration: none !important;
  border: none !important;
  outline: none !important;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.1) !important;
  box-shadow: 0 6px 20px var(--jeelaan-shadow-dark) !important;
  background-color: var(--jeelaan-emerald) !important;
}

@keyframes whatsapp-float {
  0%, 100% {
    transform: translateY(0px);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  50% {
    transform: translateY(-10px);
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
}

/* Hide scrollbar for mobile horizontal scrolling
   ========================================================================== */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar { 
  display: none;
}

/* Mobile Optimizations
   ========================================================================== */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px !important;
    right: 20px !important;
    width: 50px !important;
    height: 50px !important;
  }
}

/* Section Scroll Margin for Fixed Header
   ========================================================================== */
section[id] {
  scroll-margin-top: 120px;
}

/* Content Protection (Medium Level)
   ========================================================================== */
   
/* Disable text selection on images */
img {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: auto;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
}

/* Disable text selection on main content (Medium Protection) */
main {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow selection on forms and inputs */
input, textarea, select {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* Copyright watermark overlay */
.copyright-watermark {
  position: fixed;
  bottom: 15px;
  right: 15px;
  font-size: 11px;
  color: var(--jeelaan-primary);
  opacity: 0.4;
  font-weight: 500;
  pointer-events: none;
  z-index: 9999;
  user-select: none;
  background: var(--jeelaan-bg-primary);
  opacity: 0.7;
  padding: 8px 12px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px var(--jeelaan-shadow-light);
}

/* Protect specific content areas */
.protected-content {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Watermark for mobile */
@media (max-width: 768px) {
  .copyright-watermark {
    font-size: 9px;
    bottom: 80px;
    right: 10px;
    padding: 6px 10px;
  }
}

/* Brightness Demo Animations
   ========================================================================== */
.brightness-value-animate {
  transition: all 0.2s ease;
  transform: scale(1.1);
}

.brightness-control-hover {
  transform: scaleY(1.2);
  transition: all 0.2s ease;
}

.brightness-img-transition {
  transition: opacity 0.1s ease-in-out;
}

/* Language Switcher Loading Animation
   ========================================================================== */
.language-switcher-loading {
  transform: scale(0.95);
  opacity: 0.7;
  transition: all 0.15s ease;
}

/* ==========================================================================
   UNIFIED FOOTER COMPONENT
   Standardized footer styles for consistent look across all pages
   
   BENEFITS:
   - Single source of truth for footer styling
   - Consistent appearance across all pages
   - Easy to maintain and update
   - Responsive design built-in
   - Improved accessibility with ARIA labels
   
   USAGE:
   Copy the HTML structure from "Smart Light en.html" footer
   and paste it into all other pages. The CSS will handle the styling.
   
   HTML STRUCTURE:
   <footer class="footer-main">
     <div class="container mx-auto px-4">
       <div class="footer-grid">
         <div class="footer-company">...</div>
         <div>Solutions...</div>
         <div>Company...</div>
         <div>Resources & Social...</div>
       </div>
       <div class="footer-bottom">...</div>
     </div>
   </footer>
   ========================================================================== */

/* Footer Main Container */
.footer-main {
  background: linear-gradient(135deg, #6B46C1 0%, #8B5CF6 100%) !important;
  color: white !important;
  padding: 4rem 0 !important;
}

/* Footer Grid Layout */
.footer-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 2rem !important;
  margin-bottom: 2rem !important;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* Footer Company Section */
.footer-company {
  grid-column: span 1 !important;
}

.footer-logo {
  height: 2.5rem !important;
  margin-bottom: 1rem !important;
  filter: brightness(0) invert(1) !important;
}

.footer-description {
  color: #9CA3AF !important;
  max-width: 20rem !important;
  margin-bottom: 1rem !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
}

/* Footer Contact Info */
.footer-contact {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  font-size: 0.875rem !important;
}

.footer-contact-item {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  color: #9CA3AF !important;
  transition: color 0.3s ease !important;
  text-decoration: none !important;
}

.footer-contact-item:hover {
  color: white !important;
}

.footer-contact-item i {
  color: white !important;
}

/* Footer Section Titles */
.footer-section-title {
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  margin-bottom: 1rem !important;
  color: white !important;
}

/* Footer Links */
.footer-links {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-link {
  color: #9CA3AF !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
  font-size: 0.875rem !important;
}

.footer-link:hover {
  color: white !important;
}

/* Footer Social Media */
.footer-social-section {
  margin-top: 1rem !important;
}

.footer-social-title {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.75rem !important;
  color: #D1D5DB !important;
}

.footer-social {
  display: flex !important;
  gap: 0.75rem !important;
}

.footer-social-link {
  width: 2rem !important;
  height: 2rem !important;
  background-color: #374151 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background-color 0.3s ease, transform 0.3s ease !important;
  color: white !important;
  text-decoration: none !important;
}

.footer-social-link:hover {
  background-color: #6B46C1 !important;
  transform: scale(1.1) !important;
}

.footer-social-link i {
  font-size: 0.875rem !important;
  color: white !important;
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-top: 3rem !important;
  margin-top: 2rem !important;
}

.footer-bottom-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  align-items: center !important;
  justify-content: space-between !important;
}

@media (min-width: 768px) {
  .footer-bottom-content {
    flex-direction: row !important;
    align-items: center !important;
  }
}

/* Footer Copyright Section */
.footer-copyright-section {
  text-align: center !important;
}

@media (min-width: 768px) {
  .footer-copyright-section {
    text-align: left !important;
    margin-bottom: 0 !important;
  }
}

.footer-copyright {
  color: #9CA3AF !important;
  font-size: 0.875rem !important;
  margin: 0 0 0.5rem 0 !important;
}

.footer-copyright-note {
  color: #6B7280 !important;
  font-size: 0.75rem !important;
  margin: 0 !important;
}

/* Footer Bottom Right */
.footer-bottom-right {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1.5rem !important;
  font-size: 0.875rem !important;
  align-items: center !important;
  justify-content: center !important;
}

.footer-bottom-link {
  color: #9CA3AF !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.footer-bottom-link:hover {
  color: white !important;
}

/* Protected Content Badge */
.footer-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.5rem 1rem !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(4px) !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  transition: all 0.3s ease !important;
}

.footer-badge:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
}

.footer-badge i {
  color: white !important;
  font-size: 0.875rem !important;
}

.footer-badge span {
  color: white !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

/* ========================================================================== 
   CRITICAL: Intelligent Gradient Override - Must be at END to override Tailwind CDN
   ========================================================================== */

/* Force gradient on ALL text-gradient-secondary elements */
.text-gradient-secondary,
span.text-gradient-secondary,
.block.text-gradient-secondary,
h1 .text-gradient-secondary,
h2 .text-gradient-secondary,
h3 .text-gradient-secondary {
  background: linear-gradient(135deg, #6B46C1 0%, #D53F8C 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
  display: inline-block !important;
  padding: 0.4rem 0 !important;
  line-height: 1.5 !important;
}

/* Force gradient on ALL text-primary font-semibold spans in paragraphs */
p span.text-primary.font-semibold,
p .text-primary.font-semibold,
p span.font-semibold.text-primary {
  background: linear-gradient(135deg, #6B46C1 0%, #D53F8C 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
  display: inline-block !important;
  padding: 0.1rem 0 !important;
  line-height: 1.2 !important;
}

