/* ============================================================
   ULTRA PROJECT LIBRARY — PREMIUM LANDING PAGE STYLES
   Senior FE — v2.0
   ============================================================ */

/* ===== PRELOADER ===== */
#page-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition:
    opacity 0.7s ease,
    visibility 0.7s ease;
}

#page-preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  height: 58px;
  filter: brightness(0) invert(1);
  animation: logoZoom 1.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes logoZoom {
  0% {
    transform: scale(0.2) rotate(-5deg);
    opacity: 0;
  }
  65% {
    transform: scale(1.1) rotate(1deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.preloader-bar {
  width: 140px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  margin-top: 2rem;
  overflow: hidden;
}

.preloader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #818cf8);
  border-radius: 100px;
  animation: fillBar 1.6s ease forwards;
}

@keyframes fillBar {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

.preloader-tagline {
  color: rgba(255, 255, 255, 0.3);
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 1.25rem;
  animation: fadeIn 0.6s 0.6s ease forwards;
  opacity: 0;
}

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

/* Responsive Preloader */
@media (max-width: 768px) {
  .preloader-logo {
    height: 44px;
  }
  .preloader-bar {
    width: 100px;
  }
  .preloader-tagline {
    font-size: 0.62rem;
    letter-spacing: 2px;
  }
}

/* ===== UPLOAD BUTTON ===== */
.upload-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%) !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 0.55rem 1.1rem !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  border: none !important;
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

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

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

.upload-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.55) !important;
  color: #fff !important;
}

.upload-btn i {
  font-size: 0.95rem;
  animation: uploadPulse 2.5s ease-in-out infinite;
}

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

/* ===== PREMIUM HERO ===== */
.library-hero-premium {
  min-height: 100vh;
  background: linear-gradient(
    145deg,
    #060d1f 0%,
    #0f172a 35%,
    #1a2d6b 70%,
    #0f172a 100%
  );
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 7rem 0 4rem;
  width: 100%;
  max-width: 100vw;
}

@media (max-width: 991px) {
  .library-hero-premium {
    padding: 8rem 0 3rem;
    min-height: auto;
  }
  .hero-headline {
    font-size: 2.2rem !important;
  }
  .hero-subheadline {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .hero-stats-row {
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }
  .hero-stat-number {
    font-size: 1.4rem;
  }
  .hero-stat-label {
    font-size: 0.65rem;
  }
}

/* Radial glow blobs */
.library-hero-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(
      ellipse 70% 60% at 15% 60%,
      rgba(59, 130, 246, 0.18) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 40% at 85% 20%,
      rgba(129, 140, 248, 0.14) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 40% 50% at 55% 85%,
      rgba(16, 185, 129, 0.08) 0%,
      transparent 50%
    );
  pointer-events: none;
}

/* Subtle dot-grid */
.library-hero-premium::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.06) 1px,
    transparent 1px
  );
  background-size: 40px 40px;
  pointer-events: none;
}

/* Brain wave canvas container */
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

.hero-content-premium {
  position: relative;
  z-index: 5;
}

/* Trust badge */
.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: #93c5fd;
  padding: 0.38rem 1.1rem;
  border-radius: 50px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(6px);
}

.hero-trust-badge .live-dot {
  width: 7px;
  height: 7px;
  background: #3b82f6;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
  animation: livePing 1.8s infinite;
}

@keyframes livePing {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

/* Headline */
.hero-headline {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 1.25rem;
  font-family: "Merriweather", serif;
}

.hero-headline .text-gradient {
  background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subheadline {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  font-family: "Inter", sans-serif;
  font-weight: 400;
}

/* CTA buttons */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #3b82f6, #1e3a8a);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.9rem 2.2rem;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 22px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(59, 130, 246, 0.55);
  color: #fff;
  text-decoration: none;
}

.btn-hero-secondary {
  color: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 0.9rem 2.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Search box */
.hero-search-premium {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 60px;
  padding: 0.35rem 0.35rem 0.35rem 1.5rem;
  display: flex;
  align-items: center;
  max-width: 620px;
  backdrop-filter: blur(10px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  margin-bottom: 1rem;
}

.hero-search-premium:focus-within {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 3px rgba(59, 130, 246, 0.15);
}

.hero-search-premium input {
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  font-size: 0.97rem;
  flex: 1;
  padding: 0.6rem 0.5rem;
  outline: none !important;
  box-shadow: none !important;
  -webkit-user-select: auto !important;
  user-select: auto !important;
}

.hero-search-premium input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.hero-search-premium .search-submit-btn {
  background: linear-gradient(135deg, #3b82f6, #1e3a8a);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.72rem 1.6rem;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
}

.hero-search-premium .search-submit-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: scale(1.03);
}

/* Quick searches */
.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.25rem;
}

.hero-quick-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  margin-right: 0.25rem;
}

.hero-quick-link {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 0.2rem 0.75rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hero-quick-link:hover {
  color: #fff;
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.35);
  text-decoration: none;
}

/* Hero stats row */
.hero-stats-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat-item {
  text-align: left;
}

.hero-stat-number {
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  font-family: "Inter", sans-serif;
  line-height: 1;
  letter-spacing: -0.5px;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.3rem;
  font-family: "Inter", sans-serif;
}

.hero-stat-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
  align-self: stretch;
}

