/* ============================================
   CSS — Andrea Echeverry Portfolio
   Dark / Minimalist / Premium
   Paleta: fondo #1a1f22 | texto #ffffff | acento #4cd964
   ============================================ */

/* ============================================
   ***** BASE & RESET *****
   ============================================ */
:root {
  --bg-primary: #1a1f22;
  --bg-surface: #242a2e;
  --text-primary: #ffffff;
  --text-secondary: #c7c7c7;
  --accent: #4cd964;
  --accent-hover: #3bc754;
  --font-title: 'Dancing Script', cursive;
  --font-body: 'Kalam', cursive;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  display: block;
}

.container,
.container-fluid {
  padding-left: 15px;
  padding-right: 15px;
  overflow-x: hidden;
}

.row {
  margin-left: 0;
  margin-right: 0;
}

/* ============================================
   ***** TYPOGRAPHY *****
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 600;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin-top: 0.6rem;
  border-radius: 2px;
}

.text-center .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   ***** BUTTONS *****
   ============================================ */
.btn-accent {
  background-color: var(--accent);
  color: #1a1f22;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: none;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: #1a1f22;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(76, 217, 100, 0.35);
}

.btn-outline-light {
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ============================================
   ***** NAVBAR *****
   ============================================ */
#navbar {
  padding: 1rem 0;
  transition: all 0.4s ease;
  background: transparent;
}

#navbar.scrolled {
  background: rgba(26, 31, 34, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  padding: 0.6rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-title);
  font-weight: 700;
  color: #fff !important;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.brand-tagline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-left: 0.5rem;
}

.nav-link {
  color: rgba(255,255,255,0.8) !important;
  font-weight: 500;
  padding: 0.5rem 1.2rem !important;
  transition: color 0.3s ease;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.nav-link:hover {
  color: var(--accent) !important;
}

.navbar-toggler {
  padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 575.98px) {
  .brand-logo {
    height: 30px;
  }
  .brand-tagline {
    font-size: 0.75rem;
  }
}

/* ============================================
   ***** HERO *****
   ============================================ */
.hero-section {
  min-height: 100vh;
  position: relative;
  background: url('../img/bg-hero.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,31,34,0.85) 0%, rgba(26,31,34,0.4) 100%);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  font-weight: 400;
}

.hero-ctas .btn {
  min-width: 180px;
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: heroImageFadeIn 1s ease-out;
}

@keyframes heroImageFadeIn {
  0% {
    opacity: 0;
    transform: translateX(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    text-align: center;
    padding: 5rem 0 3rem;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-image {
    max-width: 80%;
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    min-height: 80vh;
    padding: 5rem 0 2rem;
  }
  .hero-title {
    font-size: 2.6rem;
  }
  .hero-ctas .btn {
    min-width: 140px;
    font-size: 0.95rem;
    padding: 0.6rem 1.5rem;
  }
  .hero-image {
    max-width: 70%;
    border-radius: 16px;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-image {
    max-width: 85%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  }
}

/* ============================================
   ***** ABOUT *****
   ============================================ */
.about-section {
  padding: 6rem 0;
  background: var(--bg-surface);
}

.about-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 700px;
}

.about-signature {
  max-width: 500px;
  height: auto;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.about-image-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.about-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 991.98px) {
  .about-section {
    text-align: center;
    padding: 4rem 0;
  }
  .about-text {
    margin-left: auto;
    margin-right: auto;
  }
  .about-signature {
    margin-left: auto;
    margin-right: auto;
  }
  .about-image-wrapper {
    max-width: 80%;
    margin: 0 auto 2rem;
  }
}

@media (max-width: 767.98px) {
  .about-section {
    padding: 3rem 0;
  }
  .about-text {
    font-size: 1rem;
  }
  .about-image-wrapper {
    max-width: 90%;
  }
  .about-signature {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .about-image-wrapper {
    max-width: 100%;
    border-radius: 12px;
  }
  .about-signature {
    max-width: 100%;
    width: 100%;
  }
}

/* ============================================
   ***** SERVICES *****
   ============================================ */
.services-section {
  padding: 6rem 0;
}

.service-card {
  background: var(--bg-primary);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
  border: 1px solid rgba(255,255,255,0.04);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border-color: rgba(76, 217, 100, 0.2);
}

.service-img {
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #111;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.04);
}

.service-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 600;
  padding: 1.2rem 1.5rem 0.2rem;
  color: #fff;
}

.service-desc {
  padding: 0 1.5rem 0.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Botón Read More --- */
.btn-service {
  display: inline-block;
  margin: 0 1.5rem 1.8rem 1.5rem;
  padding: 0.5rem 1.5rem;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-service:hover {
  background: var(--accent);
  color: #1a1f22;
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(76, 217, 100, 0.3);
}

/* --- Carousel de Bootstrap (móvil) --- */
#servicesCarousel {
  position: relative;
}

#servicesCarousel .carousel-inner {
  border-radius: 16px;
  overflow: hidden;
}

/* Dots más grandes */
#servicesCarousel .carousel-indicators {
  position: relative;
  bottom: auto;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  gap: 1rem;
}

#servicesCarousel .carousel-indicators button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  margin: 0;
  opacity: 1;
  transition: all 0.3s ease;
  text-indent: -9999px;
}

#servicesCarousel .carousel-indicators button.active {
  background: var(--accent);
  width: 48px;
  border-radius: 12px;
}

#servicesCarousel .carousel-indicators button:hover {
  background: rgba(255, 255, 255, 0.4);
}

