
.services-tabs-section {
  padding: 80px 20px;
  overflow: hidden;
}

.tabs-wrapper {
  max-width: 1140px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.15);
}

.tabs-nav {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.tab-title {
  padding: 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  flex: 1;
  text-align: center;
  border-right: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.tab-title::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-color);
  transform: translateY(100%);
  transition: transform 0.3s var(--ease-out-cubic);
  z-index: -1;
}

.tab-title:last-child {
  border-right: none;
}

.tab-title:hover,
.tab-title.active {
  color: #fff;
}

.tab-title:hover::before,
.tab-title.active::before {
  transform: translateY(0);
}

.tabs-content {
  padding: 50px 30px 30px;
  position: relative;
}

.tab-panel {
  display: none;
  animation: content-enter 0.6s var(--ease-out-cubic) forwards;
}

.tab-panel.active {
  display: block;
}

.tab-panel.exiting {
  animation: content-exit 0.4s var(--ease-out-cubic) forwards;
}

@keyframes content-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes content-exit {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.service-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 50px;
}

.service-content-grid:has(.service-video--dual) {
  align-items: stretch;
}

.service-content-grid:has(.service-video--dual) .service-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-title {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  margin-bottom: 15px;
}

.service-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

.service-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  transform: scale(0.95);
  opacity: 0;
}

.in-view .service-video {
  transform: scale(1);
  opacity: 1;
  transition: transform 0.6s var(--ease-out-cubic), opacity 0.6s ease;
}

.service-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.service-video--dual {
  padding-bottom: 0 !important;
  height: auto !important;
  min-height: 600px;
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: stretch;
}

/* Tweak dual video container sizing to avoid excessive whitespace */
.service-content-grid:has(.service-video--dual) .service-video--dual {
  height: auto;
  min-height: 0;
}

/* keep desktop/tabs spacing for dual videos; overrides live above */

@media (max-width: 767px) {
  .service-content-grid:has(.service-video--dual) .service-video--dual {
    min-height: 0;
  }
  .service-video--dual {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .service-video--dual .vertical-video {
    min-height: 380px;
  }
}

/* Reduce extra space specifically in Brands tab */
#tab-3 .service-content-grid {
  margin-bottom: 12px;
  gap: 24px;
}
#tab-3 .service-text {
  margin-bottom: 8px;
}
@media (max-width: 767px) {
  #tab-3.tab-panel {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

/* Real Estate feature boxes: left-align headings and copy */
#tab-1 .service-features-grid .feature-box {
  align-items: flex-start;
  text-align: left;
}
#tab-1 .service-features-grid .feature-box h3,
#tab-1 .service-features-grid .feature-box p {
  text-align: left;
}
.service-video--dual .vertical-video {
  position: relative;
  height: 100%;
  min-height: 600px;
  border-radius: var(--radius);
  overflow: hidden;
}

.service-video--dual .vertical-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.service-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.feature-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform var(--transition-fast) var(--ease-out-cubic), box-shadow var(--transition-fast);
}

.feature-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-box picture {
  display: flex;
  justify-content: center;
  width: 100%;
}

.feature-box img {
  border-radius: var(--radius);
  margin-bottom: 15px;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-left: auto;
  margin-right: auto;
}

.feature-box h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.feature-box p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
}

.post-tabs-cta {
  text-align: center;
  padding: 0 20px 80px;
  max-width: 1140px;
  margin: 0 auto;
}

.post-tabs-cta p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 40px;
}

.post-tabs-cta h3 {
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 25px;
}

.btn {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--text-color);
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  color: var(--text-color);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--text-color);
  transition: left 0.35s var(--ease-out-cubic);
  z-index: -1;
}

.btn:hover,
.btn:focus-visible {
  color: var(--bg-color);
  transform: translateY(-2px);
}

.btn:hover::before,
.btn:focus-visible::before {
  left: 0;
}

.inside-tab-cta {
  padding: 0 20px 20px;
  margin-top: -60px;
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .service-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .tabs-nav {
    flex-direction: column;
  }

  .tab-title {
    border-bottom: 1px solid var(--border-color);
  }

  .service-content-grid {
    grid-template-columns: 1fr;
  }

  .service-video {
    grid-row: 1;
  }

  .service-features-grid {
    grid-template-columns: 1fr;
  }
}

.accordion-header {
  display: none;
}

