/* Carousel arrows hidden by default, visible on hover */

.carousel-arrow {
  display: none !important;
}

.carousel-container:hover .carousel-arrow {
  display: flex !important;
}

@media (max-width: 767px) {
  .carousel-arrow {
    display: none !important;
  }
}

.panel-carousel {
  aspect-ratio: 3 / 4;
  background: transparent;
}

.panel-carousel-slide {
  align-items: center;
  background: transparent;
  display: flex;
  height: 100%;
  justify-content: center;
}

.panel-carousel-slide img,
.panel-carousel-slide video {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.panel-carousel-slide video {
  background: transparent;
}

@media (max-width: 767px) {
  .panel-carousel {
    max-height: none;
  }
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f4faff;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: 'Manrope', sans-serif;
}

p {
  text-align: justify;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 101;
  width: 75%;
  max-width: 320px;
  height: 100%;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.mobile-menu-panel.active {
  transform: translateX(0);
}

.glass-nav {
  backdrop-filter: blur(12px);
}

.glass-header {
  backdrop-filter: blur(12px);
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

@media (max-width: 767px) {
  .contact-submit-button {
    gap: 0.75rem;
    min-height: 7.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .contact-submit-button > span:first-child {
    flex: 1;
    line-height: 1.45;
    text-align: center;
  }

  .contact-submit-button .material-symbols-outlined {
    flex: 0 0 auto;
    margin-right: 0.25rem;
  }
}

@media (min-width: 768px) {
  .portfolio-grid > article:last-child:nth-child(odd) {
    grid-column-start: 4;
  }
}

/* Global button text capitalization */
button,
a[class*="bg-primary"],
a[class*="bg-on-tertiary"],
a[class*="bg-tertiary-container"],
a[class*="bg-white/10"],
a[class*="rounded-lg"],
a[class*="rounded-xl"],
a[class*="px-8"],
a[class*="px-5"],
.mobile-menu-panel a {
  text-transform: capitalize;
}
