/* ===================================
   ANIMATIONS - ENHANCED
   =================================== */

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(10px, -20px) rotate(2deg);
  }

  50% {
    transform: translate(20px, 10px) rotate(-1deg);
  }

  75% {
    transform: translate(-10px, 15px) rotate(1deg);
  }
}

@keyframes floatReverse {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(-15px, 15px) rotate(-2deg);
  }

  50% {
    transform: translate(-25px, -10px) rotate(1deg);
  }

  75% {
    transform: translate(10px, -20px) rotate(-1deg);
  }
}

/* @keyframes pulse removed to keep Mission & Vision static
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.15); opacity: 0.7; }
}
*/

/* @keyframes pulseGlow removed to avoid pulsing glow on icons
@keyframes pulseGlow {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3), 0 0 40px rgba(220, 38, 38, 0.1);
  }
  50% { 
    box-shadow: 0 0 40px rgba(220, 38, 38, 0.6), 0 0 80px rgba(220, 38, 38, 0.3), 0 0 120px rgba(220, 38, 38, 0.1);
  }
}
*/

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-80px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(80px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-12px) rotate(2deg);
  }

  50% {
    transform: translateY(-20px) rotate(0deg);
  }

  75% {
    transform: translateY(-12px) rotate(-2deg);
  }
}

@keyframes bounceHorizontal {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes shimmerFast {
  0% {
    background-position: -100% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
  }

  50% {
    box-shadow: 0 0 50px rgba(220, 38, 38, 0.7), 0 0 80px rgba(220, 38, 38, 0.4);
  }
}

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotateSlowly {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes textGlow {

  0%,
  100% {
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
  }

  50% {
    text-shadow: 0 0 30px rgba(220, 38, 38, 0.9), 0 0 60px rgba(220, 38, 38, 0.5);
  }
}

@keyframes borderGlow {

  0%,
  100% {
    border-color: rgba(220, 38, 38, 0.3);
  }

  50% {
    border-color: rgba(220, 38, 38, 0.9);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.7) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes wiggle {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(5deg);
  }

  75% {
    transform: rotate(-5deg);
  }
}

@keyframes typewriter {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* @keyframes morphShape removed to keep image placeholders static
@keyframes morphShape {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}
*/

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  14% {
    transform: scale(1.1);
  }

  28% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.1);
  }

  70% {
    transform: scale(1);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes neonFlicker {

  0%,
  100% {
    opacity: 1;
  }

  92% {
    opacity: 1;
  }

  93% {
    opacity: 0.3;
  }

  94% {
    opacity: 1;
  }

  96% {
    opacity: 0.5;
  }

  97% {
    opacity: 1;
  }
}

@keyframes swingIn {
  0% {
    transform: rotateX(-90deg);
    opacity: 0;
  }

  50% {
    transform: rotateX(20deg);
  }

  100% {
    transform: rotateX(0);
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-section {
  padding: 40px 0 10px;
  /* reduced overall and bottom padding to tighten spacing */
  background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 50%, var(--bg-darker) 100%);
  position: relative;
  overflow: hidden;
}

/* Background Effects */
.bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(220, 38, 38, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(251, 191, 36, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(220, 38, 38, 0.04) 0%, transparent 60%);
  pointer-events: none;
  animation: fadeIn 2s ease-out;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  pointer-events: none;
}

.glow-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -300px;
  right: -200px;
  animation: pulse 8s ease-in-out infinite, float 20s ease-in-out infinite;
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  bottom: -200px;
  left: -150px;
  animation: pulse 10s ease-in-out infinite 2s, floatReverse 25s ease-in-out infinite;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(60px);
  animation: headerReveal 1.2s ease-out forwards;
}

.header-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 50px;
  text-transform: uppercase;
  opacity: 0;
  letter-spacing: 3px;
  margin-bottom: 24px;
  transform: scale(0.85);
  animation: tagPop 0.6s ease-out 0.3s forwards;
  position: relative;
  overflow: hidden;
}

@keyframes tagPop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.about-text p {
  font-size: 12px;
  line-height: 1.45;
  color: #bdbdbd;
}


.header-tag::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmerFast 2s infinite;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--text-primary);
  opacity: 0;
  line-height: 1.15;
  margin-bottom: 24px;
  transform: translateY(30px);
  letter-spacing: -1px;
  animation: titleReveal 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;

}


