/* ====== layout.css ====== */

/* -------- Section Common -------- */
.section-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), rgba(var(--primary-light-rgb), 0.12));
  color: var(--primary);
  border-radius: 50px;
  font-size: 12px; font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: var(--font-secondary);
}

.section-title {
  font-family: var(--font-display);
  font-size: 42px; font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-title .highlight { color: var(--primary); }

.section-sub {
  font-size: 17px; color: var(--text-light);
  max-width: 580px; margin-bottom: 45px;
  margin-left: auto; margin-right: auto;
  line-height: 1.7;
  font-weight: 400;
}

/* -------- Page Header -------- */
.page-header {
  padding: 180px 0 80px;
  background: var(--page-header-bg);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(32, 96, 136, 0.04)' d='M0,160L48,176C96,192,192,224,288,218.7C384,213,480,171,576,149.3C672,128,768,128,864,149.3C960,171,1056,213,1152,218.7C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'/%3E%3C/svg%3E") bottom no-repeat;
  background-size: cover;
  pointer-events: none;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 52px; font-weight: 800;
  color: var(--page-header-text);
  position: relative; z-index: 1;
}

.page-header p {
  color: var(--page-header-desc);
  font-size: 18px;
  position: relative; z-index: 1;
  margin-top: 10px;
}

/* -------- Site Header / Navbar (Persistent Luxury Floating Island - Light & Dark Adaptable) -------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 99999;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(32, 96, 136, 0.1);
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .site-header {
  background: rgba(6, 18, 30, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.site-header.scrolled {
  top: 14px;
  width: 94%;
  max-width: 1240px;
  margin: 0 auto;
  border-radius: 60px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 252, 0.96));
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(32, 96, 136, 0.18);
  border-bottom: 1px solid rgba(32, 96, 136, 0.25);
  box-shadow: 0 16px 40px -8px rgba(32, 96, 136, 0.14), 0 0 25px rgba(165, 205, 215, 0.22), inset 0 1px 1px #ffffff;
  left: 0; right: 0;
}

[data-theme="dark"] .site-header.scrolled {
  background: linear-gradient(135deg, rgba(10, 36, 58, 0.9), rgba(5, 18, 30, 0.96));
  border: 1px solid rgba(77, 184, 217, 0.32);
  border-bottom: 1px solid rgba(77, 184, 217, 0.45);
  box-shadow: 0 20px 45px -8px rgba(0, 8, 20, 0.65), 0 0 25px rgba(32, 96, 136, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.18);
}

.site-header.scrolled .navbar {
  padding: 6px 22px;
}

.navbar {
  padding: 16px 0;
  transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--nav-link-color) !important;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-brand:hover {
  transform: translateY(-1px) scale(1.03);
}

.navbar-brand img, .nav-logo {
  height: 52px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(32, 96, 136, 0.15));
}

.navbar-brand:hover img, .navbar-brand:hover .nav-logo {
  filter: drop-shadow(0 4px 16px rgba(var(--primary-light-rgb), 0.5));
}

.navbar-brand span {
  color: var(--primary);
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-top: -4px;
  letter-spacing: 2px;
}

[data-theme="dark"] .navbar-brand span {
  color: var(--primary-light);
}

.nav-link {
  color: var(--text) !important;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px !important;
  position: relative;
  letter-spacing: 0.3px;
  transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border-radius: 30px;
  margin: 0 3px;
  border: 1px solid transparent;
}

[data-theme="dark"] .nav-link {
  color: rgba(248, 250, 252, 0.9) !important;
}

.nav-link:hover {
  color: var(--primary) !important;
  background: rgba(32, 96, 136, 0.08);
  border-color: rgba(32, 96, 136, 0.15);
  transform: translateY(-1px);
}

[data-theme="dark"] .nav-link:hover {
  color: var(--primary-light) !important;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.nav-link.active {
  color: var(--primary) !important;
  background: linear-gradient(135deg, rgba(32, 96, 136, 0.12), rgba(165, 205, 215, 0.22));
  border: 1px solid rgba(32, 96, 136, 0.25);
  box-shadow: 0 4px 15px rgba(32, 96, 136, 0.08), inset 0 1px 0 #ffffff;
}

[data-theme="dark"] .nav-link.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(32, 96, 136, 0.45), rgba(77, 184, 217, 0.25));
  border: 1px solid rgba(77, 184, 217, 0.45);
  box-shadow: 0 4px 18px rgba(32, 96, 136, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 3px;
  background: var(--primary);
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.5);
}

[data-theme="dark"] .nav-link.active::after {
  background: var(--primary-light);
  box-shadow: 0 0 8px var(--primary-light);
}

/* Custom Animated Navbar Toggler (100% visible on both themes) */
.navbar-toggler {
  width: 40px;
  height: 40px;
  padding: 0 !important;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 12px;
  background: rgba(32, 96, 136, 0.08);
  border: 1px solid rgba(32, 96, 136, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer;
}

[data-theme="dark"] .navbar-toggler {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.navbar-toggler:hover {
  background: rgba(32, 96, 136, 0.15);
  border-color: var(--primary);
  transform: scale(1.04);
}

[data-theme="dark"] .navbar-toggler:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-light);
}

.navbar-toggler .toggler-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] .navbar-toggler .toggler-bar {
  background-color: #F8FAFC;
}

