@font-face {
  font-family: 'Agency';
  src: url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
}

body {
  background-color: #0f0f0f;
  color: white;
  min-height: 400vh; /* Extended for more content */
  overflow-x: hidden;
}

/* Header transitions */
#main-header {
  background-color: transparent;
  transition: all 0.4s ease;
  z-index: 100;
}

#main-header.scrolled {
  background-color: #0f0f0f;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animations - sidebar style */
#mobile-menu {
  transition: transform 0.5s ease-in-out, opacity 0.5s ease;
  opacity: 0;
  background-color: #fefae0; /* Pastel Background */
  color: #d4a373;
  width: 300px;
  border-radius: 8px;
  position: fixed;
  top: 50px;
  right: 16px;
  height: auto;
  transform: translateX(350px);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 110;
}

#mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
}

#mobile-menu .menu-title {
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  color: white;
  opacity: 0.9;
}

#mobile-menu .menu-items {
  padding: 0;
}

#mobile-menu .menu-items a {
  display: block;
  font-size: 2rem;
  margin-bottom: 1rem;
  transition: opacity 0.3s ease;
  color: white;
  text-decoration: none;
}

#mobile-menu .menu-items a:hover {
  opacity: 0.8;
}

#mobile-menu .close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background-color: white;
  color: #d4a373;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 10;
}

#mobile-menu .close-btn:hover {
  background-color: #f8f8f8;
}

#mobile-menu .active-indicator {
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
  display: inline-block;
  margin-left: 10px;
  opacity: 0.7;
}

/* Navigation items animation - move up with staggered delays */
#desktop-nav a {
  display: inline-block;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

#desktop-nav a.nav-item-1 {
  transition-delay: 0s;
}

#desktop-nav a.nav-item-2 {
  transition-delay: 0.1s;
}

#desktop-nav a.nav-item-3 {
  transition-delay: 0.2s;
}

/* When scrolled, move items up */
#desktop-nav a.move-up {
  transform: translateY(-80px);
  opacity: 0;
}

/* Contact button and hamburger positioning */
.header-right {
  position: relative;
  width: 120px;
  height: 48px;
}

/* Contact button transformation */
#contact-btn {
  position: absolute;
  top: 0;
  right: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

@media (max-width: 767px) {
  #contact-btn {
    display: none;
  }
}

#contact-btn.hide {
  transform: scale(0);
  opacity: 0;
}

/* Hamburger button - positioned exactly where contact button is */
#hamburger-btn {
  position: absolute;
  top: 0;
  right: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0);
  opacity: 0;
}

#hamburger-btn.show {
  transform: scale(1);
  opacity: 1;
}

#hamburger-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

/* Logo animation for scroll */
.logo-scroll {
  transition: transform 0.3s ease;
}

.logo-scroll.scrolled {
  transform: scale(0.9);
}

/* Scroll container setup */
.scroll-container {
  position: relative;
}

/* Hero section styles */
.hero-section {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  padding-top: 5rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 5rem);
}

.hero-title {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  letter-spacing: 0.08em;
}

.hero-title-text {
  display: inline-flex;
  transform: translateZ(0);
  flex-wrap: wrap;
  justify-content: center;
  max-width: clamp(22rem, 90vw, 54rem);
  gap: 0.35em;
}

.hero-title-text span {
  display: inline-block;
  overflow: hidden;
  opacity: 0;
  animation: hero-letter 0.08s forwards;
  animation-delay: calc(var(--hero-type-index) * 0.07s);
}

.hero-title-text .hero-title-space {
  width: 0.35em;
}

