* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-red: #e63946;
  --primary-blue: #1d3557;
  --white: #ffffff;
  --bg-dark: #0a0a0c;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--white);
  background: var(--bg-dark);
  overflow-x: hidden;
}

/* ══════════════════════════════════════════════════════════════════
       NAVBAR - FULLY RESPONSIVE
    ══════════════════════════════════════════════════════════════════ */

.navbar {
  position: fixed;
  top: 10px;
  left: 5%;
  right: 5%;
  z-index: 1000;
  padding: 0.8rem 2.5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 100px;
  /* opacity: 0; */
  /* visibility: hidden; */
  /* transform: translateY(-20px); */
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(29, 53, 87, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar.scrolled {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  background: rgba(29, 53, 87, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo-container {
  display: flex !important;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  z-index: 1100;
}

.nav-logo {
  height: 45px !important;
  width: 135px !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 135px !important;
  min-height: 45px !important;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.navbar.scrolled .nav-logo {
  height: 40px !important;
  width: 120px !important;
}

.logo-container:hover .nav-logo {
  transform: scale(1.05);
  filter: contrast(1.1) saturate(1.1);
}

.logo-text {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a:not(.nav-cta) {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  transition: 0.3s;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: 0.3s;
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, #ff0000 0%, #b30000 100%);
  color: white !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  margin-left: 10px;
}

.nav-cta:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.6);
  background: #ffffff;
  color: var(--primary-red) !important;
  border: 2px solid var(--primary-red);
}



/* Brochure Button - Secondary Action (Red Outline) */
.nav-brochure {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 24px;
  border: 2px solid var(--primary-red);
  border-radius: 50px;
  background: transparent;
  color: var(--white) !important;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  -webkit-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
  white-space: nowrap;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

/* Slide Fill Effect on Hover */
.nav-brochure::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--primary-red);
  z-index: -1;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-brochure:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.nav-brochure:hover::before {
  width: 100%;
}

.nav-brochure i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.nav-brochure:hover i {
  animation: downloadBounce 1s infinite;
}

@keyframes downloadBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(3px);
  }
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1200;
  padding: 0;
}

.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: var(--white);
  border-radius: 10px;
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ══════════════════════════════════════════════════════════════════
       HERO SECTION - RESPONSIVE
    ══════════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 100px;
}

.bg-image {
  position: absolute;
  inset: 0;
  background-image: url('../images/Fantastic_Epic_Wallpapers_ptkmb3.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  transform: scale(1.1);
  transition: all 3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bg-image.loaded {
  opacity: 1;
  transform: scale(1);
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(29, 53, 87, 0.8) 0%, rgba(10, 10, 12, 0.9) 100%);
  z-index: 1;
}

.content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.left-content {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease-out;
  position: relative;
}

.left-content.show {
  opacity: 1;
  transform: translateY(0);
}

.cert-tag {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--primary-red);
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.left-content h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  color: var(--white);
}

.left-content p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.btn-group {
  display: flex;
  gap: 1.5rem;
  opacity: 0;
  transition: all 1s ease-out 0.5s;
  flex-wrap: wrap;
}

.btn-group.show {
  opacity: 1;
}

.btn-primary {
  padding: 18px 45px;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  background: var(--primary-red);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
}

.btn-primary:hover {
  background: #c12a35;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

.right-image {
  opacity: 0;
  transform: translateX(50px);
  transition: all 1.2s cubic-bezier(0.22, 0.9, 0.3, 1) 0.4s;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.right-image.show {
  opacity: 1;
  transform: translateX(0);
}

.right-image img {
  width: 140%;
  max-width: none;
  height: auto;
  display: block;
  position: relative;
  left: 15%;
  filter: drop-shadow(-20px 20px 50px rgba(0, 0, 0, 0.5));
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid #fff;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.wheel {
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: scroll-wheel 1.6s infinite ease-out;
}

.arrow span {
  display: block;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
  margin: -5px;
  animation: arrow-bounce 1.6s infinite;
}

.arrow span:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes scroll-wheel {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(15px);
  }
}

@keyframes arrow-bounce {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-5px, -5px);
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: rotate(45deg) translate(5px, 5px);
  }
}

/* Gaming Text Animation */
.gaming-char {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(50px) skewY(10deg);
  will-change: transform, opacity, filter;
}

.reveal-active .gaming-char {
  animation: text-reveal-anim 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
  animation-delay: calc(0.015s * var(--i));
}

@keyframes text-reveal-anim {
  0% {
    opacity: 0;
    filter: blur(20px);
    transform: translateY(100%) rotateX(-90deg);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) rotateX(0deg);
  }
}

.left-content h1 .highlight {
  color: var(--primary-red);
}

/* ══════════════════════════════════════════════════════════════════
   PROFESSIONAL HERO SECTION ENHANCEMENTS
══════════════════════════════════════════════════════════════════ */

/* Enhanced Background Image with Subtle Parallax */
.hero .bg-image {
  animation: subtleParallax 30s ease-in-out infinite alternate;
  filter: brightness(0.7) saturate(1.1);
}

@keyframes subtleParallax {
  0% {
    transform: scale(1) translateY(0);
  }

  100% {
    transform: scale(1.03) translateY(-5px);
  }
}

/* Refined Overlay with Depth */
.hero .overlay {
  background: linear-gradient(135deg,
      rgba(29, 53, 87, 0.95) 0%,
      rgba(10, 10, 12, 0.85) 50%,
      rgba(29, 53, 87, 0.9) 100%);
  z-index: 1;
}

/* Subtle Grid Pattern Overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(230, 57, 70, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 57, 70, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
}

/* Professional Floating Particles */
.particles-container {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.6;
}

.particle {
  position: absolute;
  background: rgba(230, 57, 70, 0.5);
  border-radius: 50%;
  animation: professionalFloat 20s infinite ease-in-out;
  will-change: transform;
  /* Filter removed for performance */
}

.particle:nth-child(1) {
  width: 8px;
  height: 8px;
  left: 15%;
  top: 25%;
  animation-delay: 0s;
  animation-duration: 18s;
}

.particle:nth-child(2) {
  width: 6px;
  height: 6px;
  left: 75%;
  top: 55%;
  animation-delay: 3s;
  animation-duration: 22s;
}

