/* ==========================================================================
   WHIZ STUDIO - TRUE LIQUID GLASS DESIGN SYSTEM (MASTER RESPONSIVE ARCHITECTURE)
   Domain: whizstudio.art | Primary Brand Green: #00A86B / #059669 / #047857
   Aesthetics: Genuine Liquid Glass, Backdrop Blur, Specular Highlights, Glowing Blobs
   Responsive: Fluid scaling from 320px mobile to 2560px+ ultrawide displays
   ========================================================================== */

:root {
  --brand-whiz: #00A86B;
  --brand-emerald: #059669;
  --brand-deep: #065F46;
  --brand-glow: rgba(0, 168, 107, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.20);
  --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.10);
}

/* Base Universal Resets & Strict Viewport / Overflow Control */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #F4FAF7;
  color: #0F172A;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Fluid Media & Break-word Resets */
img, svg, video, canvas, audio, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6, p, span, a, li, label {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* Fluid Typography Scaling */
.hero-title {
  font-size: clamp(1.85rem, 4.5vw + 0.4rem, 3.75rem);
  line-height: 1.15;
}

.section-title {
  font-size: clamp(1.6rem, 2.8vw + 0.4rem, 2.5rem);
  line-height: 1.25;
}

.card-title {
  font-size: clamp(1.15rem, 1.6vw + 0.3rem, 1.45rem);
  line-height: 1.3;
}

/* ==========================================================================
   VIBRANT GLOWING ANIMATED BACKGROUND BLOBS (LIQUID GLASS LIGHT REACTION)
   Strictly confined to prevent any overflow or horizontal scroll
   ========================================================================= */
.liquid-bg-blobs {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  will-change: transform;
  opacity: 0.65;
  pointer-events: none;
}

.blob-1 {
  top: -10%;
  left: -5%;
  width: clamp(280px, 50vw, 680px);
  height: clamp(280px, 50vw, 680px);
  background: radial-gradient(circle, rgba(0, 168, 107, 0.45) 0%, rgba(52, 211, 153, 0.3) 40%, transparent 70%);
  animation: blobFloat1 18s ease-in-out infinite alternate;
}

.blob-2 {
  top: 25%;
  right: -10%;
  width: clamp(300px, 55vw, 750px);
  height: clamp(300px, 55vw, 750px);
  background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, rgba(5, 150, 105, 0.25) 45%, transparent 75%);
  animation: blobFloat2 22s ease-in-out infinite alternate;
}

.blob-3 {
  top: 60%;
  left: 8%;
  width: clamp(260px, 45vw, 600px);
  height: clamp(260px, 45vw, 600px);
  background: radial-gradient(circle, rgba(0, 168, 107, 0.38) 0%, rgba(16, 185, 129, 0.2) 50%, transparent 70%);
  animation: blobFloat3 20s ease-in-out infinite alternate;
}

.blob-4 {
  bottom: -12%;
  right: 12%;
  width: clamp(280px, 48vw, 640px);
  height: clamp(280px, 48vw, 640px);
  background: radial-gradient(circle, rgba(5, 150, 105, 0.4) 0%, rgba(110, 231, 183, 0.3) 50%, transparent 70%);
  animation: blobFloat1 25s ease-in-out infinite alternate;
}

@keyframes blobFloat1 {
  0% { transform: translate(0px, 0px) scale(1); }
  50% { transform: translate(40px, 35px) scale(1.06); }
  100% { transform: translate(-30px, 50px) scale(0.96); }
}

@keyframes blobFloat2 {
  0% { transform: translate(0px, 0px) scale(1); }
  50% { transform: translate(-45px, -30px) scale(1.08); }
  100% { transform: translate(30px, 40px) scale(0.94); }
}

@keyframes blobFloat3 {
  0% { transform: translate(0px, 0px) scale(0.96); }
  50% { transform: translate(35px, -40px) scale(1.05); }
  100% { transform: translate(-35px, 25px) scale(1); }
}

.liquid-grid-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  background-image: radial-gradient(rgba(0, 168, 107, 0.12) 1.2px, transparent 1.2px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.75;
  z-index: 1;
}

