/* ============================================================
   MISHPLUS MEDIA LIMITED - Custom CSS
   Dark/Light modes + 6 accent colours + interactions
   ============================================================ */

/* ---------- Theme variables ---------- */
:root {
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --container-max: 1200px;
  --nav-height: 70px;
  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.35s var(--ease);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 30px -12px rgba(0, 0, 0, 0.3);
}

/* Light theme */
[data-theme="light"] {
  --bg-primary: #f7f7f9;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-raised: #ffffff;
  --bg-muted: #f0f0f3;
  --text-primary: #141419;
  --text-secondary: #5c5c66;
  --border: rgba(20, 20, 25, 0.1);
  --border-strong: rgba(20, 20, 25, 0.18);
  --glass: rgba(255, 255, 255, 0.82);
  --nav-bg: rgba(255, 255, 255, 0.9);
  --hero-text: #ffffff;
  --card-lift: -8px;
  --code-bg: #ffffff;
}

/* Dark theme */
[data-theme="dark"] {
  --bg-primary: #07070a;
  --bg-secondary: #0d0d11;
  --bg-card: #111116;
  --bg-raised: #16161b;
  --bg-muted: #1b1b21;
  --text-primary: #f2f2f5;
  --text-secondary: #a6a6b0;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --glass: rgba(13, 13, 17, 0.78);
  --nav-bg: rgba(7, 7, 10, 0.88);
  --hero-text: #ffffff;
  --card-lift: -10px;
  --code-bg: #111116;
}

/* Accent colours (RGB tuples used via rgb(var(--accent))) */
[data-accent="crimson"] {
  --accent: 220, 20, 60;
  --accent-dark: 172, 12, 45;
  --accent-light: 240, 60, 96;
  --accent-pale: 255, 226, 232;
}
[data-accent="teal"] {
  --accent: 0, 201, 187;
  --accent-dark: 0, 155, 145;
  --accent-light: 45, 224, 209;
  --accent-pale: 214, 250, 246;
}
[data-accent="blue"] {
  --accent: 59, 130, 246;
  --accent-dark: 37, 99, 235;
  --accent-light: 96, 165, 250;
  --accent-pale: 219, 234, 254;
}
[data-accent="violet"] {
  --accent: 139, 92, 246;
  --accent-dark: 109, 40, 217;
  --accent-light: 167, 139, 250;
  --accent-pale: 237, 233, 254;
}
[data-accent="amber"] {
  --accent: 245, 158, 11;
  --accent-dark: 217, 119, 6;
  --accent-light: 251, 191, 36;
  --accent-pale: 254, 243, 199;
}
[data-accent="green"] {
  --accent: 16, 185, 129;
  --accent-dark: 5, 150, 105;
  --accent-light: 52, 211, 153;
  --accent-pale: 209, 250, 229;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 12px); overflow-x: hidden; }

body {
  font-family: var(--font-body);
  overflow-x: hidden;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
}

a { color: rgb(var(--accent)); text-decoration: none; transition: var(--transition); }
a:hover { color: rgb(var(--accent-light)); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

::selection { background: rgb(var(--accent)); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--accent-dark), var(--accent)); border-radius: 999px; }

/* ---------- Scroll progress ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, rgb(var(--accent)), rgb(var(--accent-light)));
  z-index: 9999; transition: width 0.1s linear;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; background: var(--bg-primary); z-index: 99999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s var(--ease);
}
.preloader.loaded { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-12px) scale(1.02); }
.preloader-logo {
  font-family: var(--font-heading); font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800; letter-spacing: 2px; color: var(--text-primary);
  animation: preloaderPulse 1.4s ease infinite;
}
.preloader-logo span { color: rgb(var(--accent)); }
.preloader-spinner {
  width: 44px; height: 44px; border: 3px solid var(--border-strong);
  border-top-color: rgb(var(--accent)); border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.preloader-tagline {
  font-size: 0.7rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--text-secondary);
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes preloaderPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

/* ---------- Page transition overlay ---------- */
.page-transition {
  position: fixed; inset: 0; z-index: 99998; display: flex;
  align-items: center; justify-content: center;
  background: var(--bg-primary);
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  transition: clip-path 0.7s var(--ease), opacity 0.45s ease;
  pointer-events: none;
}
.page-transition.entering { clip-path: inset(0 0 0% 0); opacity: 1; pointer-events: auto; }
.page-transition.leaving { clip-path: inset(100% 0 0 0); opacity: 0; }
.page-transition-inner { text-align: center; }
.page-transition-logo {
  font-family: var(--font-heading); font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 800;
  letter-spacing: 2px;
}
.page-transition-logo span { color: rgb(var(--accent)); }
.page-transition-bar {
  width: 220px; height: 3px; margin: 1.1rem auto 0; border-radius: 999px;
  background: var(--bg-muted); overflow: hidden;
}
.page-transition-bar span {
  display: block; height: 100%; width: 40%;
  background: linear-gradient(90deg, rgb(var(--accent)), rgb(var(--accent-light)));
  border-radius: 999px;
  animation: barSlide 1s ease infinite;
}
@keyframes barSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }
.page-transition-tag {
  margin-top: 0.9rem; font-size: 0.62rem; letter-spacing: 4px;
  text-transform: uppercase; color: var(--text-secondary);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: var(--transition); height: var(--nav-height);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; height: 100%;
}

