/* ================================================================
   Insight IT Tech — Custom Stylesheet
   Animations, hover effects, and styles that can't be inline Tailwind
   ================================================================ */

/* ===== ALPINE CLOAK — Prevent menu flash on page load ===== */
[x-cloak] { display: none !important; }

/* ===== GLOBAL ===== */
* { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body { font-family: 'Inter', system-ui, sans-serif; }

/* ===== NAVBAR SCROLL EFFECT ===== */
#mainNav {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
#mainNav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom-color: transparent;
}

/* ===== NAV LINK STYLES ===== */
.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    border-radius: 0.5rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-link:hover {
    color: #2563eb;
    background-color: #eff6ff;
}
.nav-link.active {
    color: #2563eb;
    background-color: #eff6ff;
}

/* ===== DROPDOWN MENU ===== */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
    width: 14rem;
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    padding: 0.5rem 0;
    z-index: 50;
}
.dropdown-item {
    display: block;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: #334155;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.dropdown-item:hover {
    background-color: #eff6ff;
    color: #1d4ed8;
}

/* ===== HERO SLIDER ===== */
.hero-swiper {
    height: 92vh;
    min-height: 600px;
}
.hero-slide-content {
    animation: slideInUp 0.8s ease forwards;
}
.swiper-slide-active .hero-slide-content {
    animation: slideInUp 0.8s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* Custom Swiper Pagination */
.hero-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
}
.hero-swiper .swiper-pagination-bullet-active {
    background: #ffffff;
    width: 30px;
    border-radius: 5px;
}

/* Custom Swiper Navigation */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transition: all 0.3s ease;
}
.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.3);
}
.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
    font-size: 18px;
    color: #ffffff;
    font-weight: bold;
}

/* ===== STAT COUNTER ===== */
.counter-value {
    font-variant-numeric: tabular-nums;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* ===== SOLUTION TILES ===== */
.solution-tile {
    transition: transform 0.3s ease;
}
.solution-tile:hover {
    transform: scale(1.02);
}
.solution-tile .overlay-content {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.35s ease;
}
.solution-tile:hover .overlay-content {
    transform: translateY(0);
    opacity: 1;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ===== INNER PAGE BANNER PATTERN ===== */
.page-banner-pattern {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 30%);
}

/* ===== FAQ ACCORDION ===== */
.faq-item {
    transition: all 0.2s ease;
}
.faq-item.active {
    border-left: 4px solid #2563eb;
}

/* ===== FORM INPUTS ===== */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.875rem;
}
.form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-input::placeholder {
    color: #94a3b8;
}

/* ===== FOOTER ===== */
.footer-heading {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}
.footer-link {
    color: #93c5fd;
    font-size: 0.875rem;
    transition: color 0.2s ease;
    position: relative;
    display: inline-block;
}
.footer-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ffffff;
    transition: width 0.2s ease;
}
.footer-link:hover {
    color: #ffffff;
}
.footer-link:hover::after {
    width: 100%;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    color: #93c5fd;
    font-size: 0.875rem;
}
.social-icon:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ===== SCROLL TO TOP BUTTON ===== */
#scrollToTop {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    border: none;
    font-size: 1.125rem;
}
#scrollToTop.visible {
    opacity: 1;
    pointer-events: all;
}
#scrollToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

/* ===== TOAST NOTIFICATION ===== */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    color: #ffffff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInRight 0.3s ease forwards;
    max-width: 400px;
}
.toast-success { background: #22c55e; }
.toast-error   { background: #ef4444; }

/* ===== LOADING SPINNER ===== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== FLOATING ANIMATION ===== */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== PROCESS STEP CONNECTOR ===== */
.step-connector {
    position: relative;
}
.step-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -2rem;
    width: 2rem;
    height: 2px;
    background: linear-gradient(to right, #2563eb, #93c5fd);
}
.step-connector:last-child::after {
    display: none;
}

/* ===== TECH BADGE ===== */
.tech-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid #dbeafe;
    transition: all 0.2s ease;
}
.tech-badge:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* ===== MOBILE MENU ===== */
.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.mobile-dropdown.open {
    max-height: 500px;
}
/* =========================================
   HERO SECTION — NEW ANIMATED HERO (Phase 3)
   ========================================= */

/* === BASE STRUCTURE === */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #050d2d;
  isolation: isolate;
}