/* Morph to 'X' when Open */
.navbar-toggler:not(.collapsed) .toggler-bar:nth-child(1),
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggler:not(.collapsed) .toggler-bar:nth-child(2),
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar-toggler:not(.collapsed) .toggler-bar:nth-child(3),
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Quick Actions Header */
.navbar-mobile-quick {
  margin-right: auto;
}

body.dsw-ltr .navbar-mobile-quick {
  margin-right: 0;
  margin-left: auto;
}

.navbar-mobile-quick .lang-switch-mobile {
  height: 38px;
  padding: 0 10px;
  font-size: 12px;
}

.navbar-mobile-quick .theme-toggle-mobile,
.navbar-mobile-quick .cart-mobile {
  width: 38px;
  height: 38px;
  font-size: 14px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Header CTA Button - Luxury Style with Pulse Ring */
.header-cta {
  background: linear-gradient(135deg, #206088 0%, #164360 100%);
  color: #ffffff !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  transition: box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease, transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(32, 96, 136, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  will-change: transform;
}

[data-theme="dark"] .header-cta {
  background: linear-gradient(135deg, #185078 0%, #206088 50%, #3ca4c7 100%);
  border: 1px solid rgba(77, 184, 217, 0.45);
  box-shadow: 0 4px 20px rgba(32, 96, 136, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.header-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-100%);
  transition: transform 0.65s ease;
}

.header-cta:hover::before {
  transform: translateX(100%);
}

.header-cta:hover {
  box-shadow: 0 8px 28px rgba(32, 96, 136, 0.45), 0 0 20px rgba(165, 205, 215, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .header-cta:hover {
  box-shadow: 0 8px 30px rgba(32, 96, 136, 0.55), 0 0 22px rgba(77, 184, 217, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.6);
}

.header-cta i {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-cta:hover i {
  transform: translateX(-4px);
}

/* Language Switcher Button (Bilingual AR/EN) */
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 15px;
  border-radius: 50px;
  font-family: var(--font-display), 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(32, 96, 136, 0.06);
  border: 1px solid rgba(32, 96, 136, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  will-change: transform;
}

.lang-switch-btn i {
  font-size: 14px;
  transition: transform 0.4s ease;
}

.lang-switch-btn:hover {
  background: rgba(32, 96, 136, 0.14);
  border-color: var(--primary);
  color: var(--primary-dark);
  box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.2);
  transform: translateY(-1px);
}

.lang-switch-btn:hover i {
  transform: rotate(180deg);
}

[data-theme="dark"] .lang-switch-btn {
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .lang-switch-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--primary-light);
  color: var(--primary-light);
  box-shadow: 0 0 18px rgba(var(--primary-light-rgb), 0.35);
}

/* ============================================================
   LTR (English Mode) Global Overrides
   ============================================================ */
html[dir="ltr"], body.dsw-ltr {
  font-family: 'Inter', 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif !important;
  text-align: left;
  direction: ltr;
}

body.dsw-ltr #banner header,
body.dsw-ltr .hero-desc,
body.dsw-ltr .section-title,
body.dsw-ltr .section-sub,
body.dsw-ltr .spotlight .content,
body.dsw-ltr .service-card,
body.dsw-ltr .portfolio-item,
body.dsw-ltr .timeline-card,
body.dsw-ltr .faq-item,
body.dsw-ltr .contact-info-card,
body.dsw-ltr .contact-form-card,
body.dsw-ltr .footer-about,
body.dsw-ltr .footer-title,
body.dsw-ltr .footer-links,
body.dsw-ltr .footer-contact {
  text-align: left !important;
}

body.dsw-ltr .header-cta i.fa-arrow-left,
body.dsw-ltr .btn i.fa-arrow-left,
body.dsw-ltr .project-link i.fa-arrow-left,
body.dsw-ltr .service-link i.fa-arrow-left {
  transform: rotate(180deg);
}

body.dsw-ltr .header-cta:hover i.fa-arrow-left {
  transform: rotate(180deg) translateX(-4px);
}

body.dsw-ltr .whatsapp-float {
  right: auto;
  left: 25px;
}

body.dsw-ltr .scroll-top-btn {
  left: auto;
  right: 25px;
}

body.dsw-ltr .navbar-cart-btn .cart-count {
  right: auto;
  left: -2px;
}

body.dsw-ltr .badge-top-right {
  right: auto;
  left: -15px;
}

body.dsw-ltr .badge-bottom-left {
  left: auto;
  right: -15px;
}

.navbar-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--nav-link-color) !important;
  font-size: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  cursor: pointer;
  will-change: transform;
}

.navbar-cart-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-light);
  color: var(--primary-light) !important;
  box-shadow: 0 0 18px rgba(var(--primary-light-rgb), 0.35);
}