@media (max-width: 767px) {
  .tabs-wrapper {
    border: none;
  }

  .tabs-nav {
    display: none;
  }

  .tabs-content {
    padding: 0;
  }

  .accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
  }

  .accordion-header .accordion-arrow {
    transition: transform 0.3s ease-out;
  }

  .accordion-header.active .accordion-arrow {
    transform: rotate(180deg);
  }

  .tab-panel {
    display: block !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 20px;
    transition: max-height 0.4s var(--ease-out-cubic), opacity 0.4s ease, padding 0.4s ease;
  }

  .tab-panel.active {
    opacity: 1;
    max-height: 2000px;
    padding: 30px 20px;
  }
}

.drone-animation-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1110 / 520;
  margin: 0 auto;
  z-index: 10;
  perspective: 1500px;
}

.layerslider-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slideshow .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  animation: kenburns 10s infinite alternate;
}

.slideshow .slide.active {
  opacity: 1;
}

.slideshow .slide:nth-child(2) {
  animation-name: kenburns-alt;
}

.slideshow .slide:nth-child(3) {
  animation-name: kenburns;
  animation-direction: alternate-reverse;
}

@keyframes kenburns {
  from {
    transform: scale(1.1) rotate(1deg);
  }

  to {
    transform: scale(1) rotate(-1deg);
  }
}

@keyframes kenburns-alt {
  from {
    transform: scale(1) rotate(0deg);
  }

  to {
    transform: scale(1.15) rotate(2deg);
  }
}

@keyframes flyAroundEffect {
  0%,
  16.7% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }

  33.3%,
  50% {
    transform: translate(-40%, -25%) scale(0.3) rotate(-10deg);
  }

  66.7%,
  83.3% {
    transform: translate(-15%, 45%) scale(0.5) rotate(10deg);
  }

  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
}