@keyframes hero-letter {
  from {
    opacity: 0;
    transform: translateY(40%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title-cursor {
  width: 0.12em;
  height: 1.15em;
  margin-left: 0.15em;
  background-color: currentColor;
  display: inline-block;
  animation: hero-cursor 0.85s steps(2) infinite;
}

@keyframes hero-cursor {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}


/* Content wrapper that scrolls over the fixed hero */
.content-wrapper {
  position: relative;
  z-index: 2;
  padding-top: 100vh;
}

/* Divider line animation */
.divider {
  position: relative;
  z-index: 2;
  background-color: #0f0f0f;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Subtitle section */
.subtitle-section {
  position: relative;
  z-index: 2;
  background-color: #0f0f0f;
  padding-bottom: 2rem;
  gap: 1.5rem;
}

/* Video section animations */
.video-section {
  position: relative;
  z-index: 2;
  background-color: #0f0f0f;
  padding-bottom: 4rem;
}

/* Services highlight section */
.services-highlight-section {
  position: relative;
  z-index: 2;
  background-color: #0f0f0f;
  padding: 4rem 0;
}

.services-highlight-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.services-highlight-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.services-highlight-title {
  font-size: 3.5rem;
  font-weight: bold;
  line-height: 1.1;
  margin-bottom: 2rem;
  max-width: 1000px;
}

.services-highlight-description {
  font-size: 1.125rem;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 4rem;
  max-width: 900px;
}

.services-highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.service-pillar {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.85), rgba(17, 24, 39, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-pillar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 90, 0, 0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-pillar:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 90, 0, 0.35);
}

.service-pillar:hover::after {
  opacity: 1;
}

.service-pillar-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--gradient-color-1), var(--gradient-color-2));
  background-size: 200% 200%;
  animation: gradient-shift 4s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f0f0f;
  margin-bottom: 1.25rem;
  box-shadow: 0 12px 30px rgba(255, 90, 0, 0.25);
  flex-shrink: 0;
}

.service-pillar-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.service-pillar-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  flex-grow: 1;
}

@media (max-width: 1024px) {
  .services-highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .services-highlight-content {
    gap: 2.5rem;
  }

  .services-highlight-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    margin-left: 0;
    margin-right: 0;
  }

  .service-pillar {
    padding: 2rem 1.75rem;
  }
}

@media (max-width: 640px) {
  .cards-section {
    padding-left: clamp(2.25rem, 8vw, 3rem);
    padding-right: clamp(2.25rem, 8vw, 3rem);
  }

  .cards-grid {
    margin-left: 0;
    margin-right: 0;
  }

  .cards-section-inner {
    gap: 2.5rem;
  }

  .cards-title,
  .cards-description {
    padding-right: 0.75rem;
  }
}

/* Third section - Cards */
.cards-section {
  position: relative;
  z-index: 2;
  background-color: #0f0f0f;
  padding: 4rem 0;
}

.cards-section-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.cards-title {
  font-size: 3.5rem;
  font-weight: bold;
  line-height: 1.1;
  margin-bottom: 2rem;
  max-width: 1000px;
}

.cards-description {
  font-size: 1.125rem;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 4rem;
  max-width: 900px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.card-wrapper {
  display: flex;
  flex-direction: column;
}

.card-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, rgba(17, 17, 17, 0.95), rgba(34, 34, 34, 0.85));
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  margin-bottom: 1.5rem;
  isolation: isolate;
}

/* Enhanced hover effect */
.card-wrapper:hover .card-placeholder {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(255, 90, 0, 0.2);
  border-color: rgba(255, 90, 0, 0.4);
}

.card-wrapper:hover .card-title {
  color: #FF5A00;
}

.card-wrapper:hover .card-tags {
  opacity: 1;
}

.card-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 90, 0, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card-wrapper:hover .card-placeholder::after {
  opacity: 1;
}


.testimonial-play {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 2rem;
  border-radius: 18px;
  background: rgba(15, 15, 15, 0.78);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
  height: 100%;
  text-decoration: none;
  font-family: inherit;
}

.testimonial-play:hover {
  border-color: rgba(255, 90, 0, 0.45);
  color: #fffcf5;
}

.testimonial-play:focus-visible {
  outline: 2px solid #FF5A00;
  outline-offset: 3px;
}

.testimonial-play-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 90, 0, 0.95), rgba(255, 150, 0, 0.85));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 90, 0, 0.35);
  transition: transform 0.3s ease;
}

.testimonial-play:hover .testimonial-play-icon {
  transform: scale(1.05);
}

.testimonial-play-icon svg {
  width: 20px;
  height: 20px;
  stroke: #0f0f0f;
  stroke-width: 2.5;
}

