.reveal,
.reveal-line,
.reveal-panel {
  opacity: 1;
  transform: none;
}

#intro {
  background: #0b0a09;
  animation: introAutoHide 700ms ease 4s forwards;
  pointer-events: none;
}

#intro-letters {
  will-change: transform, opacity;
}

.letter {
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
}

body.loaded .reveal,
body.loaded .reveal-line,
body.loaded .reveal-panel {
  opacity: 1;
  transform: none;
}
.letter {
  transform: translateY(120%);
  opacity: 0;
  will-change: transform, opacity;
  font-weight: 900;
}

.letter-first {
  opacity: 0;
  transform: translateX(-200px);
  will-change: transform, opacity;
  font-weight: 900;
}

#other-letters {
  will-change: transform, opacity;
}

:root {
  --primary: #D9B75F;
  --primary-dark: #B79A54;
  --text-dark: #f6f1e8;
  --text-soft: #B7A58A;
  --text-white: #B7A58A;
  --surface: #0F0D0B;
  --surface-alt: #D8C3A5;
  --surface-raised: #2A2723;
  --border: rgba(42, 39, 35, 0.18);
  --overlay: rgba(15, 13, 11, 0.72);
}

* {
  box-sizing: border-box;
   font-family: 'Montserrat', 'Europa', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Montserrat', 'Europa', sans-serif;
  background: var(--surface);
  color: var(--text-dark);
}
/* Dropdown Item Styling */
.dropdown-item {
  display: block;
  padding: 12px 16px;
  color: var(--text-soft);
  font-size: 0.85rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.dropdown-item:hover {
  background: rgba(201, 173, 106, 0.1);
  color: var(--primary);
  padding-left: 20px;
}

/* Process Card Styling */
.process-card {
  position: relative;
  padding: 2rem;
  /* background: var(--surface-alt); */
  border-radius: 24px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.process-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.step-num {
  font-family: 'Europa', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  right: 20px;
}

/* Scroll Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Success Modal Active State */
#successModal.active, #loader.active {
  opacity: 1;
  pointer-events: auto;
}

#successModal.active > div {
  transform: scale(1);
}
.bg-white {
  background-color: var(--surface-alt) !important;
}

.font-europa {
  font-family: 'Europa', 'Montserrat', sans-serif;
  letter-spacing: 0.02em;
}

.glass-nav {
  background: rgba(8, 11, 18, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-link {
  position: relative;
  color: rgba(246, 242, 232, 0.78);
  transition: color 180ms ease;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.btn-primary {
  background: var(--primary);
  color: var(--surface);
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
} 

.btn-ghost {
  border: 1px solid rgba(217, 183, 95, 0.22);
  color: var(--text-dark);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
  text-decoration: none;
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(217, 183, 95, 0.12);
  border-color: rgba(217, 183, 95, 0.36);
}

.dark-btn {
  border-color: var(--border);
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.06);
}

#menuBtn {
  background: var(--surface-raised) !important;
  border-color: var(--border) !important;
  color: var(--text-dark) !important;
}

#mobileMenu > div {
  background: var(--surface-raised) !important;
  border-color: var(--border) !important;
  color: var(--text-dark);
}

#mobileMenu a {
  color: var(--text-dark);
}

#mobileMenu a:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.hero-wrap {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--surface);
}

.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-bg.active {
  opacity: 1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.5) contrast(1.15);
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 6, 12, 0.194) 0%, rgba(3, 6, 12, 0.219) 35%, rgba(3, 6, 12, 0.268) 40%),
    linear-gradient(180deg, rgba(3,6,12,0.25) 0%, rgba(3, 6, 12, 0.316) 30%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  display: flex;
  justify-content: center;
  width: 100%;
  text-shadow: 0 10px 30px rgba(0,0,0,0.18);
  margin: 0;
  letter-spacing: 0;
}

