/*
Theme Name: Foysal Web Pro
Theme URI: https://foysalwebpro.com
Author: Foysal Hossain
Author URI: https://foysalwebpro.com
Description: High-performance, high-converting digital marketing, AI automation & web development portfolio and tools WordPress theme. Converted with 100% fidelity from the Foysal Web Pro website, featuring dark/light mode, 60+ interactive online browser tools, 80+ calculators, games arcade, custom post types, and conversion-engineered layouts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: foysalwebpro
Tags: agency, portfolio, dark-mode, responsive-layout, custom-header, custom-menu, custom-logo, featured-images, theme-options, translation-ready
*/

/* Core Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border-color: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --primary-accent: #0284c7;
  --glow-color: rgba(14, 165, 233, 0.15);
}

.dark {
  --bg-main: #090d16;
  --bg-card: #0f172a;
  --bg-card-hover: #1e293b;
  --border-color: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary-accent: #38bdf8;
  --glow-color: rgba(56, 189, 248, 0.15);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
}

/* WordPress Admin Bar Sticky Header Offset */
body.admin-bar #site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar #site-header {
    top: 46px;
  }
}

/* ==========================================================================
   Modern Interactive Tools & Workbench UI Styles
   ========================================================================== */

/* Modern Drag & Drop Zone */
.fwp-dropzone {
  position: relative;
  border: 2px dashed #94a3b8;
  border-radius: 1.5rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(248, 250, 252, 0.6);
}

.dark .fwp-dropzone {
  border-color: #334155;
  background: rgba(15, 23, 42, 0.4);
}

.fwp-dropzone:hover,
.fwp-dropzone.dragover {
  border-color: #0284c7;
  background: rgba(2, 132, 199, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.1);
}

.dark .fwp-dropzone:hover,
.dark .fwp-dropzone.dragover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.06);
  box-shadow: 0 10px 25px -5px rgba(56, 189, 248, 0.1);
}

/* Custom Range Slider */
input[type="range"].fwp-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: #e2e8f0;
  outline: none;
  transition: background 0.2s;
}

.dark input[type="range"].fwp-slider {
  background: #334155;
}

input[type="range"].fwp-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0284c7;
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4);
  transition: transform 0.15s ease;
}

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

/* Custom Stepper Number */
.fwp-step-badge {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.15), rgba(14, 165, 233, 0.25));
  color: #0284c7;
  flex-shrink: 0;
}

.dark .fwp-step-badge {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(14, 165, 233, 0.25));
  color: #38bdf8;
}

/* Glassmorphic Container */
.fwp-workbench-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.75rem;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.07);
}

.dark .fwp-workbench-card {
  background: #0c1322;
  border-color: rgba(51, 65, 85, 0.8);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Pulse animation for active processing */
@keyframes fwp-pulse-glow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(2, 132, 199, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(2, 132, 199, 0.45);
  }
}

.fwp-processing {
  animation: fwp-pulse-glow 2s infinite ease-in-out;
}

/* Audio Player modern styling */
audio::-webkit-media-controls-panel {
  background-color: #f1f5f9;
  border-radius: 0.75rem;
}
.dark audio::-webkit-media-controls-panel {
  background-color: #1e293b;
}

/* Card hover lift & glow */
.fwp-interactive-card {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
.fwp-interactive-card:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 12px 28px -6px rgba(14, 165, 233, 0.15);
}

/* Subtle background pattern for tool pages */
.fwp-dots-pattern {
  background-image: radial-gradient(rgba(148, 163, 184, 0.15) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Modern Gradient Text Utility */
.gradient-text {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dark .gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
.dark ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Modern Interactive Input Focus Styles */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}
.dark input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):focus,
.dark textarea:focus,
.dark select:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15) !important;
}

/* Glassmorphic Navbar Polish */
#site-header {
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}
.dark #site-header {
  box-shadow: 0 4px 25px -2px rgba(0, 0, 0, 0.4);
}

/* Button tactile press micro-interaction */
button:active:not(:disabled),
a.fwp-btn:active {
  transform: scale(0.98);
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Optimization Suite
   Ensures 100% responsiveness, zero horizontal overflow, fluid touch targets,
   and dynamic viewport unit support.
   ========================================================================== */

/* Universal Mobile Box Sizing & Fluid Container */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Universal Root & Body Overflow Protection */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip; /* Modern clipping without creating scroll container */
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* Prevent Flex and Grid children blowout on mobile */
.grid > *,
.flex > * {
  min-width: 0;
}

/* Fluid Typography and Word Breaking for Long Strings */
p, h1, h2, h3, h4, h5, h6, span, a, li, td, th {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Mobile-First Image & Replaced Media Fluidity */
img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
  height: auto;
}

/* Responsive Table & Code Block Scroll Containers */
pre,
code {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
}

.overflow-x-auto,
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

/* Touch Friendly Targets (min-height 44px for primary interactive elements) */
@media screen and (max-width: 768px) {
  /* Buttons and Form Inputs - 16px font-size prevents iOS Safari auto-zoom on focus */
  button:not(.fwp-icon-btn),
  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="search"],
  input[type="tel"],
  input[type="url"],
  input[type="password"],
  textarea,
  select,
  .fwp-btn {
    min-height: 44px;
    font-size: 16px !important;
  }

  /* Compact padding on mobile container */
  .fwp-workbench-card {
    padding: 1.25rem 1rem !important;
    border-radius: 1.25rem !important;
  }

  /* Compact Drag & Drop Zone */
  .fwp-dropzone {
    padding: 1.5rem 0.875rem !important;
    border-radius: 1rem !important;
  }

  /* Mobile Grid Harmonization */
  .grid {
    gap: 1rem;
  }

  /* Floating WhatsApp Button Ergonomics */
  .fixed.bottom-6.right-6 {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
    right: 1rem !important;
  }

  .fixed.bottom-6.right-6 a {
    width: 3.25rem !important;
    height: 3.25rem !important;
  }

  .fixed.bottom-6.right-6 svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
  }

  /* Search Modal on Mobile */
  #global-search-modal .fixed.inset-x-4 {
    top: 3.5rem !important;
    padding: 1.25rem !important;
    border-radius: 1.25rem !important;
  }

  /* Mobile Drawer Panel with overscroll containment */
  #mobile-drawer .max-w-xs {
    max-width: min(85vw, 360px) !important;
    padding: 1.25rem !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  #mobile-drawer nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding-top: 0.625rem !important;
    padding-bottom: 0.625rem !important;
    font-size: 0.9375rem !important;
  }

  /* Breadcrumb Wrapping */
  nav.text-xs.flex.items-center,
  nav.flex.items-center {
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.5rem 0;
  }

  /* Footer Padding */
  footer .pt-16 {
    padding-top: 2.75rem !important;
  }

  footer .pb-12 {
    padding-bottom: 2rem !important;
  }

  /* Calculator and Tools result boxes */
  .calc-result-grid,
  .tools-result-box {
    grid-template-columns: 1fr !important;
  }
}