.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo-img { height: 38px; width: auto; }
.logo-text { font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem; color: var(--text-primary); letter-spacing: 0.5px; }
.logo-accent { color: rgb(var(--accent)); }

.nav-menu { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-link {
  color: var(--text-secondary); font-weight: 500; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.6px; position: relative; padding: 0.5rem 0;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: rgb(var(--accent)); border-radius: 999px;
  transition: width 0.35s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; position: relative; list-style: none; margin-left: 0.75rem; }

/* Pill toggle (light/dark) */
.pill-toggle {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.32rem 0.75rem 0.32rem 0.45rem; border-radius: 9999px;
  background: var(--bg-muted); border: 1px solid var(--border);
  cursor: pointer; transition: var(--transition); user-select: none;
}
.pill-toggle:hover { border-color: rgb(var(--accent)); box-shadow: 0 0 0 3px rgba(var(--accent), 0.14); }
.pill-toggle:active { transform: scale(0.96); }
.pill-toggle .theme-toggle-icon { width: 22px; height: 22px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: var(--transition); }
.pill-toggle[data-state="dark"] .theme-toggle-icon { color: rgb(var(--accent)); }
.pill-toggle .theme-icon-moon { display: inline-flex; }
.pill-toggle .theme-icon-sun { display: none; }
.pill-toggle[data-state="dark"] .theme-icon-moon { display: none; }
.pill-toggle[data-state="dark"] .theme-icon-sun { display: inline-flex; }
.pill-toggle .theme-toggle-text { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); min-width: 2.2rem; text-align: left; transition: var(--transition); }
.pill-toggle[data-state="dark"] .theme-toggle-text { color: rgb(var(--accent)); }

/* Accent pill (theme icon only - opens the accent picker popover) */
.accent-pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; width: 40px; padding: 0; border-radius: 9999px;
  background: var(--bg-muted); border: 1px solid var(--border); cursor: pointer;
  transition: var(--transition);
}
.accent-pill:hover { border-color: rgb(var(--accent)); box-shadow: 0 0 0 3px rgba(var(--accent), 0.14); }
.accent-pill:active { transform: scale(0.96); }
.accent-pill-icon { font-size: 0.95rem; color: var(--text-secondary); transition: var(--transition); }
.accent-pill:hover .accent-pill-icon { color: rgb(var(--accent)); }
.accent-pill.open .accent-pill-icon { color: rgb(var(--accent)); }

