#hero {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background-color: var(--dark-solid);
  min-height: 100vh;
}
#hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

/* --- ITO YUNG DEFAULT BOOTSTRAP BEHAVIOR NG ROW (Hayaan lang) --- */
/* #hero .row { ... } */
/* --- Wag na galawin pati yung align-items center mo sa taas ---*/

.hero-content {
  text-align: left;
  position: relative;
  z-index: 15;
}
.hero-content .tagline {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary-light-text);
  margin-bottom: 1rem;
}
.hero-content .headline {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-family: 'Times New Roman', Times, serif !important;
}
.hero-content .btn-gold {
  background: var(--gold-gradient);
  background-size: 200% auto;
  color: #332301;
  border: none;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.hero-content .btn-gold:hover {
  transform: scale(1.05);
  box-shadow: 0px 5px 20px rgba(255, 215, 0, 0.25);
}

.hero-cards-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
  /* --- HAYAAN ANG DEFAULT NEGATIVE MARGIN NG BOOTSTRAP .row --- */
}

.service-card {
  position: relative;
  width: 100%;
  max-width: 250px;
  height: 160px;
  background: #1c1c1c;
  border-radius: 20px;
  margin: 20px auto; /* Margin top/bottom lang */
  padding: 15px 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  transition: height 0.5s ease-in-out;
  border: 1px solid rgba(246, 226, 122, 0.2);
  z-index: 1;
}

.service-card:hover,
.service-card.active {
  height: 320px;
}

.service-card .card-image {
  position: absolute;
  width: calc(100% - 30px);
  height: 140px;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  z-index: 1;
  border-radius: 15px;
  overflow: hidden;
}
.service-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card .card-content {
  position: absolute;
  top: 110px;
  left: 0;
  right: 0;
  bottom: 15px;
  width: 100%;
  padding: 0 15px;
  text-align: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  transition-delay: 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.service-card:hover .card-content,
.service-card.active .card-content {
  visibility: visible;
  opacity: 1;
}

.card-content h3 {
  color: #f6e27a;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1.2rem;
}
.card-content p {
  color: var(--secondary-light-text);
  font-size: 0.85rem;
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.5;
}
.btn-card-explore {
  display: inline-block;
  padding: 8px 25px;
  background: var(--gold-gradient);
  background-size: 200% auto;
  color: #332301;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.btn-card-explore:hover {
  transform: scale(1.1);
}

.card-label {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(5px);
  color: var(--light-text);
  padding: 6px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  z-index: 2;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  white-space: nowrap;
  border: 1px solid rgba(246, 226, 122, 0.1);
  pointer-events: none;
}

.service-card:hover .card-label,
.service-card.active .card-label {
  opacity: 0;
  visibility: hidden;
}

#hero .main-hero-badge,
#hero .main-hero-sparkle {
  position: absolute;
  pointer-events: none;
  z-index: 15; /* NASA HARAP NA */
}

#hero .main-hero-badge {
  background: var(--gold-gradient); background-size: 200% auto; color: #332301; border: none;
  padding: 8px 15px; border-radius: 50px; font-size: 0.9rem; font-weight: 600;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: badge-float 3s ease-in-out infinite alternate;
  white-space: nowrap;
}

/* Desktop Badges (Walang binago) */
#hero .main-hero-badge.badge-1 { top: 25%; right: 18%; animation-delay: 0s; }
#hero .main-hero-badge.badge-2 { top: 40%; right: 5%; animation-delay: 1.1s; }
#hero .main-hero-badge.badge-3 { bottom: 30%; right: 35%; animation-delay: 0.6s; }
#hero .main-hero-badge.badge-4 { bottom: 25%; right: 20%; animation-delay: 1.8s; }
#hero .main-hero-badge.badge-5 { top: 30%; right: 30%; animation-delay: 0.3s; }
#hero .main-hero-badge.badge-6 { bottom: 30%; right: 2%; animation-delay: 1.5s; }

