/* ============================================
   Lolo Portfolio — Liquid Glass Theme
   Light purple & peach · feminine · rounded
   ============================================ */

:root {
  --lilac-50: #faf7fc;
  --lilac-100: #f3ecf8;
  --lilac-200: #e8dcf2;
  --lilac-300: #d4b8e8;
  --lilac-400: #b794c6;
  --lilac-500: #9b7bb8;
  --lilac-700: #5c4570;
  --lilac-800: #4a3f5c;
  --peach-100: #ffefe8;
  --peach-200: #fcd5c0;
  --peach-300: #f4c4a8;
  --peach-400: #e8a598;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-shadow: 0 8px 32px rgba(155, 123, 184, 0.12),
                  0 2px 8px rgba(232, 165, 152, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(160deg, var(--lilac-50) 0%, #fff5f0 45%, var(--lilac-100) 100%);
  min-height: 100vh;
}

/* Ambient liquid blobs */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 420px;
  height: 420px;
  top: -80px;
  right: -100px;
  background: rgba(212, 184, 232, 0.45);
}

body::after {
  width: 360px;
  height: 360px;
  bottom: 10%;
  left: -80px;
  background: rgba(252, 213, 192, 0.5);
}

main,
footer {
  position: relative;
  z-index: 1;
}

/* Header always on top while scrolling */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  pointer-events: none;
  padding: 0.875rem 1rem 0;
}

@media (min-width: 768px) {
  header {
    padding: 1rem 1.5rem 0;
  }
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--lilac-100);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--lilac-400), var(--peach-400));
  border-radius: 999px;
}

::selection {
  background: rgba(183, 148, 198, 0.35);
  color: var(--lilac-800);
}