/* === BACKGROUND LAYERS === */

.hero-bg-base {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(135deg, #040c27 0%, #0b1b64 45%, #0f2694 72%, #081548 100%);
  z-index: 0;
}

.hero-glow-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 15% 60%, rgba(37, 99, 235, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 500px 400px at 85% 25%, rgba(56, 189, 248, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse 600px 300px at 60% 90%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
  z-index: 1;
  animation: heroGlowPulse 10s ease-in-out infinite alternate;
}

@keyframes heroGlowPulse {
  0%   { opacity: 0.75; transform: scale(1); }
  100% { opacity: 1;    transform: scale(1.04); }
}

.hero-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 85%);
  z-index: 2;
}

/* === LIVE TAG === */

.hero-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 1.4rem;
  animation: heroFadeDown 0.65s ease 0.1s both;
}

.hero-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  animation: heroDotPulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
}

@keyframes heroDotPulse {
  0%  { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  65% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100%{ box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* === HEADLINE === */

.hero-h1 {
  font-size: clamp(2.75rem, 5.2vw, 4.1rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  animation: heroFadeUp 0.7s ease 0.2s both;
}

.hero-sub-line {
  font-size: clamp(1.7rem, 3.2vw, 2.65rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.52);
  letter-spacing: -0.015em;
  margin-bottom: 1.4rem;
  animation: heroFadeUp 0.7s ease 0.3s both;
}

/* === CYCLING WORD === */

.hero-cycling-wrapper {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.hero-cycling-word {
  display: inline-block;
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroCycleIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  min-width: 15ch; /* prevent layout shift on word change */
}

@keyframes heroCycleIn {
  from { opacity: 0; transform: translateY(36px) skewY(3deg); }
  to   { opacity: 1; transform: translateY(0) skewY(0deg); }
}

@keyframes heroCycleOut {
  from { opacity: 1; transform: translateY(0) skewY(0deg); }
  to   { opacity: 0; transform: translateY(-36px) skewY(-3deg); }
}

/* === DESCRIPTION === */

.hero-desc {
  color: rgba(255, 255, 255, 0.60);
  font-size: 1.05rem;
  line-height: 1.78;
  max-width: 480px;
  margin-bottom: 2rem;
  animation: heroFadeUp 0.7s ease 0.4s both;
}

/* === BUTTONS === */

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2.4rem;
  animation: heroFadeUp 0.7s ease 0.5s both;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 0 0 rgba(37, 99, 235, 0), 0 4px 20px rgba(37, 99, 235, 0.35);
}

.hero-btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 28px rgba(37, 99, 235, 0.55), 0 8px 28px rgba(14, 165, 233, 0.25);
  color: #ffffff;
  text-decoration: none;
}

.hero-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  font-size: 0.88rem;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.22s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.38);
  color: #ffffff;
  text-decoration: none;
  gap: 12px;
}

/* === STATS ROW === */

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 1.75rem;
  animation: heroFadeUp 0.7s ease 0.6s both;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-stat-val {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.hero-stat-lbl {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hero-stat-sep {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

/* === COURSE PILL TAGS === */

.hero-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  animation: heroFadeUp 0.7s ease 0.7s both;
}

.hero-course-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.058);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-course-pill:hover {
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(37, 99, 235, 0.42);
  color: #93c5fd;
  text-decoration: none;
  transform: translateY(-1px);
}

.hero-course-pill i {
  font-size: 0.82rem;
  color: #60a5fa;
}

/* === RIGHT COL === */

.hero-right-col {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  animation: heroFadeRight 0.85s ease 0.35s both;
}

/* === FLOATING BADGES === */

.hero-float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.hero-float-badge:hover {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.2);
}

.hero-float-badge i {
  font-size: 0.9rem;
  color: #60a5fa;
}

.hfb-1 { top:  5%; left: -8%;  animation: hfloatA 4.0s ease-in-out infinite; }
.hfb-2 { top:  3%; right: -6%; animation: hfloatB 4.6s ease-in-out infinite; }
.hfb-3 { bottom: 10%; left: -5%;  animation: hfloatC 5.1s ease-in-out infinite; }
.hfb-4 { bottom:  5%; right: -8%; animation: hfloatD 3.9s ease-in-out infinite; }

@keyframes hfloatA { 0%,100%{ transform:translateY(0)   rotate(-0.8deg); } 50%{ transform:translateY(-11px) rotate(0.8deg); } }
@keyframes hfloatB { 0%,100%{ transform:translateY(-5px) rotate(1deg);   } 50%{ transform:translateY(9px)  rotate(-1deg); } }
@keyframes hfloatC { 0%,100%{ transform:translateY(4px)  rotate(0.4deg); } 50%{ transform:translateY(-13px) rotate(-0.4deg); } }
@keyframes hfloatD { 0%,100%{ transform:translateY(-3px) rotate(-0.9deg); } 50%{ transform:translateY(11px) rotate(0.9deg); } }

/* === PROCESS TOWER === */

.hero-process-tower {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 340px;
  max-width: 100%;
  position: relative;
  z-index: 5;
}

.hpt-connector {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 62px; /* align dot with icon center */
  margin: 2px 0;
}

/* === PROCESS CARD === */

.hpt-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.048);
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 18px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 8px 36px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: all 0.3s ease;
  cursor: default;
}