/* Desktop Sparkles (Walang binago) */
#hero .main-hero-sparkle { width: 40px; height: 40px; background-size: contain; background-repeat: no-repeat; opacity: 0; animation: sparkle-fade 2.5s ease-in-out infinite; z-index: 14; }
#hero .main-hero-sparkle.sparkle-1 { top: 25%; right: 15%; animation-delay: 0.5s; }
#hero .main-hero-sparkle.sparkle-2 { top: 65%; right: 3%; animation-delay: 1.5s; }
#hero .main-hero-sparkle.sparkle-3 { bottom: 20%; right: 20%; animation-delay: 2.5s; }

/* Animations (Walang binago) */
@keyframes badge-float { from { transform: translateY(0px) scale(1); } to { transform: translateY(-15px) scale(1.05); } }
@keyframes sparkle-fade { 0%, 100% { opacity: 0; transform: scale(0.5); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes shimmer { 0% { background-position: 150% center; } 100% { background-position: -150% center; } }

/* Medium Screen (Walang binago) */
@media (max-width: 991.98px) {
  #hero { text-align: center; padding-top: 120px; overflow: hidden; }
  .hero-content { text-align: center; margin-bottom: 40px; }
  .hero-content .headline { font-size: 2.8rem; }
  .hero-cards-wrapper { padding-top: 40px; justify-content: center; }
  #hero .main-hero-badge { z-index: 15; }
  #hero .main-hero-sparkle { z-index: 14; }
}


@media (max-width: 991.98px) {
  #hero { text-align: center; padding-top: 120px; overflow: hidden; }
  .hero-content { text-align: center; margin-bottom: 40px; }
  .hero-content .headline { font-size: 2.8rem; }
  .hero-cards-wrapper { padding-top: 40px; justify-content: center; }

  /* --- ITO YUNG BAGONG PWESTO NG BADGES SA TABLET (PALIBOT SA CARDS AREA) --- */
  #hero .main-hero-badge { z-index: 15; }
  #hero .main-hero-badge.badge-1 { 
    bottom: 50%; /* Tinaas konti para PARANG nasa taas ng card area */
    left: 20%; 
    top: auto;   /* INALIS ANG TOP */
    right: auto; 
  }
  #hero .main-hero-badge.badge-2 { 
    bottom: 55%; /* Tinaas konti */
    right: 20%; 
    top: auto;   
    left: auto; 
  }
  #hero .main-hero-badge.badge-3 { 
    bottom: 25%; /* Mid-level, malapit sa gilid */
    left: 10%; 
    top: auto;   
    right: auto; 
  }
  #hero .main-hero-badge.badge-4 { 
    bottom: 35%; /* Mid-level, malapit sa gilid */
    right: 10%; 
    top: auto;   
    left: auto; 
  }
  #hero .main-hero-badge.badge-5 { 
    bottom: 5%; /* Nasa baba ng card area */
    left: 30%; 
    top: auto;   
    right: auto; 
  }
  #hero .main-hero-badge.badge-6 { 
    bottom: 8%; /* Nasa baba ng card area */
    right: 30%; 
    top: auto;   
    left: auto; 
  }

  /* --- ITO YUNG BAGONG PWESTO NG SPARKLES SA TABLET (PALIBOT SA CARDS AREA) --- */
  #hero .main-hero-sparkle { z-index: 14; width: 35px; height: 35px; }
  #hero .main-hero-sparkle.sparkle-1 { 
    bottom: 50%; 
    left: 30%; 
    top: auto; 
    right: auto; 
  }
  #hero .main-hero-sparkle.sparkle-2 { 
    bottom: 45%; 
    right: 5%; 
    top: auto; 
    left: auto; 
  }
  #hero .main-hero-sparkle.sparkle-3 { 
    bottom: 15%; /* Mas mababa */
    left: 50%; 
    transform: translateX(-50%); 
    top: auto; 
    right: auto; 
  }
}
/* === END NG TABLET FIX === */