#servicesCarousel .carousel-indicators button.active:hover {
  background: var(--accent);
}

#servicesCarousel .carousel-item .service-card {
  margin: 0 auto;
  max-width: 380px;
}

/* --- Botones de navegación (estilo lightbox) --- */
.btn-nav-service {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(26, 31, 34, 0.8);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  padding: 0;
  line-height: 1;
}

.btn-nav-service:hover {
  background: var(--accent);
  color: #1a1f22;
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev.btn-nav-service {
  left: -10px;
}

.carousel-control-next.btn-nav-service {
  right: -10px;
}

.btn-nav-service:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-nav-service:disabled:hover {
  background: rgba(26, 31, 34, 0.8);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1);
}

/* Ajustes responsivos */
@media (max-width: 767.98px) {
  .services-section {
    padding: 4rem 0;
  }
  #servicesCarousel .carousel-item .service-card {
    max-width: 340px;
  }
  .btn-nav-service {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
  .carousel-control-prev.btn-nav-service {
    left: 2px;
  }
  .carousel-control-next.btn-nav-service {
    right: 2px;
  }
}

@media (max-width: 575.98px) {
  #servicesCarousel .carousel-item .service-card {
    max-width: 100%;
  }
  .btn-nav-service {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }
  .carousel-control-prev.btn-nav-service {
    left: 2px;
  }
  .carousel-control-next.btn-nav-service {
    right: 2px;
  }
  #servicesCarousel .carousel-indicators button {
    width: 20px;
    height: 20px;
  }
  #servicesCarousel .carousel-indicators button.active {
    width: 40px;
    border-radius: 10px;
  }
}

/* ============================================
   ***** PAGE HEADER (páginas de servicio) *****
   ============================================ */
.page-header {
  padding: 8rem 0 3rem;
  background: var(--bg-primary);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.page-header .btn-outline-light {
  border-color: rgba(255,255,255,0.2);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.page-header .btn-outline-light:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1f22;
}

.page-header .btn-outline-light i {
  margin-right: 0.5rem;
}

@media (max-width: 767.98px) {
  .page-header {
    padding: 6rem 0 2rem;
  }
  .page-subtitle {
    font-size: 1rem;
  }
}

/* ============================================
   ***** GALLERY GRID (páginas de servicio) *****
   ============================================ */
.gallery-grid {
  padding: 4rem 0;
  background: var(--bg-surface);
}

.gallery-grid .container {
  overflow: hidden;
}

.gallery-grid .row {
  margin: 0;
}

.gallery-grid .col {
  padding: 0 0.75rem;
  margin-bottom: 1.5rem;
}

.gallery-grid .gallery-item {
  cursor: pointer;
  transition: transform 0.3s ease;
  overflow: hidden;
  border-radius: 12px;
}

.gallery-grid .gallery-item:hover {
  transform: scale(1.03);
}

.gallery-grid .gallery-item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  transition: box-shadow 0.3s ease;
}

.gallery-grid .gallery-item img:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

@media (max-width: 767.98px) {
  .gallery-grid {
    padding: 2rem 0;
  }
  .gallery-grid .col {
    padding: 0 0.5rem;
    margin-bottom: 1rem;
  }
}

/* ============================================
   ***** LIGHTBOX MODAL *****
   ============================================ */
.modal-content.bg-transparent {
  background: transparent !important;
}

.modal-backdrop {
  background: rgba(0, 0, 0, 0.92);
}

#imageModal .modal-dialog {
  max-width: 90vw;
  margin: 1.75rem auto;
}

#imageModal .modal-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  position: relative;
}

#modalImage {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#modalImage.loading {
  opacity: 0.5;
  transform: scale(0.95);
}

#imageModal.show #modalImage {
  animation: modalZoomIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes modalZoomIn {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(15px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* --- Botón cerrar --- */
.btn-close-modal {
  position: absolute;
  top: -20px;
  right: -20px;
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(26, 31, 34, 0.9);
  color: #fff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  padding: 0;
  line-height: 1;
}

.btn-close-modal:hover {
  background: var(--accent);
  color: #1a1f22;
  border-color: var(--accent);
  transform: rotate(90deg) scale(1.1);
}

.btn-close-modal i {
  line-height: 1;
}

/* --- Botones de navegación --- */
.btn-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(26, 31, 34, 0.8);
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  padding: 0;
  line-height: 1;
}

.btn-nav:hover {
  background: var(--accent);
  color: #1a1f22;
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.btn-nav-prev {
  left: -28px;
}

.btn-nav-next {
  right: -28px;
}

.btn-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-nav:disabled:hover {
  background: rgba(26, 31, 34, 0.8);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1);
}

/* --- Contador de imágenes --- */
.image-counter {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 31, 34, 0.9);
  color: var(--text-secondary);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.5px;
}