.particle:nth-child(3) {
  width: 10px;
  height: 10px;
  left: 35%;
  top: 75%;
  animation-delay: 6s;
  animation-duration: 25s;
}

.particle:nth-child(4) {
  width: 7px;
  height: 7px;
  left: 65%;
  top: 35%;
  animation-delay: 2s;
  animation-duration: 20s;
}

.particle:nth-child(5) {
  width: 9px;
  height: 9px;
  left: 85%;
  top: 20%;
  animation-delay: 5s;
  animation-duration: 24s;
}

.particle:nth-child(6) {
  width: 5px;
  height: 5px;
  left: 20%;
  top: 65%;
  animation-delay: 8s;
  animation-duration: 19s;
}

.particle:nth-child(7) {
  width: 8px;
  height: 8px;
  left: 55%;
  top: 85%;
  animation-delay: 4s;
  animation-duration: 23s;
}

.particle:nth-child(8) {
  width: 6px;
  height: 6px;
  left: 45%;
  top: 15%;
  animation-delay: 7s;
  animation-duration: 21s;
}

@keyframes professionalFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }

  25% {
    transform: translate(30px, -50px) scale(1.3);
    opacity: 0.7;
  }

  50% {
    transform: translate(-20px, -30px) scale(0.9);
    opacity: 0.5;
  }

  75% {
    transform: translate(40px, -60px) scale(1.1);
    opacity: 0.6;
  }
}

/* Professional ISO Tag - Matching Brand Colors */
.glass-tag {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.15) 0%, rgba(29, 53, 87, 0.2) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(230, 57, 70, 0.3);
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow:
    0 4px 20px rgba(230, 57, 70, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.glass-tag:hover::before {
  left: 100%;
}

.glass-tag:hover {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.25) 0%, rgba(29, 53, 87, 0.3) 100%);
  border-color: rgba(230, 57, 70, 0.5);
  box-shadow:
    0 8px 30px rgba(230, 57, 70, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Professional Hero Title Enhancement */
.hero-title {
  position: relative;
  letter-spacing: -2px;
  text-shadow:
    2px 2px 0 rgba(29, 53, 87, 0.8),
    4px 4px 20px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(230, 57, 70, 0.2);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
}

/* Subtle Character Hover - Professional */
.hero-title.reveal-active .gaming-char {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-title.reveal-active .gaming-char:hover {
  color: #fff;
  transform: translateY(-3px);
  text-shadow:
    0 0 20px rgba(230, 57, 70, 0.8),
    0 0 40px rgba(230, 57, 70, 0.6),
    2px 2px 0 rgba(29, 53, 87, 0.8);
  filter: drop-shadow(0 4px 12px rgba(230, 57, 70, 0.6));
}

/* Professional Highlight for "INSTITUTE" - Brand Colors */
.hero-title .highlight {
  position: relative;
  display: inline-block;
  padding: 5px 20px;
  margin-left: 10px;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.25) 0%, rgba(29, 53, 87, 0.2) 100%);
  border-left: 4px solid rgba(230, 57, 70, 0.8);
  border-right: 4px solid rgba(29, 53, 87, 0.6);
  box-shadow:
    0 8px 32px rgba(230, 57, 70, 0.2),
    inset 0 0 30px rgba(230, 57, 70, 0.1);
  animation: professionalGlow 4s ease-in-out infinite;
}

.hero-title .highlight .gaming-char {
  color: var(--primary-red) !important;
}

@keyframes professionalGlow {

  0%,
  100% {
    box-shadow:
      0 8px 32px rgba(230, 57, 70, 0.2),
      inset 0 0 30px rgba(230, 57, 70, 0.1);
    border-left-color: rgba(230, 57, 70, 0.8);
  }

  50% {
    box-shadow:
      0 12px 40px rgba(230, 57, 70, 0.4),
      inset 0 0 40px rgba(230, 57, 70, 0.2);
    border-left-color: rgba(230, 57, 70, 1);
  }
}

/* Hero Description — Glassmorphic Card */
p.hero-desc-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-left: 4px solid #e63946;
  padding: 24px 30px;
  border-radius: 4px 12px 12px 4px;
  text-align: justify;
  text-justify: inter-word;
  color: #cbd5e1;
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 2.5rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
}

p.hero-desc-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: #ff4d5a;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}

/* Legacy fallback — keep .hero-description for any pages still using it */
.hero-description {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 24px 28px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid rgba(230, 57, 70, 0.6);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
}

.hero-description:hover {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: rgba(230, 57, 70, 0.9);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}

/* Professional Floating Animation for Hero Image */
.floating-image {
  animation: professionalFloating 8s ease-in-out infinite;
  filter: drop-shadow(0 20px 60px rgba(230, 57, 70, 0.3)) drop-shadow(0 0 40px rgba(29, 53, 87, 0.4));
  transition: all 0.5s ease;
}

/* .floating-image:hover {
  filter: drop-shadow(0 25px 70px rgba(230, 57, 70, 0.5))
          drop-shadow(0 0 50px rgba(29, 53, 87, 0.6));
  transform: scale(1.02);
} */

@keyframes professionalFloating {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-15px) rotate(1deg);
  }

  50% {
    transform: translateY(0) rotate(0deg);
  }

  75% {
    transform: translateY(-10px) rotate(-1deg);
  }
}

.image-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.2) 0%, transparent 70%);
  z-index: -1;
  opacity: 0.5;
}

@keyframes refinedGlowRotate {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 0.7;
  }

  50% {
    transform: rotate(180deg) scale(1.05);
    opacity: 0.9;
  }

  100% {
    transform: rotate(360deg) scale(1);
    opacity: 0.7;
  }
}

.right-image {
  position: relative;
  z-index: 5;
}

/* Professional Enhanced Button */
.btn-primary {
  position: relative;
  background: linear-gradient(135deg, #e63946 0%, #b30000 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(230, 57, 70, 0.8);
  box-shadow:
    0 8px 24px rgba(230, 57, 70, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d3557 0%, #0f1f33 100%);
  border-color: #1d3557;
  box-shadow:
    0 12px 32px rgba(29, 53, 87, 0.5),
    0 6px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-3px) scale(1.02);
  color: white;
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow:
    0 6px 20px rgba(29, 53, 87, 0.4),
    0 3px 10px rgba(0, 0, 0, 0.3);
}

/* Accent Line Decoration */
.left-content::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(230, 57, 70, 0) 0%,
      rgba(230, 57, 70, 0.8) 20%,
      rgba(29, 53, 87, 0.8) 50%,
      rgba(230, 57, 70, 0.8) 80%,
      rgba(230, 57, 70, 0) 100%);
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.5);
  animation: accentPulse 3s ease-in-out infinite;
}

