/* ========================================
   CYBERX — HOME 2 DEDICATED STYLES
   ======================================== */

/* ---- Hero 2 ---- */
.home2-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #050510;
  padding-top: calc(var(--header-h) + 20px);
}

/* Home 2 Light Theme Overrides */
html.light-theme .home2-hero {
  background: #f8faff;
}

html.light-theme .home2-hero .hero-bg-video {
  filter: brightness(1) saturate(1) opacity(0.3);
}

html.light-theme .home2-hero .hero-gradient-overlay {
  background: linear-gradient(135deg, rgba(248, 250, 255, 0.95) 0%, rgba(240, 244, 255, 0.8) 50%, rgba(248, 250, 255, 0.9) 100%);
}

html.light-theme .hero2-floating-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.05);
}

html.light-theme .float-card-title {
  color: var(--text-heading);
}

html.light-theme .glass-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

html.light-theme .h2-news {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
}

html.light-theme .partner-logo {
  background: #f0f2f5;
  filter: grayscale(1) opacity(0.8);
}

html.light-theme .partner-logo:hover {
  filter: grayscale(0) opacity(1);
}

html.light-theme .h2-partners,
html.light-theme .h2-labs,
html.light-theme .h2-cyber-range,
html.light-theme .h2-academy,
html.light-theme .h2-threat-intel,
html.light-theme .h2-quiz,
html.light-theme .h2-careers,
html.light-theme .h2-events,
html.light-theme .h2-gallery,
html.light-theme .h2-forum,
html.light-theme .h2-hall,
html.light-theme .h2-success,
html.light-theme .h2-skills {
  background: linear-gradient(180deg, #f8faff, #ffffff);
}

html.light-theme .success-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

html.light-theme .cyber-range-box {
  background: rgba(255, 255, 255, 0.6);
}

html.light-theme .range-terminal {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  color: #334155;
}

html.light-theme .range-terminal .term-header {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

html.light-theme .skill-bar-header .skill-name {
  color: var(--text-heading);
}

html.light-theme .skill-bar-track {
  background: rgba(0, 0, 0, 0.06);
}

html.light-theme .hero2-badge {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.2);
  color: var(--text-heading);
}

html.light-theme .hero2-desc {
  color: var(--text);
}

html.light-theme .career-tag {
  background: rgba(0, 240, 255, 0.12);
  color: var(--primary-dark, #008899);
}

.home2-hero .hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('https://images.unsplash.com/photo-1526374965328-7f61d4dc18c5?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  filter: brightness(0.35) saturate(1.3);
}

.home2-hero .hero-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(5, 5, 16, 0.92) 0%, rgba(13, 13, 43, 0.7) 50%, rgba(5, 5, 16, 0.88) 100%);
}

.home2-hero .hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: meshDrift 20s linear infinite;
}

@keyframes meshDrift {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 80px 80px;
  }
}

.home2-hero .hero-particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero2-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 85vh;
}

.hero2-text {
  max-width: 800px;
  width: 100%;
}

.hero2-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 50px;
  padding: 8px 20px 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  margin-bottom: 24px;
  animation: badgePulse 3s ease-in-out infinite;
}

.hero2-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 0 0 rgba(0, 240, 255, 0);
  }

  50% {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
  }
}

.hero2-title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 900;
  letter-spacing: -1px;
}

.hero2-title .line {
  display: block;
  overflow: hidden;
}

