/* ==========================================================================
   SOFT SKILLS ENGINEERING — 2026 FULL-PAGE ANIMATION & UI STYLESHEET
   Comprehensive Web Animations System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & CSS VARIABLES (SOLID LOGO RED #CD1219)
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette — Clean Warm Light Theme */
  --bg-primary: #FAFAFC;
  --bg-secondary: #F1F5F9;
  --bg-tertiary: #E2E8F0;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --bg-glass-nav: rgba(255, 255, 255, 0.65);

  /* Typography Colors */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --text-inverse: #FFFFFF;

  /* SOLID LOGO RED (#CD1219) */
  --accent-red: #CD1219;
  --accent-red-hover: #A30E14;
  --accent-red-light: #FDF2F2;
  --accent-navy: #0F172A;

  /* Solid Color Aliases */
  --grad-primary: #CD1219;
  --grad-primary-hover: #A30E14;
  --grad-subtle: #FDF2F2;
  --grad-dark: #010521;
  --grad-accent-text: #CD1219;

  /* Elevation & Natural Soft Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px -6px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 36px -8px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
  --shadow-red: 0 10px 25px -5px rgba(205, 18, 25, 0.25);

  /* Radius System */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 9999px;

  /* Layout Spacing */
  --container-max: 1240px;
  --header-height: 80px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-primary);
}

body.loading-active {
  overflow: hidden !important;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. VECTOR SVG ICON BOX STYLES
   -------------------------------------------------------------------------- */
.service-icon-box, .ind-icon-box, .info-icon-box, .badge-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background-color: #FDF2F2;
  border: 1px solid rgba(205, 18, 25, 0.15);
  margin-bottom: 16px;
  transition: all var(--transition-bounce);
}

.service-icon-box svg, .ind-icon-box svg, .info-icon-box svg, .badge-icon-box svg {
  stroke: #CD1219;
  transition: transform var(--transition-bounce);
}

.service-card-front:hover .service-icon-box, .industry-item:hover .ind-icon-box {
  background-color: #CD1219;
  border-color: #CD1219;
  transform: scale(1.08) rotate(3deg);
  box-shadow: var(--shadow-red);
}

.service-card-front:hover .service-icon-box svg, .industry-item:hover .ind-icon-box svg {
  stroke: #FFFFFF;
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   4. ANIMATED BUTTONS & MICRO-INTERACTIONS
   -------------------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  background-color: #CD1219 !important;
  color: #FFFFFF !important;
  font-size: 0.92rem;
  font-weight: 800;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-red);
  transition: all var(--transition-normal);
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary *, .btn-primary span, .btn-primary svg {
  color: #FFFFFF !important;
  fill: none;
  stroke: #FFFFFF;
  transition: transform var(--transition-fast);
}

.btn-primary:hover {
  background-color: #A30E14 !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 30px -4px rgba(205, 18, 25, 0.4);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  background-color: #FFFFFF !important;
  color: var(--text-primary) !important;
  font-size: 0.92rem;
  font-weight: 800;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(15, 23, 42, 0.15) !important;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-secondary *, .btn-secondary span {
  color: var(--text-primary) !important;
}

.btn-secondary:hover {
  background-color: var(--bg-secondary) !important;
  border-color: #CD1219 !important;
  color: #CD1219 !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover * {
  color: #CD1219 !important;
}

/* --------------------------------------------------------------------------
   5. PROFESSIONAL SPLASH SCREEN STYLES
   -------------------------------------------------------------------------- */
#splash-screen {
  position: fixed;
  inset: 0;
  background-color: #FFFFFF;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

#splash-screen.splash-hide {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
}

.splash-content {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.splash-logo-wrap {
  position: relative;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.splash-logo {
  height: 70px;
  width: auto;
  position: relative;
  z-index: 2;
  animation: splashPulse 2.5s ease-in-out infinite alternate;
}

.splash-brand-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-top: 16px;
  position: relative;
  z-index: 2;
}

.splash-brand-sub {
  font-size: 0.85rem;
  font-weight: 700;
  color: #CD1219;
  margin-top: 4px;
  position: relative;
  z-index: 2;
  letter-spacing: 0.02em;
}

.splash-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  background-color: rgba(205, 18, 25, 0.08);
  border-radius: 50%;
  z-index: 1;
  filter: blur(16px);
}