@keyframes accentPulse {

  0%,
  100% {
    opacity: 0.6;
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.5);
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 30px rgba(230, 57, 70, 0.8);
  }
}

/* Professional Scroll Indicator Enhancement */
.scroll-indicator {
  opacity: 0.8;
  transition: all 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
  transform: translateX(-50%) scale(1.1);
}

.scroll-indicator .mouse {
  border-color: rgba(230, 57, 70, 0.8);
  box-shadow: 0 0 15px rgba(230, 57, 70, 0.3);
}

.scroll-indicator .wheel {
  background: linear-gradient(to bottom, #e63946, #1d3557);
}

.scroll-indicator .arrow span {
  border-color: rgba(230, 57, 70, 0.8);
  box-shadow: 0 0 10px rgba(230, 57, 70, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .left-content::before {
    display: none;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .right-image {
    justify-content: center;
  }

  .right-image img {
    width: 100%;
    left: 0;
  }
}

@media (max-width: 768px) {
  .glass-tag {
    font-size: 0.7rem;
    padding: 10px 18px;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem) !important;
    letter-spacing: -1px;
  }

  .hero-title .highlight {
    padding: 3px 12px;
    margin-left: 5px;
  }

  .particles-container {
    opacity: 0.3;
  }

  .particle {
    width: 4px !important;
    height: 4px !important;
  }

  .image-glow {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
  }

  .hero-description {
    padding: 20px;
  }

  .hero::after {
    background-size: 30px 30px;
    opacity: 0.3;
  }
}

@media (max-width: 480px) {
  .particles-container {
    display: none;
  }

  .hero::after {
    display: none;
  }
}

/* @keyframes scroll-wheel {
      0% {
        opacity: 1;
        transform: translateY(0);
      }

      100% {
        opacity: 0;
        transform: translateY(15px);
      }
    }

    @keyframes arrow-bounce {
      0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
      }

      50% {
        opacity: 1;
      }

      100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
      }
    } */

/* ══════════════════════════════════════════════════════════════════
       ABOUT SECTION - RESPONSIVE
    ══════════════════════════════════════════════════════════════════ */

.about-section {
  background-color: var(--bg-dark);
  padding: clamp(60px, 10vw, 100px) 5%;
  overflow: hidden;
  perspective: 1500px;
}

.about-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
  position: relative;
  z-index: 2;
}

.about-img {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: transform;
}

.about-img::before {
  content: '';
  position: absolute;
  width: 130%;
  height: 130%;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.45) 0%, rgba(29, 53, 87, 0) 70%);
  opacity: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.8s ease-out;
  z-index: -1;
  pointer-events: none;
}

.about-img.active::before {
  opacity: 1;
}

.about-img img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
  display: block;
}

.flip-reveal {
  opacity: 0;
  transform: scale(0.85) translateY(60px) rotateX(-5deg);
  transition: opacity 0.6s ease-out;
  will-change: transform, opacity;
}

.flip-reveal.active {
  opacity: 1;
}

.about-text h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 1.1;
  color: var(--white);
}

.about-text h2 span {
  color: var(--primary-red);
}

.about-text>p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.about-text>p::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary-red);
  margin-top: 8px;
  border-radius: 2px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 10px;
}

.about-card {
  background: rgba(29, 53, 87, 0.25);
  padding: 25px;
  border-left: 4px solid var(--primary-red);
  border-radius: 8px;
  transition: background 0.3s ease;
}

.about-card:hover {
  background: rgba(29, 53, 87, 0.4);
}

.about-card h3 {
  font-family: 'Oswald', sans-serif;
  color: var(--primary-red);
  margin-bottom: 10px;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.about-card p {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════════
       COURSE HEADER - RESPONSIVE
    ══════════════════════════════════════════════════════════════════ */

.course-section-container {
  background-color: var(--bg-dark);
}

.course-header-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(60px, 10vw, 100px) clamp(20px, 5vw, 60px);
}

@media (max-width: 768px) {
  .course-header-wrapper {
    padding-top: 110px;
    /* Clear fixed navbar */
    padding-bottom: 40px;
  }
}

.course-header {
  text-align: left;
  margin-bottom: clamp(-80px, -10vw, -145px);
  border-left: 5px solid #e63946;
  padding-left: 20px;
  padding-top: 0px;
  position: relative;
  transition: all 0.4s ease;
}

@media (max-width: 768px) {
  .course-header {
    margin-bottom: 30px;
    border-left-width: 4px;
    padding-left: 15px;
  }
}

.course-header h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0;
  line-height: 1;
}

.course-header h2 span {
  color: #e63946;
}

.section-tagline {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(0.85rem, 2vw, 1.2rem);
  font-weight: 400;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: clamp(2px, 0.5vw, 4px);
  margin-top: 10px;
  display: block;
}

/* ══════════════════════════════════════════════════════════════════
       HORIZONTAL SCROLL COURSES - RESPONSIVE
    ══════════════════════════════════════════════════════════════════ */

.horizontal-scroll-section {
  background: #000;
}

.sticky-wrapper {
  height: 600vh;
  position: relative;
}

.sticky-content {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.course-horizontal-track {
  display: flex;
  height: 100%;
  width: max-content;
  will-change: transform;
}

.course-full-card {
  width: 100vw;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.5);
  padding: 0 clamp(20px, 8vw, 8%);
}

.course-card-overlay {
  z-index: 2;
  max-width: 600px;
}

.course-main-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 5vw, 4.5rem);
  color: #fff;
  text-transform: uppercase;
  margin: 10px 0;
  line-height: 1.1;
}