.accent-popover {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 1100;
  background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 14px;
  padding: 1rem 1.1rem; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(8px) scale(0.96); transform-origin: top right;
  transition: opacity 0.25s ease, transform 0.3s var(--ease);
  pointer-events: none;
}
.accent-popover.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.accent-popover-title {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-secondary); margin-bottom: 0.7rem;
}
.accent-swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.accent-swatch {
  width: 42px; height: 42px; border-radius: 12px; border: 2px solid var(--border);
  background: var(--bg-muted); cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: var(--transition); padding: 0;
}
.accent-swatch span { width: 20px; height: 20px; border-radius: 50%; display: block; background: var(--swatch, var(--accent)); transition: var(--transition); }
.accent-swatch:hover { transform: translateY(-2px); border-color: rgb(var(--accent)); }
.accent-swatch.active { border-color: rgb(var(--accent)); box-shadow: 0 0 0 3px rgba(var(--accent), 0.18); }
.accent-swatch.active::after { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.7rem; color: #fff; position: absolute; }
.accent-swatch[data-accent="crimson"] span { background: #dc143c; }
.accent-swatch[data-accent="teal"] span { background: #00c9bb; }
.accent-swatch[data-accent="blue"] span { background: #3b82f6; }
.accent-swatch[data-accent="violet"] span { background: #8b5cf6; }
.accent-swatch[data-accent="amber"] span { background: #f59e0b; }
.accent-swatch[data-accent="green"] span { background: #10b981; }

/* Hamburger (with Menu label) */
.hamburger { display: none; align-items: center; gap: 0.6rem; cursor: pointer; z-index: 1001; background: none; border: none; padding: 0; }
.hamburger-label { font-family: var(--font-heading); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-secondary); }
.hamburger-icon { display: flex; flex-direction: column; gap: 5px; }
.hamburger-icon span { display: block; width: 25px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }
.hamburger.active .hamburger-label { color: rgb(var(--accent)); }
.hamburger.active .hamburger-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active .hamburger-icon span:nth-child(2) { opacity: 0; }
.hamburger.active .hamburger-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; position: relative; }
.section-dark { background: var(--bg-primary); }
.section-alt { background: var(--bg-secondary); }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }

.section-header { margin-bottom: 3rem; }
.section-header.text-center { text-align: center; }
.section-subtitle {
  color: rgb(var(--accent)); text-transform: uppercase; font-size: 0.78rem;
  font-weight: 700; letter-spacing: 3px; margin-bottom: 0.6rem;
}
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 800; text-transform: uppercase; margin-bottom: 1rem; line-height: 1.15; }
.section-title span { color: rgb(var(--accent)); }
.section-description { font-size: 1.05rem; color: var(--text-secondary); max-width: 640px; }
.section-header.text-center .section-description { margin: 0 auto; }

/* ---------- Hero (home) ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: var(--nav-height); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); animation: heroZoom 18s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1.05); } to { transform: scale(1.12); } }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(7,7,10,0.92) 0%, rgba(7,7,10,0.65) 45%, rgba(var(--accent), 0.28) 100%);
}
.particles-layer { position: absolute; inset: 0; z-index: 2; }
.particles-layer canvas { display: block; width: 100%; height: 100%; }
.hero-content { position: relative; z-index: 3; max-width: 720px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(var(--accent), 0.14); border: 1px solid rgba(var(--accent), 0.35);
  color: rgb(var(--accent-light)); padding: 0.45rem 1.1rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 800; text-transform: uppercase;
  line-height: 1.05; margin-bottom: 1.2rem; color: var(--hero-text);
}
.hero h1 span { color: rgb(var(--accent)); }
.hero p { font-size: 1.12rem; color: rgba(255, 255, 255, 0.82); margin-bottom: 2rem; max-width: 520px; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 3;
  color: #fff; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 3px;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem; opacity: 0.75;
}
.hero-scroll .scroll-indicator { width: 1px; height: 56px; background: rgba(255,255,255,0.25); position: relative; overflow: hidden; }
.hero-scroll .scroll-indicator::after { content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: rgb(var(--accent)); animation: scrollDown 2s ease-in-out infinite; }
@keyframes scrollDown { 0% { top: -100%; } 45% { top: 0; } 100% { top: 100%; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  min-height: 55vh; display: flex; align-items: flex-end; position: relative;
  overflow: hidden; padding-top: var(--nav-height); padding-bottom: 3rem;
  background: var(--bg-primary);
}
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 33%; transform: scale(1.06); }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(7,7,10,0.75) 0%, rgba(7,7,10,0.45) 55%, rgba(var(--accent), 0.22) 100%);
}
.page-hero-content { position: relative; z-index: 3; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; text-transform: uppercase; margin-bottom: 0.6rem; color: var(--hero-text); }
.page-hero h1 span { color: rgb(var(--accent)); }
.page-hero-subtitle { font-size: 1.05rem; color: rgba(255,255,255,0.82); max-width: 620px; }
.page-hero .hero-badge { margin-bottom: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 2rem; border-radius: 999px; font-weight: 600;
  font-family: var(--font-heading); text-transform: uppercase; font-size: 0.78rem;
  letter-spacing: 1.2px; border: 1px solid transparent; cursor: pointer;
  transition: all 0.3s var(--ease); text-decoration: none; position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transition: left 0.5s ease;
}
.btn:hover::after { left: 100%; }
.btn-primary { background: rgb(var(--accent)); color: #fff; box-shadow: 0 8px 24px -8px rgba(var(--accent), 0.7); }
.btn-primary:hover { background: rgb(var(--accent-dark)); transform: translateY(-2px); color: #fff; }
.btn-outline { background: transparent; border: 2px solid rgb(var(--accent)); color: var(--text-primary); }
.btn-outline:hover { background: rgb(var(--accent)); color: #fff; transform: translateY(-2px); }
.btn-light { background: #fff; color: rgb(var(--accent-dark)); }
.btn-light:hover { background: #f1f1f1; transform: translateY(-2px); }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.7rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 0.82rem; }

/* ---------- Services: image cards with overlay (KEY) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }
.service-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 380px; display: flex; align-items: flex-end; isolation: isolate;
  border: 1px solid var(--border);
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s ease;
}
.service-card:hover { border-color: rgba(var(--accent), 0.6); box-shadow: var(--shadow); }
.service-card-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform 0.6s var(--ease); z-index: -2;
}
.service-card:hover .service-card-bg { transform: scale(1.08); }
.service-card-veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(7,7,10,0.94) 0%, rgba(7,7,10,0.55) 45%, rgba(7,7,10,0.15) 75%, rgba(7,7,10,0.1) 100%);
  transition: opacity 0.4s ease, background 0.4s ease;
}
.service-card:hover .service-card-veil { background: linear-gradient(to top, rgba(var(--accent-dark), 0.92) 0%, rgba(7,7,10,0.72) 55%, rgba(7,7,10,0.2) 100%); }
.service-card-inner { padding: 1.8rem; width: 100%; transform: translateZ(20px); }
.service-card-icon {
  width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center;
  justify-content: center; font-size: 1.35rem; color: rgb(var(--accent));
  background: rgba(var(--accent), 0.15); border: 1px solid rgba(var(--accent), 0.3);
  margin-bottom: 1.1rem; transition: var(--transition); backdrop-filter: blur(4px);
}
.service-card:hover .service-card-icon { background: rgb(var(--accent)); color: #fff; transform: rotateY(360deg) scale(1.05); }
.service-card-title { font-size: 1.25rem; color: #fff; margin-bottom: 0.55rem; }
.service-card-desc { color: rgba(255,255,255,0.78); font-size: 0.92rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.5s var(--ease), opacity 0.4s ease, margin 0.4s ease; }
.service-card:hover .service-card-desc { max-height: 140px; opacity: 1; margin-bottom: 0.9rem; }
.service-card-cta { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgb(var(--accent-light)); opacity: 0; transform: translateY(10px); transition: var(--transition); }
.service-card:hover .service-card-cta { opacity: 1; transform: translateY(0); }
.service-card-cta:hover { gap: 0.8rem; color: #fff; }
.service-card-shine {
  position: absolute; top: -50%; left: -75%; width: 55%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  transform: rotate(25deg); transition: left 0.8s var(--ease); z-index: 1; pointer-events: none;
}
.service-card:hover .service-card-shine { left: 130%; }

/* Service features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.feature-item {
  display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.2rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.92rem; transition: var(--transition);
}
.feature-item:hover { border-color: rgb(var(--accent)); transform: translateY(-3px); }
.feature-item i { color: rgb(var(--accent)); font-size: 1.05rem; }

.service-features { list-style: none; margin: 1rem 0; }
.service-features li { color: rgba(255,255,255,0.88); font-size: 0.9rem; padding: 0.25rem 0; display: flex; gap: 0.6rem; align-items: flex-start; }
.service-features li i { color: rgb(var(--accent-light)); font-size: 0.82rem; margin-top: 0.25rem; }

/* Content blocks (detail pages) */
.content-block { margin-bottom: 3.5rem; }
.content-block h2 { font-size: 1.7rem; margin-bottom: 1.2rem; position: relative; padding-bottom: 0.8rem; }
.content-block h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 54px; height: 3px; border-radius: 999px; background: linear-gradient(90deg, rgb(var(--accent)), rgb(var(--accent-light))); }
.content-block p { color: var(--text-secondary); line-height: 1.85; }
.content-block ul { color: var(--text-secondary); padding-left: 1.2rem; line-height: 1.85; }

/* Portfolio / service nav */
.portfolio-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
.portfolio-nav a { font-weight: 600; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text-secondary); }
.portfolio-nav a:hover { color: rgb(var(--accent)); transform: translateY(-2px); }
.portfolio-nav span { flex: 1; }

/* Detail page gallery */
.portfolio-detail-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius-sm); cursor: zoom-in; border: 1px solid var(--border); aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after { content: '\f00e'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff; background: rgba(var(--accent-dark), 0.45); opacity: 0; transition: opacity 0.35s ease; }
.gallery-item:hover::after { opacity: 1; }

