:root {
  --color-primary: #f93d00;
  --color-primary-varying: #a02805;
  --color-background: #0d0d0d;
  --color-services-blue: #0b2545;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--color-background);
  color: white;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
}

body h1 {
  font-size: 2.4rem;
}

.hero-bg {
  background: linear-gradient(
    180deg,
    var(--color-background) 0%,
    var(--color-background) 60%,
    var(--color-primary) 100%
  );
}

/* Bio section styles */
.bio-section {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

.bio-content {
  position: relative; /* keep content above the blob */
  z-index: 2;
}

/* Pulsing red blurred circle (background) */
.bio-blob {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-20%, -30%);
  width: 680px;
  height: 680px;
  background: var(--color-primary);
  filter: blur(120px);
  opacity: 0.14;
  z-index: 1;
  border-radius: 50%;
  animation: pulse 3.6s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-20%, -30%) scale(0.95);
    opacity: 0.12;
  }
  50% {
    transform: translate(-20%, -30%) scale(1.05);
    opacity: 0.18;
  }
  100% {
    transform: translate(-20%, -30%) scale(0.95);
    opacity: 0.12;
  }
}

/* Utility to color a character with the primary color */
.text-primary {
  color: var(--color-primary);
}

/* Services section helpers */
.services-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(249,61,0,0.2); /* primary red with 0.2 opacity */
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  font-weight: 700;
}

.dot-primary {
  width: 0.8rem;
  height: 0.8rem;
  background: var(--color-primary);
  border-radius: 9999px;
  box-shadow: 0 0 0.6rem rgba(249,61,0,0.12);
  animation: dotPulse 1.8s ease-in-out infinite;
}

@keyframes dotPulse {
  0% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(249,61,0,0.18);
  }
  50% {
    transform: scale(1.35);
    opacity: 0.9;
    box-shadow: 0 0 0 10px rgba(249,61,0,0);
  }
  100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(249,61,0,0.18);
  }
}

.service-card {
  background: var(--color-services-blue);
  border-radius: 1rem; /* similar rounded style to hero image */
  padding: 1.25rem 1.25rem 1.25rem 1.25rem; /* balanced padding */
  display: flex;
  flex-direction: column; /* icon above title */
  gap: 0.75rem;
  color: white;
  position: relative;
  overflow: hidden;
}

/* Responsive tweaks for small screens */
@media (max-width: 420px) {
  .service-card {
    padding: 1rem 0.875rem; /* slightly smaller padding */
  }
}

.service-icon-bg {
  position: static; /* flow with content */
  width: 3.25rem;
  height: 3.25rem;
  background: var(--color-primary);
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0.98;
  margin-bottom: 0.4rem;
}

@media (max-width: 420px) {
  .service-icon-bg {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.6rem;
  }
}

/* Hover bar that grows from right to left */
.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  background: var(--color-primary);
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 380ms cubic-bezier(.2,.9,.2,1);
}

.service-card:hover::after {
  transform-origin: left;
  transform: scaleX(1);
}

.service-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-desc {
  color: rgba(255,255,255,0.92);
  font-size: 0.95rem;
  line-height: 1.35;
}

/* Gallery & Lightbox */
.gallery-section {
  padding: 4rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  border-radius: 0.5rem;
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  z-index: 60;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 100vw;
  max-height: 100vh;
}

.lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox-content img {
  display: block;
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain; /* ensure portrait images are fully visible */
  border-radius: 0.5rem;
}

.lightbox-close {
  position: absolute;
  right: -0.5rem;
  top: -0.5rem;
  background: rgba(255,255,255,0.06);
  color: white;
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

/* Bio carousel (marquee-like) */
.bio-carousel {
  margin-top: 2rem;
  overflow: hidden;
  position: relative;
  padding: 0.5rem 0;
}

.bio-carousel-track {
  display: flex;
  gap: 1rem;
  align-items: center;
  animation: scrollLeft 18s linear infinite;
}

.bio-carousel-item {
  flex: 0 0 auto;
  width: 220px;
  height: 260px; /* increased height for portrait photos */
  border-radius: 0.75rem;
  overflow: hidden;
}

.bio-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Make carousel items taller on tablet and mobile for portrait photos */
@media (max-width: 1024px) {
  .bio-carousel-item {
    width: 200px;
    height: 220px;
  }
}

@media (max-width: 420px) {
  .bio-carousel-item {
    width: 160px;
    height: 320px; /* allow taller portrait images on narrow screens */
  }
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Pause animation when container has .paused */
.bio-carousel.paused .bio-carousel-track {
  animation-play-state: paused;
}

/* Contact form styles */
.contact-section {
  padding-bottom: 6rem;
}

.contact-section input,
.contact-section textarea {
  font-family: inherit;
}

.contact-success {
  background: rgba(34,197,94,0.12); /* green-500 12% */
  color: #22c55e;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

/* Footer styles */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
}
.site-footer .footer-muted {
  color: rgba(255,255,255,0.8);
}

.site-footer a {
  color: white;
}

/* Scroll indicator button (pulsing circle with down arrow) */
.scroll-indicator {
  display: flex;
  justify-content: center;
  margin-top: -2rem;
  /* pull the indicator up so it visually overlaps the next section */
  margin-bottom: -1.5rem;
  pointer-events: none; /* container shouldn't block clicks; button handles events */
}

.scroll-btn {
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  color: white;
  border-radius: 9999px;
  border: none;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(249,61,0,0.18);
  cursor: pointer;
  animation: scrollPulse 1.8s ease-in-out infinite;
  position: relative;
  z-index: 50; /* ensure it sits above the following section */
  pointer-events: auto; /* enable clicking the button */
  transform: translateY(8px); /* slightly overlap the next section */
}

.scroll-btn:focus {
  outline: 2px solid rgba(255,255,255,0.06);
}

@keyframes scrollPulse {
  0% { transform: scale(1); box-shadow: 0 8px 24px rgba(249,61,0,0.18); }
  50% { transform: scale(1.12); box-shadow: 0 16px 40px rgba(249,61,0,0.08); }
  100% { transform: scale(1); box-shadow: 0 8px 24px rgba(249,61,0,0.18); }
}

/* Count / Stats section */
.count-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.count-number-wrap {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.5rem;
}
.count-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}
.count-plus {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  transform: translateY(-6px);
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 2rem;
  align-items: end;
}

.count-block {
  text-align: center;
}

@media (max-width: 420px) {
  .count-number {
    font-size: 2.75rem;
  }
}