.course-tag {
  background: var(--primary-red, #ff0000);
  padding: 4px 12px;
  font-weight: 800;
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  display: inline-block;
}

.course-card-overlay p {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.6;
  margin: 15px 0;
}

.enroll-btn1,
.enroll-btn2,
.enroll-btn3 {
  display: inline-block;
  background: #e63946;
  color: #fff;
  padding: clamp(10px, 2vw, 12px) clamp(25px, 4vw, 35px);
  margin-top: 25px;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  transition: all 0.3s ease;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.enroll-btn1:hover,
.enroll-btn2:hover,
.enroll-btn3:hover {
  background: #fff;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

.explore-btn {
  display: inline-block;
  background: transparent;
  color: #fff;
  padding: clamp(9px, 2vw, 11px) clamp(20px, 3vw, 30px);
  margin-left: 20px;
  margin-top: 25px;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  border: 2px solid #e63946;
  transition: all 0.4s ease;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.explore-btn.neon-touch:hover {
  background: #e63946;
  color: #fff;
  box-shadow: 0 0 20px #e63946, 0 0 40px rgba(230, 57, 70, 0.6);
  transform: scale(1.05);
}

.scroll-progress-container {
  position: absolute;
  bottom: 50px;
  left: 8%;
  right: 8%;
  z-index: 10;
}

.progress-base-line {
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  width: 100%;
  position: relative;
}

.progress-active-segment {
  position: absolute;
  height: 4px;
  top: -1px;
  background: var(--primary-red, #ff0000);
  width: 0%;
  transition: width 0.1s ease-out;
}

/* ══════════════════════════════════════════════════════════════════
       TESTIMONIALS - RESPONSIVE
    ══════════════════════════════════════════════════════════════════ */

.testimonial-header-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(60px, 10vw, 100px) clamp(20px, 5vw, 80px);
}

.testimonial-header {
  text-align: left;
  margin-bottom: clamp(-80px, -10vw, -145px);
  border-left: 5px solid #e63946;
  padding-left: 20px;
  padding-top: 0px;
}

.testimonial-header h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0;
  line-height: 1;
}

.testimonial-header h2 span {
  color: #e63946;
}

.testimonial-header .section-tagline {
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 10px;
  margin-bottom: 0rem;
  position: relative;
  display: inline-block;
}

.testimonial-header .section-tagline::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: #e63946;
  margin-top: 8px;
  border-radius: 2px;
}

.testimonial-accordion {
  display: flex;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  background: #1f030366;
  opacity: 10;
  overflow: hidden;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url('../images/service-bg_huoke5.webp');
  margin-top: clamp(80px, 15vw, 120px);
}

.testimonial-panel {
  position: relative;
  flex: 1;
  background-size: cover;
  background-position: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: flex 0.8s cubic-bezier(0.25, 1, 0.3, 1);
  cursor: pointer;
}

.testimonial-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.9) 90%);
  z-index: 1;
}

.testimonial-panel:hover,
.testimonial-panel.active {
  flex: 3;
}

.testimonial-panel:hover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(230, 57, 70, 0.2);
  z-index: 2;
}

.panel-content {
  position: relative;
  z-index: 3;
  height: 100%;
  padding: clamp(20px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-panel:not(:hover) .panel-name {
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  margin: 0 auto;
}

.review-no {
  color: var(--primary-red);
  font-family: 'Oswald', sans-serif;
  font-weight: bold;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.panel-name {
  color: white;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.1;
  margin-top: 20px;
}

.panel-footer {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.5s ease;
}

.testimonial-panel:hover .panel-footer,
.testimonial-panel.active .panel-footer {
  opacity: 1;
  transform: translateY(0);
}

.rating {
  color: #ffcc00;
  margin-bottom: 10px;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.review-text {
  color: #ddd;
  font-style: italic;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  max-width: 350px;
  margin-bottom: 15px;
  line-height: 1.5;
}

.designation {
  color: var(--primary-red);
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: clamp(0.7rem, 1.2vw, 0.8rem);
  letter-spacing: 1px;
}

/* ══════════════════════════════════════════════════════════════════
       WHAT MAKES US UNIQUE SECTION
    ══════════════════════════════════════════════════════════════════ */

.unique-section {
  padding: 100px 5%;
  background: #0a0a0c;
  position: relative;
  overflow: hidden;
}

.unique-container {
  max-width: 1400px;
  margin: 0 auto;
}

.unique-header {
  text-align: center;
  margin-bottom: 60px;
}

.unique-header h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 15px;
}

.unique-header h2 span {
  color: var(--primary-red);
}

.unique-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
}

.unique-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.unique-item:hover {
  transform: translateY(-10px);
  background: rgba(230, 57, 70, 0.05);
  border-color: var(--primary-red);
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.1);
}

.unique-icon-box {
  width: 80px;
  height: 80px;
  background: rgba(230, 57, 70, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: 0.4s;
  border: 1px solid rgba(230, 57, 70, 0.2);
}

.unique-item:hover .unique-icon-box {
  background: var(--primary-red);
  transform: rotateY(180deg);
}

.unique-icon-box i {
  font-size: 2rem;
  color: var(--primary-red);
}

.unique-item:hover .unique-icon-box i {
  color: white;
}

.unique-item h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.4;
}

/* RESPONSIVE UNIQUE SECTION */
@media (max-width: 1200px) {
  .unique-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .unique-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .unique-section {
    padding: 60px 5%;
  }

  .unique-item {
    padding: 40px 20px;
  }
}

/* ══════════════════════════════════════════════════════════════════
       PORTFOLIO SECTION - RESPONSIVE
    ══════════════════════════════════════════════════════════════════ */

.portfolio-section {
  background-color: #0b0d11;
  padding: clamp(60px, 10vw, 120px) 5%;
  overflow: hidden;
  position: relative;
  perspective: 1500px;
}

.portfolio-section::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background:
    radial-gradient(circle at center, rgba(230, 57, 70, 0.15) 0%, rgba(27, 62, 112, 0.05) 50%, transparent 80%),
    linear-gradient(rgba(230, 57, 70, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 57, 70, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  z-index: 1;
  pointer-events: none;
}

.portfolio-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 40px);
  position: relative;
  z-index: 2;
}

.portfolio-header {
  text-align: left;
  margin-bottom: clamp(50px, 8vw, 80px);
  border-left: 5px solid #e63946;
  padding-left: 20px;
  padding-top: 0px;
}

.portfolio-header .section-tagline {
  margin-top: 5px;
}

