/* ==========================================================================
   PANGEA LABS UI ENHANCEMENTS v3 - Full redesign
   To revert: simply remove the link to this file from index.html
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. LENIS SMOOTH SCROLL
   -------------------------------------------------------------------------- */

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   0.5 UNICORN STUDIO BACKGROUND
   -------------------------------------------------------------------------- */

.unicorn-background-wrapper {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  filter: sepia(100%) saturate(800%) hue-rotate(-50deg) brightness(0.85);
}

.unicorn-background-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Hide fallback when Unicorn is loaded */
.unicorn-fallback.is-hidden {
  display: none;
}

/* --------------------------------------------------------------------------
   1. TYPOGRAPHY REFINEMENTS (non-breaking)
   -------------------------------------------------------------------------- */

.heading-hero {
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   1.5 HERO CTA BUTTONS
   -------------------------------------------------------------------------- */

.hero-cta-wrapper {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  justify-content: center;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 100px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.hero-cta--primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--light-orange) 100%);
  color: white;
  border: none;
}

.hero-cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(250, 76, 21, 0.4);
}

.hero-cta--secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-cta--secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .hero-cta-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .hero-cta {
    width: 100%;
    max-width: 280px;
  }
}

/* Gradient text enhancement - more vibrant */
.text-span {
  background: linear-gradient(135deg, var(--light-orange) 0%, var(--orange) 50%, #ff6b35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --------------------------------------------------------------------------
   1.8 EXPERTISE SECTION (Pulseboard-inspired)
   -------------------------------------------------------------------------- */

.section_expertise {
  padding: 8rem 0;
  background: #000;
  position: relative;
  z-index: 10;
}

.expertise_container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 4rem;
  align-items: start;
}

/* Left: Text Content */
.expertise_text {
  position: sticky;
  top: 120px;
}

.expertise_eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}

/* Pulsing dot eyebrow style (like Pulseboard) */
.eyebrow--pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem 0.4rem 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.eyebrow_dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(250, 76, 21, 0.4);
  }
  50% {
    opacity: 0.3;
    box-shadow: 0 0 0 4px rgba(250, 76, 21, 0);
  }
}

.expertise_heading {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
}

.expertise_heading em {
  font-style: italic;
  font-family: 'Playfair Display', Georgia, serif;
}

.expertise_description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2.5rem;
  max-width: 380px;
}

.expertise_services {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.expertise_service-item {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.01em;
}

.expertise_service-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Right: Service Cards */
.expertise_cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.expertise_card {
  display: block;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.expertise_card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.expertise_card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.12);
}

.expertise_card:hover::before {
  opacity: 1;
}

.expertise_card-visual {
  margin-bottom: 1.5rem;
}

.expertise_card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.expertise_card-icon svg {
  width: 26px;
  height: 26px;
  color: rgba(255, 255, 255, 0.7);
}

.expertise_card-icon--design {
  background: linear-gradient(135deg, rgba(250, 76, 21, 0.1) 0%, rgba(250, 76, 21, 0.02) 100%);
  border-color: rgba(250, 76, 21, 0.15);
}

.expertise_card-icon--design svg {
  color: var(--orange);
}

.expertise_card-icon--dev {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.02) 100%);
  border-color: rgba(59, 130, 246, 0.15);
}

.expertise_card-icon--dev svg {
  color: #3b82f6;
}

.expertise_card-label {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.75rem;
}

.expertise_card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.expertise_card-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.expertise_card-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.expertise_card:hover .expertise_card-cta {
  color: white;
}