@keyframes splashPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.04); }
}

.splash-progress-track {
  width: 100%;
  height: 6px;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}

#splash-progress-fill {
  height: 100%;
  width: 0%;
  background-color: #CD1219;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 8px rgba(205, 18, 25, 0.3);
  transition: width 0.1s ease-out;
}

.splash-status-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
}

#splash-percent {
  color: #CD1219;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   6. UTILITIES & CONTAINER (COMPACT SPACING)
   -------------------------------------------------------------------------- */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.text-gradient {
  color: #CD1219;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: #FDF2F2;
  color: #CD1219;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(205, 18, 25, 0.2);
  margin-bottom: 12px;
  transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
}

.section-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(205, 18, 25, 0.15);
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 36px auto;
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   7. SCROLL PROGRESS BAR
   -------------------------------------------------------------------------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background-color: #CD1219;
  z-index: 10000;
  box-shadow: 0 0 8px rgba(205, 18, 25, 0.3);
  transition: width 0.1s ease-out;
}

/* --------------------------------------------------------------------------
   8. FROSTED GLASS BLUR NAVBAR ON SCROLL & UNDERLINE HOVER ANIMATION
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 9000;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05) !important;
  height: 70px;
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-img {
  height: 48px;
  max-height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast);
}

.nav-brand:hover .brand-logo-img {
  transform: scale(1.06) rotate(-1deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
}

.nav-link {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #CD1219;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-caret {
  font-size: 0.75rem;
  color: #CD1219;
  line-height: 1;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-caret {
  transform: rotate(180deg);
}

.nav-link:hover, .nav-link.active {
  color: #CD1219;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background-color: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  min-width: 220px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(15, 23, 42, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

.dropdown-menu a {
  display: block;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.dropdown-menu a:hover {
  background-color: #FDF2F2;
  color: #CD1219;
  padding-left: 22px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Mobile Nav Drawer */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-secondary);
  transition: transform var(--transition-fast);
}

.mobile-nav-toggle:active {
  transform: scale(0.92);
}

.mobile-nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background-color: var(--text-primary);
  transition: transform 0.3s ease;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background-color: var(--bg-card);
  z-index: 9999;
  padding: 80px 30px 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: -10px 0 40px rgba(0,0,0,0.1);
  transition: right var(--transition-normal);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-brand-wrap {
  margin-bottom: 10px;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   9. HERO SECTION, CONTINUOUS ANIMATED BLOBS & TYPEWRITER CURSOR
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 30px);
  padding-bottom: 60px;
  background-color: var(--bg-primary);
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
  animation: heroBlobFloat 12s ease-in-out infinite alternate;
}

.blob-1 { top: -80px; left: -80px; background-color: rgba(205, 18, 25, 0.2); }
.blob-2 { top: 80px; right: -120px; background-color: rgba(15, 23, 42, 0.12); animation-delay: -6s; }

@keyframes heroBlobFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.1); }
  100% { transform: translate(-20px, 30px) scale(0.95); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background-color: var(--bg-glass);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(205, 18, 25, 0.2);
  font-size: 0.82rem;
  font-weight: 700;
  color: #CD1219;
  margin-bottom: 18px;
  transition: transform var(--transition-fast);
}

.hero-eyebrow:hover {
  transform: translateY(-2px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #CD1219;
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #CD1219;
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hero-h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.8rem);
  font-weight: 900;
  margin-bottom: 18px;
  line-height: 1.1;
}

.hero-desc {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--text-secondary);
  margin-bottom: 22px;
  line-height: 1.6;
}

.typewriter-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  background-color: var(--bg-card);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
  min-height: 44px;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.typewriter-box:hover {
  border-color: #CD1219;
  box-shadow: var(--shadow-md);
}

.typewriter-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

#typewriter-text {
  font-size: 0.95rem;
  font-weight: 800;
  color: #CD1219;
  display: inline-flex;
  align-items: center;
}

