/*
Copyright © 2025 OPERAScale LLC. All rights reserved.

This software and associated documentation files are proprietary and confidential.
Unauthorized copying, modification, distribution, or use of this software, via any
medium, is strictly prohibited without explicit written permission from OPERAScale LLC.
*/
:root {
  --color-brand-deep-purple: #663366;
  --color-brand-light-blue: #6ca6e0;
  --color-brand-medium-blue: #5b9bd5;
  --color-brand-bright-cyan: #00d4d4;
  --color-brand-turquoise: #1abc9c;
  --color-brand-dark-cyan: #00ced1;
  --color-brand-purple-accent: #6b4379;
  --color-brand-slate-blue-gray: #5b6a7c;
  --color-brand-white: #ffffff;

  --color-cta-orange: #e8a84d;
  --color-cta-coral: #e86b6b;
  --color-cta-orange-hover: #f5c469;
  --color-cta-coral-hover: #ff8a80;

  --color-bg: #ffffff;
  --color-surface: #f8f9fb;
  --color-text: #1e1e1e;
  --color-text-muted: #4c566a;
  --shadow-card: 0 24px 55px -30px rgba(102, 51, 102, 0.55);
  --gradient-cta: linear-gradient(135deg, #5b9bd5 0%, #663366 100%);
  --gradient-button: linear-gradient(to bottom right, var(--color-cta-orange), var(--color-cta-coral));
  --gradient-button-hover: linear-gradient(to bottom right, var(--color-cta-orange-hover), var(--color-cta-coral-hover));
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: Aptos, "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.heading-gradient {
  background: linear-gradient(135deg, #5b9bd5 0%, #663366 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-heading {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-brand-bright-cyan);
}

@media (min-width: 1024px) {
  .section-heading {
    font-size: 2rem;
  }
}

.text-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-brand-light-blue {
  color: var(--color-brand-light-blue);
}

.hover\:text-brand-light-blue:hover {
  color: var(--color-brand-light-blue);
}

.text-brand-bright-cyan {
  color: var(--color-brand-bright-cyan);
}

.hover\:text-brand-bright-cyan:hover {
  color: var(--color-brand-bright-cyan);
}

.border-brand-light-blue {
  border-color: var(--color-brand-light-blue) !important;
}

.border-brand-light-blue\/20 {
  border-color: rgba(108, 166, 224, 0.2) !important;
}

.border-brand-bright-cyan\/40 {
  border-color: rgba(0, 212, 212, 0.4) !important;
}

.hover\:bg-brand-light-blue:hover {
  background-color: var(--color-brand-light-blue);
}

.hover\:text-white:hover {
  color: #ffffff;
}

.shadow-card {
  box-shadow: var(--shadow-card);
}

.bg-opera-card-gradient {
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(108, 166, 224, 0.15));
}

.from-brand-bright-cyan\/20 {
  --tw-gradient-from: rgba(0, 212, 212, 0.2);
  --tw-gradient-to: rgba(0, 212, 212, 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.via-brand-light-blue\/15 {
  --tw-gradient-stops: var(--tw-gradient-from), rgba(108, 166, 224, 0.15), var(--tw-gradient-to, rgba(108, 166, 224, 0));
}

.via-brand-light-blue\/10 {
  --tw-gradient-stops: var(--tw-gradient-from), rgba(108, 166, 224, 0.1), var(--tw-gradient-to, rgba(108, 166, 224, 0));
}

.to-brand-light-blue\/30 {
  --tw-gradient-to: rgba(108, 166, 224, 0.3);
}

.approach-section-wrapper {
  background-image: linear-gradient(180deg, #ffffff 0%, rgba(108, 166, 224, 0.15) 50%, #ffffff 100%);
  padding-top: 2.5rem;
  padding-bottom: 1rem;
}

.footer-nav-link {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
  text-decoration-color: color-mix(in srgb, var(--color-text-muted) 55%, white 45%);
}

.footer-nav-link:hover {
  color: var(--color-brand-light-blue);
  text-decoration-color: color-mix(in srgb, var(--color-brand-light-blue) 55%, white 45%);
}

.footer-nav-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(108, 166, 224, 0.3);
}

.container-standard {
  margin-left: auto;
  margin-right: auto;
  max-width: 72rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 1024px) {
  .container-standard {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.hero-section {
  padding-top: 2.5rem;
  padding-bottom: 1rem;
}

.content-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.card-standard {
  height: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(108, 166, 224, 0.35);
  background-color: #ffffff;
  box-shadow: var(--shadow-card);
  --testimonial-fade-color: rgba(255, 255, 255, 0.96);
}

.card-glass {
  height: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(108, 166, 224, 0.35);
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
  --testimonial-fade-color: rgba(255, 255, 255, 0.9);
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  background-color: rgba(108, 166, 224, 0.2);
  color: var(--color-brand-bright-cyan);
  border: 1px solid rgba(108, 166, 224, 0.3);
}

.project-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.project-card-description {
  font-size: 1rem;
  line-height: 1.625;
  color: var(--color-text);
  position: relative;
  margin: 0;
  overflow-wrap: break-word;
}

.project-card-description--clamped,
.project-card-description--clamped-short {
  display: block;
  overflow: hidden;
}

.project-card-description--clamped {
  max-height: calc(1em * 1.625 * 8);
}

.project-card-description--clamped-short {
  max-height: calc(1em * 1.625 * 6);
}

.project-card-description--clamped::after,
.project-card-description--clamped-short::after {
  content: '';
  position: absolute;
  pointer-events: none;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.25rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0),
    var(--testimonial-fade-color, rgba(255, 255, 255, 0.95))
  );
}

.testimonial-slider {
  position: relative;
  width: 100%;
}

.testimonial-quote-mark {
  font-size: 3.75rem;
  line-height: 1;
  color: var(--color-brand-purple-accent);
  float: left;
  margin-right: 0.5rem;
  margin-top: -0.5rem;
}

.project-read-more-link,
.testimonial-read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--color-brand-light-blue);
  text-decoration: underline;
  transition: color 0.2s ease;
  font-weight: 500;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.project-read-more-link:hover,
.testimonial-read-more-link:hover {
  color: var(--color-brand-bright-cyan);
}

.testimonial-quote-body {
  font-size: 1rem;
  line-height: 1.625;
  color: var(--color-text);
  position: relative;
  margin: 0;
  overflow-wrap: break-word;
}

.testimonial-quote-body--clamped,
.testimonial-quote-body--clamped-short {
  display: block;
  overflow: hidden;
}

.testimonial-quote-body--clamped {
  max-height: calc(1em * 1.625 * 8);
}

.testimonial-quote-body--clamped-short {
  max-height: calc(1em * 1.625 * 6);
}

.testimonial-quote-body--clamped::after,
.testimonial-quote-body--clamped-short::after {
  content: '';
  position: absolute;
  pointer-events: none;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.25rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0),
    var(--testimonial-fade-color, rgba(255, 255, 255, 0.95))
  );
}