.image-counter span {
  color: #fff;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .btn-nav {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }
  .btn-nav-prev {
    left: -10px;
  }
  .btn-nav-next {
    right: -10px;
  }
}

@media (max-width: 767.98px) {
  #imageModal .modal-dialog {
    max-width: 95vw;
    margin: 0.5rem auto;
  }
  #imageModal .modal-body {
    min-height: 60vh;
    padding: 0.5rem;
  }
  #modalImage {
    max-height: 70vh;
    border-radius: 8px;
  }
  .btn-close-modal {
    top: 5px;
    right: 5px;
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
  .btn-nav {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
  .btn-nav-prev {
    left: 5px;
  }
  .btn-nav-next {
    right: 5px;
  }
  .image-counter {
    bottom: -40px;
    font-size: 0.8rem;
    padding: 0.3rem 1rem;
  }
}

@media (max-width: 575.98px) {
  #imageModal .modal-body {
    min-height: 50vh;
    padding: 0.25rem;
  }
  #modalImage {
    max-height: 60vh;
  }
  .btn-close-modal {
    width: 34px;
    height: 34px;
    font-size: 1.2rem;
    top: 5px;
    right: 5px;
  }
  .btn-nav {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}

/* ============================================
   ***** CONTACT *****
   ============================================ */
.contact-section {
  padding: 6rem 0;
  background: var(--bg-surface);
}

.contact-text {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.form-control {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(255,255,255,0.08);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(76, 217, 100, 0.15);
}

.form-control::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-label {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.contact-info-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.contact-image-wrapper {
  width: 65%;
  max-width: 450px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.contact-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.contact-info {
  width: 100%;
  padding: 2rem;
  background: var(--bg-primary);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
}

.contact-info .lead {
  font-family: var(--font-title);
  color: #fff;
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
}

.contact-info i {
  color: var(--accent);
  width: 1.8rem;
  font-size: 1.2rem;
}

@media (max-width: 991.98px) {
  .contact-section {
    padding: 4rem 0;
  }
  .contact-info-wrapper {
    margin-top: 2rem;
  }
  .contact-image-wrapper {
    width: 80%;
  }
}

@media (max-width: 767.98px) {
  .contact-section {
    padding: 3rem 0;
  }
  .contact-image-wrapper {
    width: 90%;
  }
  .contact-info {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .contact-image-wrapper {
    width: 100%;
  }
  .contact-info {
    padding: 1.2rem;
  }
  .contact-info p {
    font-size: 0.95rem;
  }
}

/* ============================================
   ***** FOOTER *****
   ============================================ */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 2rem 0;
}

.footer-logo {
  height: 80px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

.footer-divider {
  color: var(--text-secondary);
  margin: 0 0.5rem;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-social {
  display: inline-block;
  color: var(--text-secondary);
  font-size: 1.6rem;
  margin-left: 1.2rem;
  transition: all 0.3s ease;
  line-height: 1.5;
}

.footer-social:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.footer-copy {
  color: rgba(255,255,255,0.25);
  font-size: 0.85rem;
}

@media (max-width: 767.98px) {
  .footer-logo {
    height: 60px;
  }
  .footer-social {
    font-size: 1.4rem;
    margin: 0 0.6rem;
  }
  .footer-tagline {
    font-size: 0.85rem;
  }
}

@media (max-width: 575.98px) {
  .footer-logo {
    height: 50px;
  }
  .footer-divider {
    display: none !important;
  }
  .footer-tagline {
    display: block !important;
    margin-top: 0.25rem;
  }
}

/* ============================================
   ***** SCROLL TO TOP *****
   ============================================ */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #1a1f22;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
  box-shadow: 0 8px 30px rgba(76, 217, 100, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(76, 217, 100, 0.4);
}

/* ============================================
   ***** CURSOR TRAIL (desktop only) *****
   ============================================ */
.cursor-trail {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  mix-blend-mode: multiply;
  transition: opacity 0.3s ease;
}

/* ============================================
   ***** SCROLL REVEAL *****
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   ***** RESPONSIVE (global) *****
   ============================================ */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .navbar-brand {
    font-size: 1.1rem;
  }
  .brand-tagline {
    font-size: 0.8rem;
  }
  .about-image-wrapper {
    margin-top: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    min-height: 80vh;
    padding: 5rem 0 3rem;
  }
  .hero-title {
    font-size: 2.6rem;
  }
  .hero-ctas .btn {
    min-width: 140px;
    font-size: 0.95rem;
    padding: 0.6rem 1.5rem;
  }
  .section-title {
    font-size: 1.9rem;
  }
  .service-card {
    max-width: 380px;
    margin: 0 auto;
  }
  .footer-social {
    font-size: 1.4rem;
    margin: 0 0.6rem;
  }
  .scroll-top-btn {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    bottom: 1.2rem;
    right: 1.2rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .section-title::after {
    width: 40px;
  }
  .contact-info {
    padding: 1.5rem;
  }
}