.navbar-cart-btn .cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-dark);
  box-shadow: 0 2px 8px rgba(228, 64, 95, 0.5);
  animation: cartBadgeBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cartBadgeBounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* Theme Toggle micro-interactions */
.theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--nav-link-color);
  font-size: 18px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  will-change: transform;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-light);
  color: var(--primary-light);
  box-shadow: 0 0 18px rgba(var(--primary-light-rgb), 0.35);
}

.theme-toggle i {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle:hover i {
  transform: rotate(360deg) scale(1.15);
  color: var(--primary-light);
}

/* 3D Tilt Card Base */
.service-card,
.horizontal-project-card,
.portfolio-page-item,
.timeline-card,
.contact-info-card,
.contact-form-card,
.product-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* Floating Badges */
.floating-ui-badge {
  position: absolute;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 10px 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08), 0 0 20px rgba(var(--primary-rgb), 0.05);
  z-index: 10;
  transition: var(--transition-smooth);
}

.floating-ui-badge:hover {
  transform: scale(1.05) translateY(-3px) !important;
  border-color: var(--primary-light);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 0 25px rgba(var(--primary-rgb), 0.15);
}

.floating-ui-badge .badge-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.floating-ui-badge .badge-info {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.floating-ui-badge .badge-title {
  font-size: 10px;
  color: var(--text-light);
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.floating-ui-badge .badge-value {
  font-size: 13px;
  color: var(--text);
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
}

.badge-top-right {
  top: 20px;
  right: -10px;
}

.badge-bottom-left {
  bottom: 30px;
  left: -10px;
}

@media (max-width: 1199px) {
  .badge-top-right { right: 0; }
  .badge-bottom-left { left: 0; }
}

@media (max-width: 575px) {
  .floating-ui-badge {
    padding: 6px 12px;
    gap: 6px;
  }
  .floating-ui-badge .badge-icon {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  .floating-ui-badge .badge-value {
    font-size: 11px;
  }
  .badge-top-right { top: 10px; }
  .badge-bottom-left { bottom: 20px; }
}

/* -------- Banner Section (Landed Style) -------- */
#banner {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-bg);
  overflow: hidden;
  padding: 140px 0 80px;
  isolation: isolate;
}

#banner::before {
  content: ''; position: absolute;
  inset: -10px;
  background: url('../images/marketing_bg.jpg') no-repeat center center;
  background-size: cover;
  filter: blur(4px);
  z-index: 1;
  pointer-events: none;
}

#banner::after {
  content: ''; position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 2;
  pointer-events: none;
}

/* Animated gradient mesh overlay */
#banner .hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(var(--primary-rgb), 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(var(--primary-light-rgb), 0.06) 0%, transparent 50%);
  animation: heroMeshShift 12s ease-in-out infinite alternate;
}

@keyframes heroMeshShift {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(-1%, 1%); }
}

#banner .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  z-index: 3;
  gap: 50px;
}