@keyframes titleReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.title-highlight {
  background: linear-gradient(135deg, var(--primary-light), var(--accent), var(--primary-light));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

@keyframes decoReveal {
  to {
    opacity: 1;
  }
}


.deco-line {
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: borderGlow 2s ease-in-out infinite;
}

.deco-diamond {
  width: 14px;
  height: 14px;
  background: var(--primary);
  transform: rotate(45deg);
  animation: glow 2s ease-in-out infinite, heartbeat 2s ease-in-out infinite, rotateSlowly 8s linear infinite;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 1;
  padding: 30px 80px;
}

.about-left {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Image Card */
.image-card {
  position: relative;
  width: 100%;
}

.image-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  border: 3px solid rgba(220, 38, 38, 0.4);
}


.image-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.floating-card {
  display: none;
}

/* 
.image-frame:hover .image-badge {
  opacity: 1;
  transform: translateY(0);
} */


/* Floating Cards */
.floating-card {
  position: absolute;
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  padding: 18px 26px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.3);
  animation: bounce 5s ease-in-out infinite;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}

.floating-card:hover {
  transform: scale(1.15) translateY(-10px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.floating-card i {
  font-size: 1.5rem;
  transition: transform 0.4s ease;
}

.floating-card:hover i {
  transform: rotate(360deg) scale(1.2);
}

.floating-card span {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bg-dark);
}

/* =========================
   Premium Stats Grid
   ========================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Card */
.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 26px 18px;
  text-align: center;
  min-height: 190px;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Soft accent line */
.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg,
      transparent,
      var(--primary),
      transparent);
  opacity: 0.6;
}

/* Hover – subtle, premium */
.stat-item:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

/* Icon */
.stat-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: linear-gradient(135deg,
      var(--primary),
      var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon i {
  font-size: 1.5rem;
  color: #fff;
}

/* Number */
.stat-content h3 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-primary);
}

/* Label */
.stat-content p {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1200px) {

  /* Slightly tighten grid for medium-large screens */
  .about-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .image-frame {
    border-radius: 14px;
  }
}

@media (max-width: 991px) {

  /* Tablet: stack main columns and show stats in 2 columns */
  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-left,
  .about-right {
    width: 100%;
  }

  .image-frame img {
    width: 100%;
    height: 420px;
    object-fit: cover;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-item {
    min-height: 150px;
    padding: 20px;
  }

  .stat-content h3 {
    font-size: 1.9rem;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================
   GLOBAL MOBILE RESPONSIVE FIX
===================================== */

@media (max-width: 992px) {

  /* Remove heavy horizontal padding */
  .about-content {
    padding: 20px 20px !important;
  }

  .features-section .features-grid {
    padding: 0 20px !important;
  }

  /* Make about section full width */
  .about-section .container,
  .features-section .container,
  .mission-section .container,
  #certificate .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Fix hero text alignment */
  #hero .section-header {
    text-align: center !important;
  }

  #hero .hero-title {
    font-size: 1.8rem !important;
    line-height: 1.3;
  }

  /* Reduce stats card size */
  .stat-item {
    padding: 18px !important;
  }

  .stat-content h3 {
    font-size: 1.6rem !important;
  }

  /* Mission cards full width */
  .mission-grid {
    padding: 0 20px;
  }

  /* Feature cards stack properly */
  .features-grid {
    grid-template-columns: 1fr !important;
  }

  /* Reduce large section spacing */
  section {
    padding-top: 80px !important;
    padding-bottom: 50px !important;
  }
}

/* =======Featured Services Style======== */

.featured-services {
  background: #000000;
  padding-top: 30px;
}

.featured-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.featured-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.featured-title .title-line {
  width: 120px;
  height: 2px;
  margin: 0 auto;
  background: linear-gradient(90deg, #ff1e1e, #cc0000);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.6);
}

.featured-services .service-item {
  background: linear-gradient(180deg,
      rgba(45, 44, 44, 0.35),
      rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 26px 22px;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.featured-services .service-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  width: 3px;
  height: 56%;
  background: linear-gradient(to bottom, #ff3b3b, transparent);
}

.featured-services .service-item h4 {
  font-size: 16.5px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.featured-services .service-item h4 a {
  color: inherit;
  text-decoration: none;
}

.featured-services .service-item p {
  font-size: 13.2px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
}

.featured-services .service-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 80, 80, 0.35);
  box-shadow: 0 14px 32px rgba(255, 0, 0, 0.12);
}

/* Mobile tweak */
@media (max-width: 768px) {
  .featured-services .service-item {
    padding: 22px 20px;
    border-radius: 14px;
  }

  .featured-services .service-item h4 {
    font-size: 15.8px;
  }

  .featured-services .service-item p {
    font-size: 12.8px;
  }

  .featured-services {
    padding: 52px 0;
  }
}

.about-right {
  padding-top: 20px;
  animation: slideInRight 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-tags {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.feature-tags::-webkit-scrollbar {
  display: none;
  /* hide scrollbar (Chrome) */
}

/* Tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 12px 22px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(220, 38, 38, 0.35);

  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.4px;

  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

/* Icon */
.tag i {
  font-size: 1rem;
  color: var(--primary);
  /* red */
}

/* Hover — very subtle */
.tag:hover {
  background: rgba(220, 38, 38, 0.08);
  border-color: var(--primary);
  transform: translateY(-2px);
}


/* Text Content */
.text-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 45px;
}

.content-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 26px 28px;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: slideInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  position: relative;
  overflow: hidden;
}

.content-card:nth-child(1) {
  animation-delay: 0.4s;
}

.content-card:nth-child(2) {
  animation-delay: 0.55s;
}

.content-card:nth-child(3) {
  animation-delay: 0.7s;
}

.content-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  transform: scaleY(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom;
}

.content-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.content-card:hover {
  border-color: rgba(220, 38, 38, 0.5);
  transform: translateX(12px);
  box-shadow: -15px 0 40px rgba(220, 38, 38, 0.15);
}

.content-card:hover::before {
  transform: scaleY(1);
}

.content-card:hover::after {
  opacity: 1;
}

.content-card p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: rgb(229, 228, 228);
  position: relative;
  z-index: 1;
}


.content-card strong {
  color: var(--primary-light);
  font-weight: 700;
}

.content-card.highlight {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.18), rgba(251, 191, 36, 0.12));
  border-color: rgba(220, 38, 38, 0.5);
  display: flex;
  gap: 24px;
  align-items: flex-start;
  animation: glow 5s ease-in-out infinite, slideInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s both;
}