.static-layers {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

@keyframes flyIn {
  from {
    opacity: 0;
    transform: translateX(-100px) scale(0.3);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.drone-body-layer {
  position: absolute;
  top: 18%;
  left: 55%;
  width: 33%;
  height: 71%;
  transform-origin: 52% 49%;
}

.drone-body-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.drone-assembly {
  position: absolute;
  inset: 0;
  animation:
    flyIn 2s cubic-bezier(0.23, 1, 0.32, 1) forwards,
    flyAroundEffect 18s ease-in-out 2.2s infinite;
}

.propeller-layer {
  position: absolute;
}

.propeller-layer img {
  width: 100%;
  height: 100%;
  animation-duration: 0.8s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.propeller-layer.spin img {
  animation-name: spin;
}

.propeller-layer.spin-reverse img {
  animation-name: spin-reverse;
}

.propeller-1 {
  top: 29.4%;
  left: 56.8%;
  width: 11.5%;
  height: 21.7%;
  transform-origin: 102% 103%;
}

.propeller-2 {
  top: 29.4%;
  left: 74.5%;
  width: 11.5%;
  height: 21.7%;
  transform-origin: -2% 103%;
}

.propeller-3 {
  top: 58.2%;
  left: 73.3%;
  width: 11.5%;
  height: 21.7%;
  transform-origin: -2% -3%;
}

.propeller-4 {
  top: 58.2%;
  left: 58.2%;
  width: 11.5%;
  height: 21.7%;
  transform-origin: 102% -3%;
}

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

  to {
    transform: rotate(1440deg);
  }
}

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

  to {
    transform: rotate(-1440deg);
  }
}

@keyframes scaleIn {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes fadeInWrapper {
  to {
    opacity: 1;
  }
}

@keyframes charIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.text-box {
  position: absolute;
  top: 50%;
  left: 4%;
  transform: translateY(-50%);
  max-width: 40%;
  padding: 1.25rem 2.5rem;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform-origin: 0% 50%;
  animation: scaleIn 1.5s cubic-bezier(0.23, 1, 0.32, 1) 0.5s forwards;
}

.text-layer {
  opacity: 0;
  animation: fadeInWrapper 0.1s 1.5s forwards;
}

.text-layer .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: charIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.phantom-text {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.drone-text {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-color);
}

@media (max-width: 767px) {
  .text-box {
    max-width: 65%;
    padding: 1rem 1.5rem;
  }

  .phantom-text {
    font-size: clamp(0.75rem, 2.5vw, 1.1rem);
    margin-bottom: 0.25rem;
  }

  .drone-text {
    font-size: clamp(1.6rem, 6vw, 3.25rem);
  }
}
        .tabs-wrapper { max-width: 1140px; margin: 0 auto; border: 1px solid var(--border-color); border-radius: var(--radius); }
        .tabs-nav { display: flex; justify-content: center; border-bottom: 1px solid var(--border-color); position: relative; }
        .tab-title { padding: 20px; font-size: 16px; font-weight: 600; color: var(--text-muted); transition: color var(--transition-fast); flex: 1; text-align: center; border-right: 1px solid var(--border-color); position: relative; overflow: hidden; z-index: 1; }
        .tab-title::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--accent-color); transform: translateY(100%); transition: transform 0.3s var(--ease-out-cubic); z-index: -1; }
        .tab-title:last-child { border-right: none; }
        .tab-title:hover { color: #fff; }
        .tab-title:hover::before { transform: translateY(0); }
        .tab-title.active { color: #fff; }
        .tab-title.active::before { transform: translateY(0); }
        .tabs-content { padding: 50px 30px 30px; position: relative; }
        .tab-panel { display: none; animation: content-enter 0.6s var(--ease-out-cubic) forwards; }
        .tab-panel.exiting { animation: content-exit 0.4s var(--ease-out-cubic) forwards; }
        .tab-panel.active { display: block; }

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

        .service-content-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; margin-bottom: 50px; }
        .service-title { font-size: clamp(1.8rem, 4vw, 2.2rem); margin-bottom: 15px; }
        .service-description { font-size: 16px; line-height: 1.7; color: var(--text-muted); }
        .service-video { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--radius); overflow: hidden; transform: scale(0.95); opacity: 0; }
        .in-view .service-video { transform: scale(1); opacity: 1; transition: transform 0.6s var(--ease-out-cubic), opacity 0.6s; }

        .service-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

        .service-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
        .feature-box { transition: transform var(--transition-fast) var(--ease-out-cubic), box-shadow var(--transition-fast); }
        .feature-box:hover { transform: translateY(-8px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
        .feature-box img { border-radius: var(--radius); margin-bottom: 15px; }
        .feature-box h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
        .feature-box p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }
        
        .post-tabs-cta { text-align: center; padding: 0 20px 80px; max-width: 1140px; margin: 0 auto; }
        .post-tabs-cta p { color: var(--text-muted); font-size: 15px; margin-bottom: 40px; }
        .post-tabs-cta h3 { font-weight: 600; font-size: 1.6rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 25px; }
        .btn { display: inline-block; background: transparent; border: 1px solid var(--text-color); padding: 12px 28px; border-radius: 4px; font-weight: 600; transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast); color: var(--text-color); position: relative; overflow: hidden; z-index: 1; }
        .btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: var(--text-color); transition: left 0.35s var(--ease-out-cubic); z-index: -1; }
        .btn:hover, .btn:active, .btn:focus { color: var(--bg-color); transform: translateY(-2px); }
        .btn:hover::before { left: 0; }
        
        .inside-tab-cta { padding: 0px 20px 20px; margin-top: -60px; text-align: center; font-size: 15px; color: var(--text-muted); }

        @media (max-width: 767px) {
            .tabs-nav { flex-direction: column; }
            .tab-title { border-bottom: 1px solid var(--border-color); }
            .service-content-grid { grid-template-columns: 1fr; }
            .service-video { grid-row: 1; }
            .service-features-grid { grid-template-columns: 1fr; }
        }

        /* --- Mobile Accordion Styles --- */
        .accordion-header { display: none; }
        @media (max-width: 767px) {
            .tabs-wrapper { border: none; }
            .tabs-nav { display: none; }
            .tabs-content { padding: 0; }
            .accordion-header { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 20px; font-size: 16px; font-weight: 500; text-align: left; color: var(--text-color); border-bottom: 1px solid var(--border-color); }
            .accordion-header .accordion-arrow { transition: transform 0.3s ease-out; }
            .accordion-header.active .accordion-arrow { transform: rotate(180deg); }
            .tab-panel { display: block !important; max-height: 0; overflow: hidden; opacity: 0; padding-left: 20px; padding-right: 20px; transition: max-height 0.4s var(--ease-out-cubic), opacity 0.4s, padding 0.4s; }
            .tab-panel.active { opacity: 1; max-height: 2000px; padding-top: 30px; padding-bottom: 30px; }
        }

        /* Custom styles for the LayerSlider recreation */
        .drone-animation-wrapper {
            position: relative;
            width: 100%;
            aspect-ratio: 1110 / 520;
            margin: 0 auto;
            z-index: 10;
            perspective: 1500px; /* For 3D parallax effect */
        }

        .layerslider-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        /* Slideshow styles */
        .slideshow .slide {
            position: absolute;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            opacity: 0;
            transition: opacity 2s ease-in-out;
            animation: kenburns 10s infinite alternate;
        }

        .slideshow .slide.active {
            opacity: 1;
        }

        .slideshow .slide:nth-child(2) { animation-name: kenburns-alt; }
        .slideshow .slide:nth-child(3) { animation-name: kenburns; animation-direction: alternate-reverse; }

        @keyframes kenburns {
            from { transform: scale(1.1) rotate(1deg); }
            to { transform: scale(1) rotate(-1deg); }
        }
        @keyframes kenburns-alt {
            from { transform: scale(1) rotate(0deg); }
            to { transform: scale(1.15) rotate(2deg); }
        }
        /* Keyframes for the drone's new responsive flying motion */
        @keyframes flyAroundEffect {
            /* Start position (right side) and hold */
            0%, 16.7% { transform: translate(0, 0) scale(1) rotate(0deg); }

            /* Move to top left and shrink, then hold */
            33.3%, 50% { transform: translate(-40%, -25%) scale(0.3) rotate(-10deg); }

            /* Move to bottom middle and grow, then hold */
            66.7%, 83.3% { transform: translate(-15%, 45%) scale(0.5) rotate(10deg); }
            
            /* Return to start position for seamless loop */
            100% { transform: translate(0, 0) scale(1) rotate(0deg); }
        }
        /* Static Layers that appear over the slideshow */
        .static-layers {
            position: relative;
            width: 100%;
            height: 100%;
            transform-style: preserve-3d;
            transition: transform 0.2s ease-out; /* Smooth parallax transition */
        }

        /* Base animation for elements flying in */
        @keyframes flyIn {
            from {
                opacity: 0;
                transform: translateX(-100px) scale(0.3);
            }
            to {
                opacity: 1;
                transform: translateX(0) scale(1);
            }
        }

        .drone-body-layer {
            position: absolute;
            top: 18%; left: 55%; width: 33%; height: 71%;
            transform-origin: 52% 49%;
        }

        .drone-body-layer img { width: 100%; height: 100%; object-fit: contain; }
        /* This new wrapper will contain all drone parts and handle the floating */
        .drone-assembly {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            animation: 
                flyIn 2s cubic-bezier(0.23, 1, 0.32, 1) forwards,
                flyAroundEffect 18s ease-in-out 2.2s infinite;
        }
        .propeller-layer {
            position: absolute;

        }

        .propeller-layer img {
            width: 100%;
            height: 100%;
            animation-duration: 0.8s;
            animation-timing-function: linear;
            animation-iteration-count: infinite;
        }
        .propeller-layer.spin img { animation-name: spin; }
        .propeller-layer.spin-reverse img { animation-name: spin-reverse; }
        
        /* Positioning based on original pixel values, converted to percentages */