.tag-line {
  color: #e63946;
  font-weight: 600;
  letter-spacing: 3px;
  display: block;
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  text-transform: uppercase;
  font-family: 'Oswald', sans-serif;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
}

.portfolio-container {
  display: grid;
  gap: clamp(25px, 3vw, 40px);
  padding: clamp(40px, 6vw, 60px) clamp(20px, 5vw, 40px) clamp(100px, 15vw, 160px);
  max-width: 1400px;
  margin: 0 auto;
  justify-items: center;
  border: 2px solid rgba(230, 57, 70, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-container.reveal-active {
  border-color: var(--primary-red);
  box-shadow: 0 0 30px rgba(230, 57, 70, 0.4), inset 0 0 20px rgba(230, 57, 70, 0.1);
}

/* Large Desktop: 3 cards in one row */
@media (min-width: 1200px) {
  .portfolio-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
  }
}

/* Desktop: 3 cards in one row */
@media (min-width: 1024px) and (max-width: 1199px) {
  .portfolio-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* Tablet: 2 cards in a row, third below centered */
@media (min-width: 768px) and (max-width: 1023px) {
  .portfolio-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
  }

  .portfolio-container .card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 350px;
    width: 100%;
  }
}

/* Small Tablet: 2 cards in a row, third below centered */
@media (min-width: 640px) and (max-width: 767px) {
  .portfolio-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .portfolio-container .card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 320px;
    width: 100%;
  }
}

/* Mobile: All cards stacked vertically */
@media (max-width: 639px) {
  .portfolio-container {
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 400px;
    margin: 0 auto;
  }
}

.card {
  position: relative;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  will-change: transform;
}

/* Active state for cards (when hovered or clicked) */
/* Active state handled by :hover and specific media queries below */

.card.card-active .slide.slide2,
.card:hover .slide.slide2 {
  opacity: 1;
  /* Hover translations will be added by media queries below */
}

.card.card-active .slide1 .icon img,
.card:hover .slide1 .icon img {
  transform: scale(1.05);
  border-color: #e63946;
  box-shadow: 0 15px 35px rgba(230, 57, 70, 0.4);
}

/* Large Desktop */
@media (min-width: 1200px) {
  .card {
    height: 300px;
  }

  .card.card-active .slide.slide1,
  .card:hover .slide.slide1 {
    transform: translateY(-75px);
  }

  .card.card-active .slide.slide2,
  .card:hover .slide.slide2 {
    transform: translateY(75px);
  }
}

