/* Global Styles */
* { margin: 0; padding: 0; box-sizing: border-box; outline: none; }
*, *::before, *::after {
  border-radius: 0 !important;
}
body {
  background-color: #FEF7FF;
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

/* Abstract Background Shapes */
.shape-blob-1 {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(193,39,45,0.08) 0%, rgba(103,80,164,0.02) 80%);
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}
.shape-blob-2 {
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(103,80,164,0.1) 0%, rgba(193,39,45,0.02) 70%);
  filter: blur(80px);
  pointer-events: none;
}
.shape-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#E7E0EC 0.8px, transparent 0.8px);
  background-size: 28px 28px;
  opacity: 0.3;
  pointer-events: none;
}

/* Logo & Nav Layout Fix */
.logo-svg {
  width: 100%;
  height: auto;
  display: block;
}
nav .max-w-7xl {
  flex-wrap: nowrap;
}
.nav-list {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  overflow-x: auto;
}
.nav-list a {
  white-space: nowrap;
}

/* Components */
.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.4);
}
.hover-lift {
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.05);
}

button, .btn, a.btn, input[type="submit"] {
  transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.24s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.24s ease, color 0.24s ease;
  will-change: transform, box-shadow;
  cursor: pointer;
}
button:hover, .btn:hover, a.btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 28px rgba(0,0,0,0.18), 0 6px 12px rgba(0,0,0,0.12);
}
button:active, .btn:active, a.btn:active {
  transform: translateY(0px) scale(0.99);
}

/* Service Card Specifics */
#services .bg-white\/80 {
  border: 1px solid rgba(255, 255, 255, 0.4);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#services svg {
  transition: transform 0.3s ease;
}
#services div:hover svg {
  transform: scale(1.1) rotate(5deg);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.input-material {
  transition: all 0.2s;
  border: 1px solid #E7E0EC;
}
.input-material:focus {
  border-color: #6750A4;
  outline: none;
  box-shadow: 0 0 0 3px rgba(103,80,164,0.2);
}

/* Lightbox */
#lightbox {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}
#lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
#lightboxImg.zoomed {
  max-width: none !important;
  max-height: none !important;
  cursor: zoom-out !important;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .logo-group .text-2xl { font-size: 1rem; }
  .logo-subtitle { display: none; }
  nav .max-w-7xl { flex-wrap: wrap; }
  .nav-links-mobile { width: 100%; }
}

/* Navigation */
.nav-links-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  transform: translateY(-12px);
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
  z-index: 15;
  padding: 1rem 1.25rem;
}
.nav-links-mobile:not([hidden]) {
  display: block;
  transform: translateY(0);
  opacity: 1;
}
.nav-links-mobile a {
  display: block;
  font-size: 1rem;
  color: #333;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: color 0.2s ease, transform 0.2s ease;
}
.nav-links-mobile a:hover {
  color: #C1272D;
  transform: translateX(4px);
}
.nav-open span.material-symbols-sharp {
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

/* Case Study Editorial Styles */
.serif-text {
  font-family: 'Literata', 'Georgia', serif;
}
.ornament-divider {
  width: 60px;
  height: 2px;
  background: #bc3f2e;
  margin: 1.5rem 0;
}
.glass-tag {
  background: rgba(188,63,46,0.08);
  backdrop-filter: blur(2px);
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #bc3f2e;
}
.shape-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none; overflow: hidden;
}
.shape-blob-editorial {
  position: absolute;
  background: radial-gradient(ellipse at 30% 40%, rgba(188,63,46,0.03) 0%, rgba(188,63,46,0) 70%);
  width: 80vw; height: 80vw; top: -20vh; right: -20vw; filter: blur(80px);
}
.animate-fade-up {
  animation: fadeUp 0.5s ease-out forwards;
}
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(18px);}
  100% { opacity: 1; transform: translateY(0);}
}