/* Hero right side — floating mockup cards */
.hero-visual-area {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 991px) {
  .hero-visual-area {
    margin-top: 3rem;
  }
}

.hero-float-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: floatCard 6s ease-in-out infinite;
  width: 100%;
  max-width: 380px;
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0px) rotate(0.5deg);
  }
  50% {
    transform: translateY(-16px) rotate(-0.5deg);
  }
}

.hero-card-header {
  background: rgba(59, 130, 246, 0.12);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-card-header .dot-r {
  background: #ef4444;
}
.hero-card-header .dot-y {
  background: #f59e0b;
}
.hero-card-header .dot-g {
  background: #10b981;
}

.hero-card-dots {
  display: flex;
  gap: 0.4rem;
}
.hero-card-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero-card-title {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-family: "Inter", sans-serif;
}

.hero-project-list {
  padding: 0.75rem;
}

.hero-project-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  margin-bottom: 0.4rem;
  transition: background 0.2s;
}

.hero-project-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.hero-project-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
}

.hero-project-info {
  flex: 1;
  overflow: hidden;
}

.hero-project-name {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-project-dept {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
  font-family: "Inter", sans-serif;
}

.hero-project-price {
  font-size: 0.78rem;
  color: #60a5fa;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  white-space: nowrap;
}

/* Floating badge on card */
.hero-badge-float {
  position: absolute;
  top: -16px;
  right: -16px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-radius: 14px;
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
  text-align: center;
  min-width: 90px;
  animation: floatBadge 4s ease-in-out infinite;
  animation-delay: 1s;
  z-index: 10;
}

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

.hero-badge-float2 {
  position: absolute;
  bottom: -16px;
  left: -20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: white;
  border-radius: 14px;
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: floatBadge 5s ease-in-out infinite;
  animation-delay: 2s;
  z-index: 10;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: "Inter", sans-serif;
}

.scroll-indicator i {
  display: block;
  margin-top: 0.5rem;
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* ===== SECTION HEADER ===== */
.section-label-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 0.85rem;
}

.section-title-main {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-desc-main {
  color: #64748b;
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== FEATURES STRIP ===== */
.features-strip {
  padding: 4.5rem 0;
  background: white;
}

.feature-card-v2 {
  padding: 2rem 1.75rem;
  border-radius: 18px;
  border: 1px solid #f1f5f9;
  background: white;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
}

.feature-card-v2:hover {
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 12px 36px rgba(59, 130, 246, 0.1);
  transform: translateY(-6px);
}

.feature-icon-v2 {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}

.fi-blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}
.fi-green {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}
.fi-purple {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}
.fi-orange {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}

.feature-title-v2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  font-family: "Inter", sans-serif;
}

.feature-desc-v2 {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.65;
  font-family: "Inter", sans-serif;
}

/* ===== CATEGORY CARDS (REVAMPED) ===== */
.category-card-v2 {
  background: white;
  border-radius: 20px;
  padding: 2.5rem 1.75rem;
  text-align: center;
  border: 1px solid #f1f5f9;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.category-card-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cat-blue::before {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.04) 0%,
    rgba(59, 130, 246, 0.01) 100%
  );
}
.cat-green::before {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.04) 0%,
    rgba(16, 185, 129, 0.01) 100%
  );
}
.cat-yellow::before {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.04) 0%,
    rgba(245, 158, 11, 0.01) 100%
  );
}

.category-card-v2:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
}

.category-card-v2:hover::before {
  opacity: 1;
}

.cat-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-card-v2:hover .cat-icon-wrap {
  transform: scale(1.1) rotate(4deg);
}

.cib {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}
.cig {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}
.ciy {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.cat-count-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  padding: 0.2rem 0.85rem;
  margin-bottom: 0.85rem;
  font-family: "Inter", sans-serif;
}

.cat-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.6rem;
}

