/*
Theme Name: ProDevInfo
Theme URI: https://prodevinfo.github.io/prodevinfo-website/
Author: ProDevInfo Solutions
Author URI: https://prodevinfo.com
Description: A premium enterprise IT services and custom software solutions theme with dark mode, animations, and modern design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prodevinfo
Tags: one-page, dark-mode, custom-logo, translation-ready
*/

/* ============================================
   GOOGLE FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES - LIGHT THEME
   ============================================ */
:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;

  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-light: #EFF6FF;
  --primary-glow: rgba(37, 99, 235, 0.15);

  --accent: #3B82F6;
  --accent-glow: rgba(59, 130, 246, 0.1);

  --success: #10B981;
  --warning: #F59E0B;

  --border-color: #E2E8F0;
  --border-hover: #CBD5E1;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px 0 rgba(37, 99, 235, 0.06);

  --font-body: 'Plus Jakarta Sans';
  --font-heading: 'Space Grotesk';
}

/* ============================================
   CSS CUSTOM PROPERTIES - DARK THEME
   ============================================ */
.dark {
  --bg-primary: #090D1A;
  --bg-secondary: #0F172A;
  --bg-tertiary: #1E293B;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --primary: #3B82F6;
  --primary-hover: #60A5FA;
  --primary-light: rgba(59, 130, 246, 0.08);
  --primary-glow: rgba(59, 130, 246, 0.35);

  --accent: #60A5FA;
  --accent-glow: rgba(96, 165, 250, 0.15);

  --border-color: #1E293B;
  --border-hover: #334155;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px 0 rgba(59, 130, 246, 0.2);
}

/* ============================================
   BASE STYLES
   ============================================ */
html {
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body), sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 300ms, color 300ms;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

/* ============================================
   CUSTOM UTILITY CLASSES
   ============================================ */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.50);
}

.dark .glass-panel {
  background: rgba(15, 23, 42, 0.70);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */
@keyframes morph {
  0%   { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25%  { border-radius: 58% 42% 75% 25% / 45% 64% 36% 55%; }
  50%  { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
  75%  { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
  100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

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

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.5); }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   ANIMATION UTILITY CLASSES
   ============================================ */
.animate-marquee {
  animation: marquee 40s linear infinite;
}

.animate-morph {
  animation: morph 12s ease-in-out infinite alternate;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-pulse-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Scroll-triggered animation base */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   EDGE FADE MASK
   ============================================ */
.fade-edge-mask {
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

/* ============================================
   HIDE SCROLLBAR
   ============================================ */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ============================================
   CUSTOM CURSOR (pointer: fine only)
   ============================================ */
@media (pointer: fine) {
  body {
    cursor: none;
  }
  a, button, select, input, textarea, [role="button"], .clickable {
    cursor: none;
  }
}

/* ============================================
   RANGE INPUT STYLING
   ============================================ */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: var(--border-color);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid var(--bg-primary);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
  cursor: none;
  transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid var(--bg-primary);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
  cursor: none;
  transition: transform 0.1s ease;
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.15);
}

/* ============================================
   WORDPRESS ADMIN BAR OFFSET
   ============================================ */
body.admin-bar #navbar {
  top: 32px !important;
}
body.admin-bar #mobile-menu-drawer {
  top: 32px !important;
  height: calc(100% - 32px) !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar #navbar {
    top: 46px !important;
  }
  body.admin-bar #mobile-menu-drawer {
    top: 46px !important;
    height: calc(100% - 46px) !important;
  }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  animation: fadeInUp 0.3s ease-out;
  max-width: 400px;
}

.toast-success {
  background-color: var(--success);
  color: white;
}

.toast-error {
  background-color: #EF4444;
  color: white;
}

/* ============================================
   SPOTLIGHT EFFECT (Services detail panel)
   ============================================ */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  transform: translate(-50%, -50%);
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* ============================================
   SERVICE TAB ACTIVE INDICATOR
   ============================================ */
.service-tab {
  position: relative;
  transition: all 0.2s ease;
}

.service-tab.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.service-tab.active .service-tab-icon {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

/* ============================================
   PROCESS TIMELINE
   ============================================ */
.process-step {
  transition: all 0.3s ease;
}

.process-step.active .step-number {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.process-step .step-content {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.process-step.active .step-content {
  opacity: 1;
}

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background-color: var(--bg-primary);
  border-left: 1px solid var(--border-color);
  z-index: 99;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 1.5rem;
}

.mobile-menu-drawer.active {
  transform: translateX(0);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.faq-item.open .faq-answer {
  opacity: 1;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-chevron {
  transition: transform 0.3s ease;
}

/* ============================================
   COST ESTIMATOR 
   ============================================ */
.calc-option {
  transition: all 0.2s ease;
  cursor: pointer;
}

.calc-option.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.calc-option.active svg {
  color: white;
}

.addon-item {
  transition: all 0.2s ease;
  cursor: pointer;
}

.addon-item.active {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

/* ============================================
   CANVAS PARTICLE BACKGROUND
   ============================================ */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   NAVBAR SCROLL STATE
   ============================================ */
.navbar-scrolled {
  background-color: var(--bg-primary) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
}

.dark .navbar-scrolled {
  background-color: rgba(9, 13, 26, 0.85) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================
   FLOATING CARD ANIMATIONS
   ============================================ */
.float-card-1 {
  animation: float 6s ease-in-out infinite;
  animation-delay: 0s;
}

.float-card-2 {
  animation: float 6s ease-in-out infinite;
  animation-delay: 2s;
}

.float-card-3 {
  animation: float 6s ease-in-out infinite;
  animation-delay: 4s;
}