#banner header {
  flex: 1.2;
  text-align: right;
  position: relative;
}

/* Hero image container */
#banner .hero-image-container {
  position: relative;
  flex: 0.8;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

#banner .image.hero-image-wrapper {
  position: relative;
  padding: 10px;
  border-radius: var(--radius-xl);
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 2px solid var(--glass-border);
  box-shadow:
    0 20px 45px rgba(0,0,0,0.12),
    0 0 30px rgba(var(--primary-rgb), 0.1),
    inset 0 1px 0 rgba(255,255,255,0.15);
  max-width: 410px;
  height: 530px;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Decorative gradient ring behind image */
#banner .image.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary-light), transparent, var(--accent), transparent);
  z-index: -1;
  opacity: 0.3;
  animation: heroRingRotate 8s linear infinite;
}

@keyframes heroRingRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#banner .image.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to top, rgba(var(--primary-rgb), 0.15), transparent 40%);
  z-index: 1;
  pointer-events: none;
}

#banner .image.hero-image-wrapper:hover {
  transform: scale(1.02) rotate(-1deg);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-hover), 0 25px 55px rgba(0,0,0,0.22), 0 0 45px rgba(var(--primary-rgb), 0.25);
}

#banner .image.hero-image-wrapper img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: calc(var(--radius-xl) - 8px);
  transition: var(--transition-smooth);
}

#banner .image.hero-image-wrapper:hover img {
  transform: scale(1.03);
}

@keyframes floatHero {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 22px;
  background: rgba(var(--primary-light-rgb), 0.12);
  border: 1px solid rgba(var(--primary-light-rgb), 0.25);
  color: var(--primary-light);
  border-radius: 50px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 22px;
}

.hero-badge i { font-size: 10px; }

#banner h2 {
  font-family: var(--font-display);
  font-size: 56px; font-weight: 800;
  color: var(--hero-text);
  line-height: 1.25;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--hero-text) 0%, rgba(var(--text-rgb), 0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#banner h2 .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

#banner p {
  font-size: 19px;
  color: var(--hero-desc);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.95;
}

.hero-actions { display: flex; gap: 15px; flex-wrap: wrap; }

/* Button Overrides */
.btn-light-custom {
  background: var(--gradient-primary);
  color: var(--white) !important;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14.5px;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-light-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.35), 0 0 15px rgba(var(--primary-light-rgb), 0.2);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-light-custom i {
  transition: transform 0.3s ease;
}

.btn-light-custom:hover i {
  transform: translateX(-4px);
}

.btn-outline-custom {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  color: var(--text) !important;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14.5px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-outline-custom:hover {
  background: var(--border);
  border-color: var(--primary-light);
  color: var(--primary) !important;
  transform: translateY(-2px);
}

/* Scrolly Arrows (Landed style) */
.goto-next {
  position: absolute;
  bottom: 25px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--text-muted);
  font-size: 12px; font-weight: 500;
  text-decoration: none !important;
  z-index: 3;
  transition: var(--transition);
}

.goto-next:hover {
  color: var(--primary);
  transform: translateX(-50%) translateY(4px);
}

.goto-next i {
  font-size: 14px;
  animation: bounceScroll 2s ease-in-out infinite;
}