/* Propellers adjusted with consistent percentage placement */
.propeller-1 { 
  top: 29.4%; 
  left: 56.8%; 
  width: 11.5%; 
  height: 21.7%; 
  transform-origin: 102% 103%; 
}

.propeller-2 { 
  top: 29.4%; 
  left: 74.5%; 
  width: 11.5%; 
  height: 21.7%; 
  transform-origin: -2% 103%; 
}

.propeller-3 { 
  top: 58.2%; 
  left: 73.3%; 
  width: 11.5%; 
  height: 21.7%; 
  transform-origin: -2% -3%; 
}

.propeller-4 { 
  top: 58.2%; 
  left: 58.2%; 
  width: 11.5%; 
  height: 21.7%; 
  transform-origin: 102% -3%; 
}

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

/* --- Text box and text styles (New) --- */
@keyframes scaleIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.text-box {
    position: absolute;
    top: 50%;
    left: 4%;
    transform: translateY(-50%); /* Vertically centers the box */
    width: auto; /* Let content define width */
    max-width: 40%;
    padding: 1.25rem 2.5rem;
    
    /* Elegant Glassmorphism Effect */
    background: var(--card-bg); /* Uses your theme's card background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* For Safari */
    border: 1px solid var(--border-color);
    border-radius: var(--radius); /* Uses your theme's radius */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* Animation */
    transform-origin: 0% 50%;
    animation: scaleIn 1.5s cubic-bezier(0.23, 1, 0.32, 1) 0.5s forwards; /* Added a slight delay */
}