.testimonial-play-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.card-info {
  padding: 0.5rem 0 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.card-tags {
  color: #a3a3a3;
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

/* Orange dot indicator like in the design */
.active-indicator-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #d4a373;
  border-radius: 50%;
  position: absolute;
  top: 16px;
  right: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-wrapper:hover .active-indicator-dot {
  opacity: 1;
}

/* Video placeholder styles */
.video-container {
  position: relative;
  width: 100%;
  height: 90vh;
  border-radius: 24px;
  overflow: hidden;
}

.video-placeholder {
  background: linear-gradient(to right, rgb(22, 163, 24), rgb(188, 201, 0));
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: opacity 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder:hover {
  opacity: 0.95;
}

.testimonial-play-label {
  letter-spacing: 0.1em;
}

.video-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: #d4a373;
  color: white;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.play-button {
  width: 100px;
  height: 100px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.play-button svg {
  width: 36px;
  height: 36px;
  color: #0f0f0f;
  margin-left: 5px;
}

/* Circular text animation */
.circular-text {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  animation: rotate 40s linear infinite;
  transform-origin: center center;
}

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

.circular-text span {
  position: absolute;
  top: 0;
  left: 50%;
  transform-origin: 0 128px;
  font-size: 14px;
  letter-spacing: 1px;
}

/* Menu fade animations */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.fade-out {
  animation: fadeOut 0.5s ease forwards;
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card-wrapper {
    padding: 0;
  }
  
  .cards-title {
    font-size: 2.5rem;
  }
  
  .cards-description {
    font-size: 1rem;
  }
}

/* Positions for each character around the circle */
.circular-text .char1 { transform: rotate(0deg) translateX(-50%); }
.circular-text .char2 { transform: rotate(10deg) translateX(-50%); }
.circular-text .char3 { transform: rotate(20deg) translateX(-50%); }
.circular-text .char4 { transform: rotate(30deg) translateX(-50%); }
.circular-text .char5 { transform: rotate(40deg) translateX(-50%); }
.circular-text .char6 { transform: rotate(50deg) translateX(-50%); }
.circular-text .char7 { transform: rotate(60deg) translateX(-50%); }
.circular-text .char8 { transform: rotate(70deg) translateX(-50%); }
.circular-text .char9 { transform: rotate(80deg) translateX(-50%); }
.circular-text .char10 { transform: rotate(90deg) translateX(-50%); }
.circular-text .char11 { transform: rotate(100deg) translateX(-50%); }
.circular-text .char12 { transform: rotate(110deg) translateX(-50%); }
.circular-text .char13 { transform: rotate(120deg) translateX(-50%); }
.circular-text .char14 { transform: rotate(130deg) translateX(-50%); }
.circular-text .char15 { transform: rotate(140deg) translateX(-50%); }
.circular-text .char16 { transform: rotate(150deg) translateX(-50%); }
.circular-text .char17 { transform: rotate(160deg) translateX(-50%); }
.circular-text .char18 { transform: rotate(170deg) translateX(-50%); }
.circular-text .char19 { transform: rotate(180deg) translateX(-50%); }
.circular-text .char20 { transform: rotate(190deg) translateX(-50%); }
.circular-text .char21 { transform: rotate(200deg) translateX(-50%); }
.circular-text .char22 { transform: rotate(210deg) translateX(-50%); }
.circular-text .char23 { transform: rotate(220deg) translateX(-50%); }
.circular-text .char24 { transform: rotate(230deg) translateX(-50%); }
.circular-text .char25 { transform: rotate(240deg) translateX(-50%); }
.circular-text .char26 { transform: rotate(250deg) translateX(-50%); }
.circular-text .char27 { transform: rotate(260deg) translateX(-50%); }
.circular-text .char28 { transform: rotate(270deg) translateX(-50%); }
.circular-text .char29 { transform: rotate(280deg) translateX(-50%); }
.circular-text .char30 { transform: rotate(290deg) translateX(-50%); }
.circular-text .char31 { transform: rotate(300deg) translateX(-50%); }
.circular-text .char32 { transform: rotate(310deg) translateX(-50%); }
.circular-text .char33 { transform: rotate(320deg) translateX(-50%); }
.circular-text .char34 { transform: rotate(330deg) translateX(-50%); }
.circular-text .char35 { transform: rotate(340deg) translateX(-50%); }
.circular-text .char36 { transform: rotate(350deg) translateX(-50%); }

/* Gradient animation for service badges */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.service-pillar-badge {
  --gradient-color-1: #fefae0;
  --gradient-color-2: #dda15e;
  animation: gradient-shift 4s ease-in-out infinite;
}