.cat-desc {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.btn-cat {
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-cat-blue {
  background: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}
.btn-cat-green {
  background: rgba(16, 185, 129, 0.08);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.btn-cat-yellow {
  background: rgba(245, 158, 11, 0.08);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.btn-cat:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.btn-cat-blue:hover {
  background: #3b82f6;
  color: #fff;
}
.btn-cat-green:hover {
  background: #10b981;
  color: #fff;
}
.btn-cat-yellow:hover {
  background: #f59e0b;
  color: #fff;
}

/* ===== INFINITE HORIZONTAL SLIDER ===== */
.slider-section {
  padding: 4.5rem 0;
  background: #f8fafc;
  overflow: hidden;
}

@media (max-width: 768px) {
  .slider-section {
    padding: 3rem 0;
  }
  .section-title-main {
    font-size: 1.8rem;
  }
}

.slider-outer {
  position: relative;
  overflow: hidden;
}

/* Edge fade masks */
.slider-outer::before,
.slider-outer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 3;
  pointer-events: none;
}

.slider-outer::before {
  left: 0;
  background: linear-gradient(to right, #f8fafc 0%, transparent 100%);
}

.slider-outer::after {
  right: 0;
  background: linear-gradient(to left, #f8fafc 0%, transparent 100%);
}

.slider-track {
  display: flex;
  gap: 1.25rem;
  padding: 0.75rem 0 1.5rem;
  animation: scrollInfinite 40s linear infinite;
  width: max-content;
}

.slider-track:hover {
  animation-play-state: paused;
}

@keyframes scrollInfinite {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.slider-card {
  flex: 0 0 270px;
  width: 270px;
  cursor: pointer;
}

.slider-card .lib-item-card {
  margin-bottom: 0;
  background: white;
}

.slider-card .lib-item-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.12);
}

/* Pause on mobile too via touch */
.slider-track.is-paused {
  animation-play-state: paused;
}

/* See-all link row */
.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.slider-see-all {
  font-size: 0.88rem;
  font-weight: 700;
  color: #3b82f6;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}

.slider-see-all:hover {
  gap: 0.7rem;
  text-decoration: none;
  color: #1e40af;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  border-radius: 24px;
  padding: 3.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px
  );
  background-size: 30px 30px;
}

.cta-banner-content {
  position: relative;
  z-index: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .library-hero-premium {
    min-height: auto;
    padding: 7rem 0 4rem;
  }

  .hero-visual-area {
    margin-top: 3rem;
  }

  .hero-float-card {
    max-width: 320px;
  }
}

@media (max-width: 767px) {
  .hero-headline {
    font-size: 2.2rem;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    justify-content: center;
    width: 100%;
  }

  .hero-stats-row {
    gap: 1.25rem;
  }

  .hero-stat-number {
    font-size: 1.6rem;
  }

  .slider-card {
    flex: 0 0 240px;
    width: 240px;
  }

  .cta-banner {
    padding: 2.5rem 1.5rem;
  }

  .hero-visual-area {
    display: none;
  }
}

/* =============================================
   PHOTO STACK (HERO RIGHT SIDE)
   ============================================= */

.hero-photo-stack {
  position: relative;
  padding: 2rem 1.5rem 3rem 1rem;
  display: flex;
  justify-content: center;
}

/* Main photo frame */
.hero-main-photo {
  position: relative;
  width: 100%;
  max-width: 400px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: floatCard 7s ease-in-out infinite;
  z-index: 2;
}

.hero-main-photo img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Subtle bottom-to-top fade so photo blends into the dark hero bg */
.hero-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(
    to top,
    rgba(10, 18, 40, 0.7) 0%,
    transparent 100%
  );
  pointer-events: none;
}

/* Small secondary photo: bottom-right corner */
.hero-secondary-photo {
  position: absolute;
  bottom: 1.5rem;
  right: 0;
  width: 140px;
  height: 110px;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  animation: floatBadge 5s ease-in-out infinite;
  animation-delay: 1.5s;
  z-index: 4;
}

.hero-secondary-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 991px) {
  .hero-main-photo {
    max-width: 340px;
  }
  .hero-main-photo img {
    height: 360px;
  }
  .hero-secondary-photo {
    width: 110px;
    height: 85px;
  }
}

/* =============================================
   FEATURES STRIP — ATMOSPHERE IMAGE BANNER
   ============================================= */

.features-img-banner {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  margin-bottom: 3.5rem;
}

.features-img-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: brightness(0.55) saturate(0.8);
}

.features-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.6) 0%,
    rgba(30, 58, 138, 0.4) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.features-img-text {
  color: rgba(255, 255, 255, 0.85);
  font-family: "Merriweather", serif;
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  text-align: center;
  padding: 0 2rem;
  max-width: 700px;
  line-height: 1.6;
  letter-spacing: 0.2px;
}