/* ==========================================================================
   GENUINE LIQUID GLASS EFFECT
   ========================================================================= */

/* Universal Glass Card Class */
.liquid-glass-card {
  background: rgba(255, 255, 255, 0.10) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.20) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.10) !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.liquid-glass-card:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(0, 168, 107, 0.4) !important;
  box-shadow: 0 12px 36px rgba(0, 168, 107, 0.15) !important;
  transform: translateY(-3px);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

/* Navigation Link & Liquid Glass Active State Indicator (Fully Rounded Pill Shape) */
.nav-link {
  position: relative;
  color: #1E293B;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  border: 1px solid transparent;
  text-decoration: none;
  border-radius: 9999px !important;
}

.nav-link:hover {
  color: #00A86B !important;
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 10px rgba(0, 168, 107, 0.08);
}

/* Liquid Glass Active State Indicator (Pill Shape - No Underline - Smooth Transition) */
.nav-link.active {
  color: #00A86B !important;
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(0, 168, 107, 0.35) !important;
  box-shadow: 0 4px 18px rgba(0, 168, 107, 0.16), 
              inset 0 1px 2px rgba(255, 255, 255, 0.95),
              inset 0 -1px 2px rgba(0, 168, 107, 0.08) !important;
  font-weight: 700 !important;
}

/* Mobile Navigation Link Styling */
#mobileMenu .mobile-nav-link,
.mobile-nav-link.nav-link,
.mobile-nav-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 10px 24px !important;
  min-height: 44px !important;
  border-radius: 50px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1E293B !important;
  width: auto !important;
  max-width: fit-content !important;
  margin: 2px auto !important;
  background: transparent !important;
  border: none !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
  outline: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
}

#mobileMenu .mobile-nav-link::before,
#mobileMenu .mobile-nav-link::after,
.mobile-nav-link::before,
.mobile-nav-link::after {
  content: none !important;
  display: none !important;
}

/* Mobile Active State: Smooth Translucent Glass Pebble (Zero Border, Perfect Pill) */
#mobileMenu .mobile-nav-link.active,
.mobile-nav-link.nav-link.active,
.mobile-nav-link.active {
  color: #00A86B !important;
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-radius: 50px !important;
  border: none !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
  outline: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
  font-weight: 700 !important;
}

/* Glass Buttons */
.btn-glass-primary {
  background: linear-gradient(135deg, #00A86B 0%, #047857 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 4px 14px 0 rgba(0, 168, 107, 0.35), inset 0 1px 1px 0 rgba(255, 255, 255, 0.4) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-glass-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #065F46 100%) !important;
  box-shadow: 0 8px 24px 0 rgba(0, 168, 107, 0.45), inset 0 1px 1px 0 rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-2px);
}

.btn-glass-secondary {
  background: rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  color: #064E3B !important;
  border: 1px solid rgba(0, 168, 107, 0.35) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-glass-secondary:hover {
  background: rgba(255, 255, 255, 0.65) !important;
  border-color: #00A86B !important;
  color: #00A86B !important;
  box-shadow: 0 6px 20px rgba(0, 168, 107, 0.2) !important;
  transform: translateY(-2px);
}

/* Glass Inputs */
.glass-input {
  background: rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  color: #0F172A !important;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  min-height: 42px;
}

.glass-input:focus {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: #00A86B !important;
  box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.25) !important;
  outline: none;
}

/* Bespoke Form Dropdown / Select Styling */
select.glass-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: none !important;
}

select.glass-input option {
  background-color: #FFFFFF;
  color: #0F172A;
  padding: 12px 16px;
  font-size: 14px;
}

select.glass-input option:checked,
select.glass-input option:hover {
  background-color: #ECFDF5;
  color: #047857;
  font-weight: 700;
}

/* Social Icon Round Button */
.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0F172A;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.social-icon-btn:hover {
  background: rgba(255, 255, 255, 0.85);
  color: #00A86B;
  border-color: #00A86B;
  box-shadow: 0 8px 24px rgba(0, 168, 107, 0.3);
  transform: translateY(-3px) scale(1.08);
}