.content-card.highlight::before {
  display: none;
}

.highlight-icon {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: heartbeat 3s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.highlight-icon i {
  font-size: 1.6rem;
  color: var(--bg-dark);
}

@keyframes headerReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   Premium Features Section
   ========================= */
.features-section {
  padding-bottom: 15px;
}

.features-section .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
  align-items: stretch;
  justify-items: start;
  padding: 0px 130px;
  margin: 0 auto;
  justify-items: start;
}

.features-section .cta-group {
  justify-content: center;
  margin-top: 30px;
}

.feature-box {
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 30px;

  display: flex;
  align-items: center;
  gap: 22px;

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Very subtle hover */
.feature-box:hover {
  transform: translateY(-4px);
  border-color: rgba(220, 38, 38, 0.6);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
}

/* Icon */
.feature-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg,
      var(--primary),
      var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon-wrap i {
  font-size: 1.7rem;
  color: #fff;
}


/* Text */
.feature-info h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.feature-info p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 991px) {

  /* Tablet: make feature tags wrap and tighten spacing */
  .feature-tags {
    flex-wrap: wrap;
    gap: 10px;
    overflow: visible;
  }

  .tag {
    padding: 10px 14px;
    font-size: 0.78rem;
  }

  .about-right {
    padding-top: 10px;
  }

  .content-card {
    padding: 18px 18px;
  }

  .content-card p {
    font-size: 14px;
  }
}

@media (max-width: 768px) {

  /* Mobile: single column features and compact cards */
  .features-grid {
    grid-template-columns: 1fr;
  }

  .content-card {
    padding: 16px;
    border-radius: 12px;
  }

  /* Disable large hover transforms on small screens to avoid layout shifts */
  .content-card:hover {
    transform: none;
    box-shadow: none;
  }

  .text-content {
    gap: 18px;
  }

  /* Make CTAs smaller on mobile */
  .btn-primary,
  .btn-secondary {
    padding: 14px 22px;
    font-size: 0.95rem;
  }

  /* Improve text wrapping for long words/URLs */
  .content-card p {
    word-wrap: break-word;
    hyphens: auto;
  }
}

/* CTA Buttons */
.cta-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  animation: slideInUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s both;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 40px;
  border-radius: 16px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 10px 35px rgba(220, 38, 38, 0.45);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary));
  border-radius: 19px;
  z-index: -1;
  opacity: 0;
  animation: rotateGlow 3s linear infinite;
  transition: opacity 0.4s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 50px rgba(220, 38, 38, 0.55);
}

.btn-primary i {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary:hover i {
  transform: translateX(10px);
  animation: bounceHorizontal 0.6s ease infinite;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(220, 38, 38, 0.25);
}

.btn-secondary:hover::before {
  opacity: 1;
}

.btn-secondary i {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-secondary:hover i {
  transform: rotate(20deg) scale(1.2);
}

/* ===================================
   MISSION & VISION SECTION
   =================================== */
.mission-section {
  background: #000000;
}

.section-title {
  text-align: center;
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  max-width: 1250px;
  margin: auto;
}

.mission-card {
  background: #0f0f0f;
  padding: 45px;
  border-radius: 20px;
  text-align: left;
  transition: 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  padding: 22px;
  border-radius: 16px;

}

.mission-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 0, 0, 0.6);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.8),
    0 0 25px rgba(153, 33, 33, 0.13);
}