/* Desktop */
@media (min-width: 1024px) and (max-width: 1199px) {
  .card {
    height: 290px;
  }

  .card.card-active .slide.slide1,
  .card:hover .slide.slide1 {
    transform: translateY(-72px);
  }

  .card.card-active .slide.slide2,
  .card:hover .slide.slide2 {
    transform: translateY(72px);
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .card {
    height: 285px;
  }

  .card.card-active .slide.slide1,
  .card:hover .slide.slide1 {
    transform: translateY(-70px);
  }

  .card.card-active .slide.slide2,
  .card:hover .slide.slide2 {
    transform: translateY(70px);
  }
}

/* Small Tablet */
@media (min-width: 640px) and (max-width: 767px) {
  .card {
    height: 275px;
  }

  .card.card-active .slide.slide1,
  .card:hover .slide.slide1 {
    transform: translateY(-68px);
  }

  .card.card-active .slide.slide2,
  .card:hover .slide.slide2 {
    transform: translateY(68px);
  }
}

/* Mobile */
@media (max-width: 639px) {
  .card {
    height: 260px;
  }

  .card.card-active .slide.slide1,
  .card:hover .slide.slide1 {
    transform: translateY(-65px);
  }

  .card.card-active .slide.slide2,
  .card:hover .slide.slide2 {
    transform: translateY(65px);
  }
}

.card .slide.slide1 {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 15px;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card:hover .slide.slide1 {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

/* Large Desktop */
@media (min-width: 1200px) {
  .card:hover .slide.slide1 {
    transform: translateY(-75px);
  }
}

/* Desktop */
@media (min-width: 1024px) and (max-width: 1199px) {
  .card:hover .slide.slide1 {
    transform: translateY(-72px);
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .card:hover .slide.slide1 {
    transform: translateY(-70px);
  }
}

/* Small Tablet */
@media (min-width: 640px) and (max-width: 767px) {
  .card:hover .slide.slide1 {
    transform: translateY(-68px);
  }
}

/* Mobile */
@media (max-width: 639px) {
  .card:hover .slide.slide1 {
    transform: translateY(-65px);
  }
}

.card .slide1 .icon img {
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.05);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* Large Desktop */
@media (min-width: 1200px) {
  .card .slide1 .icon img {
    width: 160px;
    height: 160px;
  }
}

/* Desktop */
@media (min-width: 1024px) and (max-width: 1199px) {
  .card .slide1 .icon img {
    width: 155px;
    height: 155px;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .card .slide1 .icon img {
    width: 150px;
    height: 150px;
  }
}

/* Small Tablet */
@media (min-width: 640px) and (max-width: 767px) {
  .card .slide1 .icon img {
    width: 140px;
    height: 140px;
  }
}

/* Mobile */
@media (max-width: 639px) {
  .card .slide1 .icon img {
    width: 130px;
    height: 130px;
  }
}

.card:hover .slide1 .icon img {
  transform: scale(1.1) rotate(5deg);
  border-color: #e63946;
  box-shadow: 0 12px 40px rgba(230, 57, 70, 0.5);
}

.card .slide.slide2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 18px;
  border-radius: 20px;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@media (max-width: 767px) {
  .card .slide.slide2 {
    padding: 18px 15px;
  }
}

.card:hover .slide.slide2 {
  opacity: 1;
}

/* Large Desktop */
@media (min-width: 1200px) {
  .card:hover .slide.slide2 {
    transform: translateY(75px);
  }
}

/* Desktop */
@media (min-width: 1024px) and (max-width: 1199px) {
  .card:hover .slide.slide2 {
    transform: translateY(72px);
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .card:hover .slide.slide2 {
    transform: translateY(70px);
  }
}

/* Small Tablet */
@media (min-width: 640px) and (max-width: 767px) {
  .card:hover .slide.slide2 {
    transform: translateY(68px);
  }
}

/* Mobile */
@media (max-width: 639px) {
  .card:hover .slide.slide2 {
    transform: translateY(65px);
  }
}

.slide2 .content {
  text-align: center;
  width: 100%;
}

.slide2 .content h3 {
  color: #0b0d11;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  margin-bottom: 6px;
  text-transform: uppercase;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.slide2 .content p {
  color: #444;
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  line-height: 1.4;
  margin-bottom: 12px;
  font-weight: 400;
}

.visit-link {
  display: inline-block;
  padding: 8px 22px;
  color: #e63946;
  border: 2px solid #e63946;
  text-decoration: none;
  font-weight: 700;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  font-family: 'Oswald', sans-serif;
}

.visit-link:hover {
  background: #e63946;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(230, 57, 70, 0.4);
}

.visit-link:active {
  transform: translateY(-1px);
}

/* Smooth animations for all devices */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ══════════════════════════════════════════════════════════════════
       PLACED STUDENTS - RESPONSIVE
    ══════════════════════════════════════════════════════════════════ */

.placed-students-section {
  background:
    linear-gradient(rgba(230, 57, 70, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 57, 70, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(11, 13, 17, 0.92), rgba(11, 13, 17, 0.92)),
    url('../images/game-01.jpg');
  background-size: 40px 40px, 40px 40px, 100% 100%, cover;
  background-position: center;
  background-attachment: fixed;
  padding: clamp(80px, 15vw, 120px) 0;
  color: white;
  font-family: 'Oswald', sans-serif;
  overflow: hidden;
  position: relative;
}

.usp {
  font-family: 'Oswald', sans-serif;
  color: #ffffff;
  margin-bottom: 10px;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.placed-students-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 clamp(20px, 7.7vw, 7.7%);
  margin-bottom: clamp(80px, 15vw, 120px);
  flex-wrap: wrap;
  gap: 20px;
}

.title-area {
  border-left: 5px solid #e63946;
  padding-left: 20px;
  text-align: left;
  padding-top: 0px;
}

.title-area .section-tagline {
  margin-top: 5px;
}

.placed-students-counter {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: bold;
  color: #555;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 2px;
}

#current-number {
  color: #e63946;
  font-size: clamp(2rem, 4vw, 2.5rem);
  vertical-align: middle;
}

.placed-students-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.placed-students-track {
  display: flex;
  gap: 30px;
  padding: clamp(30px, 6vw, 60px) 5%;
  align-items: center;
  width: max-content;
  will-change: transform;
  /* Animation will be added via JS to calculate duration dynamically */
}

@keyframes psInfiniteScroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.placed-students-card {
  width: clamp(200px, 50vw, 220px);
  background: #0d3154;
  border-radius: 110px 110px 20px 20px;
  padding: clamp(25px, 4vw, 35px) clamp(15px, 2vw, 20px) clamp(20px, 3vw, 25px) clamp(15px, 2vw, 20px);
  text-align: center;
  flex-shrink: 0;
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
  backface-visibility: hidden;
}

.placed-students-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.image-container {
  width: clamp(110px, 35vw, 140px);
  height: clamp(110px, 35vw, 140px);
  margin: 10px auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #ffffff;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.name-badge {
  background: #ffffff;
  color: #0d3154;
  font-weight: 700;
  padding: clamp(8px, 2vw, 10px) clamp(12px, 2vw, 15px);
  border-radius: 12px;
  display: block;
  width: 90%;
  margin: 0 auto 15px;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
}

.placement-text {
  color: #ffffff;
  font-size: clamp(0.75rem, 1.5vw, 0.75rem);
  margin-bottom: 20px;
  line-height: 1.4;
}

.placement-text strong {
  display: block;
  font-size: clamp(0.85rem, 1.8vw, 0.8rem);
  font-weight: 800;
  margin-top: 5px;
}

.ctc-tag {
  background: #ef4444;
  color: #ffffff;
  padding: clamp(8px, 2vw, 10px) clamp(15px, 3vw, 20px);
  border-radius: 12px;
  font-weight: 700;
  display: inline-block;
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  text-transform: uppercase;
}

.placed-students-footer {
  padding: clamp(30px, 6vw, 50px) 5% 20px;
}

.progress-bar-bg {
  width: 100%;
  height: 2px;
  background: #222;
  position: relative;
  border-radius: 2px;
}

.progress-fill {
  position: absolute;
  height: 4px;
  top: -1px;
  background: var(--primary-red);
  width: 0%;
  transition: width 0.3s ease-out;
  /* Smoother update */
  border-radius: 2px;
  box-shadow: 0 0 10px var(--primary-red);
}

/* ══════════════════════════════════════════════════════════════════
       FOOTER - RESPONSIVE
    ══════════════════════════════════════════════════════════════════ */

.main-footer {
  background-color: #0f1115;
  color: var(--text-main);
  padding: clamp(60px, 10vw, 80px) 5% clamp(30px, 5vw, 40px) 5%;
  border-top: 2px solid var(--primary-red);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(30px, 5vw, 40px);
  max-width: 1400px;
  margin: 0 auto;
}

.col-title {
  color: var(--text-main);
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
  position: relative;
}

.col-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-red);
}

.about-text {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: #252830;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
  background: var(--primary-red);
  color: white;
  transform: rotate(10deg) scale(1.1);
  box-shadow: 0 0 15px rgba(230, 57, 70, 0.4);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #a0a0a0;
  text-decoration: none;
  transition: 0.3s;
  font-size: clamp(0.85rem, 1.5vw, 0.9rem);
}

.footer-links a:hover {
  color: var(--primary-red);
  padding-left: 8px;
}

.contact-info p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a0a0a0;
  font-size: clamp(0.85rem, 1.5vw, 0.9rem);
}

.contact-info i {
  color: var(--primary-red);
  flex-shrink: 0;
}

.btn-verify {
  display: inline-block;
  background: transparent;
  color: var(--primary-red);
  padding: clamp(8px, 2vw, 10px) clamp(15px, 3vw, 20px);
  border: 1px solid var(--primary-red);
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 20px 0;
  transition: 0.3s;
  font-size: clamp(0.75rem, 1.5vw, 0.85rem);
}

.btn-verify:hover {
  background: var(--primary-red);
  color: white;
}

.footer-bottom {
  margin-top: clamp(40px, 8vw, 60px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a0a0a0;
  font-size: clamp(0.75rem, 1.5vw, 0.85rem);
  flex-wrap: wrap;
  gap: 15px;
}

.bottom-links a {
  color: #a0a0a0;
  margin-left: 20px;
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════════
       RESPONSIVE BREAKPOINTS - TABLET & MOBILE
    ══════════════════════════════════════════════════════════════════ */

/* TABLET & SMALL LAPTOPS (1280px and below) - Navbar Mobile Menu */
@media (max-width: 1280px) {
  .menu-toggle {
    display: flex;
  }

  .navbar {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    background: rgba(29, 53, 87, 0.95) !important;
    border-radius: 100px !important;
    padding: 10px 25px !important;
    width: 90% !important;
    left: 5% !important;
  }

  .nav-links {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    right: 0;
    background: rgba(10, 10, 12, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 30px 0 40px 0;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
    max-height: 80vh;
    overflow-y: auto;
  }

  .navbar.mobile-menu-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
  }

  .navbar.mobile-menu-open .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .navbar.mobile-menu-open .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
  }

  .navbar.mobile-menu-open .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .nav-links a:not(.nav-cta) {
    font-size: 1.1rem !important;
    padding: 12px 0;
    width: 100%;
    text-align: center;
    letter-spacing: 2px;
  }

  .nav-links a:not(.nav-cta)::after {
    display: none;
  }

  .nav-links a:active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-red);
  }

  .nav-cta {
    margin: 15px auto 20px !important;
    width: 80% !important;
    text-align: center;
    padding: 15px 0 !important;
    display: block !important;
  }

  .nav-brochure {
    margin: 15px auto 0 !important;
    width: 85% !important;
    max-width: 300px;
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    padding: 14px 0 !important;
    font-size: 0.95rem !important;
  }

  .logo-text {
    display: none;
  }
}

/* TABLET (1024px and below) */
@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .left-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .btn-group {
    justify-content: center;
  }

  .right-image {
    justify-content: center;
    transform: none;
  }

  .right-image img {
    width: 80%;
    max-width: 500px;
    left: 0;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-card {
    border-left: none;
    border-top: 4px solid var(--primary-red);
  }

  .portfolio-container {
    justify-content: center;
    gap: 80px;
  }
}

/* MOBILE LANDSCAPE & TABLET PORTRAIT (768px and below) */
@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    padding-top: 80px;
  }

  /* Global section padding fix for mobile */
  section,
  .course-section-container,
  .about-section,
  .portfolio-section,
  .contact-section {
    padding-top: 100px !important;
  }

  .scroll-indicator {
    bottom: 15px;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .btn-primary {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .nav-logo {
    height: 40px !important;
    width: 120px !important;
    object-fit: contain;
  }

  /* Disable horizontal scroll on mobile */
  .sticky-wrapper {
    height: auto;
  }

  .sticky-content {
    position: relative;
    height: auto;
  }

  .course-horizontal-track {
    flex-direction: column;
    width: 100%;
  }

  .course-full-card {
    width: 100%;
    height: auto;
    min-height: 400px;
    padding: 40px 20px;
  }

  .scroll-progress-container {
    display: none;
  }

  .explore-btn {
    margin: 15px auto 0;
    display: block;
    width: fit-content;
  }

  /* Stack testimonials vertically */
  .testimonial-accordion {
    flex-direction: column;
    height: auto;
  }

  .testimonial-panel {
    width: 100%;
    height: 200px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .testimonial-panel:hover,
  .testimonial-panel.active {
    flex: none;
    height: 400px;
  }

  .testimonial-panel:not(:hover) .panel-name {
    writing-mode: horizontal-tb;
    transform: none;
  }

  /* Placed students */
  .placed-students-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .placed-students-track {
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 0;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .col-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .contact-info p {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .bottom-links a {
    margin: 10px 10px 0;
    display: inline-block;
  }

  /* Specific Footer Column Adjustments */
  .footer-col {
    margin-bottom: 30px;
  }

  .footer-logos {
    gap: 15px;
  }

  .footer-logos img {
    max-width: 80px;
  }
}

/* SMALL MOBILE (480px and below) */
@media (max-width: 480px) {
  .navbar {
    top: 10px;
    padding: 8px 20px !important;
  }

  .nav-logo {
    height: 35px !important;
    width: 105px !important;
    object-fit: contain;
  }

  .hero {
    min-height: 100vh;
  }

  .left-content h1 {
    font-size: 2.2rem;
  }

  .cert-tag {
    font-size: 0.7rem;
  }

  .image-container {
    width: 110px;
    height: 110px;
  }

  .placed-students-card {
    width: 280px;
  }

  .course-full-card {
    padding: 30px 15px;
  }

  .course-card-overlay {
    max-width: 100%;
  }

  .portfolio-container {
    gap: 60px;
    padding: 40px 0 80px 0;
  }
}

/* ULTRA-WIDE DESKTOPS (1920px and above) */
@media (min-width: 1920px) {

  .content-wrapper,
  .about-container,
  .portfolio-wrapper,
  .course-header-wrapper,
  .footer-container {
    max-width: 1600px;
  }

  .left-content h1 {
    font-size: 6rem;
  }

  .course-main-title {
    font-size: 5rem;
  }

  .section-title {
    font-size: 3.5rem;
  }
}

/* LANDSCAPE ORIENTATION FIX */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
  }

  .scroll-indicator {
    display: none;
  }

  .testimonial-accordion {
    height: auto;
    min-height: 400px;
  }
}

/* ══════════════════════════════════════════════════════════════════
       GAMING TEXT REVEAL ANIMATION
    ══════════════════════════════════════════════════════════════════ */

/* Base class for characters - Hidden by default */
.gaming-char {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(50px) skewY(10deg);
  will-change: transform, opacity, filter;
  /* No animation defined yet - waits for parent class */
}

/* Trigger animation ONLY when parent has 'reveal-active' */
.reveal-active .gaming-char {
  animation: text-reveal-anim 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
  animation-delay: calc(0.015s * var(--i));
}

@keyframes text-reveal-anim {
  0% {
    opacity: 0;
    filter: blur(20px);
    transform: translateY(100%) rotateX(-90deg);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) rotateX(0deg);
  }
}

.left-content h1 .highlight {
  color: var(--primary-red);
}

/* FIX: Force direct child animation characters to inherit parent color (White) */
h2>.gaming-char,
h2>w-wrap>.gaming-char,
.about-text h2>.gaming-char,
.about-text h2>w-wrap>.gaming-char,
.course-header h2>.gaming-char,
.course-header h2>w-wrap>.gaming-char,
.testimonial-header h2>.gaming-char,
.testimonial-header h2>w-wrap>.gaming-char {
  color: inherit !important;
}

/* Match Reference Image Colors */

/* H2 Highlights: "About US", "Institute Courses" -> Red Span */
h2 span:not(.gaming-char) {
  color: var(--primary-red);
}

/* Certification Tag: "ISO..." -> Red */
.cert-tag,
.tag-line {
  color: var(--primary-red);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 10px;
}

/* About Cards H3: "Why Choose Us?", "Our Mission" -> Red */
.about-card h3 {
  color: var(--primary-red);
}

/* ══════════════════════════════════════════════════════════════════
       WORD-WRAP ELEMENT RESETS (w-wrap / v-word)
    ══════════════════════════════════════════════════════════════════ */

w-wrap,
v-word {
  display: inline;
  white-space: nowrap;
  color: inherit;
}

/* ══════════════════════════════════════════════════════════════════
       INSTITUTE GALLERY SECTION
    ══════════════════════════════════════════════════════════════════ */

.gallery-section {
  padding: 80px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-header {
  text-align: center;
  margin-bottom: 50px;
}

.gallery-header .section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 8px;
}

.gallery-header .section-title span {
  color: var(--primary-red);
}

/* Masonry-like responsive grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}

/* Every 5th item spans 2 columns to create masonry feel */
.gallery-item:nth-child(5n+1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: none;
  border: 1px solid rgba(230, 57, 70, 0.15);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  border-color: rgba(230, 57, 70, 0.6);
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Hover overlay with caption */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 9, 11, 0.9) 0%, rgba(8, 9, 11, 0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 18px 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.3;
}

.gallery-zoom-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(230, 57, 70, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #fff;
  transition: transform 0.3s ease, background 0.3s ease;
}

.gallery-item:hover .gallery-zoom-icon {
  transform: scale(1.15);
  background: var(--primary-red);
}

/* Gallery Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.gallery-lightbox.active {
  display: flex;
}

.gallery-lb-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.gallery-lb-content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border: 2px solid var(--primary-red);
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(230, 57, 70, 0.25);
}

.gallery-lb-caption {
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin: 0;
}

.gallery-lb-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s;
}

.gallery-lb-close:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
}

/* Responsive Gallery */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
  }
}

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

  .gallery-item:nth-child(5n+1) {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
}

/* ══════════════════════════════════════════════════════════════════
       CUSTOM PREMIUM CURSOR (PUBZI INSPIRED)
    ══════════════════════════════════════════════════════════════════ */

.mouseCursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  transform: translateZ(0);
  visibility: hidden;
  z-index: 10000000;
}