/* Responsive */
@media (max-width: 991px) {
  .expertise_container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .expertise_text {
    position: relative;
    top: 0;
    text-align: center;
  }

  .expertise_description {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .expertise_services {
    max-width: 300px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .section_expertise {
    padding: 5rem 0;
  }

  .expertise_card {
    padding: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   2. PORTFOLIO GRID ENHANCEMENTS
   -------------------------------------------------------------------------- */

.grid_element {
  overflow: hidden;
}

.grid_img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.grid_item:hover .grid_img {
  transform: scale(1.08);
}

/* Project overlay gradient */
.grid_element::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 30%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
  pointer-events: none;
}

.grid_item:hover .grid_element::before {
  opacity: 1;
}

/* Project overlay - Pulseboard style */
.grid_overlay {
  position: absolute;
  inset: 0;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.grid_item:hover .grid_overlay {
  opacity: 1;
}

.grid_overlay-number {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  align-self: flex-start;
}

.grid_overlay-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transform: translateY(15px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.grid_item:hover .grid_overlay-info {
  transform: translateY(0);
}

.grid_overlay-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  letter-spacing: -0.01em;
}

.grid_overlay-category {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orange);
}

/* Grid text title - subtle glow */
.grid_text-title {
  text-shadow: 0 0 80px rgba(250, 76, 21, 0.1);
}

/* --------------------------------------------------------------------------
   3. FORM ENHANCEMENTS (light touch)
   -------------------------------------------------------------------------- */

/* Input hover state */
.form_input:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

/* Better focus glow */
.form_input:focus {
  box-shadow: 0 0 0 3px rgba(250, 76, 21, 0.15);
}

/* Submit button enhancement */
.form_submit {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.form_submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(250, 76, 21, 0.35);
}

.form_submit:active {
  transform: translateY(0);
}

/* Checkbox enhancement */
.fs_checkbox-3_mask {
  transition: all 0.25s ease;
}

.fs_checkbox-3_field:hover .fs_checkbox-3_mask {
  border-color: rgba(255, 255, 255, 0.4);
}

.fs_checkbox-3_button:checked ~ .fs_checkbox-3_mask {
  border-color: var(--orange);
  background: rgba(250, 76, 21, 0.1);
}

/* Radio button enhancement */
.radio_wrapper {
  transition: all 0.25s ease;
}

.radio_wrapper:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

/* Range slider fill */
.fs_range-slider-2_fill {
  background: linear-gradient(90deg, var(--light-orange), var(--orange)) !important;
}

/* --------------------------------------------------------------------------
   3.4 CLEAN CONTACT SECTION
   -------------------------------------------------------------------------- */

.section_contact--spacer {
  padding-top: 10rem;
}

.form_component--clean {
  padding-top: 2rem;
  padding-bottom: 6rem;
}

/* Align to expertise section (max-width: 1400px, padding: 0 2rem) */
.section_contact .max-width-full {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section_contact .padding-global {
  padding-left: 0;
  padding-right: 0;
}

.section_contact .form_grid {
  place-items: start start;
}

.section_contact .form_content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.section_contact .form_header--clean {
  padding-left: 0;
}

/* Contact eyebrow */
.form_header-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
  width: fit-content;
}

/* Form header - cleaner typography */
.form_header--clean .heading-large {
  font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.form_header--clean .text-size-medium {
  font-size: 0.95rem !important;
  font-weight: 400;
  opacity: 0.5;
  letter-spacing: 0.01em;
}

/* Remove separation line */
.form_header--clean {
  border: none !important;
  border-bottom: none !important;
}

/* --------------------------------------------------------------------------
   3.5 PULSEBOARD-STYLE FORM
   -------------------------------------------------------------------------- */

.form_component--pulseboard {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 2rem;
}

.form_field-block--pulseboard {
  margin-bottom: 0.5rem;
}

.form_service-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.75rem;
}

.form_service-selector--checkable {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: transparent;
  padding: 0;
}

.service-option--checkable {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.service-option--checkable:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.service-option_input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-option_text {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.service-option--checkable:hover .service-option_text {
  color: rgba(255, 255, 255, 0.8);
}

.service-option_check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  opacity: 0.5;
  transition: all 0.2s ease;
}

.service-option_check svg {
  opacity: 0;
  color: var(--orange);
  transition: opacity 0.2s ease;
}

.service-option_input:checked ~ .service-option_text {
  color: white;
}

.service-option_input:checked ~ .service-option_check {
  border-color: var(--orange);
  background: rgba(250, 76, 21, 0.1);
  opacity: 1;
}

.service-option_input:checked ~ .service-option_check svg {
  opacity: 1;
}

.form_fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form_input--pulseboard {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
  color: white;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
}

.form_input--pulseboard::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form_input--pulseboard:focus {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.4);
}

.form_textarea--pulseboard {
  min-height: 100px;
  resize: vertical;
}

.form_submit--pulseboard {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--orange);
  background: transparent;
  border: 1px solid var(--orange);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.25s ease;
  align-self: flex-start;
}

.form_submit--pulseboard:hover {
  background: var(--orange);
  color: white;
}

.form_submit--pulseboard svg {
  transition: transform 0.2s ease;
  stroke: currentColor;
}

.form_submit--pulseboard:hover svg {
  transform: translateX(3px);
}

@media (max-width: 767px) {
  .form_component--pulseboard {
    padding: 1.5rem;
  }

  .form_fields-grid {
    grid-template-columns: 1fr;
  }

  .form_service-selector {
    flex-direction: column;
  }

  .service-option_label {
    padding: 0.75rem 1rem;
  }
}

/* --------------------------------------------------------------------------
   4. LOADER ENHANCEMENTS
   -------------------------------------------------------------------------- */

.loader::after {
  content: 'PANGEA LABS';
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  z-index: 10;
}

.loader::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--light-orange));
  z-index: 11;
  animation: loaderProgress 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes loaderProgress {
  to { width: 100%; }
}