/* Animate text characters in */
.text-layer {
    position: static; /* Allows text to flow naturally inside the box */
    font-family: 'Montserrat', sans-serif; /* Matched font to your site */
    opacity: 0;
    animation: fadeInWrapper 0.1s 1.5s forwards;
}
.text-layer .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: charIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
@keyframes fadeInWrapper { to { opacity: 1; } }
@keyframes charIn { to { opacity: 1; transform: translateY(0); } }

.phantom-text {
    /* Removed absolute positioning */
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 500;
    color: var(--text-muted); /* Uses your theme's muted text color */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.drone-text {
    /* Removed absolute positioning */
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-color); /* Uses your theme's main text color */
}
/* --- Mobile adjustments for Drone Animation --- */
@media (max-width: 767px) {
    .text-box {
        /* Allow the box to be wider on mobile */
        max-width: 65%;
        /* Reduce the side padding to give text more room */
        padding: 1rem 1.5rem;
    }

    .phantom-text {
        /* Use a smaller minimum font size on mobile */
        font-size: clamp(0.75rem, 2.5vw, 1.1rem);
        margin-bottom: 0.25rem;
    }

    .drone-text {
        /* Use a smaller minimum font size on mobile */
        font-size: clamp(1.6rem, 6vw, 3.25rem);
    }
}
        /* --- Go To Top Button --- */
        #go-top { position: fixed; bottom: 24px; right: 24px; z-index: 50; width: 56px; height: 56px; background-color: var(--card-bg); border-radius: var(--radius); box-shadow: 0 4px 12px rgba(0,0,0,0.2); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: bold; font-size: 12px; text-transform: uppercase; opacity: 0; visibility: hidden; transform: translateY(150%); transition: opacity 0.4s var(--ease-out-cubic), transform 0.4s var(--ease-out-cubic), visibility 0.4s, background-color var(--transition-fast); }
        body.light-mode #go-top:hover, body.light-mode #go-top:active, body.light-mode #go-top:focus { background-color: #e0e0e0; }
        body:not(.light-mode) #go-top:hover, body:not(.light-mode) #go-top:active, body:not(.light-mode) #go-top:focus { background-color: #2a2a2a; }
        #go-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
        #go-top svg { width: 20px; height: 20px; stroke: var(--text-color); stroke-width: 3; transition: transform 0.3s var(--ease-out-cubic); }
        #go-top:hover svg { transform: translateY(-3px); }
        #go-top span { margin-top: 2px; }

        /* --- Animation Utilities --- */
        .animated { opacity: 0; }
        .animated.fade-in { transition: opacity var(--transition-medium); }
        .animated.slideInUp { transform: translateY(40px); transition: opacity var(--transition-medium) var(--ease-out-cubic), transform var(--transition-medium) var(--ease-out-cubic); }
        .animated.slideInDown { transform: translateY(-40px); transition: opacity var(--transition-medium) var(--ease-out-cubic), transform var(--transition-medium) var(--ease-out-cubic); }
        .animated.slideInLeft { transform: translateX(-40px); transition: opacity var(--transition-medium) var(--ease-out-cubic), transform var(--transition-medium) var(--ease-out-cubic); }
        .animated.slideInRight { transform: translateX(40px); transition: opacity var(--transition-medium) var(--ease-out-cubic), transform var(--transition-medium) var(--ease-out-cubic); }
        .in-view { opacity: 1; transform: translateY(0) translateX(0); }
        .hero-title .char.in-view {
            opacity: 1;
            transform: translateY(0);
            transition: opacity 0.6s var(--ease-out-cubic), transform 0.6s var(--ease-out-cubic);
        }
    .animated-old { opacity: 0; transition: opacity 0.6s ease, transform 0.6s ease; }
    .slideInUp { transform: translateY(120px); }
    .slideInDown { transform: translateY(-90px); }
    .slideInLeft { transform: translateX(-60px); }
    .slideInRight { transform: translateX(120px); }
    .in-view { opacity: 1; transform: translateY(0) translateX(0); }

    