/* ---------- Portfolio: image cards ---------- */
.portfolio-filter { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 2.2rem; }
.filter-btn {
  background: var(--bg-card); border: 1px solid var(--border-strong); color: var(--text-secondary);
  padding: 0.6rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 0.82rem;
  cursor: pointer; transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: rgb(var(--accent)); border-color: rgb(var(--accent)); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(var(--accent), 0.7); }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }

.portfolio-item {
  position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer;
  aspect-ratio: 4 / 3; display: block; isolation: isolate; border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.portfolio-item:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: rgba(var(--accent), 0.55); }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.portfolio-item:hover img { transform: scale(1.09); }
.portfolio-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(7,7,10,0.98) 0%, rgba(7,7,10,0.62) 38%, rgba(7,7,10,0.18) 68%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.4rem;
  opacity: 0; transform: translateY(12px); transition: var(--transition);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; transform: translateY(0); }
.portfolio-category {
  color: rgb(var(--accent-light)); font-size: 0.7rem; text-transform: uppercase; font-weight: 700;
  letter-spacing: 1.6px; margin-bottom: 0.25rem; text-shadow: 0 1px 8px rgba(0,0,0,0.9);
  transform: translateY(10px); opacity: 0; transition: transform 0.4s var(--ease) 0.05s, opacity 0.4s ease 0.05s;
}
.portfolio-title { color: #ffffff; font-size: 1.05rem; font-weight: 600; text-shadow: 0 2px 10px rgba(0,0,0,0.85); transform: translateY(10px); opacity: 0; transition: transform 0.4s var(--ease) 0.1s, opacity 0.4s ease 0.1s; }
.portfolio-desc { color: rgba(255,255,255,0.92); font-size: 0.84rem; margin-top: 0.4rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 6px rgba(0,0,0,0.85); transform: translateY(10px); opacity: 0; transition: transform 0.4s var(--ease) 0.15s, opacity 0.4s ease 0.15s; }
.portfolio-item:hover .portfolio-category, .portfolio-item:hover .portfolio-title, .portfolio-item:hover .portfolio-desc { transform: translateY(0); opacity: 1; }
.portfolio-zoom {
  position: absolute; top: 1rem; right: 1rem; z-index: 3; width: 36px; height: 36px;
  border-radius: 50%; background: rgba(var(--accent), 0.9); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center; font-size: 0.82rem; cursor: pointer;
  opacity: 0; transform: scale(0.4) rotate(-90deg); transition: var(--transition);
}
.portfolio-item:hover .portfolio-zoom { opacity: 1; transform: scale(1) rotate(0deg); }
.portfolio-zoom:hover { background: rgb(var(--accent-dark)); color: #fff; }
.portfolio-item.hidden { display: none; }

/* Touch / no-hover: tile text is always visible so it stays readable */
@media (hover: none) {
  .portfolio-overlay { opacity: 1; transform: translateY(0); }
  .portfolio-category, .portfolio-title, .portfolio-desc { transform: translateY(0); opacity: 1; }
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 10000; display: none; align-items: center; justify-content: center; }
.lightbox.active { display: flex; animation: fadeIn 0.25s ease; }
.lightbox-close { position: absolute; top: 1.2rem; right: 1.2rem; background: rgba(255,255,255,0.1); border: none; color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; transition: var(--transition); z-index: 10001; }
.lightbox-close:hover { background: rgb(var(--accent)); transform: rotate(90deg); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: none; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1rem; cursor: pointer; transition: var(--transition); z-index: 10001; }
.lightbox-nav:hover { background: rgb(var(--accent)); }
.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }
.lightbox-content { max-width: 86vw; max-height: 84vh; }
.lightbox-content img { max-width: 100%; max-height: 84vh; object-fit: contain; border-radius: 10px; }
.lightbox-caption { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); color: #fff; font-size: 0.9rem; text-align: center; max-width: 70%; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Process steps ---------- */
.process-steps { display: grid; gap: 1.2rem; }
.process-step {
  display: flex; gap: 1.4rem; align-items: flex-start; padding: 1.4rem 1.6rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: var(--transition);
}
.process-step:hover { border-color: rgb(var(--accent)); transform: translateX(8px); box-shadow: var(--shadow-soft); }
.process-step .step-number {
  min-width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(135deg, rgb(var(--accent)), rgb(var(--accent-dark)));
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; box-shadow: 0 8px 20px -8px rgba(var(--accent), 0.8);
}
.process-step .step-content h3 { font-size: 1.08rem; margin-bottom: 0.35rem; }
.process-step .step-content p { color: var(--text-secondary); font-size: 0.92rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, rgb(var(--accent-dark)) 0%, rgb(var(--accent)) 55%, rgb(var(--accent-light)) 120%);
  padding: 4.5rem 0; text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cta-banner::before, .cta-banner::after {
  content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,0.12); pointer-events: none;
}
.cta-banner::before { width: 320px; height: 320px; top: -120px; left: -80px; }
.cta-banner::after { width: 260px; height: 260px; bottom: -110px; right: -60px; }
.cta-banner h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 0.8rem; color: #fff; position: relative; z-index: 1; }
.cta-banner p { font-size: 1.05rem; opacity: 0.92; margin-bottom: 1.8rem; max-width: 620px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
.cta-banner .btn { background: #fff; color: rgb(var(--accent-dark)); position: relative; z-index: 1; }
.cta-banner .btn:hover { background: #f4f4f4; }

/* ---------- Stats ---------- */
.stats-section { background: linear-gradient(135deg, rgb(var(--accent-dark)) 0%, rgb(var(--accent)) 60%, rgb(var(--accent-light)) 130%); padding: 4rem 0; color: #fff; position: relative; overflow: hidden; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; text-align: center; }
.stat-item { padding: 1rem; position: relative; }
.stat-icon { font-size: 1.9rem; margin-bottom: 0.5rem; opacity: 0.95; }
.stat-value { font-size: 2.5rem; font-weight: 800; font-family: var(--font-heading); line-height: 1; }
.stat-label { font-size: 0.78rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 1.5px; margin-top: 0.4rem; }

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; position: relative; transition: var(--transition); overflow: hidden;
}
.testimonial-card::before { content: '\201C'; position: absolute; top: 0.4rem; right: 1.4rem; font-size: 5rem; color: rgb(var(--accent)); opacity: 0.16; font-family: Georgia, serif; line-height: 1; }
.testimonial-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 3px;
  background: linear-gradient(90deg, rgb(var(--accent)), rgb(var(--accent-light)));
  transition: width 0.5s var(--ease);
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: rgba(var(--accent), 0.5); }
.testimonial-card:hover::after { width: 100%; }
.testimonial-text { font-style: italic; color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 0.94rem; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-author img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid rgb(var(--accent)); }
.testimonial-author h4 { font-size: 1rem; margin-bottom: 0.1rem; }
.testimonial-author span { font-size: 0.82rem; color: var(--text-secondary); }
.testimonial-rating { margin-top: 0.8rem; }
.testimonial-rating i { color: #f5b50a; font-size: 0.82rem; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.8rem; }
.team-member {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; text-align: center; transition: var(--transition);
}
.team-member:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: rgba(var(--accent), 0.5); }
.team-member .team-image { position: relative; height: 280px; overflow: hidden; }
.team-member .team-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.team-member:hover .team-image img { transform: scale(1.07); }
.team-member .team-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(var(--accent-dark)), transparent 60%); opacity: 0; transition: opacity 0.4s ease; }
.team-member:hover .team-image::after { opacity: 0.35; }
.team-member .team-social {
  position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; gap: 0.7rem;
  padding: 1rem; z-index: 2; transform: translateY(100%); transition: transform 0.4s var(--ease);
}
.team-member:hover .team-social { transform: translateY(0); }
.team-member .team-social a {
  width: 36px; height: 36px; border-radius: 50%; background: rgb(var(--accent)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 0.82rem; transition: var(--transition);
}
.team-member .team-social a:hover { background: #fff; color: rgb(var(--accent)); transform: translateY(-3px); }
.team-member .team-card-inner { padding: 1.4rem; }
.team-name { font-size: 1.1rem; margin-bottom: 0.15rem; }
.team-role { color: rgb(var(--accent)); font-size: 0.88rem; font-weight: 600; }

/* ---------- About page ---------- */
.about-content { padding: 5rem 0; }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
.about-text h2 { font-size: 1.9rem; margin-bottom: 1.2rem; }
.about-text p { color: var(--text-secondary); margin-bottom: 1.2rem; line-height: 1.85; }
.about-image { position: relative; }
.about-image::before { content: ''; position: absolute; inset: 0; border: 2px solid rgb(var(--accent)); border-radius: var(--radius); transform: translate(16px, 16px); opacity: 0.5; }
.about-image img { border-radius: var(--radius); box-shadow: var(--shadow); position: relative; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 3.5rem; }
.value-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; text-align: center; transition: var(--transition); position: relative; overflow: hidden;
}
.value-card::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, rgb(var(--accent)), rgb(var(--accent-light))); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); }
.value-card:hover { transform: translateY(-6px); border-color: rgba(var(--accent), 0.5); box-shadow: var(--shadow-soft); }
.value-card:hover::after { transform: scaleX(1); }
.value-card i { font-size: 2.4rem; color: rgb(var(--accent)); margin-bottom: 1rem; }
.value-card h3 { font-size: 1.1rem; margin-bottom: 0.7rem; }
.value-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-form { background: var(--bg-card); border: 1px solid var(--border); padding: 2rem; border-radius: var(--radius); }
.form-group { margin-bottom: 1.4rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.88rem; }
.form-control {
  width: 100%; padding: 0.85rem 1.1rem; border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--bg-secondary); color: var(--text-primary); font-family: var(--font-body);
  font-size: 0.95rem; transition: var(--transition);
}
.form-control:focus { outline: none; border-color: rgb(var(--accent)); box-shadow: 0 0 0 3px rgba(var(--accent), 0.15); background: var(--bg-raised); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }

.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1.3rem 1.4rem; display: flex; align-items: flex-start; gap: 1rem; transition: var(--transition);
}
.contact-info-card:hover { border-color: rgb(var(--accent)); transform: translateX(6px); box-shadow: var(--shadow-soft); }
.contact-info-card .icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(var(--accent), 0.12); border: 1px solid rgba(var(--accent), 0.25); display: flex; align-items: center; justify-content: center; color: rgb(var(--accent)); font-size: 1rem; flex-shrink: 0; }
.contact-info-card h3 { font-size: 0.98rem; margin-bottom: 0.2rem; }
.contact-info-card p { color: var(--text-secondary); font-size: 0.88rem; }
.contact-info-card a { color: var(--text-secondary); }
.contact-info-card a:hover { color: rgb(var(--accent)); }

.contact-map { margin-top: 2.5rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); height: 320px; }
.contact-map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Newsletter ---------- */
.newsletter-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  background: linear-gradient(120deg, rgb(var(--accent-dark)), rgb(var(--accent)));
  border-radius: var(--radius); padding: 1.6rem 2rem; margin-bottom: 3rem;
  box-shadow: 0 18px 40px -18px rgba(var(--accent), 0.6); position: relative; overflow: hidden;
}
.newsletter-strip::before { content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,0.1); top: -80px; right: 15%; }
.newsletter-strip::after { content: ''; position: absolute; width: 130px; height: 130px; border-radius: 50%; background: rgba(255,255,255,0.08); bottom: -60px; left: 8%; }
.newsletter-info { max-width: 420px; position: relative; z-index: 1; }
.newsletter-info h3 { color: #fff; font-size: 1.3rem; margin-bottom: 0.3rem; }
.newsletter-info p { color: rgba(255,255,255,0.88); font-size: 0.9rem; margin: 0; }
.newsletter-form { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; max-width: 430px; position: relative; z-index: 1; }
.newsletter-input-wrap { display: flex; gap: 0.6rem; background: #fff; padding: 0.4rem; border-radius: 999px; }
.newsletter-form .form-control { border: none; background: transparent; font-size: 0.92rem; flex: 1; color: #18181c; }
.newsletter-form .form-control::placeholder { color: #8a8a94; }
.newsletter-form .form-control:focus { box-shadow: none; background: transparent; }
.newsletter-form .btn { flex-shrink: 0; border-radius: 999px; }
.newsletter-note { font-size: 0.8rem; color: rgba(255,255,255,0.95); }
.newsletter-note.success { color: #d4ffea; }
.newsletter-note.error { color: #ffd6d6; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-secondary); padding: 4rem 0 0; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; }
.footer-brand .logo { color: var(--text-primary); margin-bottom: 1rem; display: inline-flex; }
.footer-brand p { color: var(--text-secondary); margin-top: 1rem; font-size: 0.9rem; line-height: 1.75; }
.footer-title { font-size: 1.05rem; margin-bottom: 1.4rem; position: relative; padding-bottom: 0.7rem; }
.footer-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 36px; height: 2px; background: rgb(var(--accent)); border-radius: 999px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.7rem; }
.footer-links a, .footer-links li { color: var(--text-secondary); font-size: 0.88rem; display: flex; align-items: center; gap: 0.6rem; transition: var(--transition); }
.footer-links a:hover { color: rgb(var(--accent)); transform: translateX(4px); }
.footer-links i { color: rgb(var(--accent)); font-size: 0.78rem; width: 15px; text-align: center; }
.footer-bottom { text-align: center; padding: 1.5rem 0; margin-top: 3rem; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 0.88rem; }
.footer-bottom span { color: rgb(var(--accent)); font-weight: 600; }

.social-links { display: flex; gap: 0.8rem; margin-top: 1rem; }
.social-links a {
  width: 40px; height: 40px; border-radius: 50%; background: var(--bg-card);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); transition: var(--transition);
}
.social-links a:hover { background: rgb(var(--accent)); border-color: rgb(var(--accent)); color: #fff; transform: translateY(-4px) rotate(8deg); box-shadow: 0 10px 22px -10px rgba(var(--accent), 0.8); }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed; bottom: 1.4rem; left: 50%; transform: translateX(-50%) translateY(16px);
  z-index: 10001; width: min(720px, calc(100vw - 2rem)); opacity: 0;
  transition: opacity 0.4s ease, transform 0.45s var(--ease);
}
.cookie-banner.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cookie-banner-inner {
  display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 1.3rem;
  background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: var(--shadow);
}
.cookie-banner-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px;
  background: rgba(var(--accent), 0.12); border: 1px solid rgba(var(--accent), 0.3);
  display: flex; align-items: center; justify-content: center; color: rgb(var(--accent)); font-size: 1.15rem;
}
.cookie-banner-text { flex: 1; min-width: 0; }
.cookie-banner-text h3 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.cookie-banner-text p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.55; margin: 0; }
.cookie-banner-text a { color: rgb(var(--accent)); font-weight: 600; }
.cookie-banner-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cookie-banner-actions .btn { padding: 0.5rem 1.1rem; font-size: 0.7rem; white-space: nowrap; }

@media (max-width: 576px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner-actions { justify-content: center; }
}

/* ---------- Floating WhatsApp + back to top ---------- */
.floating-whatsapp {
  position: fixed; bottom: 2rem; right: 2rem; width: 58px; height: 58px;
  background: #25d366; color: #fff; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 1.7rem; z-index: 999; box-shadow: 0 8px 24px -8px rgba(37,211,102,0.7);
  transition: var(--transition); animation: whatsappPulse 2.4s infinite;
}
.floating-whatsapp:hover { transform: scale(1.12) rotate(10deg); color: #fff; }
@keyframes whatsappPulse { 0%, 100% { box-shadow: 0 8px 24px -8px rgba(37,211,102,0.6); } 50% { box-shadow: 0 8px 34px -4px rgba(37,211,102,0.9); } }

.back-to-top {
  position: fixed; bottom: 2rem; left: 2rem; width: 46px; height: 46px;
  background: rgb(var(--accent)); color: #fff; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; z-index: 999;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: var(--transition); border: none;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: rgb(var(--accent-dark)); transform: translateY(-3px); }

/* ---------- Reveal animations ---------- */
.reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-scale, .reveal-delay-1, .reveal-delay-2, .reveal-delay-3 {
  opacity: 0; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal, .reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-46px); }
.reveal-right { transform: translateX(46px); }
.reveal-scale { transform: scale(0.9); }
.reveal.revealed, .reveal-up.revealed, .reveal-left.revealed, .reveal-right.revealed, .reveal-scale.revealed { opacity: 1; transform: none; }
.reveal-delay-1.revealed, .reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
}

/* ---------- Floating shape deco (alive animations) ---------- */
.float-shape { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; z-index: 0; opacity: 0.16; }
.float-shape-1 { width: 380px; height: 380px; top: 10%; left: -8%; background: rgb(var(--accent)); animation: floatY 9s ease-in-out infinite; }
.float-shape-2 { width: 300px; height: 300px; bottom: 6%; right: -6%; background: rgb(var(--accent-light)); animation: floatY 11s ease-in-out infinite reverse; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-34px); } }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 9rem 0 6rem; }
.not-found h1 { font-size: clamp(5rem, 14vw, 9rem); color: rgb(var(--accent)); margin-bottom: 0.5rem; line-height: 1; text-shadow: 0 20px 60px rgba(var(--accent), 0.35); }
.not-found h2 { font-size: 1.5rem; margin-bottom: 0.8rem; }
.not-found p { color: var(--text-secondary); margin-bottom: 2rem; }