.hero-word {
  --word-stack-height: 7.6em;
  position: relative;
  display: block;
  width: 8.8em;
  max-width: 100%;
  height: var(--word-stack-height);
  margin: 0 auto;
  letter-spacing: 0;
  line-height: 1;
  animation: wordFrame 980ms cubic-bezier(.2,.85,.2,1) forwards;
  animation-delay: 3050ms;
}

.hero-letter {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  letter-spacing: 0;
  opacity: 0;
  transform: translate(-50%, -50%) translateY(var(--stack-y));
  animation:
    spellFade 760ms ease forwards,
    settleHorizontal 980ms cubic-bezier(.2,.85,.2,1) forwards;
  animation-delay: calc(var(--i) * 240ms), 3050ms;
  text-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.hero-letter:nth-child(1) { --stack-y: -3.2em; --row-x: -4em; }
.hero-letter:nth-child(2) { --stack-y: -2.4em; --row-x: -3em; }
.hero-letter:nth-child(3) { --stack-y: -1.6em; --row-x: -2em; }
.hero-letter:nth-child(4) { --stack-y: -0.8em; --row-x: -1em; }
.hero-letter:nth-child(5) { --stack-y: 0em; --row-x: 0em; }
.hero-letter:nth-child(6) { --stack-y: 0.8em; --row-x: 1em; }
.hero-letter:nth-child(7) { --stack-y: 1.6em; --row-x: 2em; }
.hero-letter:nth-child(8) { --stack-y: 2.4em; --row-x: 3em; }
.hero-letter:nth-child(9) { --stack-y: 3.2em; --row-x: 4em; }

.hero-badge {
  opacity: 0;
  animation: fadeInUp 900ms ease both;
  animation-delay: 4200ms;
}.hero-slider {
  position: relative;
  min-height: 240px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 900ms ease, transform 900ms ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Override the old one-time animation behavior */
.hero-copy,
.hero-actions {
  opacity: 1 !important;
  animation: none !important;
}

@media (max-width: 768px) {
  .hero-slider {
    min-height: 290px;
  }
}





.hero-subtitle {
  opacity: 0;
  animation: fadeInUp 1100ms ease both;
  animation-delay: 4350ms;
}

.hero-copy {
  opacity: 0;
  animation: fadeInUp 1100ms ease both;
  animation-delay: 4350ms;
}

.hero-actions {
  opacity: 0;
  animation: fadeInUp 1100ms ease both;
  animation-delay: 4550ms;
}

.hero-points {
  opacity: 0;
  animation: fadeInUp 1100ms ease both;
  animation-delay: 4750ms;
}

.section-pad {
  padding: 5.5rem 0;
}

.section-kicker {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-title {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3.2rem);
  line-height: 1.08;
  font-weight: 800;
  color: var(--text-dark);
  transition:  220ms ease-in-out;
}

.section-text {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.9;
  font-size: 1rem;
}
.section-texts {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.9;
  font-size: 1.8em;
}
.touch:hover{
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;

}
@media (max-width: 768px) {


  .section-texts {
    font-size: 1.15rem;
  }
}
.info-card{
    background: #161616;
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border: 1px solid var(--border);
      border-radius: 1.5rem;
      width: 30%;
}

.service-card,
.quote-card,
.result-panel,
.future-panel,

.contact-mini,
.who-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  /* border-radius: 1.5rem; */
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.info-card {
  padding: 1.5rem;
}

.info-card.compact {
  min-height: 170px;
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.95rem;
  display: grid;
  place-items: center;
  background: rgba(201, 173, 106, 0.12);
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}


.card-title,
.service-card h3,
.result-panel h3,
.future-panel h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-dark);
}

.card-text,
.service-card p,
.quote-card p,
.result-panel li,
.future-panel li,
.who-card {
  color: var(--text-soft);
  line-height: 1.8;
  font-size: 0.98rem;
}

