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

:root {
  /* Dark Theme Default */
  --bg-color: #0f172a;
  /* Slate 900 */
  --text-primary: #f8fafc;
  /* Slate 50 */
  --text-secondary: #94a3b8;
  /* Slate 400 */
  --accent: #38bdf8;
  /* Sky 400 */
  --accent-glow: rgba(56, 189, 248, 0.4);

  /* Neomorphism Dark */
  --shadow-light: 8px 8px 16px #090e19, -8px -8px 16px #15203b;
  --shadow-inset: inset 6px 6px 12px #090e19, inset -6px -6px 12px #15203b;

  /* Glassmorphism Dark */
  --glass-bg: rgba(15, 23, 42, 0.45);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  /* Animations */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Platform Colors */
  --trustpilot: #00b67a;
  --google-blue: #4285f4;
  --google-red: #ea4335;
  --google-yellow: #fbbc05;
  --google-green: #34a853;
  --whatsapp: #25D366;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Gradients & Orbs - GPU Optimized */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
  transform: translateZ(0);
}

.bg-orb-1 {
  top: -5%;
  left: -5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle at center, rgba(238, 99, 65, 0.14) 0%, rgba(238, 99, 65, 0.04) 45%, transparent 70%);
}

.bg-orb-2 {
  bottom: -5%;
  right: -5%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle at center, rgba(18, 49, 121, 0.12) 0%, rgba(18, 49, 121, 0.03) 45%, transparent 70%);
}

/* Components */
.neo-card {
  background: var(--bg-color);
  box-shadow: var(--shadow-light);
  border-radius: 1.25rem;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.neo-card:hover {
  transform: translateY(-5px);
  border-color: var(--glass-border);
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 1.5rem;
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Platform Specific Enhancements */
.trustpilot-card:hover {
  box-shadow: 0 10px 40px rgba(0, 182, 122, 0.15);
  border-color: rgba(0, 182, 122, 0.3);
}

.google-card:hover {
  box-shadow: 0 10px 40px rgba(66, 133, 244, 0.15);
  border-color: rgba(66, 133, 244, 0.3);
}

.platform-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    transition: var(--transition-smooth);
    z-index: 20;
}

.star-rating {
    display: flex;
    gap: 0.125rem;
    margin-bottom: 0.75rem;
}

.star-rating svg {
    width: 1rem !important;
    height: 1rem !important;
    color: #fbbf24 !important;
}

.trustpilot-stars svg {
    color: white;
    background: var(--trustpilot);
    padding: 2px;
    border-radius: 2px;
}


.glass-nav {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

/* Buttons */
.neo-btn {
  background: var(--bg-color);
  box-shadow: var(--shadow-light);
  border-radius: 9999px;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  padding: 0.75rem 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

.neo-btn:hover {
  color: var(--accent);
  border-color: var(--glass-border);
}

.neo-btn:active,
.neo-btn.active {
  box-shadow: var(--shadow-inset);
  color: var(--accent);
}

.neo-btn-primary {
  background: var(--accent);
  color: #0f172a;
  box-shadow: 0 4px 14px var(--accent-glow);
  border-radius: 9999px;
  font-weight: 600;
  padding: 0.75rem 2.5rem;
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.neo-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
  background: #7dd3fc;
}

.neo-btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px var(--accent-glow);
}

/* Inputs */
.neo-input {
  background: var(--bg-color);
  box-shadow: var(--shadow-inset);
  border: 1px solid transparent;
  border-radius: 1rem;
  color: var(--text-primary);
  width: 100%;
  padding: 1rem 1.25rem;
  outline: none;
  transition: var(--transition-smooth);
  font-family: inherit;
}

.neo-input::placeholder {
  color: var(--text-secondary);
}

.neo-input:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-inset), 0 0 10px rgba(56, 189, 248, 0.2);
}

/* Typography Utility */
.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Progress Bars */
.neo-progress-track {
  background: var(--bg-color);
  box-shadow: var(--shadow-inset);
  border-radius: 9999px;
  height: 10px;
  overflow: hidden;
  width: 100%;
}

