/* ==========================================================================
   DizitalXpert Master Stylesheet
   Design Language Inspired by Apple, Framer, Stripe, Linear, Vercel & Webflow
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* --- 1. Global Typography & Core Elements --- */
:root {
  --color-primary: #2563EB;
  --color-primary-hover: #1D4ED8;
  --color-secondary: #0F172A;
  --color-accent: #3B82F6;
  --color-dark-bg: #020817;
  --color-section-bg: #F8FAFC;
  --color-text-main: #111827;
  --color-text-muted: #6B7280;
  --color-border: #E5E7EB;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* Material Symbols & Icon Alignment */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
  user-select: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #020817;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 9999px;
  border: 2px solid #020817;
}
::-webkit-scrollbar-thumb:hover {
  background: #2563EB;
}

/* --- 2. Advanced Backgrounds & Glassmorphism --- */
.hero-gradient-dark {
  background-color: #020817;
  background-image: 
    radial-gradient(at 15% 15%, rgba(37, 99, 235, 0.18) 0px, transparent 50%),
    radial-gradient(at 85% 85%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(15, 23, 42, 0.9) 0px, transparent 80%);
}

.hero-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

.glass-nav {
  background: rgba(2, 8, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-dark {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card-dark:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(37, 99, 235, 0.2);
}

/* Card Hover Lift */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.3);
}

/* --- 3. Master Button & CTA System --- */
.btn-primary {
  background-color: #2563EB;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.875rem 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  background-color: #1D4ED8;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
}
.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background-color: #0F172A;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.875rem 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}
.btn-secondary:hover {
  background-color: #1E293B;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
}
.btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.875rem 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
}
.btn-outline:hover {
  border-color: #3B82F6;
  background: rgba(59, 130, 246, 0.15);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Button Ripple */
.btn-ripple {
  position: absolute !important;
  border-radius: 50% !important;
  transform: scale(0) !important;
  animation: btnRippleAnim 0.6s linear !important;
  background-color: rgba(255, 255, 255, 0.35) !important;
  pointer-events: none !important;
}
@keyframes btnRippleAnim {
  to {
    transform: scale(4) !important;
    opacity: 0 !important;
  }
}

/* --- 4. Interactive Components & Animations --- */
.badge-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60A5FA;
  font-size: 0.875rem;
  font-weight: 600;
}

.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 0%, #93C5FD 50%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 50%, #1D4ED8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Bidirectional Scroll Reveal (Appears on Scroll Down, Fades on Scroll Up) */
.scroll-reveal-card {
  opacity: 0;
  transform: translateY(35px) scale(0.96);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.scroll-reveal-card.is-in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Modal Styling */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 8, 23, 0.8);
  backdrop-filter: blur(12px);
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Forms */
.form-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid #E5E7EB;
  background-color: #FFFFFF;
  color: #111827;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.375rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 90;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background-color: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

/* --- 8. Footer Brand Background Watermark --- */
.footer-with-bg {
  position: relative;
  overflow: hidden;
  background-color: #0F172A;
}

.footer-with-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/FOOTER.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.18;
  filter: contrast(120%) brightness(80%);
  pointer-events: none;
  z-index: 0;
}

.footer-with-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 8, 23, 0.92) 0%, rgba(15, 23, 42, 0.95) 50%, rgba(15, 23, 42, 0.98) 100%);
  pointer-events: none;
  z-index: 1;
}

.footer-with-bg > * {
  position: relative;
  z-index: 2;
}

/* --- 9. Night Mode & High Contrast Visibility System --- */
html.dark, html.dark body {
  background-color: #020817 !important;
  color: #F8FAFC !important;
}

/* Section Backgrounds in Night Mode */
html.dark section.bg-section-bg,
html.dark section.bg-white,
html.dark main.bg-section-bg {
  background-color: #0B1528 !important;
  color: #F8FAFC !important;
}

/* Glass Cards & Containers in Night Mode */
html.dark .glass-card {
  background: rgba(15, 23, 42, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #F8FAFC !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
}

html.dark .glass-card h1,
html.dark .glass-card h2,
html.dark .glass-card h3,
html.dark .glass-card h4,
html.dark .glass-card .text-secondary {
  color: #F8FAFC !important;
}

html.dark .glass-card p,
html.dark .glass-card .text-text-muted {
  color: #CBD5E1 !important;
}

/* Text Visibility Corrections */
html.dark .text-secondary {
  color: #F8FAFC !important;
}

html.dark .text-text-muted {
  color: #94A3B8 !important;
}

html.dark .text-headline-lg,
html.dark .text-headline-md,
html.dark .text-headline-sm,
html.dark .text-display-md {
  color: #F8FAFC !important;
}

html.dark .text-gradient {
  background: linear-gradient(135deg, #60A5FA 0%, #38BDF8 50%, #818CF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* FAQ Accordion Night Mode */
html.dark .faq-item {
  background-color: #0F172A !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
html.dark .faq-trigger {
  color: #F8FAFC !important;
}
html.dark .faq-content {
  color: #94A3B8 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Form Inputs in Night Mode */
html.dark .form-input,
html.dark input[type="text"],
html.dark input[type="email"],
html.dark input[type="tel"],
html.dark select,
html.dark textarea {
  background-color: #020817 !important;
  color: #F8FAFC !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}
html.dark .form-input::placeholder,
html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #64748B !important;
}

/* Badges & Accents */
html.dark .badge-glow {
  background: rgba(37, 99, 235, 0.25) !important;
  border-color: rgba(96, 165, 250, 0.4) !important;
  color: #93C5FD !important;
}