/* Blinking Typewriter Cursor */
#typewriter-text::after {
  content: '|';
  display: inline-block;
  margin-left: 3px;
  color: #CD1219;
  font-weight: 400;
  animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-top: 26px;
  margin-top: 36px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  flex-wrap: wrap;
  gap: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast);
}

.stat-item:hover {
  transform: translateY(-3px);
}

.stat-num { font-size: 1.7rem; font-weight: 900; color: var(--text-primary); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

/* Hero Visual Card & Floating Badges */
.hero-visual { position: relative; }

.hero-glass-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 1;
  transition: transform var(--transition-bounce), box-shadow var(--transition-normal);
}

.hero-glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
}

.card-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: #CD1219;
  letter-spacing: 0.05em;
}

.hero-glass-card h3 { font-size: 1.25rem; margin: 6px 0 10px 0; }
.hero-glass-card p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 16px; }

.card-features-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 0; }
.list-item {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: transform var(--transition-fast);
}

.list-item:hover {
  transform: translateX(4px);
  color: #CD1219;
}

.hero-badge-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background-color: var(--bg-card);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  z-index: 10;
  animation: floatBadge 6s ease-in-out infinite alternate;
  transition: transform var(--transition-bounce);
}

.badge-left { top: -20px; left: -15px; }
.badge-right { bottom: -20px; right: -10px; animation-delay: -3s; }

.hero-badge-float:hover {
  transform: scale(1.08) translateY(-4px) !important;
  box-shadow: var(--shadow-xl);
  border-color: #CD1219;
}

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

.badge-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   10. SERVICES & COURSES SECTION (3D FLIP CARDS WITH PERFECT ALIGNMENT)
   -------------------------------------------------------------------------- */