@keyframes bounceScroll {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* -------- Ticker -------- */
.ticker-section {
  background: var(--primary-darker);
  padding: 14px 0;
  overflow: hidden;
}

.ticker-wrap { overflow: hidden; }

.ticker-inner {
  display: flex; gap: 35px;
  animation: tickerScroll 25s linear infinite;
  white-space: nowrap; width: max-content;
}

.ticker-inner span {
  color: var(--white);
  font-size: 16px; font-weight: 700;
  letter-spacing: 1px;
}

.ticker-inner .ticker-dot { color: var(--primary-light); font-size: 6px; }

/* -------- Scrolling Text -------- */
.scrolling-text-section {
  background: var(--primary-dark);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.scrolling-text-section .section-title { color: var(--white); }
.scrolling-text-section .section-badge { background: rgba(var(--primary-light-rgb), 0.15); color: var(--primary-light); }

.scrolling-text-row {
  overflow: hidden;
  margin-top: 40px;
}

.scrolling-text-track {
  display: flex; gap: 50px;
  animation: scrollText 20s linear infinite;
  width: max-content;
}

.scrolling-text-track.reverse { animation-direction: reverse; animation-duration: 25s; }

.scroll-text-item {
  display: flex; align-items: center; gap: 15px;
  font-family: var(--font-secondary);
  font-size: 28px; font-weight: 600;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
}

.scroll-text-item i { color: var(--primary-light); font-size: 16px; }

/* -------- Counter Section -------- */
.counter-section {
  padding: 60px 0;
  background: var(--bg-section);
  position: relative;
  overflow: hidden;
}

.counter-item { text-align: center; position: relative; z-index: 1; }

.counter-item i {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 15px;
}

.counter-item .num {
  display: block;
  font-family: var(--font-display);
  font-size: 48px; font-weight: 800;
  color: var(--primary-dark);
  line-height: 1; margin-bottom: 5px;
}

.counter-item .lbl {
  font-size: 16px; font-weight: 600;
  color: var(--text-light);
}

/* -------- CTA Section -------- */
.cta-section {
  padding: 80px 0;
  background: var(--bg-section);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: ''; position: absolute;
  bottom: -50%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: 38px; color: var(--text);
  font-weight: 700; margin-bottom: 12px;
}

.cta-section p { color: var(--text-light); font-size: 17px; margin-bottom: 25px; }

.cta-phone {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--primary);
  font-size: 26px; font-weight: 800;
  transition: var(--transition);
}

.cta-phone i {
  width: 50px; height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: var(--transition);
}

.cta-phone:hover { color: var(--primary-dark); }
.cta-phone:hover i { background: var(--accent); }

/* -------- Newsletter -------- */
.newsletter-section {
  padding: 60px 0;
  background: var(--bg-section);
}

.newsletter-section h3 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
}

.newsletter-section p { color: var(--text-light); margin: 0; font-size: 15px; }

.newsletter-form .input-group { direction: ltr; }

.newsletter-form .form-control {
  padding: 14px 20px;
  border: 2px solid transparent;
  border-radius: 50px 0 0 50px;
  font-family: var(--font-primary);
}

.newsletter-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: none;
}

.btn-subscribe {
  background: var(--primary);
  color: var(--white);
  padding: 14px 28px;
  font-weight: 700;
  border-radius: 0 50px 50px 0;
  border: none;
  transition: var(--transition);
}

.btn-subscribe:hover { background: var(--primary-dark); color: var(--white); }

/* -------- Footer -------- */
.site-footer {
  background: var(--primary-darker);
  color: rgba(255,255,255,0.75);
}

.footer-top { padding: 70px 0 35px; }

.footer-logo { max-width: 220px; margin-bottom: 18px; }
.footer-about { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.6); }

.footer-title {
  font-size: 16px; font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: ''; position: absolute;
  bottom: 0; right: 0;
  width: 30px; height: 3px;
  background: var(--primary-light);
  border-radius: 10px;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}

.footer-links a:hover { color: var(--primary-light); padding-right: 6px; }

.footer-contact li {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.footer-contact li i {
  width: 34px; height: 34px; min-width: 34px;
  background: rgba(var(--primary-light-rgb), 0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-light); font-size: 13px;
}

.footer-contact a { color: rgba(255,255,255,0.6); }
.footer-contact a:hover { color: var(--primary-light); }

.footer-social {
  display: flex; gap: 10px; margin-top: 18px;
}

.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); font-size: 15px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary-light);
  color: var(--primary-darker);
  transform: translateY(-3px);
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom p { color: rgba(255,255,255,0.45); font-size: 13px; margin: 0; }
.footer-bottom strong { color: var(--primary-light); }

.footer-bottom-links {
  display: flex; gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  transition: var(--transition);
}

.footer-bottom-links a:hover { color: var(--primary-light); }

/* -------- Spotlight Sections (Landed Style) -------- */
.spotlight {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary-darker);
}

.spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 38, 56, 0.45) 0%, rgba(12, 38, 56, 0.8) 100%);
  z-index: 2;
  pointer-events: none;
}

.spotlight .image.fit.main {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

.spotlight .image.fit.main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight:hover .image.fit.main img {
  transform: scale(1.06);
}

.spotlight .content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 30px;
}

/* Spotlight Style 1: Bottom */
.spotlight.style1.bottom {
  align-items: flex-end;
}