.service-card {
  display: block;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 173, 106, 0.35);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.24);
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.service-top i {
  width: 3rem;
  height: 3rem;
  border-radius: 0.95rem;
  display: grid;
  place-items: center;
  background: rgba(201, 173, 106, 0.12);
  color: var(--primary);
  font-size: 1.1rem;
}

.service-top span {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  font-weight: 800;
  color: rgba(246, 242, 232, 0.35);
}

.section-bullets p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  color: var(--text-soft);
}

.section-bullets i {
  color: var(--primary);
}

.quote-card {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  min-height: 130px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.quote-card-alt {
  background: linear-gradient(180deg, rgba(201,173,106,0.16), rgba(201,173,106,0.06));
}

.result-panel,
.future-panel {
  padding: 1.75rem;
}

.result-panel ul,
.future-panel ul,
.process-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.result-panel li,
.future-panel li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.85rem;
}

.result-panel li::before,
.future-panel li::before {
  content: '*';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 900;
}

.process-list li {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface-raised);
  margin-bottom: 0.85rem;
  display: grid;
  gap: 0.35rem;
}

.process-list strong {
  color: var(--text-dark);
}

.blog-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
  background: var(--overlay);
}

.blog-modal.open {
  display: block;
}

.blog-modal-panel {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  background: var(--surface);
  max-width: 1200px;
  margin: 0 auto;
}

.blog-modal-visual {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  transform: translateX(-64px);
  opacity: 0;
  transition: transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 560ms ease;
}

.blog-modal-copy {
  padding: clamp(4rem, 6vw, 6rem) clamp(1.5rem, 4vw, 4rem) 4rem;
  transform: translateX(64px);
  opacity: 0;
  transition: transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 560ms ease;
  transition-delay: 90ms;
}

.blog-modal.animate-in .blog-modal-visual,
.blog-modal.animate-in .blog-modal-copy {
  transform: translateX(0);
  opacity: 1;
}

.blog-modal-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.72);
  transition: transform 600ms ease, filter 600ms ease;
}

.blog-modal-visual:hover img {
  transform: scale(1.04);
  filter: grayscale(0%) brightness(0.84);
}

.blog-modal-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(8, 11, 18, 0.42));
  pointer-events: none;
}

.blog-modal-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 70;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 13, 11, 0.88);
  color: #fff;
  transition: background 180ms ease, transform 180ms ease;
}

.blog-modal-close:hover,
.blog-modal-close:focus-visible {
  background: var(--primary);
  transform: translateY(-2px);
  outline: none;
}

@media (max-width: 1024px) {
  .blog-modal-panel {
    grid-template-columns: 1fr;
  }

  .blog-modal-visual {
    position: relative;
    height: 55vh;
  }
}

@media (max-width: 768px) {
  .blog-modal-copy {
    padding-top: 3.5rem;
  }
}

.process-list span {
  color: var(--text-soft);
  line-height: 1.7;
}

.who-card,
.contact-mini {
  padding: 1.1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 76px;
}

.contact-mini {
  justify-content: flex-start;
}

.contact-mini i {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  background: rgba(201, 173, 106, 0.12);
  color: var(--primary);
}

.contact-mini p {
  margin: 0;
  font-weight: 600;
  color: var(--text-dark);
}

.contact-cta {
  padding: 2.2rem;
  text-align: center;
}

.site-footer {
  background: var(--surface);
  color: var(--text-dark);
}

@keyframes spellFade {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(var(--stack-y)) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(var(--stack-y)) scale(1);
  }
}

@keyframes settleHorizontal {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(var(--stack-y)) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) translateX(var(--row-x)) scale(1);
  }
}

@keyframes wordFrame {
  0% {
    height: var(--word-stack-height);
  }
  100% {
    height: 1.15em;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: transform, opacity;
}

.form-loader,
.form-feedback-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.75);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 9999;
}