.services-section { padding: 65px 0; background-color: var(--bg-primary); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

/* 3D Flip Card Container */
.service-flip-wrapper {
  perspective: 1000px;
  height: 360px;
  width: 100%;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.service-flip-wrapper:hover .service-card-inner,
.service-flip-wrapper:focus-within .service-card-inner,
.service-flip-wrapper.flipped .service-card-inner {
  transform: rotateY(180deg);
}

/* Card Front & Back Base Styles */
.service-card-front, .service-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* FRONT FACE STYLING */
.service-card-front {
  background-color: var(--bg-card);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-bounce);
}

.service-flip-wrapper:hover .service-card-front {
  border-color: #CD1219;
}

.service-card-front h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.service-card-front p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.service-bullets {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.service-bullets li {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-bullets li::before {
  content: '•';
  color: #CD1219;
  font-size: 1.2rem;
  line-height: 1;
}

.flip-hint-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: #CD1219;
  letter-spacing: 0.04em;
  display: inline-block;
  transition: transform var(--transition-fast);
}

.service-flip-wrapper:hover .flip-hint-badge {
  transform: translateX(4px);
}

/* BACK FACE STYLING (RED THEME BACKGROUND WITH WHITE ENROLL BUTTON) */
.service-card-back {
  background: #CD1219 !important;
  color: #FFFFFF !important;
  transform: rotateY(180deg);
  border: 1px solid #A30E14 !important;
  box-shadow: 0 16px 36px -6px rgba(205, 18, 25, 0.4) !important;
}

.back-niche-tag {
  font-size: 0.72rem;
  font-weight: 900;
  color: #FFFFFF !important;
  opacity: 0.9;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.service-card-back h3 {
  font-size: 1.25rem;
  font-weight: 900;
  color: #FFFFFF !important;
  margin-bottom: 8px;
}

.service-card-back p {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.92) !important;
  line-height: 1.5;
  margin-bottom: 14px;
}

.niche-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.niche-highlights-list li {
  font-size: 0.82rem;
  color: #FFFFFF !important;
  line-height: 1.4;
  border-left: 2px solid #FFFFFF !important;
  padding-left: 10px;
}

.niche-highlights-list strong {
  color: #FFFFFF !important;
  font-weight: 800;
}

/* White Button inside Card Back Face */
.service-card-back .btn-primary,
.open-enroll-modal-btn {
  background-color: #FFFFFF !important;
  color: #CD1219 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2) !important;
  border: none !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 20 !important;
  cursor: pointer !important;
}

.service-card-back .btn-primary *,
.service-card-back .btn-primary span,
.open-enroll-modal-btn * {
  color: #CD1219 !important;
  pointer-events: none !important;
}

.service-card-back .btn-primary:hover,
.open-enroll-modal-btn:hover {
  background-color: #FDF2F2 !important;
  color: #A30E14 !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25) !important;
}

.service-card-back .btn-primary:hover * {
  color: #A30E14 !important;
}

/* --------------------------------------------------------------------------
   11. WHY CHOOSE US SECTION (HIGH-VISIBILITY REAL-TIME CURSOR RED SPOTLIGHT)
   -------------------------------------------------------------------------- */
.why-section { padding: 65px 0; background-color: var(--bg-secondary); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
  width: 100%;
}

.why-card {
  position: relative;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 22px;
  min-height: 310px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform var(--transition-bounce);
  overflow: hidden;
  cursor: pointer;
}

/* High-Visibility Radial Red Spotlight Beam Tracking Mouse Pointer */
.why-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(205, 18, 25, 0.4) 0%, rgba(205, 18, 25, 0.12) 50%, transparent 80%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 1;
}

.why-card:hover::before,
.why-card.spotlight-active::before {
  opacity: 1 !important;
}

.why-card:hover {
  background-color: #FFF5F5 !important;
  border-color: #CD1219 !important;
  transform: translateY(-5px);
  box-shadow: 0 16px 36px -4px rgba(205, 18, 25, 0.3) !important;
}

/* KEEP NUMBER BADGE STATIC — ABSOLUTELY NO SCALE OR ZOOM */
.why-badge {
  font-size: 2.2rem;
  font-weight: 900;
  color: #CD1219;
  opacity: 0.35;
  margin-bottom: 10px;
  transform: none !important;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.why-card:hover .why-badge {
  color: #CD1219;
  opacity: 1;
  transform: none !important;
}

.why-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.why-summary {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.why-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.why-checklist li {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: transform var(--transition-fast);
}

.why-card:hover .why-checklist li {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   12. INDUSTRIES SECTION (COMPACT SPACING & HOVER ANIMATION)
   -------------------------------------------------------------------------- */
.industries-section { padding: 65px 0; background-color: var(--bg-primary); }

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.industry-item {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  transition: all var(--transition-bounce);
}

.industry-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: #CD1219;
}

.industry-item h4 { font-size: 1.1rem; margin-bottom: 4px; }
.industry-item p { font-size: 0.85rem; color: var(--text-secondary); }

/* --------------------------------------------------------------------------
   13. PROJECTS PORTFOLIO GALLERY & VIDEO BADGE
   -------------------------------------------------------------------------- */
.projects-section { padding: 65px 0; background-color: var(--bg-secondary); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.project-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--transition-bounce);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-xl);
  border-color: #CD1219;
}

.project-img-box {
  height: 200px;
  position: relative;
  overflow: hidden;
  background-color: #0F172A;
}

.project-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-thumb-img {
  transform: scale(1.08);
}

.video-badge-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-fast);
}

.project-card:hover .video-badge-overlay {
  background: #CD1219;
  border-color: #CD1219;
  transform: scale(1.05);
}