.mission-icon-box {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #ff1e1e, #cc0000);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  margin-bottom: 25px;
  box-shadow: 0 10px 25px rgba(255, 0, 0, 0.3);
}

.mission-card h3 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 18px;
  font-weight: 600;
}

.mission-card p {
  color: #bdbdbd;
  font-size: 15px;
  line-height: 1.8;
}

@media (max-width: 992px) {
  .mission-section .mission-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 576px) {
  .mission-section {
    padding: 40px 0;
  }

  .mission-section .mission-grid {
    gap: 16px;
  }

  .mission-section .mission-card {
    padding: 16px;
  }


}


/* ================================
   Program Certification Section
================================ */

#certificate {
  background: #000000;
  padding: 0 0 20px;
}

/* ===================================
   PROGRAM CERTIFICATION TITLE
   =================================== */

.certificate-title {
  text-align: center;
  margin-bottom: 50px;
}

.certificate-title h2 {
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
  margin-bottom: 1opx;
}

.certificate-title .title-line {
  width: 150px;
  height: 2px;
  margin: 0 auto 18px;
  background: linear-gradient(90deg, #ff1e1e, #cc0000);
  border-radius: 2px;
}

.certificate-title p {
  max-width: 750px;
  margin: 0 auto;
  font-size: 18px;
  color: #dad8d8bf;
  line-height: 1.7;
}

#certificate .certificate-card {
  background: none;
  padding: 16px;
  width: 100%;
  transition: all 0.35s ease;
}

#certificate .certificate-img {
  overflow: hidden;
  border-radius: 14px;
}

#certificate .certificate-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

#certificate .certificate-card:hover {
  transform: translateY(-6px);
}

#certificate .certificate-card:hover img {
  transform: scale(1.04);
}

@media (max-width: 768px) {
  #certificate {
    padding: 60px 0;
  }

  #certificate .certificate-card {
    padding: 14px;
    border-radius: 16px;
  }

  #certificate .section-title p {
    font-size: 13.5px;
  }
}


/* FIX HERO MOBILE LAYOUT */
@media (max-width: 992px) {
  #hero.section {
    min-height: 80vh !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px !important;
  }

  #hero .hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Optional spacing tweak for text in centered layout */
  #hero .section-header {
    margin-top: 0;
  }
}


/* Responsive: stack mission cards and adjust sizes on smaller screens */

/* ==== Overrides: remove thin decorative line and background glow between sections ====
   - hide bg pattern/glow in about-section so a narrow gradient band doesn't appear
   - remove the small underline decoration for the Mission section only
   - tighten top spacing for mission to reduce the gap
*/

.about-section .bg-pattern,
.about-section .bg-glow {
  display: none;
}


/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
  .about-content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: start;
  }

  .about-left {
    max-width: 550px;
    margin: 0 auto;
  }

  .mission-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {

  .about-section,
  .mission-section {
    padding: 70px 0;
  }

  /* Stack the two-column about layout into a single column for narrow screens */
  .about-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-left,
  .about-right {
    max-width: 100%;
    margin: 0;
  }

  /* Make the hero and main images fluid and centered */
  .hero img,
  .image-frame img,
  #certificate .member-img img {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    object-fit: cover;
  }

  .section-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .content-card p {
    font-size: 13px;
    line-height: 1.5;
  }

  .stat-item {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .stat-icon {
    margin: 0;
  }

  .text-content p {
    font-size: 14px;
    line-height: 1.6;
  }

  .text-content {
    font-size: 14px;
    /* overall smaller text */
  }

  .about-text p {
    font-size: 13px;
    line-height: 1.5;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-tags {
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .feature-tags .tag {
    font-size: 13px;
    /* smaller text */
    padding: 8px 12px;
    /* compact pill */
    white-space: nowrap;
    /* prevents breaking */
  }

  .floating-card {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .card-1 {
    top: -10px;
    right: -10px;
  }

  .card-2 {
    bottom: 40px;
    left: -10px;
  }

  .cta-group {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    justify-content: center;
    width: 100%;
  }

  .content-card.highlight {
    flex-direction: column;
    text-align: center;
  }

  .mission-card {
    padding: 20px;
  }

  .card-header {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .image-frame img {
    min-height: 320px;
  }

  .feature-box {
    padding: 22px;
  }

  .feature-icon-wrap {
    width: 56px;
    height: 56px;
  }

  .content-card {
    padding: 24px;
  }
}

/* ===================================
   ACCESSIBILITY & REDUCED MOTION
   =================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}



.navPanel .link span {
  margin-top: -15px;
  display: block;
  font-size: 13px;
  color: #fff;
}