.neo-progress-bar {
  background: linear-gradient(90deg, var(--accent) 0%, #a78bfa 100%);
  height: 100%;
  border-radius: 9999px;
  box-shadow: 0 0 10px var(--accent-glow);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Flip Card (Service Cards - design.md 4.4) */
.flip-card {
  perspective: 1200px;
  height: 100%;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-inner,
.flip-card:focus-within .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
}

.flip-back {
  transform: rotateY(180deg);
}

.flip-num {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  opacity: 0.7;
}

.flip-link {
  margin-top: auto;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.flip-link:hover {
  color: white;
  transform: translateX(4px);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--whatsapp);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-smooth);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
    position: absolute;
    right: 120%;
    background: #111827; /* Gray 900 */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 640px) {
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3rem;
        height: 3rem;
    }
    
    .whatsapp-tooltip {
        display: none; /* Hide tooltip on small mobile screens */
    }
}

/* ==========================================================
   Web Matrix Light Theme (design.md §7 color palette)
   Coral #EE6341 · Navy #123179 · White bg · Dark gray text
   Scoped to the homepage via <body class="wm-theme">
   ========================================================== */

body.wm-theme {
  --bg-color: #ffffff;
  --text-primary: #202020;
  --text-secondary: #5b6574;
  --accent: #EE6341;
  --accent-strong: #EE5E3B;
  --accent-2: #123179;
  --accent-2-light: #162C64;
  --accent-glow: rgba(238, 99, 65, 0.3);

  --shadow-light: 8px 8px 18px rgba(18, 49, 121, 0.10), -8px -8px 18px rgba(255, 255, 255, 0.9);
  --shadow-inset: inset 6px 6px 12px rgba(18, 49, 121, 0.08), inset -6px -6px 12px #ffffff;

  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(18, 49, 121, 0.12);
  --glass-shadow: 0 12px 40px rgba(18, 49, 121, 0.10);

  background-color: var(--bg-color);
  color: var(--text-primary);
}

/* Tailwind utility re-maps (higher specificity than CDN utilities) */
body.wm-theme .text-white {
  color: #123179; /* navy headings */
}
body.wm-theme .text-slate-300 {
  color: #3d4a5d;
}
body.wm-theme .text-slate-400 {
  color: #5b6574;
}
body.wm-theme .text-slate-500 {
  color: #8a94a6;
}
body.wm-theme .text-slate-600,
body.wm-theme .text-slate-700,
body.wm-theme .text-slate-800,
body.wm-theme .text-slate-900 {
  color: #202020;
}
body.wm-theme .text-purple-400,
body.wm-theme .text-sky-300 {
  color: #123179;
}
body.wm-theme .bg-slate-800 {
  background-color: #eef2fa;
}
body.wm-theme .bg-slate-900 {
  background-color: #eef2fa;
}
body.wm-theme .bg-white\/5 {
  background-color: rgba(18, 49, 121, 0.06);
}
body.wm-theme .bg-white\/10 {
  background-color: rgba(18, 49, 121, 0.10);
}
body.wm-theme .border-white\/5 {
  border-color: rgba(18, 49, 121, 0.12);
}
body.wm-theme .border-white\/10 {
  border-color: rgba(18, 49, 121, 0.15);
}
body.wm-theme .border-white\/20 {
  border-color: rgba(18, 49, 121, 0.22);
}
body.wm-theme .border-purple-500\/30,
body.wm-theme .border-purple-400\/30 {
  border-color: rgba(18, 49, 121, 0.30);
}
body.wm-theme .border-slate-800 {
  border-color: rgba(18, 49, 121, 0.14);
}
body.wm-theme .bg-slate-900\/80,
body.wm-theme .bg-slate-900\/95 {
  background-color: rgba(18, 49, 121, 0.92);
}