.project-details { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.project-tag { font-size: 0.72rem; font-weight: 800; color: #CD1219; margin-bottom: 6px; display: block; }
.project-details h3 { font-size: 1.15rem; margin-bottom: 8px; }
.project-details p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; }

/* Interactive Project Video Extended Screen Interface */
.project-modal-card {
  width: 92vw !important;
  max-width: 1050px !important;
  padding: 24px !important;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  background-color: #FFFFFF;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  animation: modalPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

@keyframes modalPopIn {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-video-wrapper {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #000000;
  margin-bottom: 0;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

#modal-video-player {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.modal-project-info h4 { font-size: 1.1rem; margin-bottom: 6px; }

.tech-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tech-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: transform var(--transition-fast);
}

.tech-tag:hover {
  transform: translateY(-2px);
  border-color: #CD1219;
  color: #CD1219;
}

/* --------------------------------------------------------------------------
   14. TESTIMONIALS SECTION & MODAL (COMPACT SPACING)
   -------------------------------------------------------------------------- */
.testimonials-section { padding: 65px 0; background-color: var(--bg-primary); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  animation: floatLeftToRight 7s ease-in-out infinite alternate;
}

@keyframes floatLeftToRight {
  0% {
    transform: translateX(-16px) translateY(0);
  }
  50% {
    transform: translateX(16px) translateY(-5px);
  }
  100% {
    transform: translateX(-16px) translateY(0);
  }
}

.testimonial-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: all var(--transition-bounce);
}

.testimonial-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: #CD1219;
}

.stars { color: #F59E0B; font-size: 1rem; margin-bottom: 10px; transition: transform var(--transition-fast); }
.testimonial-card:hover .stars { transform: scale(1.1); }

.quote { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 16px; font-style: italic; }
.author-info strong { display: block; font-size: 0.95rem; color: var(--text-primary); }
.author-info small { font-size: 0.8rem; color: var(--text-muted); }

.testimonial-cta-box { text-align: center; margin-top: 36px; }

/* Modal Backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.open { opacity: 1; visibility: visible; }

.modal-card {
  background-color: var(--bg-card);
  width: 90%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: modalPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 1.6rem;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.modal-close-btn:hover {
  transform: rotate(90deg);
  color: #CD1219;
}

.star-rating-select {
  display: flex;
  gap: 8px;
  font-size: 1.4rem;
  color: #CBD5E1;
  cursor: pointer;
}

.star-rating-select span {
  transition: transform var(--transition-fast);
}

.star-rating-select span:hover {
  transform: scale(1.2);
}

.star-rating-select span.active { color: #F59E0B; }

/* --------------------------------------------------------------------------
   15. CAREERS SECTION (COMPACT SPACING)
   -------------------------------------------------------------------------- */
.careers-section { padding: 65px 0; background-color: var(--bg-secondary); }

.careers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.career-item {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: all var(--transition-bounce);
}

.career-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #CD1219;
}

.career-role { font-size: 1.15rem; font-weight: 800; margin-bottom: 4px; }
.career-meta { font-size: 0.78rem; font-weight: 700; color: #CD1219; margin-bottom: 12px; }
.career-item p { font-size: 0.88rem; color: var(--text-secondary); }

/* --------------------------------------------------------------------------
   16. CONTACT SECTION & INPUT FOCUS RING ANIMATIONS
   -------------------------------------------------------------------------- */
.contact-section { padding: 65px 0; background-color: var(--bg-primary); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}

.contact-info-card, .contact-form-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: box-shadow var(--transition-normal);
}

.contact-info-card:hover, .contact-form-card:hover {
  box-shadow: var(--shadow-lg);
}

.info-row {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
  transition: transform var(--transition-fast);
}

.info-row:hover {
  transform: translateX(4px);
}

.ask-form { display: flex; flex-direction: column; gap: 14px; }

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--bg-secondary);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: #CD1219;
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(205, 18, 25, 0.15);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   17. FLOATING WHATSAPP & REAL FROSTED BLURRED FOOTER WITH ANIMATED AMBIENT SPHERES
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
  z-index: 8000;
  transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
  animation: pulseWhatsApp 3s infinite;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  display: block;
}

@keyframes pulseWhatsApp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.6);
}

/* Real Frosted Blur Footer with Animated Backdrop Spheres */
.footer {
  position: relative;
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(25px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
  border-top: 1px solid rgba(205, 18, 25, 0.15) !important;
  box-shadow: 0 -15px 35px rgba(15, 23, 42, 0.05) !important;
  color: var(--text-primary) !important;
  padding: 60px 0 30px 0;
  overflow: hidden;
  z-index: 10;
}

.footer::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 10%;
  width: 320px;
  height: 320px;
  background: rgba(205, 18, 25, 0.18);
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  animation: footerSphereFloat 10s ease-in-out infinite alternate;
}

.footer::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: 10%;
  width: 380px;
  height: 380px;
  background: rgba(15, 23, 42, 0.12);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: footerSphereFloat 14s ease-in-out infinite alternate-reverse;
}