.form-loader.active,
.form-feedback-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.loader-spinner {
  width: 3rem;
  height: 3rem;
  border: 5px solid rgba(246, 241, 232, 0.18);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.form-feedback-modal .modal-window {
  width: min(100%, 420px);
  padding: 2rem;
  background: rgba(15, 13, 11, 0.94);
  border-radius: 1.75rem;
  border: 1px solid rgba(246, 241, 232, 0.08);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.35);
  transform: translateY(-8px) scale(0.96);
  transition: transform 220ms ease;
  text-align: center;
}

.form-feedback-modal.active .modal-window {
  transform: translateY(0) scale(1);
}

.modal-title {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.modal-message {
  margin: 0 0 1.5rem;
  color: var(--text-soft);
  line-height: 1.7;
}

.modal-close-btn {
  padding: 1rem 1.5rem;
  background: var(--primary);
  color: var(--surface);
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}

.modal-close-btn:hover {
  transform: scale(1.02);
}

.form-feedback-modal .modal-window.error {
  background: #2A2723;
  border-color: rgba(248, 113, 113, 0.3);
}

.form-feedback-modal .modal-window.error .modal-title {
  color: #f87171;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal.in-view {
  opacity: 1;
  transform: translate(0, 0);
}

@media (max-width: 768px) {
  .hero-wrap {
    min-height: 100svh;
  }

  .section-pad {
    padding: 4.5rem 0;
  }

  .hero-word {
    --word-stack-height: 7.4em;
    width: 8.4em;
  }

  .hero-letter:nth-child(1) { --stack-y: -3.05em; --row-x: -3.8em; }
  .hero-letter:nth-child(2) { --stack-y: -2.29em; --row-x: -2.85em; }
  .hero-letter:nth-child(3) { --stack-y: -1.52em; --row-x: -1.9em; }
  .hero-letter:nth-child(4) { --stack-y: -0.76em; --row-x: -0.95em; }
  .hero-letter:nth-child(5) { --stack-y: 0em; --row-x: 0em; }
  .hero-letter:nth-child(6) { --stack-y: 0.76em; --row-x: 0.95em; }
  .hero-letter:nth-child(7) { --stack-y: 1.52em; --row-x: 1.9em; }
  .hero-letter:nth-child(8) { --stack-y: 2.29em; --row-x: 2.85em; }
  .hero-letter:nth-child(9) { --stack-y: 3.05em; --row-x: 3.8em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-letter,
  .hero-badge,
  .hero-subtitle,
  .hero-copy,
  .hero-actions,
  .hero-points {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-word {
    display: inline-flex !important;
    width: auto !important;
    height: auto !important;
    gap: 0.14em;
  }

  .hero-letter {
    position: static !important;
  }
}


.media-card {
  position: relative;
  padding: 1.8rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: #fff;

  background-image: var(--bg);
  background-size: cover;
  background-position: center;

  border: 1px solid rgba(255,255,255,0.08);
  transition: all 300ms ease;
}

/* Dark overlay */
.media-card::before {
  content: '';
  position: absolute;
  inset: 0;
  /* background: linear-gradient(
    to top,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0.4),
    rgba(0,0,0,0.2)
  ); */
  z-index: 0;
}

/* Content above overlay */
/* SERVICE IMAGE CARDS */
.service-card.media-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  text-decoration: none;

  background: var(--bg) center center / cover no-repeat !important;

  border: 1px solid rgba(255,255,255,0.08);
  transition:
    transform 300ms ease,
    border-color 300ms ease,
    box-shadow 300ms ease;

  filter: grayscale(100%);
}

/* DARK OVERLAY */
.service-card.media-card::before {
  content: '';
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.72),
      rgba(0,0,0,0.45),
      rgba(0,0,0,0.35)
    );

  z-index: 1;
}

/* GOLD HOVER BORDER */
.service-card.media-card::after {
  content: '';
  position: absolute;
  inset: 0;

  border: 2px solid var(--primary);

  opacity: 0;
  transition: opacity 300ms ease;

  z-index: 3;
}