/* ---------- Utility ---------- */
.text-accent { color: rgb(var(--accent)) !important; }
.bg-accent { background-color: rgb(var(--accent)) !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .newsletter-strip { flex-direction: column; align-items: stretch; }
  .newsletter-form { max-width: none; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed; top: 0; right: -100%; width: 82%; max-width: 340px; height: 100vh;
    background: var(--bg-card); flex-direction: column; padding: 5.5rem 2rem 2rem;
    transition: right 0.45s var(--ease); gap: 0; box-shadow: -6px 0 40px rgba(0,0,0,0.4); z-index: 1000;
  }
  .nav-menu.active { right: 0; }
  .nav-link { padding: 1rem 0; border-bottom: 1px solid var(--border); display: block; }
  .hamburger { display: flex; }

  /* Mode + theme changers live inside the mobile menu drawer */
  .nav-actions {
    margin-left: 0; margin-top: auto; justify-content: space-between; gap: 0.75rem;
    padding-top: 1.25rem; border-top: 1px solid var(--border);
  }
  .pill-toggle { width: auto; height: 44px; padding: 0 0.4rem 0 1.1rem; justify-content: center; border-radius: 9999px; flex: 1; }
  .pill-toggle .theme-toggle-text { display: inline-block; font-size: 0.72rem; }
  .accent-pill { width: 56px; height: 44px; }

  /* Accent picker pops up as a full-width panel below the navbar */
  .accent-popover {
    position: fixed; top: calc(var(--nav-height) + 8px); right: 0.9rem; left: 0.9rem;
    transform: translateY(-8px) scale(0.98);
  }
  .accent-popover.open { transform: translateY(0) scale(1); }
  .accent-swatches { grid-template-columns: repeat(6, 1fr); gap: 0.45rem; }
  .accent-swatch { width: 100%; height: 46px; }

  .section { padding: 4rem 0; }
  .section-title { font-size: 1.7rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .testimonials-grid, .team-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .newsletter-input-wrap { flex-direction: column; background: transparent; gap: 0.5rem; padding: 0; }
  .newsletter-form .form-control { background: #fff; padding: 0.85rem 1.1rem; border: 1px solid #eee; }
}

@media (max-width: 576px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-filter { gap: 0.5rem; }
  .filter-btn { padding: 0.45rem 1rem; font-size: 0.76rem; }
  .page-hero { min-height: 48vh; padding-bottom: 2.2rem; }
  .page-hero h1 { font-size: 1.7rem; }
  .hero h1 { font-size: 1.9rem; }
  .cta-banner { padding: 3.5rem 1.5rem; }
  .stats-grid { gap: 1.4rem; }
}

@media (max-width: 380px) {
  .accent-swatches { grid-template-columns: repeat(3, 1fr); }
}