.hpt-card:hover {
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateX(-5px);
  box-shadow: 0 12px 48px rgba(37, 99, 235, 0.18), inset 0 1px 0 rgba(255,255,255,0.1);
}

.hpt-card-active {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow:
    0 8px 40px rgba(37, 99, 235, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.hpt-card-active:hover {
  background: rgba(37, 99, 235, 0.2);
}

/* Step number badge */
.hpt-step-num {
  position: absolute;
  top: -10px;
  right: 16px;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #1d3891, #2563eb);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(255,255,255,0.9);
  font-size: 0.62rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45);
  letter-spacing: 0.02em;
}

.hpt-step-active {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.6);
}

/* Icon wrap */
.hpt-icon-wrap {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.hpt-icon-active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.55), rgba(14, 165, 233, 0.45));
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.hpt-icon {
  font-size: 1.05rem;
  color: rgba(147, 197, 253, 0.9);
}

.hpt-icon-white {
  color: #ffffff;
}

/* Card text */
.hpt-text h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 3px 0;
  line-height: 1.3;
}

.hpt-text p {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.55;
  margin: 0;
}

/* === GLOW BEHIND TOWER === */

.hero-tower-glow {
  position: absolute;
  width: 320px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.14) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  filter: blur(28px);
}

/* === BOTTOM FADE === */

.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, #ffffff, transparent);
  z-index: 8;
  pointer-events: none;
}

/* === SCROLL INDICATOR === */

.hero-scroll-mouse {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
}

.hero-scroll-wheel {
  width: 28px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  position: relative;
}

.hero-scroll-wheel::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 9px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 2px;
  animation: heroScrollBounce 2.2s ease-in-out infinite;
}

@keyframes heroScrollBounce {
  0%, 100% { top: 7px;  opacity: 1;   }
  50%       { top: 23px; opacity: 0.2; }
}

/* === ENTRY ANIMATIONS === */

@keyframes heroFadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeRight {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* === RESPONSIVE === */

@media (max-width: 1023px) {
  .hero-right-col  { display: none; } /* Hide tower on tablet/mobile */
  .hero-left-col   { text-align: center; }
  .hero-desc       { margin-left: auto; margin-right: auto; }
  .hero-btns       { justify-content: center; }
  .hero-stats-row  { justify-content: center; }
  .hero-tags-row   { justify-content: center; }
  .hero-cycling-word { min-width: unset; }
}

@media (max-width: 640px) {
  .hero-h1         { font-size: 2.25rem; }
  .hero-sub-line   { font-size: 1.5rem; }
  .hero-stat-val   { font-size: 1.35rem; }
  .hero-stats-row  { gap: 14px; }
  .hero-btns       { flex-direction: column; align-items: center; }
  .hero-btn-primary, .hero-btn-ghost { width: 100%; justify-content: center; }
  .hero-cycling-word { min-width: unset !important; }

  /* Course pill tags: 2 columns grid so all 4 are always visible */
  .hero-tags-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-course-pill {
    justify-content: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Hero section: ensure no horizontal overflow */
  .hero-section {
    overflow-x: hidden;
    width: 100%;
  }
  .hero-left-col {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .hero-live-dot, .hero-glow-layer, .hero-float-badge,
  .hero-scroll-wheel::after, .hero-cycling-word { animation: none !important; }
  .hpt-card:hover { transform: none; }
}