/* CONTENT */
.service-card.media-card > * {
  position: relative;
  z-index: 2;
}

/* CENTERED TEXT */
.service-card.media-card h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  margin: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* HOVER EFFECT */
.service-card.media-card:hover {
  transform: translateY(-6px) scale(1.01);
  filter: grayscale(0%);
}

.service-card.media-card:hover::after {
  opacity: 1;
}

.bg-img{
background-image:
  linear-gradient(90deg, rgba(3,6,12,0.85), rgba(3,6,12,0.58)),
  url('https://images.unsplash.com/photo-1575505586569-646b2ca898fc?auto=format&fit=crop&w=1600&q=80');
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}


.service-card.media-card > * {
  position: relative;
  z-index: 2;
}

.service-card.media-card h3 {
  color: #fff;
  font-size: 1.2rem;
}

.service-card.media-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.service-card.media-card .service-top i {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.service-card.media-card .service-top span {
  color: rgba(255, 255, 255, 0.6);
}

/* TOP BORDER HOVER EFFECT */
.media-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 9px;
  width: 0%;
  background: var(--primary);
  transition: width 300ms ease;
  z-index: 3;
}

.media-card:hover::after {
  width: 100%;
}

/* Slight lift + zoom feel */
.media-card:hover {
  transform: translateY(-6px);
}

/* Typography adjustments for dark bg */
.media-card h3 {
  color: #fff;
  font-size: 1.2rem;
}

.media-card p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}

/* Icon styling */
.media-card .service-top i {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.media-card .service-top span {
  color: rgba(255,255,255,0.6);
}

.special-service-list {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.6rem;
  scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(transparent 0%, black 10%, black 90%, transparent 100%);
}

.special-service-list::before,
.special-service-list::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2rem;
  pointer-events: none;
  z-index: 1;
}

.special-service-list::before {
  top: 0;
  background:  rgba(255,255,255,0) 100%;
  transition: background 300ms ease;
}

.special-service-list::after {
  bottom: 0;
  background: rgba(255,255,255,0) ;
  transition: background 300ms ease;
}

.special-service-list::-webkit-scrollbar {
  width: 8px;
}

.special-service-list::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 999px;
}

.special-service-list::-webkit-scrollbar-track {
  background: transparent;
}

.special-service-list a {
  position: relative;
  z-index: 2;
  font-size: 1.7rem;
  text-align: center;
  opacity: 1;
  transition: opacity 300ms ease;
}

@media (max-width: 768px) {
  .special-service-list {
    max-height: 320px;
  }
}

.special-service {
  position: relative;
  display: inline-block;
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.72);
  color: var(--text-dark);
  text-decoration: none;
  transition:
    transform 300ms ease,
    color 300ms ease,
    letter-spacing 300ms ease;
}

.special-service::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transform: translateX(-50%);
  transition: width 300ms ease;
}

.special-service:hover {
  color: var(--primary);
  transform: scale(1.12);
  letter-spacing: 0.12em;
}

.special-service:hover::after {
  width: 100%;
}

/* Entrance animation stagger feel */
.special-service.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.special-service.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .special-service {
    font-size: 0.9rem;
    text-align: center;
  }
}
.blog-card{
  width:100%;
  display:flex;
  flex-direction:column;
}

.blog-card img{
  width:100%;
  display:block;
  object-fit: cover;
}

#imagePreview img,
.blog-card img,
.blog-modal-visual img,
.hero-bg img {
  object-fit: cover;
}

#imagePreview img {
  width: 100%;
  height: 100%;
}

#latestBlogPosts .grid{
  width:100%;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:2rem;
}

@media(max-width:1024px){
  #latestBlogPosts .grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:768px){
  #latestBlogPosts .grid{
    grid-template-columns:1fr;
  }
}