.spotlight.style1.bottom .content {
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border);
  padding: 60px 40px;
  max-width: 100%;
  margin: 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
}

.spotlight.style1.bottom .content h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.spotlight.style1.bottom .content p {
  color: var(--text-light);
  line-height: 1.8;
  margin: 0;
}

/* Spotlight Style 2: Right */
.spotlight.style2.right {
  justify-content: flex-start; /* Right side in RTL */
}

.spotlight.style2.right .content {
  width: 48%;
  min-height: 80vh;
  margin: 0;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-left: 1px solid var(--glass-border);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.15);
}

/* Spotlight Style 3: Left */
.spotlight.style3.left {
  justify-content: flex-end; /* Left side in RTL */
}

.spotlight.style3.left .content {
  width: 48%;
  min-height: 80vh;
  margin: 0;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--glass-border);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 15px 0 40px rgba(0, 0, 0, 0.15);
}

/* Spotlight typography adjustments */
.spotlight h2 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
}

.spotlight p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 25px;
}

.spotlight ul.actions {
  display: flex;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Dark theme specific fixes for spotlights */
[data-theme="dark"] .spotlight::before {
  background: linear-gradient(to top, rgba(3, 7, 18, 0.5) 0%, rgba(3, 7, 18, 0.85) 100%);
}
[data-theme="dark"] .spotlight .content p {
  color: var(--text-light);
}

/* Responsive Spotlights */
@media (max-width: 991px) {
  .spotlight {
    min-height: auto;
    padding-top: 150px;
  }
  .spotlight.style2.right, .spotlight.style3.left {
    justify-content: center;
    align-items: center;
  }
  .spotlight.style2.right .content, .spotlight.style3.left .content {
    width: 90%;
    min-height: auto;
    margin: 40px auto;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
}

/* ============================================================
   PLAYING CARDS DECK (Fly on Scroll & Fan Out on Hover)
   ============================================================ */
.cards-deck-section {
  padding: 120px 0 140px;
  position: relative;
  background: var(--bg-section);
  overflow: hidden;
  perspective: 2000px;
}

.cards-deck-wrapper {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  perspective: 2000px;
  transform-style: preserve-3d;
}

.cards-deck-container {
  position: relative;
  width: 100%;
  height: 490px;
  transform-style: preserve-3d;
  margin: 20px auto 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.playing-card-item {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(var(--primary-rgb), 0.08),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform-origin: center bottom;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  will-change: transform, opacity;
  overflow: hidden;
  cursor: pointer;
}

/* Base Physical Stack Offsets */
.playing-card-item.card-deck-1 { z-index: 5; transform: translate3d(0, 0, 0) scale(1); }
.playing-card-item.card-deck-2 { z-index: 4; transform: translate3d(0, 10px, -20px) scale(0.97); }
.playing-card-item.card-deck-3 { z-index: 3; transform: translate3d(0, 20px, -40px) scale(0.94); }
.playing-card-item.card-deck-4 { z-index: 2; transform: translate3d(0, 30px, -60px) scale(0.91); }
.playing-card-item.card-deck-5 { z-index: 1; transform: translate3d(0, 40px, -80px) scale(0.88); }

/* --- HOVER FAN-OUT (فتح ورق الكوتشينة بالماوس) --- */
@media (min-width: 992px) {
  .cards-deck-container.is-hoverable:hover .playing-card-item.card-deck-1 {
    transform: translate3d(-100px, -15px, 0) rotate(-7deg) scale(0.97);
  }
  .cards-deck-container.is-hoverable:hover .playing-card-item.card-deck-2 {
    transform: translate3d(-50px, -8px, 0) rotate(-3.5deg) scale(0.98);
  }
  .cards-deck-container.is-hoverable:hover .playing-card-item.card-deck-3 {
    transform: translate3d(0px, 0px, 0) rotate(0deg) scale(1);
  }
  .cards-deck-container.is-hoverable:hover .playing-card-item.card-deck-4 {
    transform: translate3d(50px, -8px, 0) rotate(3.5deg) scale(0.98);
  }
  .cards-deck-container.is-hoverable:hover .playing-card-item.card-deck-5 {
    transform: translate3d(100px, -15px, 0) rotate(7deg) scale(0.97);
  }

  /* Focus single card when directly hovered */
  .cards-deck-container.is-hoverable .playing-card-item:hover {
    transform: translateY(-35px) scale(1.03) rotate(0deg) !important;
    z-index: 20 !important;
    box-shadow: 
      0 35px 70px -15px rgba(0, 0, 0, 0.25),
      0 0 30px rgba(var(--primary-rgb), 0.28),
      0 0 0 2px var(--primary) !important;
  }
}

.card-inner-box {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
}

/* Playing Card Corner Suit Badge */
.card-suit-badge {
  position: absolute;
  top: 16px; right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  z-index: 10;
}

.card-grid-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
  height: 100%;
  align-items: center;
}

.card-visual-col {
  height: 100%;
  display: flex;
  align-items: center;
}

.card-img-holder {
  position: relative;
  width: 100%;
  height: 92%;
  border-radius: 20px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.card-img-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.playing-card-item:hover .card-img-holder img {
  transform: scale(1.08);
}

.card-img-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
  pointer-events: none;
}

.card-floating-pill {
  position: absolute;
  bottom: 14px; right: 14px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-content-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 10px;
}

.card-top-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.card-step-num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.card-year-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
}

.card-service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

.card-content-col h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
}