/* Gradient text: coral -> navy */
body.wm-theme .text-gradient {
  background: linear-gradient(120deg, #EE6341 0%, #123179 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Explicit "primary" utilities (Tailwind CDN has no `primary` color) */
body.wm-theme .text-primary {
  color: #EE6341;
}
body.wm-theme .bg-primary {
  background-color: #EE6341;
}
body.wm-theme .bg-primary\/10 {
  background-color: rgba(238, 99, 65, 0.10);
}
body.wm-theme .bg-primary\/20 {
  background-color: rgba(238, 99, 65, 0.20);
}
body.wm-theme .border-primary\/20 {
  border-color: rgba(238, 99, 65, 0.25);
}
body.wm-theme .border-primary\/30 {
  border-color: rgba(238, 99, 65, 0.35);
}
body.wm-theme .border-primary\/50 {
  border-color: rgba(238, 99, 65, 0.55);
}
body.wm-theme .hover\:text-primary:hover {
  color: #EE6341;
}
body.wm-theme .hover\:border-primary\/50:hover {
  border-color: rgba(238, 99, 65, 0.55);
}
body.wm-theme .group:hover .group-hover\:text-primary {
  color: #EE6341;
}
body.wm-theme .group\/btn:hover .group-hover\/btn\:bg-primary {
  background-color: #EE6341;
}
body.wm-theme .group\/btn:hover .group-hover\/btn\:text-slate-900 {
  color: #ffffff;
}

/* Nav */
body.wm-theme .glass-nav {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(18, 49, 121, 0.12);
}

/* Buttons */
body.wm-theme .neo-btn {
  background: #ffffff;
  box-shadow: var(--shadow-light);
  color: #202020;
}
body.wm-theme .neo-btn:hover,
body.wm-theme .neo-btn.active {
  color: #EE6341;
  border-color: rgba(238, 99, 65, 0.4);
  box-shadow: var(--shadow-light);
}
body.wm-theme .neo-btn-primary {
  background: #EE6341;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(238, 99, 65, 0.4);
}
body.wm-theme .neo-btn-primary:hover {
  background: #EE5E3B;
  color: #ffffff;
  box-shadow: 0 6px 22px rgba(238, 99, 65, 0.5);
}

/* Inputs */
body.wm-theme .neo-input {
  background: #ffffff;
  box-shadow: var(--shadow-inset);
  border: 1px solid rgba(18, 49, 121, 0.12);
  color: #202020;
}
body.wm-theme .neo-input::placeholder {
  color: #8a94a6;
}
body.wm-theme .neo-input:focus {
  border-color: #EE6341;
  box-shadow: var(--shadow-inset), 0 0 10px rgba(238, 99, 65, 0.25);
}

/* Cards */
body.wm-theme .neo-card,
body.wm-theme .glass-panel {
  background: #ffffff;
  box-shadow: var(--glass-shadow);
  border-color: rgba(18, 49, 121, 0.12);
}
body.wm-theme .glass-panel {
  background: rgba(255, 255, 255, 0.85);
}
body.wm-theme .neo-card:hover,
body.wm-theme .glass-panel:hover {
  background: #ffffff;
  border-color: rgba(238, 99, 65, 0.35);
}

/* Service flip cards: front white, back coral (per Web Matrix) */
body.wm-theme .flip-front {
  background: #ffffff;
}
body.wm-theme .flip-back {
  background: linear-gradient(145deg, #EE6341 0%, #EE5E3B 100%);
}
body.wm-theme .flip-back h3 {
  color: #ffffff;
}
body.wm-theme .flip-back p {
  color: rgba(255, 255, 255, 0.85);
}
body.wm-theme .flip-back .flip-link {
  color: #ffffff;
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
}
body.wm-theme .flip-back .flip-link:hover {
  color: #123179;
}
body.wm-theme .flip-num {
  color: #123179;
}

/* Hover states on light background */
body.wm-theme .hover\:text-white:hover {
  color: #EE6341;
}
body.wm-theme .hover\:bg-slate-800\/50:hover {
  background-color: rgba(18, 49, 121, 0.08);
}

/* Section band backgrounds (formerly dark navy sections) */
body.wm-theme .bg-\[\#0c1222\] {
  background-color: #F7F8FB;
}
body.wm-theme .bg-\[\#0F1222\] {
  background-color: #F1F3F9;
}
body.wm-theme .bg-\[\#0b1121\] {
  background-color: #123179;
}

/* Footer sits on navy -> keep white text */
body.wm-theme footer .text-white {
  color: #ffffff;
}
body.wm-theme footer .text-slate-300,
body.wm-theme footer .text-slate-400,
body.wm-theme footer .text-slate-500 {
  color: #c7d3f4;
}
body.wm-theme footer .neo-card {
  background: rgba(18, 49, 121, 0.35);
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.14);
}
body.wm-theme footer .neo-card:hover {
  background: rgba(18, 49, 121, 0.45);
  border-color: rgba(255, 255, 255, 0.25);
}
/* Dark footer: keep accent colors visible (theme re-maps purple/sky to navy elsewhere) */
body.wm-theme footer .text-purple-400 {
  color: #c084fc;
}
body.wm-theme footer .text-sky-300 {
  color: #7dd3fc;
}
body.wm-theme footer a:hover {
  color: #ffffff;
}

/* Modal: keep light surface */
body.wm-theme .wm-modal {
  background: #ffffff;
}
body.wm-theme .wm-modal .bg-slate-900\/50 {
  background-color: rgba(18, 49, 121, 0.04);
}
body.wm-theme .bg-\[\#0f172a\] {
  background-color: #eef2fa;
}

body.wm-theme .neo-progress-track {
  background: #e5eaf3;
  box-shadow: inset 0 1px 3px rgba(18, 49, 121, 0.15);
}

body.wm-theme .neo-progress-bar {
  background: linear-gradient(90deg, #EE6341 0%, #EE5E3B 60%, #f59e7e 100%);
  box-shadow: 0 0 10px rgba(238, 99, 65, 0.35);
}

/* ===== Shared coverage for sub-pages (about/services/portfolio/contact/publications) ===== */
/* Pre-header band */
body.wm-theme .bg-\[\#0b1121\]\/50,
body.wm-theme .bg-\[\#0b1121\]\/30 {
  background-color: rgba(18, 49, 121, 0.06);
}
/* About experience band */
body.wm-theme .bg-\[\#0a0f1c\] {
  background-color: #F1F3F9;
}
/* Timeline / process ring borders */
body.wm-theme .border-\[\#0a0f1c\],
body.wm-theme .border-\[\#0b1121\] {
  border-color: rgba(18, 49, 121, 0.18);
}
/* Mock browser UI bars (services) */
body.wm-theme .bg-slate-800\/50 {
  background-color: rgba(18, 49, 121, 0.10);
}
body.wm-theme .bg-slate-700 {
  background-color: rgba(18, 49, 121, 0.22);
}
body.wm-theme .bg-slate-600 {
  background-color: rgba(18, 49, 121, 0.34);
}
body.wm-theme .bg-slate-500 {
  background-color: rgba(18, 49, 121, 0.48);
}
body.wm-theme .hover\:bg-slate-800:hover {
  background-color: rgba(18, 49, 121, 0.12);
}

/* CTA bands: navy gradient keeps near-white text on-brand */
body.wm-theme .from-slate-900\/80 {
  --tw-gradient-from: rgba(18, 49, 121, 0.92);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(18, 49, 121, 0.92));
}
body.wm-theme .from-slate-900,
body.wm-theme .from-\[\#0f172a\] {
  --tw-gradient-from: #123179;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(18, 49, 121, 0.92));
}
body.wm-theme .to-slate-900,
body.wm-theme .to-\[\#0f172a\] {
  --tw-gradient-to: #162c64;
  --tw-gradient-stops: var(--tw-gradient-from, rgba(18, 49, 121, 0.92)), var(--tw-gradient-to);
}
body.wm-theme .bg-slate-900\/85,
body.wm-theme .bg-slate-900\/95 {
  background-color: rgba(18, 49, 121, 0.97);
}
body.wm-theme .bg-slate-900\/60 {
  background-color: rgba(18, 49, 121, 0.62);
}
body.wm-theme .bg-slate-900\/50 {
  background-color: rgba(18, 49, 121, 0.12);
}

/* Dark surfaces that must STAY dark on light theme (modals, scrims, footers, CTA pins).
   Mark with wm-dark / wm-scrim / wm-backdrop in HTML for white-text scope. */
body.wm-theme .wm-scrim,
body.wm-theme .wm-scrim .text-white { color: #ffffff; }
body.wm-theme .wm-scrim,
body.wm-theme .wm-scrim .text-slate-300 { color: #cbd5e1; }
body.wm-theme .wm-scrim,
body.wm-theme .wm-scrim .text-slate-400 { color: #94a3b8; }
body.wm-theme .wm-scrim .border-white\/5 { border-color: rgba(255, 255, 255, 0.08); }
body.wm-theme .wm-scrim .border-white\/10 { border-color: rgba(255, 255, 255, 0.14); }
body.wm-theme .wm-scrim .bg-slate-900\/60 { background-color: rgba(15, 23, 42, 0.55); }
body.wm-theme .wm-scrim .group-hover\:bg-slate-900\/20:hover,
body.wm-theme .wm-scrim { background-color: rgba(15, 23, 42, 0.35); }
body.wm-theme .wm-scrim {
  background-image: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.65) 45%, rgba(15, 23, 42, 0) 100%);
}
body.wm-theme .wm-backdrop {
  background-color: rgba(10, 15, 26, 0.78) !important;
}
body.wm-theme .wm-dark { background-color: #123179; }
body.wm-theme .wm-dark .text-white { color: #ffffff; }
body.wm-theme .wm-dark .text-slate-300 { color: #cbd5e1; }
body.wm-theme .wm-dark .text-slate-400 { color: #94a3b8; }
body.wm-theme .wm-dark .text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #f5c6b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.wm-theme .wm-dark .border-white\/5 { border-color: rgba(255, 255, 255, 0.10); }
body.wm-theme .wm-dark .border-white\/10 { border-color: rgba(255, 255, 255, 0.16); }
body.wm-theme .wm-dark .neo-card { background: rgba(255, 255, 255, 0.06); box-shadow: none; }

/* Scrollbar */
body.wm-theme ::-webkit-scrollbar-thumb {
  background: #EE6341;
}

/* AOS elements must render visible while animating on white */
body.wm-theme [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

/* Mobile app-like layout and touch targets shared by every page. */
@media (max-width: 640px) {
  html {
    scroll-padding-top: 5rem;
    -webkit-text-size-adjust: 100%;
  }

  body {
    min-width: 320px;
    padding-bottom: env(safe-area-inset-bottom);
    overscroll-behavior-x: none;
  }

  body.wm-theme .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body.wm-theme section.py-24 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  body.wm-theme section.py-20,
  body.wm-theme section.py-16,
  body.wm-theme section.py-14 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  body.wm-theme h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
  }

  body.wm-theme h2 {
    font-size: clamp(1.5rem, 7vw, 2.25rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
  }

  body.wm-theme p {
    overflow-wrap: anywhere;
  }

  body.wm-theme .glass-nav {
    padding-top: env(safe-area-inset-top);
    box-shadow: 0 4px 24px rgba(18, 49, 121, 0.08);
  }

  body.wm-theme nav button,
  body.wm-theme nav a,
  body.wm-theme button,
  body.wm-theme .neo-btn,
  body.wm-theme .neo-btn-primary {
    touch-action: manipulation;
  }

  body.wm-theme button:not(.whatsapp-float),
  body.wm-theme .neo-btn,
  body.wm-theme .neo-btn-primary {
    min-height: 2.75rem;
  }

  body.wm-theme input,
  body.wm-theme select,
  body.wm-theme textarea {
    font-size: 16px;
  }

  body.wm-theme .mobile-filter-scroll {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0.125rem 0.75rem;
  }

  body.wm-theme .mobile-filter-scroll::-webkit-scrollbar {
    display: none;
  }

  body.wm-theme .mobile-filter-scroll > * {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  body.wm-theme #portfolio .glass-panel.group {
    border-radius: 1.25rem;
    box-shadow: 0 8px 28px rgba(18, 49, 121, 0.09);
  }

  body.wm-theme #portfolio .glass-panel.group > div:first-child {
    height: 13rem;
    padding: 0.875rem;
  }

  body.wm-theme .about-project-card {
    border-radius: 1.25rem;
  }

  body.wm-theme .about-project-card > div:first-child {
    height: 12rem;
  }

  body.wm-theme .project-img-wrapper {
    height: clamp(13rem, 65vw, 20rem);
    border-radius: 1.25rem;
  }

  body.wm-theme .thumb-strip img {
    width: 4.5rem;
    height: 3.25rem;
  }

  body.wm-theme footer {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }

  body.wm-theme .whatsapp-float {
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    width: 3.25rem;
    height: 3.25rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  }

  body.wm-theme .wm-modal {
    width: 100%;
    max-height: calc(100dvh - 1rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 1.25rem;
  }
}

@media (max-width: 380px) {
  body.wm-theme .container {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }

  body.wm-theme .neo-btn,
  body.wm-theme .neo-btn-primary {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  body.wm-theme *,
  body.wm-theme *::before,
  body.wm-theme *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}