/* --------------------------------------------------------------------------
   5. FOOTER SECTION
   -------------------------------------------------------------------------- */

.footer_section {
  background: black;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 100;
}

.footer_container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer_brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer_logo {
  width: 120px;
  opacity: 0.85;
}

.footer_tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  max-width: 260px;
  line-height: 1.5;
}

.footer_links {
  display: flex;
  gap: 4rem;
}

.footer_column {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer_column-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.5rem;
}

.footer_link {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer_link:hover {
  color: var(--orange);
}

.footer_social {
  display: flex;
  gap: 0.75rem;
}

.footer_social-link {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer_social-link:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

.footer_social-link svg {
  width: 16px;
  height: 16px;
}

.footer_bottom {
  max-width: 1400px;
  margin: 2.5rem auto 0;
  padding: 1.25rem 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer_copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer_legal {
  display: flex;
  gap: 1.5rem;
}

.footer_legal-link {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer_legal-link:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   6. PROGRESS BAR
   -------------------------------------------------------------------------- */

.progress-bar {
  background: linear-gradient(90deg, var(--orange), var(--light-orange));
}

/* --------------------------------------------------------------------------
   7. NAVBAR BLUR ENHANCEMENT
   -------------------------------------------------------------------------- */

.navbar_component.blurred-nav {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* --------------------------------------------------------------------------
   8. CURSOR ENHANCEMENT
   -------------------------------------------------------------------------- */

.cursor_dot.is-huge {
  background: rgba(250, 76, 21, 0.85) !important;
  border: none !important;
  box-shadow: 0 0 25px rgba(250, 76, 21, 0.4);
}

/* --------------------------------------------------------------------------
   9. GLOBAL REFINEMENTS
   -------------------------------------------------------------------------- */

/* Selection color */
::selection {
  background: rgba(250, 76, 21, 0.3);
  color: white;
}

::-moz-selection {
  background: rgba(250, 76, 21, 0.3);
  color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: black;
}

::-webkit-scrollbar-thumb {
  background: rgba(250, 76, 21, 0.4);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--orange);
}

/* --------------------------------------------------------------------------
   10. RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
  .footer_container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer_brand {
    align-items: center;
  }

  .footer_links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
  }

  .footer_bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .grid_element::after {
    font-size: 0.95rem;
    bottom: 1rem;
    left: 1rem;
  }

  .footer_links {
    gap: 2rem;
  }

  .footer_section {
    padding: 3rem 0 1.5rem;
  }
}