/* Arrow Pointer — snaps instantly to cursor tip */
.cursor-arrow {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 15px;
  /* Classic OS cursor arrow drawn with clip-path */
  background: #ffffff;
  clip-path: polygon(0% 0%, 0% 100%, 32% 74%, 48% 100%, 62% 94%, 46% 68%, 100% 68%);
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 6px rgba(230, 57, 70, 0.5));
  pointer-events: none;
  z-index: 10000002;
  /* always on top */
  visibility: hidden;
  transform-origin: top left;
  /* NO transition — arrow must be instant/exact */
  transition: none;
}

.cursor-inner {
  margin-left: -7px;
  margin-top: -7px;
  width: 14px;
  height: 14px;
  z-index: 10000001;
  background-color: var(--primary-red);
  box-shadow: 0 0 12px var(--primary-red);
  opacity: 1;
  /* Fast follow logic */
  transition: transform 0.24s ease-out, width 0.3s ease-out, height 0.3s ease-out, margin 0.3s ease-out, opacity 0.3s ease-out;
}

.cursor-outer {
  margin-left: -22px;
  margin-top: -22px;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--primary-red);
  box-sizing: border-box;
  z-index: 10000000;
  opacity: 0.4;
  /* Slower follow creates the trail / backside effect */
  transition: transform 0.4s ease-out, opacity 0.3s ease-out;
}