@keyframes footerSphereFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.15); }
}

.footer .container {
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.footer-logo-img {
  height: 50px;
  max-height: 50px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast);
}

.footer-logo-img:hover {
  transform: scale(1.05);
}

.footer-brand p {
  color: var(--text-secondary) !important;
}

.footer-col h5 {
  color: var(--text-primary) !important;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: var(--text-secondary) !important;
  font-size: 0.88rem;
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-col a:hover {
  color: #CD1219 !important;
  transform: translateX(4px);
}

.footer-col p {
  color: var(--text-secondary) !important;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.social-icons-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icon-btn {
  width: auto;
  height: auto;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform var(--transition-bounce), filter var(--transition-fast);
  cursor: pointer;
}

.social-icon-btn svg {
  width: 26px;
  height: 26px;
  display: block;
  flex-shrink: 0;
}

.social-icon-btn:hover {
  transform: translateY(-3px) scale(1.15);
  filter: drop-shadow(0 4px 10px rgba(205, 18, 25, 0.4));
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted) !important;
  font-size: 0.85rem;
}

/* Back-to-Top Button */
#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #CD1219;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-red);
  cursor: pointer;
  z-index: 8000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-bounce);
}

#back-to-top.show { opacity: 1; visibility: visible; }
#back-to-top:hover { transform: translateY(-5px) scale(1.1); background-color: #A30E14; }

/* --------------------------------------------------------------------------
   18. ADVANCED STAGGERED & DIRECTIONAL SCROLL REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-reveal="left"] {
  opacity: 0;
  transform: translateX(-40px);
}

[data-reveal="right"] {
  opacity: 0;
  transform: translateX(40px);
}

[data-reveal="zoom"] {
  opacity: 0;
  transform: scale(0.9);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Grid Stagger Delays */
.services-grid > *:nth-child(1), .industries-grid > *:nth-child(1), .projects-grid > *:nth-child(1), .testimonials-grid > *:nth-child(1), .careers-grid > *:nth-child(1) { transition-delay: 0.05s; }
.services-grid > *:nth-child(2), .industries-grid > *:nth-child(2), .projects-grid > *:nth-child(2), .testimonials-grid > *:nth-child(2), .careers-grid > *:nth-child(2) { transition-delay: 0.12s; }
.services-grid > *:nth-child(3), .industries-grid > *:nth-child(3), .projects-grid > *:nth-child(3), .testimonials-grid > *:nth-child(3), .careers-grid > *:nth-child(3) { transition-delay: 0.19s; }
.services-grid > *:nth-child(4), .industries-grid > *:nth-child(4), .projects-grid > *:nth-child(4), .testimonials-grid > *:nth-child(4) { transition-delay: 0.26s; }
.services-grid > *:nth-child(5), .industries-grid > *:nth-child(5), .projects-grid > *:nth-child(5), .testimonials-grid > *:nth-child(5) { transition-delay: 0.33s; }
.services-grid > *:nth-child(6), .industries-grid > *:nth-child(6), .projects-grid > *:nth-child(6), .testimonials-grid > *:nth-child(6) { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   19. FULLY RESPONSIVE BREAKPOINTS (TABLETS, IPADS & ALL MOBILE DEVICES)
   -------------------------------------------------------------------------- */

/* Tablets & iPads (769px - 1024px) */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .mobile-nav-toggle { display: flex; }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .typewriter-box {
    margin: 0 auto;
  }
  
  .services-grid, .projects-grid, .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  
  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  
  .careers-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  
  .project-modal-card {
    width: 94vw !important;
    padding: 20px !important;
  }
}