.testimonial-quote-content {
  display: block;
}

/* Carousel pagination dots */
.carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: rgba(108, 166, 224, 0.35);
  transition: all 0.3s ease;
  border: none;
}

.carousel-dot--active {
  width: 2rem;
  background-color: var(--color-brand-bright-cyan);
}

.project-modal-backdrop,
.testimonial-modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: rgba(14, 21, 40, 0.55);
  backdrop-filter: blur(6px);
  z-index: 50;
}

.project-modal-backdrop.is-open,
.testimonial-modal-backdrop.is-open {
  display: flex;
}

.project-modal,
.testimonial-modal {
  position: relative;
  width: min(640px, 100%);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  border: 1px solid rgba(108, 166, 224, 0.25);
  box-shadow: 0 30px 80px -40px rgba(24, 32, 48, 0.65);
  padding: 2.5rem 2.25rem;
}

.project-modal-close,
.testimonial-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background-color: rgba(108, 166, 224, 0.12);
  color: var(--color-brand-light-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.project-modal-close:hover,
.testimonial-modal-close:hover {
  background-color: rgba(108, 166, 224, 0.2);
  color: var(--color-brand-bright-cyan);
}

.project-modal-close-icon,
.testimonial-modal-close-icon {
  width: 1.25rem;
  height: 1.25rem;
  transform: rotate(45deg);
}

.project-modal-content,
.testimonial-modal-content {
  display: grid;
  gap: 0rem;
}

.project-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-brand-bright-cyan);
  margin-bottom: 1rem;
}

.project-modal-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.project-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid rgba(108, 166, 224, 0.25);
  padding-top: 1.25rem;
}

.project-modal-backdrop .tag-chip {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
}

.testimonial-modal-quote-mark-container {
  line-height: 1;
}

.testimonial-modal-quote-mark {
  font-size: 3.75rem;
  line-height: 1;
  color: var(--color-brand-purple-accent);
  display: block;
}

.testimonial-modal-quote {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin: 0 1rem;
}

.testimonial-modal-meta {
  border-top: 1px solid rgba(108, 166, 224, 0.25);
  padding-top: 1.5rem;
  display: grid;
  gap: 0.35rem;
}

.testimonial-modal-author {
  font-size: 1.5rem;
  color: var(--color-brand-bright-cyan);
  font-family: 'Satisfy', cursive;
}

.testimonial-modal-role {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.testimonial-modal-source {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 0.25rem;
}

@media (max-width: 640px) {
  .project-modal,
  .testimonial-modal {
    padding: 2rem 1.75rem;
  }

  .project-modal-close,
  .testimonial-modal-close {
    top: 0.9rem;
    right: 0.9rem;
  }
}

/* Contact drawer */
.contact-drawer {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 50;
}

.contact-drawer.is-open {
  pointer-events: auto;
}

.contact-drawer-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.contact-drawer.is-open .contact-drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.contact-drawer-panel {
  position: relative;
  height: 100%;
  width: 100%;
  max-width: 24rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.contact-drawer.is-open .contact-drawer-panel {
  transform: translateX(0);
}

@media (min-width: 640px) {
  .contact-drawer-panel {
    width: 24rem;
  }
}

body.contact-drawer-open {
  overflow: hidden;
}

/* Gradient button component */
.btn-gradient-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  background: var(--gradient-button);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-gradient-primary:hover {
  background: var(--gradient-button-hover);
}

.btn-gradient-primary--small {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
}

/* Animation utilities */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-down {
  animation: fadeInDown 0.6s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.4s ease-out;
}

/* Animation delays for staggered effects */
.animate-delay-100 {
  animation-delay: 100ms;
}

.animate-delay-200 {
  animation-delay: 200ms;
}

.animate-delay-300 {
  animation-delay: 300ms;
}

.animate-delay-400 {
  animation-delay: 400ms;
}

.animate-delay-500 {
  animation-delay: 500ms;
}