.hero2-title .line span {
  display: inline-block;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.hero2-title .line:nth-child(2) span {
  animation-delay: 0.15s;
}

.hero2-title .line:nth-child(3) span {
  animation-delay: 0.3s;
}

@keyframes slideUp {
  from {
    transform: translateY(120%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero2-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero2-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s 0.65s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.hero2-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  animation: fadeInUp 0.8s 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.hero2-stat-item {
  text-align: center;
}

.hero2-stat-num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero2-stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Hero Visual */
.hero2-visual-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 1s 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.hero2-main-img {
  width: 100%;
  max-width: 480px;
  border-radius: 24px;
  box-shadow: 0 20px 80px rgba(0, 240, 255, 0.12), 0 0 0 1px rgba(0, 240, 255, 0.08);
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero2-main-img:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 100px rgba(0, 240, 255, 0.2), 0 0 0 1px rgba(0, 240, 255, 0.15);
}

.hero2-floating-card {
  position: absolute;
  z-index: 3;
  border-radius: 16px;
  padding: 18px 22px;
  background: rgba(13, 13, 43, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: floatCard 4s ease-in-out infinite;
}

.hero2-floating-card.card-1 {
  top: 10%;
  right: -30px;
  animation-delay: 0s;
}

.hero2-floating-card.card-2 {
  bottom: 15%;
  left: -40px;
  animation-delay: 1.5s;
}

.hero2-floating-card.card-3 {
  bottom: -10px;
  right: 10%;
  animation-delay: 0.8s;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.float-card-icon {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--primary);
}

.float-card-title {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
}

.float-card-value {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
}

.hero2-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero2-glow-orb.orb-1 {
  width: 300px;
  height: 300px;
  background: rgba(0, 240, 255, 0.08);
  top: -50px;
  left: -50px;
  animation: orbFloat 8s ease-in-out infinite;
}

.hero2-glow-orb.orb-2 {
  width: 250px;
  height: 250px;
  background: rgba(123, 47, 247, 0.08);
  bottom: -50px;
  right: -50px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(20px, -20px) scale(1.1);
  }
}

/* ---- Glass Card Component ---- */
.glass-card {
  background: rgba(13, 13, 43, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.08);
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glass-card:hover {
  border-color: rgba(0, 240, 255, 0.18);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 240, 255, 0.05);
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card .card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(123, 47, 247, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.glass-card:hover .card-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #000;
  transform: scale(1.1);
}

.glass-card h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.glass-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- Section Common ---- */
.h2-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.h2-section .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.h2-section .section-header h2 {
  margin-bottom: 16px;
}

.h2-section .section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.4;
}

/* ---- Labs Section ---- */
.h2-labs {
  background: linear-gradient(180deg, #050510, #0a0a1a);
}

.labs-flex {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ---- News Ticker ---- */
.h2-news {
  background: #08081a;
  padding: 30px 0;
  border-top: 1px solid rgba(0, 240, 255, 0.06);
  border-bottom: 1px solid rgba(0, 240, 255, 0.06);
}

.news-scroll-wrap {
  overflow: hidden;
  position: relative;
}

.news-scroll-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: scrollNews 30s linear infinite;
}

.news-scroll-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--primary);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.news-scroll-track span i {
  color: var(--accent);
}

@keyframes scrollNews {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ---- Cyber Range ---- */
.h2-cyber-range {
  background: linear-gradient(180deg, #0a0a1a, #0d0d2b);
}

.cyber-range-box {
  background: rgba(13, 13, 43, 0.5);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: 24px;
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cyber-range-box::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 0deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  border-radius: 26px;
  z-index: -1;
  opacity: 0.15;
  animation: borderSpin 6s linear infinite;
}

@keyframes borderSpin {
  to {
    transform: rotate(360deg);
  }
}

.range-visual {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 32px 0;
}

.range-terminal {
  background: #0a0a14;
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  min-width: 280px;
  max-width: 400px;
}

.range-terminal .term-header {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.range-terminal .term-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.term-line {
  margin-bottom: 4px;
  opacity: 0;
  animation: termType 0.3s ease forwards;
  background-clip: text;
}

.term-line:nth-child(2) {
  animation-delay: 0.5s;
}

.term-line:nth-child(3) {
  animation-delay: 1s;
}

.term-line:nth-child(4) {
  animation-delay: 1.5s;
}

.term-line:nth-child(5) {
  animation-delay: 2s;
}

.term-line:nth-child(6) {
  animation-delay: 2.5s;
}

@keyframes termType {
  to {
    opacity: 1;
  }
}

/* ---- Partners ---- */
.h2-partners {
  background: #0a0a1a;
  padding: 60px 0;
}

.partners-flex {
  display: flex;
  gap: 48px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.partner-logo {
  height: 48px;
  filter: grayscale(1) brightness(0.6);
  opacity: 0.5;
  transition: all 0.4s ease;
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
}

.partner-logo:hover {
  filter: grayscale(0) brightness(1);
  opacity: 1;
  transform: scale(1.1);
}

/* ---- Academy ---- */
.h2-academy {
  background: linear-gradient(180deg, #0a0a1a, #0d0d2b);
}

.academy-flex {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ---- Quiz ---- */
.h2-quiz {
  background: linear-gradient(180deg, #0d0d2b, #10102a);
}

/* ---- Careers ---- */
.h2-careers {
  background: linear-gradient(180deg, #10102a, #0d0d2b);
}

.careers-flex {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.career-glass .career-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: rgba(0, 240, 255, 0.08);
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

/* ---- Events ---- */
.h2-events {
  background: linear-gradient(180deg, #0d0d2b, #0a0a1a);
}

.events-flex {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.event-glass {
  position: relative;
}

.event-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.event-location {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ---- NEW: Threat Intelligence Map ---- */
.h2-threat-intel {
  background: linear-gradient(180deg, #0a0a1a, #08081a);
}

.threat-intel-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.threat-map-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.threat-map-visual img {
  width: 100%;
  display: block;
  filter: brightness(0.7) hue-rotate(180deg);
}

.threat-map-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(123, 47, 247, 0.05));
}

.map-pulse {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 20px var(--accent-red);
  animation: mapPulse 2s ease-in-out infinite;
}

.map-pulse::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--accent-red);
  opacity: 0;
  animation: mapRipple 2s ease-out infinite;
}

@keyframes mapPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }
}

@keyframes mapRipple {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(3);
    opacity: 0;
  }
}

.map-pulse.p1 {
  top: 25%;
  left: 20%;
  animation-delay: 0s;
}

.map-pulse.p2 {
  top: 35%;
  left: 48%;
  animation-delay: 0.7s;
}

.map-pulse.p3 {
  top: 20%;
  left: 75%;
  animation-delay: 1.4s;
}

.map-pulse.p4 {
  top: 60%;
  left: 30%;
  animation-delay: 0.4s;
}

.map-pulse.p5 {
  top: 55%;
  left: 65%;
  animation-delay: 1.1s;
}

.threat-stats-list {
  margin-top: 32px;
}

.threat-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.threat-stat-row .label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.threat-stat-row .label i {
  color: var(--primary);
  width: 20px;
  text-align: center;
}

.threat-stat-row .value {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
}

.threat-stat-row .bar-wrap {
  flex: 1;
  margin: 0 20px;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.threat-stat-row .bar-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 1.5s ease;
}

/* ---- NEW: Client Success Stories ---- */
.h2-success {
  background: linear-gradient(180deg, #08081a, #0d0d2b);
}

.success-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.success-card {
  background: rgba(13, 13, 43, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  /* Necessary for centering metrics at bottom */
  flex-direction: column;
}

.success-card:hover {
  border-color: rgba(0, 240, 255, 0.2);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.success-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(0, 240, 255, 0.06);
  transition: transform 0.5s ease;
}

.success-card:hover .success-card-img {
  transform: scale(1.05);
}

.success-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  /* Ensures it fills all available card space */
}

.success-card-body .company-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  background: rgba(123, 47, 247, 0.1);
  color: var(--secondary);
  margin-bottom: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.success-card-body h4 {
  margin-bottom: 10px;
}

.success-card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.success-metric {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  white-space: nowrap;
  /* Forces one line as requested */
  margin-top: auto;
  /* Pushes to bottom for alignment */
  padding-top: 15px;
  /* Adds space from text above */
}

.success-metric .metric-val {
  font-weight: 700;
  color: var(--accent);
}

.success-metric .metric-label {
  color: var(--text-muted);
}

/* ---- NEW: Interactive Skills Radar ---- */
.h2-skills {
  background: linear-gradient(180deg, #0d0d2b, #0a0a1a);
}

.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Removed empty ruleset */

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.skill-bar-header .skill-name {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
}

.skill-bar-header .skill-pct {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
}

.skill-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 10px;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.skill-bar-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 20px;
  height: 100%;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.3);
  filter: blur(4px);
}

.skills-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.skills-hex-grid {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  gap: 12px;
  justify-content: center;
}

.hex-item {
  width: 100px;
  height: 100px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(13, 13, 43, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: 16px;
  transition: all 0.4s ease;
  cursor: default;
}

.hex-item:hover {
  border-color: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
}

.hex-item i {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.hex-item span {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- Books ---- */
.h2-books {
  background: linear-gradient(180deg, #0a0a1a, #0d0d2b);
}

.books-flex {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.book-glass {
  text-align: center;
}

.book-glass .book-cover {
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--primary);
  transition: transform 0.4s ease;
}

.book-glass:hover .book-cover {
  transform: rotateY(15deg) scale(1.1);
}

/* ---- Docs ---- */
.h2-docs {
  background: linear-gradient(180deg, #0d0d2b, #0a0a1a);
}

.docs-flex {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ---- Glossary ---- */
.h2-glossary {
  background: linear-gradient(180deg, #0a0a1a, #0d0d2b);
}

.glossary-flex {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ---- Tools ---- */
.h2-tools {
  background: linear-gradient(180deg, #0d0d2b, #0a0a1a);
}

.tools-flex {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ---- Gallery ---- */
.h2-gallery {
  background: linear-gradient(180deg, #0a0a1a, #08081a);
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 240, 255, 0.06);
  transition: all 0.4s ease;
}

.gallery-item:hover {
  border-color: rgba(0, 240, 255, 0.2);
  transform: scale(1.03);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5, 5, 16, 0.9) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: #fff;
  letter-spacing: 1px;
}

/* ---- Forum ---- */
.h2-forum {
  background: linear-gradient(180deg, #08081a, #0a0a1a);
}

.forum-cta-box {
  background: rgba(13, 13, 43, 0.5);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: 24px;
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.forum-cta-box::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(0, 240, 255, 0.03), transparent, rgba(123, 47, 247, 0.03), transparent);
  animation: forumGlow 10s linear infinite;
}

@keyframes forumGlow {
  to {
    transform: rotate(360deg);
  }
}

.forum-cta-box>* {
  position: relative;
  z-index: 2;
}

.forum-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 32px;
}

.forum-stat {
  text-align: center;
}

.forum-stat .num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.forum-stat .lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ---- Hall of Fame ---- */
.h2-hall {
  background: linear-gradient(180deg, #0a0a1a, #050510);
}

.hall-flex {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.hall-glass {
  text-align: center;
}

.hall-glass .hall-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #000;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
  transition: transform 0.4s ease;
  overflow: hidden;
  padding: 3px;
}

.hall-glass .hall-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.hall-glass:hover .hall-avatar {
  transform: scale(1.15) rotate(5deg);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .hero2-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero2-text {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero2-title {
    margin-left: auto;
    margin-right: auto;
  }

  .hero2-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero2-actions {
    justify-content: center;
    width: 100%;
  }

  .hero2-stats {
    justify-content: center;
    width: 100%;
  }

  .hero2-visual-wrap {
    margin-top: 40px;
  }

  .hero2-floating-card.card-1 {
    right: 0;
  }

  .hero2-floating-card.card-2 {
    left: 0;
  }

  .labs-flex,
  .academy-flex,
  .careers-flex,
  .events-flex,
  .books-flex,
  .docs-flex,
  .glossary-flex,
  .tools-flex,
  .hall-flex,
  .success-grid,
  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
  }

  .threat-intel-grid,
  .skills-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .labs-flex,
  .academy-flex,
  .careers-flex,
  .events-flex,
  .books-flex,
  .docs-flex,
  .glossary-flex,
  .tools-flex,
  .hall-flex,
  .success-grid,
  .gallery-masonry {
    grid-template-columns: 1fr;
  }

  .hero2-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .forum-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .partners-flex {
    gap: 24px;
  }

  .cyber-range-box {
    padding: 36px 24px;
  }

  .forum-cta-box {
    padding: 36px 24px;
  }

  .skills-hex-grid {
    grid-template-columns: repeat(3, 80px);
  }

  .hex-item {
    width: 80px;
    height: 80px;
  }
}

/* Specific Extra Small Mobile Adjustments (360px - 480px) */
@media (max-width: 480px) {
  .home2-hero {
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 60px;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
  }

  .hero2-container {
    gap: 40px;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .hero2-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }

  .hero2-title {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
    line-height: 1.2;
    margin-bottom: 15px;
  }

  .hero2-desc {
    font-size: 0.95rem;
    margin-bottom: 25px;
    padding: 0;
    line-height: 1.6;
    max-width: 100%;
  }

  .hero2-stats {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .hero2-stat-item {
    text-align: center;
    flex: 1 1 150px;
    /* Flexible wrapping */
  }

  .hero2-stat-num {
    font-size: 1.2rem;
  }

  .hero2-actions {
    width: 100%;
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .hero2-actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero2-visual-wrap {
    width: 100%;
    margin-top: 30px;
    padding: 0;
    display: flex;
    justify-content: center;
  }

  .hero2-main-img {
    max-width: 90%;
    height: auto;
    border-radius: 16px;
    margin: 0 auto;
  }

  .hero2-floating-card {
    padding: 8px 10px;
    transform: scale(0.7);
    /* Tighter scale for small screens */
  }

  .hero2-floating-card.card-1 {
    top: -5px;
    right: 0px;
  }

  .hero2-floating-card.card-2 {
    bottom: 5%;
    left: -10px;
  }

  .hero2-floating-card.card-3 {
    bottom: -15px;
    right: 0;
  }
}