/* Mobile Devices & Small Tablets (481px - 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  .hero {
    padding: 110px 0 50px 0;
  }
  
  .services-grid, .projects-grid, .why-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    text-align: center;
  }
  
  .stat-item {
    align-items: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .whatsapp-float {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
  }
  
  #back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
  
  .project-modal-card {
    width: 96vw !important;
    padding: 14px !important;
  }
  
  #modal-video-player {
    max-height: 55vh;
  }
}

/* Compact Smartphones (320px - 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .hero-h1 {
    font-size: 2.05rem;
    line-height: 1.15;
  }
  
  .hero-desc {
    font-size: 0.95rem;
  }
  
  .typewriter-box {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
  
  .hero-stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 20px;
    margin-top: 24px;
  }
  
  .stat-num {
    font-size: 1.45rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  .industries-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .contact-info-card, .contact-form-card {
    padding: 24px 18px;
  }
  
  .social-icons-wrapper {
    gap: 12px;
  }
}

/* --------------------------------------------------------------------------
   16. TEAM & PAGE HERO STYLES (PREMIUM HD BACKGROUND IMAGES & TIGHT SPACING)
   -------------------------------------------------------------------------- */
.subpage-hero, .team-hero {
  position: relative;
  padding: 135px 0 50px 0 !important;
  text-align: center;
  color: #FFFFFF;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* UNIFIED SOLID BRAND RED HERO OVERLAY (0.4 OPACITY UNIFIED RED) */
.subpage-hero::before, .team-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(205, 18, 25, 0.40);
  z-index: 1;
}

.subpage-hero .container, .team-hero .container {
  position: relative;
  z-index: 2;
}

