/* ==========================================================================
   FONT FACE DECLARATIONS
   ========================================================================== */

/* Lora Font Family */
@font-face {
  font-family: "Lora";
  src: url("../fonts/Lora-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("../fonts/Lora-MediumItalic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("../fonts/Lora-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("../fonts/Lora-SemiBoldItalic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* Poppins Font Family */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-SemiBoldItalic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   GLOBAL STYLES
   ========================================================================== */

html {
  scroll-behavior: smooth; /* scroll-smooth */
}

body {
  font-family: "Poppins", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  z-index: 50;
  color: #475569; /* text-slate-600 */
  background-color: #ffffff; /* bg-white */
}

/* Selection styles */
body::selection {
  background-color: #cffafe; /* selection:bg-cyan-100 */
  color: #164e63; /* selection:text-cyan-900 */
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

/* Headings */
h1 {
  font-family: "Lora", serif;
  font-size: 2.75rem;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #0f172a;
  font-weight: 500;
  margin-bottom: 2rem;
}

h2 {
  font-family: "Lora", serif;
  font-size: 2.125rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #0f172a;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

h2.small {
  font-size: 2.00rem;
}

h3 {
  font-family: "Lora", serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

h4 {
  font-family: "Lora", serif;
  font-weight: 500;
  font-size: 1.25rem;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

h2,
h3,
h4,
h5,
h6,
.font-serif {
  font-family: "Lora", serif;
}

.font-sans {
  font-family: "Poppins", sans-serif;
}

/* Paragraphs */
p {
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* Lists */
ul,
ol {
  margin-bottom: 2rem !important;
}

li {
  margin-bottom: 1rem !important;
}

/* Responsive Typography */
@media (min-width: 640px) {
  h1 {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 4.5rem;
  }

  h2 {
    font-size: 3rem;
  }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

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

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==========================================================================
   COMPONENT STYLES
   ========================================================================== */

/* Navigation */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(to right, #22d3ee, #c084fc);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Ospira Arc Decorative Elements */
.ospira-arc {
  width: 100%;
  height: 100%;
  border-radius: 0 100% 0 0;
  border-top: 32px solid currentColor;
  border-right: 32px solid currentColor;
  border-bottom: 0;
  border-left: 0;
  filter: blur(12px);
  opacity: 0.5;
  pointer-events: none;
  transform-origin: 0% 100%; /* Center of the full circle (bottom-left corner) */
  animation: rotate-arc 13.33s linear infinite;
}

.ospira-arc-sm {
  border-radius: 0 100% 0 0;
  border-top: 8px solid currentColor;
  border-right: 8px solid currentColor;
  filter: blur(2px);
}

.ospira-arc-b {
  border-radius: 0 0 100% 0;
  border-bottom: 24px solid currentColor;
  border-right: 24px solid currentColor;
  border-top: 0;
  border-left: 0;
  filter: blur(8px);
  opacity: 0.6;
}

/* Testimonial Slider */
.testimonial-slide {
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.testimonial-slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  transform: translateY(0);
}

/* Social Media Icons */
.social-icon {
  stroke: currentColor;
  color: #475569; /* text-slate-600 */
  transition: color 0.3s ease;
}

.social-icon-link:hover .social-icon {
  color: white;
  stroke: currentColor;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

/* Keyframe Definitions */
@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes float-delayed {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(-5deg);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes spin-slow-reverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes rotate-arc {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Float Animations */
.animate-float {
  animation: float-slow 8s ease-in-out infinite;
}

.animate-float-delay {
  animation: float-delayed 9s ease-in-out infinite 1s;
}

@media (min-width: 1024px) {
  .lg\:animate-float {
    animation: float-slow 8s ease-in-out infinite;
  }

  .lg\:animate-float-delay {
    animation: float-delayed 9s ease-in-out infinite 1s;
  }
}

/* Orbit Animations */
.animate-orbit-cw {
  animation: spin-slow 80s linear infinite;
}

.animate-orbit-ccw {
  animation: spin-slow-reverse 100s linear infinite;
}

/* Counteract rotation for orbit children to keep text upright */
.animate-orbit-cw .orbit-item {
  animation: spin-reverse 80s linear infinite;
}

.animate-orbit-ccw .orbit-item {
  animation: spin-slow 100s linear infinite;
}

/* ==========================================================================
   ORBIT ANIMATION PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

/* Orbit container - GPU acceleration and containment */
#orbit-container {
  /* Force GPU acceleration and create new stacking context */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  /* CSS containment - use layout style paint (not strict) to allow transforms */
  contain: layout style paint;
  isolation: isolate;
  /* Prevent flickering */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* Create compositing layer - use transform to promote to GPU */
  will-change: transform;
  /* Prevent repaints from affecting this layer */
  position: relative;
  z-index: 1;
  /* Ensure smooth rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Orbit rings - optimize transforms */
.orbit-ring {
  /* Prevent flickering */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* Force GPU layer */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Orbit dots and labels - optimize transforms */
.orbit-dot,
.orbit-label {
  /* Prevent flickering */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* Force GPU layer */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

/* Footer copyright text - left aligned on screens > 649px */
@media (min-width: 650px) {
  .footer-copyright-text {
    text-align: left;
  }
}