/* Modal Liquid Backdrop */
.modal-backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Custom Modal Internal Scrollbar (Thin, Elegant, Respects Rounded Borders) */
.custom-modal-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(5, 150, 105, 0.35) transparent;
  -webkit-overflow-scrolling: touch;
}

.custom-modal-scroll::-webkit-scrollbar {
  width: 6px;
}

.custom-modal-scroll::-webkit-scrollbar-track {
  background: transparent;
  margin: 6px 0;
}

.custom-modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(5, 150, 105, 0.3);
  border-radius: 9999px;
}

.custom-modal-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 168, 107, 0.6);
}

/* Custom Dropdown Internal Scrollbar (Inset, Rounded, Zero Border Clipping) */
.custom-dropdown-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(5, 150, 105, 0.4) transparent;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.custom-dropdown-scroll::-webkit-scrollbar {
  width: 5px;
}

.custom-dropdown-scroll::-webkit-scrollbar-track {
  background: transparent;
  margin-top: 10px;
  margin-bottom: 10px;
}

.custom-dropdown-scroll::-webkit-scrollbar-thumb {
  background: rgba(5, 150, 105, 0.35);
  border-radius: 9999px;
}

.custom-dropdown-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 168, 107, 0.7);
}

/* Global Page Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #EEF4F1;
}

::-webkit-scrollbar-thumb {
  background: #94A3B8;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00A86B;
}

/* Modal Typography */
#articleModalBody h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
  font-family: 'Poppins', sans-serif;
}

#articleModalBody p {
  color: #334155;
  line-height: 1.75;
  margin-bottom: 1rem;
}

#articleModalBody ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-top: 0.6rem;
  margin-bottom: 1.25rem;
}

#articleModalBody li {
  color: #334155;
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

#articleModalBody strong {
  color: #065F46;
  font-weight: 700;
}

/* ==========================================================================
   MASTER RESPONSIVE ADAPTATIONS & MEDIA QUERIES
   ========================================================================== */

/* Mobile Phones & Tablets (< 768px) */
@media (max-width: 767px) {
  /* Container Padding & Spacing */
  section:not(#home) {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }

  /* Compact glass card inner padding for mobile */
  .liquid-glass-card,
  .service-card,
  .pricing-card,
  .article-card {
    padding: 1.25rem !important;
  }

  /* Headings line height and compact sizing on small screens */
  .hero-title {
    font-size: clamp(1.85rem, 6.5vw, 2.65rem) !important;
    line-height: 1.16 !important;
  }

  .section-title, h2 {
    font-size: clamp(1.5rem, 5vw, 2.15rem) !important;
    line-height: 1.22 !important;
  }

  .hero-description {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }
  
  /* Buttons expand to full width if inside hero action groups */
  .hero-actions .btn-glass-primary,
  .hero-actions .btn-glass-secondary {
    width: 100% !important;
    text-align: center;
    justify-content: center;
    min-height: 48px !important;
  }

  /* Star rating buttons touch size */
  .star-btn {
    font-size: 1.75rem !important;
    padding: 2px 4px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Form inputs & interactive touch size */
  .glass-input {
    min-height: 44px !important;
    font-size: 15px !important;
  }

  /* Modals fit snug within small screens */
  #serviceModalContent,
  #articleModalContent {
    max-height: 90vh !important;
    margin: 0.5rem !important;
    width: calc(100% - 1rem) !important;
    border-radius: 1.25rem !important;
  }

  /* Notification Toast mobile alignment */
  #toastContainer {
    right: 0.75rem !important;
    left: 0.75rem !important;
    max-width: calc(100vw - 1.5rem) !important;
  }
}

/* Tablet screens (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  section:not(#home) {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
  }
}

/* Ultrawide screens (>= 1920px) */
@media (min-width: 1920px) {
  .hero-title {
    font-size: 4rem !important;
  }
}

/* Touch Device Target Optimization */
@media (hover: none) and (pointer: coarse), (max-width: 767px) {
  a, button, input, select, textarea {
    min-height: 44px;
    touch-action: manipulation;
  }
  
  .social-icon-btn {
    min-width: 44px;
    min-height: 44px;
  }
}