@media (max-width: 576px) {
  .features-img-banner {
    height: 160px;
    margin-bottom: 2.5rem;
  }
}

/* =============================================
   CTA SECTION — EXPERT PHOTO
   ============================================= */

.cta-expert-wrap {
  position: relative;
  display: inline-block;
}

.cta-expert-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 0 0 8px rgba(52, 211, 153, 0.12),
    0 15px 35px rgba(0, 0, 0, 0.35);
  display: block;
  margin: 0 auto;
}

/* Green "online" indicator dot */
.cta-online-dot {
  position: absolute;
  bottom: 6px;
  right: calc(50% - 65px + 6px);
  width: 18px;
  height: 18px;
  background: #34d399;
  border-radius: 50%;
  border: 3px solid #1a2d6b;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
  animation: onlinePing 2s infinite;
}

@keyframes onlinePing {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

@media (max-width: 767px) {
  .cta-expert-photo {
    width: 100px;
    height: 100px;
  }
}

/* =============================================
   HERO MOCKUP THUMB COLOURS (replaces cycle inline styles)
   ============================================= */
.hero-project-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.thumb-blue {
  background: linear-gradient(135deg, #3b82f6, #1e3a8a);
}
.thumb-green {
  background: linear-gradient(135deg, #10b981, #059669);
}
.thumb-purple {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}
.thumb-yellow {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.thumb-red {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

/* =============================================
   STUDENT SECTION — Photo mosaic + value prop
   ============================================= */
.student-section {
  padding: 5rem 0;
  background: white;
}

/* Photo mosaic container */
.student-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  grid-template-rows: auto;
  gap: 0.85rem;
  height: 480px;
}

.mosaic-main {
  grid-row: 1 / 3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.mosaic-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}

.mosaic-main:hover img {
  transform: scale(1.03);
}

.mosaic-side {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mosaic-sub {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.mosaic-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}

.mosaic-sub:hover img {
  transform: scale(1.04);
}

/* Achievement badge floating on mosaic */
.mosaic-badge {
  position: absolute;
  bottom: -1.25rem;
  left: -1rem;
  background: white;
  border-radius: 16px;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.14);
  z-index: 4;
  border: 1px solid #f1f5f9;
}

.mosaic-badge-icon {
  font-size: 1.8rem;
  line-height: 1;
}

/* Benefit list items */
.student-benefit-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.student-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.benefit-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.2rem;
  font-family: "Inter", sans-serif;
}

.benefit-desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
  font-family: "Inter", sans-serif;
}

/* Responsive */
@media (max-width: 991px) {
  .student-mosaic {
    height: 380px;
  }
}

@media (max-width: 767px) {
  .student-section {
    padding: 3.5rem 0;
  }
  
  .student-mosaic {
    /* Stack images vertically on mobile */
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
    grid-template-rows: unset;
    height: auto;
    margin-bottom: 2rem;
    gap: 1rem;
  }
  
  .mosaic-main {
    width: 100%;
    height: 250px;
    grid-row: unset;
  }
  
  .mosaic-side {
    width: 100%;
    flex-direction: row;
    gap: 1rem;
  }
  
  .mosaic-sub {
    flex: 1;
    height: 150px;
  }
  
  .mosaic-badge {
    left: 0;
    bottom: -1rem;
    position: static;
    margin-top: 1rem;
    width: auto;
  }
}

/* =============================================
   CTA — SPLIT CARD (dark left / photo right)
   ============================================= */
.cta-split-card {
  display: flex;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
  min-height: 420px;
}

.cta-split-left {
  flex: 0 0 55%;
  background: linear-gradient(145deg, #0f172a 0%, #1e3a8a 100%);
  padding: 3.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Subtle dot-grid on left panel */
.cta-split-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  pointer-events: none;
}

.cta-split-right {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.cta-split-right img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Left-edge fade so photo blends into the dark panel */
.cta-photo-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.45) 0%,
    transparent 40%
  );
  pointer-events: none;
}

/* Checklist */
.cta-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cta-check-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-family: "Inter", sans-serif;
}

.cta-check-list li i {
  color: #34d399;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Responsive — stack on mobile */
@media (max-width: 767px) {
  .cta-split-card {
    flex-direction: column;
  }

  .cta-split-left {
    flex: none;
    padding: 2.5rem 1.75rem;
  }

  .cta-split-right {
    min-height: 240px;
    flex: none;
  }

  .cta-photo-fade {
    background: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.4) 0%,
      transparent 30%
    );
  }
}