.card-content-col p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-mini-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(var(--primary-light-rgb), 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.timeline-flip-indicator {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.indicator-step {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-muted);
  background: var(--card-bg, #ffffff);
  border: 2px solid var(--border);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.indicator-step.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.35);
  transform: scale(1.12);
}

@media (max-width: 991px) {
  .cards-deck-container {
    height: 560px;
  }
  .card-grid-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .card-visual-col {
    height: 200px;
  }
  .card-img-holder {
    height: 100%;
  }
  .card-content-col h4 {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .cards-deck-container {
    height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 25px;
  }
  .playing-card-item {
    position: relative;
    height: auto;
    transform: none !important;
    opacity: 1 !important;
  }
  .timeline-flip-indicator {
    display: none;
  }
}


/* ============================================================
   HORIZONTAL SCROLL PORTFOLIO SECTION (Cinematic 100vh)
   ============================================================ */
.horizontal-portfolio-section {
  width: 100%;
  height: 100vh;
  min-height: 650px;
  max-height: 950px;
  background: var(--bg-body);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 0 25px;
  box-sizing: border-box;
}

.horizontal-header-bar {
  position: relative;
  z-index: 10;
  padding: 0 0 15px;
}

.horizontal-header-bar .section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  margin-bottom: 0;
}

.horizontal-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  backdrop-filter: blur(10px);
}

.scroll-hint-arrow {
  display: inline-flex;
  animation: bounceHorizontal 1.6s ease-in-out infinite;
}

@keyframes bounceHorizontal {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-6px); }
}

.horizontal-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(var(--text-rgb), 0.08);
  position: relative;
  margin-top: 15px;
  border-radius: 4px;
  overflow: hidden;
}

.horizontal-progress-fill {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  background: var(--gradient-primary);
  transform-origin: right center;
  transform: scaleX(0);
  will-change: transform;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
}

.horizontal-scroll-container {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.horizontal-scroll-track {
  display: flex;
  gap: 30px;
  width: max-content;
  padding: 10px 40px;
  will-change: transform;
  align-items: stretch;
}

.horizontal-project-card {
  flex: 0 0 380px;
  width: 380px;
  height: calc(100vh - 230px);
  max-height: 490px;
  min-height: 380px;
  border-radius: 22px;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.horizontal-project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(var(--primary-rgb), 0.16);
  border-color: rgba(var(--primary-rgb), 0.35);
}

.project-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.project-img-wrap {
  position: relative;
  height: 48%;
  min-height: 180px;
  overflow: hidden;
  border-radius: 16px;
  margin: 10px 10px 0;
  background: #0f172a;
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.horizontal-project-card:hover .project-img-wrap img {
  transform: scale(1.08);
}

.project-num {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.project-card-body {
  padding: 16px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.project-card-body h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.35;
}

.project-card-body p {
.timeline-flip-indicator {
    display: none;
  }
}


/* ============================================================
   HORIZONTAL SCROLL PORTFOLIO SECTION (Cinematic 100vh)
   ============================================================ */
.horizontal-portfolio-section {
  width: 100%;
  height: 100vh;
  min-height: 650px;
  max-height: 950px;
  background: var(--bg-body);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 0 25px;
  box-sizing: border-box;
}

.horizontal-header-bar {
  position: relative;
  z-index: 10;
  padding: 0 0 15px;
}

.horizontal-header-bar .section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  margin-bottom: 0;
}

.horizontal-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  backdrop-filter: blur(10px);
}

.scroll-hint-arrow {
  display: inline-flex;
  animation: bounceHorizontal 1.6s ease-in-out infinite;
}

@keyframes bounceHorizontal {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-6px); }
}