/* Smoke Particle Trail — original wispy rising smoke */
.cursor-smoke {
  position: absolute;
  width: 50px;
  height: 50px;
  background: linear-gradient(rgba(230, 57, 70, 0) 30%, rgba(230, 57, 70, 0.85) 100%);
  pointer-events: none;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.65;
  z-index: 9999999;
  animation: fadeOutSmoke 0.9s ease-out forwards;
}

@keyframes fadeOutSmoke {
  0% {
    transform: scale(1) translateY(0px);
    opacity: 0.7;
  }

  100% {
    transform: scale(2) translateY(-20px);
    opacity: 0;
  }
}

/* Hover State for links, buttons, and interactive cards */
.cursor-inner.cursor-hover {
  margin-left: -22px;
  margin-top: -22px;
  width: 44px;
  height: 44px;
  opacity: 0.15;
  background-color: var(--primary-red);
  box-shadow: 0 0 25px var(--primary-red);
}

.cursor-outer.cursor-hover {
  margin-left: -32px;
  margin-top: -32px;
  width: 64px;
  height: 64px;
  opacity: 0.12;
  background-color: rgba(230, 57, 70, 0.05);
  border-color: var(--primary-red);
}

/* Hide default cursor on desktop when custom cursor is active */
@media (min-width: 1024px) {

  body,
  a,
  button,
  [role="button"],
  .card,
  .enroll-btn1,
  .enroll-btn2,
  .enroll-btn3,
  .enroll-now-btn,
  .visit-link,
  .view-detail-btn {
    cursor: none !important;
  }
}

/* Make sure the custom cursor is hidden on mobile/touch devices */
@media (max-width: 1023px) {

  .mouseCursor,
  .cursor-smoke,
  .cursor-arrow {
    display: none !important;
  }

  body {
    cursor: auto !important;
  }
}