/* ---- Liquid Glass Utility ---- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-card {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--glass-shadow);
  border-radius: 1.5rem;
}

.glass-card:hover {
  box-shadow: 0 12px 40px rgba(155, 123, 184, 0.18),
              0 4px 12px rgba(232, 165, 152, 0.12);
}

/* ---- Navigation ---- */
#navbar.navbar-pill {
  pointer-events: auto;
  max-width: 80rem;
  margin: 0 auto;
  border-radius: 2.5rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 4px 24px rgba(155, 123, 184, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition:
    background 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#navbar.navbar-pill.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 2rem;
  box-shadow:
    0 8px 32px rgba(155, 123, 184, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
  transform: translateY(-2px);
}

.logo-text {
  letter-spacing: 0.04em;
}

.nav-link {
  position: relative;
  letter-spacing: 0.01em;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, var(--lilac-400), var(--peach-400));
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---- Mobile Menu ---- */
.mobile-menu {
  background: rgba(250, 247, 252, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

#menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

#menu-toggle.active .hamburger-line:nth-child(3) {
  width: 1.5rem;
  margin-left: 0;
  transform: translateY(-8px) rotate(-45deg);
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-blur {
  filter: blur(14px);
  transform: translateY(36px) scale(0.97);
}

.reveal-blur.visible {
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.reveal-left {
  transform: translateX(-56px);
}

.reveal-left.visible {
  transform: translateX(0);
}

.reveal-right {
  transform: translateX(56px);
}

.reveal-right.visible {
  transform: translateX(0);
}

.reveal-scale {
  transform: scale(0.88);
}

.reveal-scale.visible {
  transform: scale(1);
}

.reveal-left.reveal-blur {
  transform: translateX(-56px) translateY(36px) scale(0.97);
}

.reveal-left.reveal-blur.visible,
.reveal-right.reveal-blur.visible {
  transform: translateX(0) translateY(0) scale(1);
  filter: blur(0);
}

.reveal-right.reveal-blur {
  transform: translateX(56px) translateY(36px) scale(0.97);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(32px) scale(0.96);
  filter: blur(6px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.4s; }

/* Scroll sections — subtle depth */
.scroll-section {
  transition: transform 0.1s linear;
}

.parallax-layer {
  will-change: transform;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Hero ---- */
.hero-video-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(212, 184, 232, 0.35) 0%,
    rgba(252, 213, 192, 0.25) 50%,
    rgba(255, 255, 255, 0.15) 100%
  );
  pointer-events: none;
}

.hero-content-glass {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 2rem;
  padding: 2.5rem;
  box-shadow: var(--glass-shadow);
}

/* ---- Buttons ---- */
.btn-primary {
  background: linear-gradient(135deg, var(--lilac-400), var(--peach-400));
  color: white;
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(183, 148, 198, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--lilac-500), var(--peach-300));
  box-shadow: 0 6px 28px rgba(183, 148, 198, 0.45);
  transform: translateY(-1px);
}

.btn-ghost {
  border-radius: 9999px;
  border: 1.5px solid rgba(183, 148, 198, 0.45);
  color: var(--lilac-700);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: var(--lilac-400);
}

/* ---- Masonry ---- */
.masonry-grid {
  columns: 1;
  column-gap: 1.25rem;
}

@media (min-width: 640px) {
  .masonry-grid { columns: 2; }
}

@media (min-width: 1024px) {
  .masonry-grid { columns: 3; }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  cursor: pointer;
  box-shadow: var(--glass-shadow);
}

.masonry-item img {
  width: 100%;
  display: block;
  border-radius: 1.25rem;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.masonry-item:hover img {
  transform: scale(1.04);
}

.masonry-overlay {
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  background: linear-gradient(
    to top,
    rgba(74, 63, 92, 0.75) 0%,
    rgba(183, 148, 198, 0.15) 50%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.masonry-item:hover .masonry-overlay {
  opacity: 1;
}

/* ---- Portfolio Tabs ---- */
.portfolio-tab {
  border-radius: 9999px;
}

.portfolio-tab.active {
  background: linear-gradient(135deg, rgba(183, 148, 198, 0.25), rgba(244, 196, 168, 0.25));
  border-color: rgba(183, 148, 198, 0.5);
  color: var(--lilac-700);
  box-shadow: 0 2px 12px rgba(183, 148, 198, 0.15);
}

.portfolio-tab:not(.active):hover {
  border-color: rgba(183, 148, 198, 0.35);
  color: var(--lilac-500);
  background: rgba(255, 255, 255, 0.5);
}

.portfolio-panel {
  animation: fadeInPanel 0.5s ease forwards;
}

.portfolio-panel.hidden {
  display: none;
}

@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Video Cards ---- */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 20px rgba(183, 148, 198, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--lilac-600, #7d5f9a);
}

.video-card:hover .play-button {
  background: rgba(255, 255, 255, 0.8);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 28px rgba(183, 148, 198, 0.4);
}

/* ---- Stat Cards ---- */
.stat-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 1.25rem;
  border-left: 3px solid var(--lilac-400) !important;
  box-shadow: var(--glass-shadow);
}

/* ---- Service Cards ---- */
.service-card {
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-card .glass-card {
  transition: all 0.3s ease;
}

.service-card-popular {
  background: linear-gradient(
    160deg,
    rgba(212, 184, 232, 0.35) 0%,
    rgba(255, 255, 255, 0.65) 40%,
    rgba(252, 213, 192, 0.3) 100%
  ) !important;
  border-color: rgba(183, 148, 198, 0.45) !important;
}

.badge-popular {
  background: linear-gradient(135deg, var(--lilac-400), var(--peach-400));
  color: white;
  border-radius: 9999px;
  box-shadow: 0 2px 12px rgba(183, 148, 198, 0.3);
}

/* ---- Contact Form ---- */
.form-input {
  border-radius: 1rem !important;
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 184, 232, 0.4) !important;
  color: var(--lilac-800) !important;
}

.form-input:focus {
  border-color: var(--lilac-400) !important;
  box-shadow: 0 0 0 3px rgba(183, 148, 198, 0.2);
}

.form-input::placeholder {
  color: rgba(92, 69, 112, 0.4);
}

#contact-form {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 2rem;
  padding: 2.5rem;
  box-shadow: var(--glass-shadow);
}

/* ---- Social Links ---- */
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 184, 232, 0.45);
  color: var(--lilac-500);
  transition: all 0.3s ease;
  box-shadow: var(--glass-shadow);
}

.social-link:hover {
  background: linear-gradient(135deg, rgba(183, 148, 198, 0.25), rgba(244, 196, 168, 0.25));
  border-color: var(--lilac-400);
  color: var(--lilac-700);
  transform: translateY(-3px);
}

/* ---- Video Modal ---- */
.video-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-backdrop {
  background: rgba(250, 247, 252, 0.85) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ---- Form Select Arrow ---- */
select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b794c6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .reveal-stagger > *,
  .reveal-blur,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .parallax-layer {
    transform: none !important;
  }

  .masonry-item img,
  .service-card,
  .social-link,
  .play-button,
  .portfolio-panel,
  .btn-primary,
  #navbar.navbar-pill {
    transition: none;
    animation: none;
  }
}