.horizontal-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(var(--text-rgb), 0.08);
  position: relative;
  margin-top: 15px;
  border-radius: 4px;
  overflow: hidden;
}

.horizontal-progress-fill {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  background: var(--gradient-primary);
  transform-origin: right center;
  transform: scaleX(0);
  will-change: transform;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
}

.horizontal-scroll-container {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.horizontal-scroll-track {
  display: flex;
  gap: 30px;
  width: max-content;
  padding: 10px 40px;
  will-change: transform;
  align-items: stretch;
}

.horizontal-project-card {
  flex: 0 0 380px;
  width: 380px;
  height: calc(100vh - 230px);
  max-height: 490px;
  min-height: 380px;
  border-radius: 22px;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.horizontal-project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(var(--primary-rgb), 0.16);
  border-color: rgba(var(--primary-rgb), 0.35);
}

.project-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.project-img-wrap {
  position: relative;
  height: 48%;
  min-height: 180px;
  overflow: hidden;
  border-radius: 16px;
  margin: 10px 10px 0;
  background: #0f172a;
}

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

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

.project-num {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.project-card-body {
  padding: 16px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.project-card-body h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.35;
}

.project-card-body p {
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none !important;
  transition: gap 0.3s ease, color 0.3s ease;
  margin-top: auto;
}

.project-link:hover {
  gap: 12px;
  color: var(--primary-dark);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .horizontal-portfolio-section {
    height: auto;
    min-height: auto;
    max-height: none;
    padding: 80px 0;
  }
  .horizontal-project-card {
    flex: 0 0 340px;
    width: 340px;
    height: 440px;
  }
  .timeline-book-deck {
    height: 520px;
  }
  .paper-inner {
    padding: 35px 30px;
  }
  .timeline-paper-card h4 {
    font-size: 22px;
  }
}

@media (max-width: 767px) {
  .timeline-book-deck {
    height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 25px;
  }
  .timeline-paper-card {
    position: relative;
    height: auto;
    transform: none !important;
    opacity: 1 !important;
  }
  .timeline-flip-indicator {
    display: none;
  }
  .horizontal-scroll-track {
    overflow-x: auto;
    padding: 15px 20px 25px;
    width: auto;
    gap: 20px;
  }
  .horizontal-project-card {
    flex: 0 0 290px;
    width: 290px;
    height: 400px;
  }
}

/* ============================================================
   SCROLL MANIFESTO - TEXT REVEAL ON SCROLL
   ============================================================ */
.scroll-manifesto-section {
  padding: 120px 0;
  background: radial-gradient(circle at 50% 50%, rgba(var(--primary-rgb), 0.08) 0%, transparent 70%), var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.scroll-scrub-text {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.2vw, 48px);
  font-weight: 800;
  line-height: 1.65;
  color: var(--text);
  max-width: 980px;
  margin: 0 auto;
  letter-spacing: -0.5px;
}

.scroll-scrub-text span {
  display: inline-block;
  opacity: 0.28;
  filter: blur(1px);
  transform: translateY(4px);
  transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease, color 0.35s ease;
  will-change: opacity, filter, transform;
  margin: 0 3px;
}

.scroll-scrub-text span.active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  color: var(--text);
}

.scroll-scrub-text span.highlight-word.active {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(var(--primary-rgb), 0.35));
}

/* ============================================================
   TYPEWRITER HEADLINES & BLINKING CURSOR
   ============================================================ */
.typewriter-headline {
  position: relative;
  display: inline-block;
  min-height: 1.35em;
}

.typewriter-cursor {
  display: inline-block;
  font-weight: 300;
  color: var(--primary);
  margin-right: 4px;
  animation: blinkCursor 0.8s infinite alternate;
  vertical-align: middle;
}

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

[data-theme="dark"] .scroll-manifesto-section {
  background: radial-gradient(circle at 50% 50%, rgba(var(--primary-rgb), 0.15) 0%, transparent 70%), #060b18;
}