/* =========================================== */
/* === PUTANGINANG MOBILE FIX (ITO NA TALAGA) === */
/* =========================================== */
@media (max-width: 576px) {
  .hero-content .headline { font-size: 2.2rem; line-height: 1.3; }

  /* =========================================== */
  /* --- FIX 1 & 2: ALIGNMENT & CARD SPACING --- */
  /* --- WALANG OVERRIDE! Hayaan ang Bootstrap --- */
  /* =========================================== */
  .hero-cards-wrapper {
    padding-top: 20px; /* Padding sa taas lang */
    /* --- INALIS LAHAT NG MARGIN OVERRIDE --- */
  }

  .hero-cards-wrapper .col-6 {
    /* --- Hayaan ang default Bootstrap padding ng .col-6 --- */
    /* --- INALIS LAHAT NG PADDING & :first/:last OVERRIDE --- */
    /* --- Ensure 50% width still applies --- */
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  /* =========================================== */
  /* --- END NG FIX 1 & 2 --- */
  /* =========================================== */
  
  /* --- Card styles (inalisan ko lang ng comment) --- */
  .service-card {
    height: 140px;
    max-width: 100%; /* Para sakto sa .col-6 */
    margin: 10px 0; /* Margin top/bottom lang */
    padding: 10px 5px;
  }
  .service-card:hover, .service-card.active { height: 280px; }
  .service-card .card-image { height: 110px; }
  .service-card .card-content { top: 80px; padding: 0 10px; }
  .service-card:hover .card-content, .service-card.active .card-content { visibility: visible; opacity: 1; }
  .card-content h3 { font-size: 1rem; }
  .card-content p { line-height: 1.4; font-size: 0.8rem; margin-bottom: 10px; }
  .btn-card-explore { padding: 6px 18px; font-size: 0.9rem; }
  .card-label { opacity: 1; visibility: visible; display: inline-block; font-size: 0.9rem; }
  .service-card:hover .card-label, .service-card.active .card-label { opacity: 0; visibility: hidden; }

  #hero .main-hero-badge,
  #hero .main-hero-sparkle {
    display: block;
    z-index: 15;
  }
  #hero .main-hero-badge {
    padding: 4px 10px;
    font-size: 0.7rem;
  }

  #hero .main-hero-badge.badge-1 {
    bottom: 48%; /* Medyo taas, PARANG nasa taas ng cards */
    left: 15%;
    top: auto;
    right: auto;
  }
  #hero .main-hero-badge.badge-2 {
    bottom: 48%; /* Medyo taas, PARANG nasa taas ng cards */
    right: 15%;
    top: auto;
    left: auto;
  }
  #hero .main-hero-badge.badge-3 {
    bottom: 35%; /* Mid-level, PARANG nasa gilid */
    left: 5%; /* Malapit sa gilid */
    top: auto;
    right: auto;
  }
  #hero .main-hero-badge.badge-4 {
    bottom: 35%; /* Mid-level, PARANG nasa gilid */
    right: 5%; /* Malapit sa gilid */
    top: auto;
    left: auto;
  }
  #hero .main-hero-badge.badge-5 {
    bottom: 12%; /* Nasa baba ng cards */
    left: 30%;
    top: auto;
    right: auto;
  }
  #hero .main-hero-badge.badge-6 {
    bottom: 10%; /* Nasa baba ng cards */
    right: 20%;
    top: auto;
    left: auto;
  }

  
  #hero .main-hero-sparkle {
    width: 25px;
    height: 25px;
    z-index: 14;
  }

  /* --- SPARKLES (nasa baba na rin) --- */
  #hero .main-hero-sparkle.sparkle-1 { 
    bottom: 30%; 
    left: 20%; 
    top: auto;
    right: auto;
  }
  #hero .main-hero-sparkle.sparkle-2 { 
    bottom: 10%; 
    right: 15%; 
    top: auto;
    left: auto;
  }
  #hero .main-hero-sparkle.sparkle-3 { 
    bottom: 3%; 
    left: 50%; 
    transform: translateX(-50%);
    top: auto;
    right: auto; 
  }
}