.subpage-hero .section-title, .team-hero .section-title {
  color: #FFFFFF !important;
  font-size: clamp(2.2rem, 4vw, 3.2rem) !important;
  font-weight: 900;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.subpage-hero .section-subtitle, .team-hero .section-subtitle {
  color: #FFFFFF !important;
  font-size: 1.05rem;
  max-width: 720px;
  margin: 10px auto 0 auto;
  opacity: 0.96;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ABOUT US — Corporate headquarters lounge & organizational vision */
.hero-about {
  background-image: url('https://images.unsplash.com/photo-1497366811353-6870744d04b2?w=1600&q=85&auto=format&fit=crop');
  background-position: center center;
  background-size: cover;
}

/* SERVICES — Professional corporate consulting boardroom & presentation table setup */
.hero-services { background-image: url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?w=1600&q=85&auto=format&fit=crop'); }
/* PROJECTS — Dark tech developer workstation & code editor screens */
.hero-projects { background-image: url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?w=1600&q=85&auto=format&fit=crop'); }
/* COURSES — Professional study workspace, laptops & training notebooks */
.hero-courses { background-image: url('https://images.unsplash.com/photo-1434030216411-0b793f4b4173?w=1600&q=85&auto=format&fit=crop'); }
/* TEAM — Modern open-plan corporate agency workspace layout */
.hero-team { background-image: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?w=1600&q=85&auto=format&fit=crop'); }
/* CAREERS — High-rise corporate office architecture & professional growth */
.hero-careers { background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1600&q=85&auto=format&fit=crop'); }
/* CONTACT — Dedicated office phone, contact notepad & communication desk */
.hero-contact { background-image: url('https://images.unsplash.com/photo-1423666639041-f56000c27a9a?w=1600&q=85&auto=format&fit=crop'); }
/* BLOG — Clean blogging desk setup, laptop, notebook & writing workspace (No faces) */
.hero-blog {
  background-image: url('https://images.unsplash.com/photo-1499750310107-5fef28a66643?w=1600&q=85&auto=format&fit=crop');
  background-position: center center;
  background-size: cover;
}
/* PRIVACY — Clean professional office desk & compliance documents */
.hero-privacy { background-image: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=1600&q=85&auto=format&fit=crop'); }

/* Form Layout & Control System */
.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.form-control, .form-input, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  background-color: var(--bg-secondary);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-family: inherit;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.form-control:focus, .form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: #CD1219;
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(205, 18, 25, 0.15);
  transform: translateY(-2px);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 10px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(205, 18, 25, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-item h6 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.info-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 992px) {
  .nav-links { display: none; }
  .mobile-nav-toggle { display: flex; }
  .contact-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
  .team-hero { padding: 130px 0 45px 0 !important; }
  .form-row { flex-direction: column; gap: 0; }
  .section-title { font-size: 2.1rem !important; }
}

.team-filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 36px 0 40px 0;
}

.team-filter-btn {
  padding: 10px 22px;
  border-radius: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.team-filter-btn:hover,
.team-filter-btn.active {
  background: #CD1219;
  color: #FFFFFF;
  border-color: #CD1219;
  box-shadow: 0 8px 20px rgba(205, 18, 25, 0.25);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: stretch;
}

.team-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition-bounce);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.team-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(205, 18, 25, 0.15);
  border-color: #CD1219;
}

.team-avatar-box {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 18px;
  border: 3px solid #CD1219;
  box-shadow: 0 8px 20px rgba(205, 18, 25, 0.2);
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #CD1219 0%, #A30E14 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.team-card-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.team-card-role {
  font-size: 0.85rem;
  font-weight: 700;
  color: #CD1219;
  margin-bottom: 8px;
}

.team-badge-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
}

.team-card-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.69rem;
  font-weight: 500;
  color: #64748B;
  text-decoration: none;
  margin-top: 2px;
  margin-bottom: 0;
  transition: color 0.2s;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  text-align: center;
}

.team-card-email i {
  font-size: 0.72rem;
  color: #94A3B8;
  flex-shrink: 0;
}

.team-card-email:hover {
  color: #CD1219;
}

.team-card-email:hover i {
  color: #CD1219;
}

.badge-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
}

.badge-employee { background: #FDF2F2; color: #CD1219; border: 1px solid rgba(205, 18, 25, 0.2); }
.badge-batch1 { background: #EFF6FF; color: #2563EB; border: 1px solid rgba(37, 99, 235, 0.2); }
.badge-batch2 { background: #F0FDF4; color: #16A34A; border: 1px solid rgba(22, 163, 74, 0.2); }
.badge-batch3 { background: #FEF3C7; color: #D97706; border: 1px solid rgba(217, 119, 6, 0.2); }

@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   17. BLOG PAGE & EVENT GALLERY STYLES
   -------------------------------------------------------------------------- */
.blog-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
}

.blog-gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  aspect-ratio: 4/3;
  cursor: pointer;
  background-color: var(--bg-secondary);
  transition: all var(--transition-bounce);
}

.blog-gallery-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: #CD1219;
}

.blog-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.blog-gallery-caption {
  position: absolute;
  bottom: 0;
  inset-x: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.88) 100%);
  color: #FFFFFF;
  padding: 20px 16px 14px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.blog-gallery-item:hover .blog-gallery-caption {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   COMPREHENSIVE MULTI-DEVICE RESPONSIVE SYSTEM (MOBILE, TABLET, DESKTOP)
   -------------------------------------------------------------------------- */
.careers-grid, .services-grid, .courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.career-item {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15,23,42,0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 576px) {
  .career-item {
    padding: 20px !important;
  }
}

@media (max-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .grid-3-col, .grid-4-col, .services-grid, .courses-grid, .careers-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 992px) {
  .blog-gallery-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .team-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  .nav-links {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: flex !important;
  }
  .hero-grid, .two-col-layout, .contact-grid, .admin-two-col-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .subpage-hero {
    padding: 60px 0 40px 0 !important;
  }
  .section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
  }
  /* Force all inline grid divs to 1 column on mobile/tablet */
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .hero-title, h1 {
    font-size: clamp(1.6rem, 5vw, 2.2rem) !important;
  }
  .hero-subtitle, .section-subtitle {
    font-size: 0.9rem !important;
  }
  .grid-2-col, .grid-3-col, .grid-4-col, .services-grid, .projects-grid, .courses-grid, .careers-grid, .team-grid, .blog-gallery-grid {
    grid-template-columns: 1fr !important;
  }
  .form-row {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  .team-filter-bar {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
  }
  .team-filter-btn {
    padding: 6px 14px !important;
    font-size: 0.78rem !important;
  }
  .table-responsive-wrapper, table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100% !important;
  }
}

@media (max-width: 576px) {
  .blog-gallery-grid, .team-grid, .services-grid, .courses-grid, .careers-grid, .projects-grid {
    grid-template-columns: 1fr !important;
  }
  .team-card {
    padding: 16px !important;
  }
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .btn-primary, .btn-secondary {
    width: 100% !important;
    justify-content: center !important;
  }
}