@media screen and (max-width: 480px) {
  /* Ultra-compact screens: fluid typography with clamp() */
  h1 {
    font-size: clamp(1.75rem, 7.5vw, 2.5rem) !important;
    line-height: 1.15 !important;
  }

  h2 {
    font-size: clamp(1.35rem, 5.5vw, 1.85rem) !important;
    line-height: 1.2 !important;
  }

  /* Compact button padding */
  .fwp-btn,
  a.inline-flex,
  button.inline-flex {
    padding-left: 0.875rem !important;
    padding-right: 0.875rem !important;
  }

  .fwp-cta-btn-primary,
  .fwp-cta-btn-whatsapp {
    width: 100% !important;
    padding: 0.875rem 1.25rem !important;
  }

  .fwp-cta-card {
    padding: clamp(1.75rem, 5vw, 3rem) clamp(0.875rem, 3.5vw, 2rem) !important;
    border-radius: 1.5rem !important;
  }

  /* Hero Display Text Scaling */
  .alex-display-title {
    font-size: clamp(2.25rem, 10vw, 4.5rem) !important;
  }

  .alex-hero-center {
    width: clamp(260px, 90vw, 460px) !important;
    height: clamp(360px, 65dvh, 560px) !important;
  }
}

/* ==========================================================================
   High-Impact Conversion CTA Banner Suite
   ========================================================================== */
.fwp-cta-card {
  position: relative;
  background: radial-gradient(ellipse 90% 60% at 50% -20%, rgba(14, 165, 233, 0.28), transparent 70%),
              radial-gradient(ellipse 70% 40% at 85% 100%, rgba(16, 185, 129, 0.15), transparent 70%),
              linear-gradient(135deg, #090e1a 0%, #0d1527 50%, #080c16 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 2rem !important;
  padding: clamp(2.25rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 3.5rem) !important;
  color: #ffffff !important;
  box-shadow: 0 30px 70px -15px rgba(2, 132, 199, 0.25),
              0 0 0 1px rgba(255, 255, 255, 0.08),
              inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
  overflow: hidden;
  text-align: center;
}

.fwp-cta-glow {
  position: absolute;
  top: -6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(14, 165, 233, 0) 70%);
  border-radius: 9999px;
  filter: blur(45px);
  pointer-events: none;
}

.fwp-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1.25rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  margin-bottom: 1.5rem;
}

.fwp-cta-btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.625rem !important;
  padding: 1rem 2.25rem !important;
  border-radius: 1rem !important;
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 50%, #0ea5e9 100%) !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-weight: 800 !important;
  font-size: 0.9375rem !important;
  letter-spacing: 0.02em !important;
  text-decoration: none !important;
  box-shadow: 0 12px 28px -4px rgba(2, 132, 199, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.15) inset !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}

.fwp-cta-btn-primary:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 18px 35px -4px rgba(2, 132, 199, 0.7),
              0 0 25px rgba(56, 189, 248, 0.5) !important;
  color: #ffffff !important;
}

.fwp-cta-btn-whatsapp {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.625rem !important;
  padding: 1rem 2.25rem !important;
  border-radius: 1rem !important;
  background: linear-gradient(135deg, #047857 0%, #10b981 50%, #14b8a6 100%) !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-weight: 800 !important;
  font-size: 0.9375rem !important;
  letter-spacing: 0.02em !important;
  text-decoration: none !important;
  box-shadow: 0 12px 28px -4px rgba(16, 185, 129, 0.45),
              0 0 0 1px rgba(255, 255, 255, 0.15) inset !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}

.fwp-cta-btn-whatsapp:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 18px 35px -4px rgba(16, 185, 129, 0.65),
              0 0 25px rgba(52, 211, 153, 0.45) !important;
  color: #ffffff !important;
}

.fwp-cta-proof-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.9);
  font-weight: 600;
}

/* ==========================================================================
   Header Services Dropdown Tunnel & Zero-Friction Hover Bridge
   ========================================================================== */
#services-dropdown-container {
  position: relative;
}

/* Invisible hover bridge spanning below the Services button to prevent cursor drops */
#services-dropdown-container::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -24px;
  right: -140px;
  height: 28px;
  background: transparent;
  pointer-events: auto;
  z-index: 49;
}

/* Force dropdown menu display on hover or when marked as open */
#services-dropdown-container:hover > #services-dropdown-menu,
#services-dropdown-container:focus-within > #services-dropdown-menu,
#services-dropdown-container.is-open > #services-dropdown-menu,
#services-dropdown-menu:hover {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}



