/* =============================================================================
   YData Theme — Design System
   Loaded after Bootstrap 3 (bootstrap.min.css) and custom.css
   All classes prefixed with .yd- or .ydata- to avoid Bootstrap conflicts
   ============================================================================= */

/* =============================================================================
   SECTION 1: Design Tokens
   ============================================================================= */

:root {
  /* Brand colours */
  --yd-primary: #E85D2A;
  --yd-primary-light: #F5A623;
  --yd-primary-dark: #C94A1E;
  --yd-charcoal: #3D3D3D;
  --yd-dark: #1A1A1A;

  /* Surfaces */
  --yd-bg: #FAFAFA;
  --yd-bg-warm: #FFF8F5;
  --yd-surface: #FFFFFF;

  /* Text */
  --yd-text: #1A1A1A;
  --yd-text-muted: #6B7280;

  /* Border */
  --yd-border: #E5E7EB;

  /* Accent */
  --yd-accent: #0369A1;

  /* Semantic */
  --yd-destructive: #DC2626;
  --yd-success: #16A34A;

  /* Typography */
  --yd-font-heading: 'Lexend', sans-serif;
  --yd-font-body: 'Lexend', sans-serif;

  /* Spacing scale (4px base) */
  --yd-space-1: 4px;
  --yd-space-2: 8px;
  --yd-space-3: 12px;
  --yd-space-4: 16px;
  --yd-space-5: 20px;
  --yd-space-6: 24px;
  --yd-space-7: 28px;
  --yd-space-8: 32px;
  --yd-space-10: 40px;
  --yd-space-12: 48px;
  --yd-space-14: 56px;
  --yd-space-16: 64px;

  /* Border radius */
  --yd-radius-sm: 6px;
  --yd-radius-md: 8px;
  --yd-radius-lg: 12px;
  --yd-radius-xl: 14px;

  /* Transitions */
  --yd-transition: 0.2s ease;
  --yd-transition-slow: 0.25s ease;
}


/* =============================================================================
   SECTION 2: Navbar (.ydata-navbar)
   ============================================================================= */

.ydata-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 48px;
  background: #ffffff;
  border-bottom: 1px solid var(--yd-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Logo */
.ydata-navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.ydata-navbar-logo img {
  height: 64px;
  width: auto;
}

/* Nav list */
.ydata-navbar-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
}

.ydata-navbar-nav li a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--yd-text);
  text-decoration: none;
  padding-bottom: 4px;
  transition: color var(--yd-transition);
}

.ydata-navbar-nav li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yd-primary);
  transition: width var(--yd-transition);
}

.ydata-navbar-nav li a:hover,
.ydata-navbar-nav li a.active {
  color: var(--yd-primary);
}

.ydata-navbar-nav li a:hover::after,
.ydata-navbar-nav li a.active::after {
  width: 100%;
}

/* Actions */
.ydata-navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language switch */
.yd-lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--yd-border);
  border-radius: var(--yd-radius-md);
  overflow: hidden;
}

.yd-lang-switch button {
  background: transparent;
  border: none;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--yd-text-muted);
  cursor: pointer;
  transition: background var(--yd-transition), color var(--yd-transition);
}

.yd-lang-switch button.active,
.yd-lang-switch button:hover {
  background: var(--yd-primary);
  color: #ffffff;
}

/* Login button */
.yd-btn-login {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 1.5px solid var(--yd-primary);
  border-radius: var(--yd-radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--yd-primary);
  background: transparent;
  text-decoration: none;
  transition: background var(--yd-transition), color var(--yd-transition);
  cursor: pointer;
}

.yd-btn-login:hover {
  background: var(--yd-primary);
  color: #ffffff;
  text-decoration: none;
}

/* Hamburger toggle — hidden on desktop */
.ydata-navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.ydata-navbar-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--yd-text);
  border-radius: 2px;
  transition: transform var(--yd-transition), opacity var(--yd-transition);
}

/* Mobile navbar */
@media (max-width: 768px) {
  .ydata-navbar {
    flex-wrap: wrap;
    padding: 12px 20px;
  }

  .ydata-navbar-toggle {
    display: flex;
  }

  .ydata-navbar-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
    padding: 12px 0;
  }

  .ydata-navbar-nav.open {
    display: flex;
  }

  .ydata-navbar-nav li {
    width: 100%;
  }

  .ydata-navbar-nav li a {
    display: block;
    padding: 10px 0;
    font-size: 15px;
  }

  .ydata-navbar-actions {
    display: none;
    width: 100%;
    padding: 8px 0 12px;
  }

  .ydata-navbar-actions.open {
    display: flex;
  }
}


/* =============================================================================
   SECTION 3: Hero (.ydata-hero) — scoped under .page-home
   ============================================================================= */

.page-home .ydata-hero {
  background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)), url('../img/background.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}


@keyframes blob-float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

.ydata-hero>* {
  position: relative;
  z-index: 1;
}

.page-home .ydata-hero .yd-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232, 93, 42, 0.10);
  border: 1px solid rgba(232, 93, 42, 0.25);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--yd-primary);
  margin-bottom: 20px;
}

.page-home .ydata-hero h1 {
  font-family: var(--yd-font-heading);
  font-size: 56px;
  font-weight: 800;
  color: var(--yd-text);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.page-home .ydata-hero h1 span {
  color: var(--yd-primary);
}

.page-home .ydata-hero .yd-hero-subtitle {
  font-size: 18px;
  color: var(--yd-text-muted);
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.page-home .ydata-hero .yd-hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

/* Primary CTA button */
.yd-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--yd-primary) 0%, var(--yd-primary-dark) 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--yd-radius-md);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(232, 93, 42, 0.35);
  transition: transform var(--yd-transition), box-shadow var(--yd-transition);
  cursor: pointer;
}

.yd-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 93, 42, 0.45);
  color: #ffffff;
  text-decoration: none;
}

/* Outline CTA button */
.yd-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: var(--yd-text);
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid var(--yd-border);
  border-radius: var(--yd-radius-md);
  text-decoration: none;
  transition: border-color var(--yd-transition), color var(--yd-transition);
  cursor: pointer;
}

.yd-btn-outline:hover {
  border-color: var(--yd-primary);
  color: var(--yd-primary);
  text-decoration: none;
}

/* Hero stats */
.page-home .ydata-hero .yd-hero-stats {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.page-home .ydata-hero .yd-hero-stat {
  flex: 1;
  min-width: 200px;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 24px 20px;
  border-radius: var(--yd-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform var(--yd-transition), box-shadow var(--yd-transition);
}

.page-home .ydata-hero .yd-hero-stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  background: #ffffff;
}

.page-home .ydata-hero .yd-hero-stat .number {
  display: block;
  font-family: var(--yd-font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--yd-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.page-home .ydata-hero .yd-hero-stat .label {
  font-size: 13px;
  font-weight: 500;
  color: var(--yd-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero responsive */
@media (max-width: 768px) {
  .page-home .ydata-hero {
    padding: 72px 20px 48px;
    background-attachment: scroll;
    /* Fixed background is buggy on mobile */
    background-position: 70% center;
    /* Adjust to show characters/graphics on mobile */
  }

  .page-home .ydata-hero h1 {
    font-size: 30px;
  }

  .page-home .ydata-hero .yd-hero-subtitle {
    font-size: 16px;
  }

  .page-home .ydata-hero .yd-hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .yd-btn-primary,
  .yd-btn-outline {
    justify-content: center;
  }

  .page-home .ydata-hero .yd-hero-stats {
    gap: 28px;
  }
}


/* =============================================================================
   SECTION 4: Service Cards (.ydata-services) — scoped under .page-home
   ============================================================================= */

.page-home .ydata-services {
  padding: 72px 24px;
  background: var(--yd-surface);
  text-align: center;
}

.page-home .ydata-services .yd-services-grid {
  display: flex;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.page-home .ydata-services .yd-service-card {
  flex: 1;
  min-width: 260px;
  background: var(--yd-surface);
  border: 1px solid var(--yd-border);
  border-radius: var(--yd-radius-lg);
  padding: 36px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--yd-transition-slow), border-color var(--yd-transition-slow), box-shadow var(--yd-transition-slow);
}

.page-home .ydata-services .yd-service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--yd-primary), var(--yd-primary-light));
  transform: scaleX(0);
  transition: transform var(--yd-transition-slow);
}

.page-home .ydata-services .yd-service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 93, 42, 0.30);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.page-home .ydata-services .yd-service-card:hover::after {
  transform: scaleX(1);
}

/* Service icon */
.page-home .ydata-services .yd-service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--yd-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

.page-home .ydata-services .yd-service-icon.viz {
  background: rgba(232, 93, 42, 0.10);
  color: var(--yd-primary);
}

.page-home .ydata-services .yd-service-icon.req {
  background: rgba(3, 105, 161, 0.10);
  color: var(--yd-accent);
}

.page-home .ydata-services .yd-service-card h3 {
  font-family: var(--yd-font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--yd-text);
  margin-bottom: 10px;
}

.page-home .ydata-services .yd-service-card p {
  font-size: 15px;
  color: var(--yd-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Service link */
.yd-service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--yd-primary);
  text-decoration: none;
  transition: gap var(--yd-transition);
}

.yd-service-link:hover {
  gap: 10px;
  text-decoration: none;
  color: var(--yd-primary-dark);
}

.yd-service-link.accent {
  color: var(--yd-accent);
}

.yd-service-link.accent:hover {
  color: #025585;
}

/* Services responsive */
@media (max-width: 768px) {
  .page-home .ydata-services .yd-services-grid {
    flex-direction: column;
  }

  .page-home .ydata-services .yd-service-card {
    min-width: unset;
  }
}


/* =============================================================================
   SECTION 5: Data Showcase (.ydata-showcase) — scoped under .page-home
   ============================================================================= */

.page-home .ydata-showcase {
  padding: 72px 24px;
  background: var(--yd-bg);
}

.page-home .ydata-showcase .yd-showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-home .ydata-showcase .yd-showcase-header h2 {
  font-family: var(--yd-font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--yd-text);
  margin: 0;
}

/* Showcase tabs */
.yd-showcase-tabs {
  display: flex;
  align-items: center;
  background: #F3F4F6;
  border-radius: var(--yd-radius-md);
  padding: 4px;
  gap: 2px;
}

.yd-showcase-tab {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--yd-text-muted);
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--yd-transition), color var(--yd-transition), box-shadow var(--yd-transition);
  text-decoration: none;
}

.yd-showcase-tab.active {
  background: #ffffff;
  color: var(--yd-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
}

.yd-showcase-tab:hover:not(.active) {
  color: var(--yd-text);
}

/* Showcase grid */
.page-home .ydata-showcase .yd-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
}

/* Viz card */
.yd-viz-card {
  background: var(--yd-surface);
  border: 1px solid var(--yd-border);
  border-radius: 10px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--yd-transition-slow), transform var(--yd-transition-slow);
}

.yd-viz-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}

.yd-viz-card-img {
  height: 240px;
  background: #ffffff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.yd-viz-card-img img {
  height: 220px;
  width: auto;
  object-fit: contain;
  max-width: 100%;
}

.yd-viz-card-body {
  padding: 16px;
}

.yd-viz-card-body h4 {
  font-family: var(--yd-font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--yd-text);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
  line-height: 1.4;
}

.yd-viz-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.yd-viz-badge {
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.yd-viz-badge.primer {
  background: rgba(220, 38, 38, 0.10);
  color: #B91C1C;
}

.yd-viz-badge.sekunder {
  background: rgba(3, 105, 161, 0.10);
  color: #0369A1;
}

.yd-viz-badge.belia {
  background: rgba(30, 58, 138, 0.10);
  color: #1E3A8A;
}

.yd-viz-badge.year {
  background: rgba(232, 93, 42, 0.10);
  color: var(--yd-primary);
}

.yd-viz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--yd-border);
}

.yd-viz-source,
.yd-viz-views {
  font-size: 12px;
  color: var(--yd-text-muted);
}

/* Showcase footer */
.page-home .ydata-showcase .yd-showcase-footer {
  text-align: center;
  margin-top: 40px;
}

.yd-btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1.5px solid var(--yd-border);
  border-radius: var(--yd-radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--yd-text);
  background: transparent;
  text-decoration: none;
  transition: border-color var(--yd-transition), color var(--yd-transition), background var(--yd-transition);
  cursor: pointer;
}

.yd-btn-view-all:hover {
  border-color: var(--yd-primary);
  color: var(--yd-primary);
  background: rgba(232, 93, 42, 0.04);
  text-decoration: none;
}

/* Showcase responsive */
@media (max-width: 1300px) {
  .page-home .ydata-showcase .yd-showcase-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .page-home .ydata-showcase .yd-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .ydata-showcase .yd-showcase-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .page-home .ydata-showcase .yd-showcase-grid {
    grid-template-columns: 1fr;
  }
}


/* =============================================================================
   SECTION 6: Agency Logos (.ydata-agencies)
   ============================================================================= */

.ydata-agencies {
  background: #F9FAFB;
  padding: 48px 48px 56px;
  text-align: center;
}

.ydata-agencies .yd-agencies-label {
  font-family: var(--yd-font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--yd-text-muted);
  margin-bottom: 28px;
}

.ydata-agencies .yd-agencies-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.yd-agency-logo {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--yd-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--yd-transition), box-shadow var(--yd-transition), transform var(--yd-transition);
  flex-shrink: 0;
}

.yd-agency-logo:hover {
  border-color: var(--yd-primary);
  box-shadow: 0 4px 12px rgba(232, 93, 42, 0.15);
  transform: scale(1.05);
}

.yd-agency-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* Agencies responsive */
@media (max-width: 768px) {
  .ydata-agencies {
    padding: 40px 20px 48px;
  }

  .ydata-agencies .yd-agencies-strip {
    gap: 20px;
  }

  .yd-agency-logo {
    width: 56px;
    height: 56px;
  }

  .yd-agency-logo img {
    width: 40px;
    height: 40px;
  }
}


/* =============================================================================
   SECTION 7: Footer (.ydata-footer)
   ============================================================================= */

.ydata-footer {
  background: #222222;
  color: #D1D5DB;
}

.ydata-footer .yd-footer-main {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.8fr;
  gap: 64px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 24px 64px;
}

/* Footer logo */
.yd-footer-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  text-decoration: none;
}

.yd-footer-logo-box {
  background: #ffffff;
  padding: 10px 16px;
  border-radius: var(--yd-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.yd-footer-logo-box img {
  height: 48px;
  width: auto;
}

.yd-footer-logo-text {
  font-family: var(--yd-font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.yd-footer-logo-text span {
  color: var(--yd-primary);
}

.yd-footer-desc {
  font-size: 12px;
  line-height: 1.7;
  color: #D1D5DB; /* Standardized to match glass-box text */
  max-width: 320px;
  margin-bottom: 0;
}

.yd-footer-glass-box {
  background: rgba(255, 255, 255, 0.04);
  border-left: 4px solid var(--yd-primary);
  padding: 24px;
  border-radius: var(--yd-radius-lg);
  font-size: 12px;
  color: #D1D5DB;
  line-height: 1.6;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--yd-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.yd-footer-glass-box strong,
.yd-footer-glass-box b {
  color: #ffffff;
  font-weight: 700;
}

.yd-footer-iyres-wrapper {
  background: #ffffff;
  padding: 10px 16px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.yd-footer-iyres-logo {
  height: 48px;
  width: auto;
  display: block;
}

/* Footer sections */
.yd-footer-section h4 {
  font-family: var(--yd-font-heading);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

/* Footer links */
.yd-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.yd-footer-links li {
  margin-bottom: 10px;
}

.yd-footer-links li a {
  font-size: 14px;
  color: #9CA3AF;
  text-decoration: none;
  transition: color var(--yd-transition);
}

.yd-footer-links li a:hover {
  color: var(--yd-primary);
}

/* Footer stats box */
.yd-footer-stats-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--yd-radius-md);
  overflow: hidden;
}

.yd-footer-stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 13px;
}

.yd-footer-stat-item+.yd-footer-stat-item {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.yd-footer-stat-item .stat-label {
  color: #9CA3AF;
}

.yd-footer-stat-item .stat-value {
  font-weight: 600;
  color: #ffffff;
}

/* Footer QR */
.yd-footer-qr {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
}

.yd-footer-qr img {
  width: 56px;
  height: 56px;
  background: #ffffff;
  padding: 4px;
  border-radius: var(--yd-radius-sm);
  object-fit: contain;
  flex-shrink: 0;
}

.yd-footer-qr-text {
  font-size: 12px;
  color: #9CA3AF;
  line-height: 1.5;
}

.yd-footer-app-links {
  margin-top: 20px;
}

.yd-footer-app-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.yd-footer-app-buttons img {
  height: 40px;
  width: auto;
  display: block;
  transition: transform var(--yd-transition);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.yd-footer-app-buttons img:hover {
  transform: scale(1.05);
}

/* Footer bottom bar */
.ydata-footer .yd-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #6B7280;
}

.ydata-footer .yd-footer-bottom a {
  color: var(--yd-primary);
  text-decoration: none;
}

.ydata-footer .yd-footer-bottom a:hover {
  text-decoration: underline;
}

/* Footer responsive */
@media (max-width: 1024px) {
  .ydata-footer .yd-footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .ydata-footer .yd-footer-main {
    padding: 40px 20px 32px;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .ydata-footer .yd-footer-main {
    grid-template-columns: 1fr;
  }

  .ydata-footer .yd-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
  }
}


/* =============================================================================
   SECTION 8: Accessibility
   ============================================================================= */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  .yd-btn-primary,
  .yd-btn-outline,
  .yd-btn-login,
  .yd-btn-view-all,
  .yd-service-link,
  .yd-viz-card,
  .yd-agency-logo,
  .yd-showcase-tab,
  .yd-lang-switch button,
  .ydata-navbar-nav li a,
  .ydata-navbar-nav li a::after,
  .page-home .ydata-services .yd-service-card,
  .page-home .ydata-services .yd-service-card::after,
  .yd-footer-links li a {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
}

/* Focus-visible states */
.yd-btn-primary:focus-visible,
.yd-btn-outline:focus-visible,
.yd-btn-login:focus-visible,
.yd-btn-view-all:focus-visible,
.yd-service-link:focus-visible,
.yd-viz-card:focus-visible,
.yd-agency-logo:focus-visible,
.yd-showcase-tab:focus-visible,
.yd-lang-switch button:focus-visible,
.ydata-navbar-nav li a:focus-visible,
.yd-footer-links li a:focus-visible,
.ydata-navbar-toggle:focus-visible,
.yd-footer-logo:focus-visible {
  outline: 3px solid var(--yd-primary);
  outline-offset: 2px;
}

/* Skip link */
.yd-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  background: var(--yd-primary);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--yd-radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--yd-transition);
}

.yd-skip-link:focus {
  top: 16px;
  color: #ffffff;
  text-decoration: none;
}


/* =============================================================================
   SECTION 9: Page-home overrides
   ============================================================================= */

body.page-home {
  background: #ffffff;
  font-family: var(--yd-font-body);
  margin: 0;
  padding: 0;
}

/* =============================================================================
   SECTION 10: Media Gallery (.yd-media-)
   ============================================================================= */

.yd-media-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* Media Header */
.yd-media-header {
  text-align: center;
  margin-bottom: 40px;
}

.yd-media-header legend {
  border: none;
  margin-bottom: 8px;
}

.yd-media-header h1 {
  font-family: var(--yd-font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--yd-text);
  margin: 0;
}

/* Force Full Width Layout */
.containerFB2,
.containerFB {
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.insideFB2,
.insideFB {
  padding-left: 5% !important;
  padding-right: 5% !important;
  width: 100% !important;
}

/* Media Tabs */
.yd-media-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.yd-media-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: transparent;
  border: 1.5px solid var(--yd-border);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  color: var(--yd-text-muted);
  text-decoration: none;
  transition: all var(--yd-transition);
}

/* Feedback Section */
.yd-feedback-section {
  padding: 80px 0;
  background: var(--yd-bg);
  min-height: 50vh;
}

.yd-feedback-header {
  text-align: center;
  margin-bottom: 48px;
}

.yd-feedback-header i {
  font-size: 48px;
  color: var(--yd-primary);
  margin-bottom: 16px;
  opacity: 0.8;
}

.yd-feedback-header h1 {
  font-family: var(--yd-font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--yd-text);
  margin: 0;
}

.yd-feedback-card {
  background: var(--yd-surface);
  border: 1px solid var(--yd-border);
  border-radius: 24px;
  padding: 48px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  display: flow-root;
  /* Ensures children are contained */
}

.yd-feedback-card .form-group {
  margin-bottom: 24px;
  clear: both;
  /* Ensure fields don't float next to each other */
}

.yd-feedback-card .form-group:last-of-type {
  margin-bottom: 40px;
  /* Extra space after message field */
}

.yd-feedback-card .control-label {
  display: block;
  font-weight: 600;
  color: var(--yd-text);
  margin-bottom: 8px;
  font-size: 14px;
}

.yd-feedback-card .form-control {
  width: 100%;
  height: 50px;
  background: #F9FAFB;
  border: 1.5px solid var(--yd-border);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 15px;
  color: var(--yd-text);
  transition: all 0.3s;
}

.yd-feedback-card .form-control:focus {
  background: #ffffff;
  border-color: var(--yd-primary);
  box-shadow: 0 0 0 4px rgba(232, 93, 42, 0.1);
  outline: none;
}

.yd-feedback-card textarea.form-control {
  height: auto;
  min-height: 150px;
  resize: vertical;
}

.yd-feedback-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  width: 100%;
  clear: both;
  position: relative;
  z-index: 10;
  padding: 20px;
}

.yd-btn-fb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.yd-btn-fb-primary {
  background: var(--yd-primary);
  color: #ffffff;
}

.yd-btn-fb-primary:hover {
  background: var(--yd-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232, 93, 42, 0.3);
}

.yd-btn-fb-secondary {
  background: #F3F4F6;
  color: var(--yd-text);
}

.yd-btn-fb-secondary:hover {
  background: #E5E7EB;
  color: var(--yd-text);
}

.yd-media-tab:hover {
  border-color: var(--yd-primary);
  color: var(--yd-primary);
  text-decoration: none;
}

.yd-media-tab.active {
  background: var(--yd-primary);
  border-color: var(--yd-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(232, 93, 42, 0.25);
}

/* Media Grid */
.yd-media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* Media Card */
.yd-media-card {
  background: var(--yd-surface);
  border: 1px solid var(--yd-border);
  border-radius: var(--yd-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform var(--yd-transition-slow), box-shadow var(--yd-transition-slow);
}

.yd-media-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.yd-media-card-img {
  aspect-ratio: 16 / 10;
  background: #F3F4F6;
  position: relative;
  overflow: hidden;
}

.yd-media-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.yd-media-card:hover .yd-media-card-img img {
  transform: scale(1.05);
}

.yd-media-card-body {
  padding: 20px;
  flex-grow: 1;
}

.yd-media-card-body h3 {
  font-family: var(--yd-font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--yd-text);
  margin: 0 0 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yd-media-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--yd-border);
  font-size: 13px;
  color: var(--yd-text-muted);
}

/* Media Responsive */
@media (max-width: 1024px) {
  .yd-media-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

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

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

  .yd-media-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .yd-media-tab {
    justify-content: center;
  }
}

/* Media Gallery Detail (Album) */
.yd-album-container {
  padding: 40px 0;
  animation: yd-fade-up 0.8s ease-out;
}

.yd-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.yd-photo-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.yd-photo-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.yd-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.yd-photo-item:hover img {
  transform: scale(1.1);
}

.yd-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.yd-photo-item:hover .yd-photo-overlay {
  opacity: 1;
}

.yd-photo-overlay h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.yd-photo-item:hover .yd-photo-overlay h4 {
  transform: translateY(0);
}

/* Lightbox */
.yd-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.yd-lightbox.active {
  opacity: 1;
  pointer-events: auto;
  display: flex;
}

.yd-lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.yd-lightbox.active .yd-lightbox-content {
  transform: scale(1);
}

.yd-lightbox-content img,
.yd-lightbox-content video {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.yd-lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  z-index: 10001;
}

.yd-lightbox-close:hover {
  background: #E85D2A;
  transform: rotate(90deg);
}

.yd-lightbox-caption {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}

/* --- Authentication Pages (Login, Signup) --- */
.yd-auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: url('/img/light_mesh_bg.png') no-repeat center center fixed;
  background-size: cover;
  font-family: var(--yd-font-body);
}

.yd-auth-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.yd-auth-card {
  background: rgba(255, 255, 255, 1);
  border-radius: 28px;
  padding: 48px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
  text-align: center;
  position: relative;
}

.yd-auth-logo {
  max-width: 260px;
  height: auto;
  margin-bottom: 32px;
}

.yd-auth-title {
  font-family: var(--yd-font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--yd-dark);
  margin-bottom: 8px;
}

.yd-auth-subtitle {
  color: var(--yd-text-muted);
  font-size: 15px;
  margin-bottom: 32px;
}

.yd-auth-card .form-group {
  text-align: left;
  margin-bottom: 20px;
  position: relative;
}

.yd-auth-card .form-control {
  height: 52px;
  border-radius: 14px;
  border: 1.5px solid var(--yd-border);
  padding: 0 20px 0 45px;
  font-size: 15px;
  background: #fdfdfd;
  transition: all 0.3s;
}

.yd-auth-card .form-control:focus {
  border-color: var(--yd-primary);
  box-shadow: 0 0 0 4px rgba(232, 93, 42, 0.1);
  background: #fff;
}

.yd-auth-card .form-group i {
  position: absolute;
  left: 18px;
  top: 18px;
  color: var(--yd-text-muted);
  font-size: 16px;
  z-index: 10;
}

.yd-auth-actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yd-auth-link {
  color: var(--yd-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.2s;
}

.yd-auth-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.yd-auth-footer-minimal {
  padding: 32px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--yd-text-muted);
  width: 100%;
}

.yd-auth-footer-minimal p {
  margin: 4px 0;
}

.yd-auth-footer-minimal a {
  color: var(--yd-text-muted);
  text-decoration: none;
  margin: 0 8px;
}

.yd-auth-footer-minimal a:hover {
  color: var(--yd-primary);
}

@media (max-width: 480px) {
  .yd-auth-container {
    padding: 20px 0;
  }

  .yd-auth-card {
    border-radius: 0;
    padding: 40px 24px;
    box-shadow: none;
    border: none;
    background: transparent;
  }
}

/* =============================================================================
   SECTION 14: Premium Page Shells
   ============================================================================= */

.yd-premium-shell {
  position: relative;
  padding: var(--yd-space-16) var(--yd-space-6) 120px;
  background: linear-gradient(160deg, var(--yd-bg-warm) 0%, var(--yd-bg) 60%);
  min-height: 85vh;
  overflow: hidden;
}

/* Background Blooms */
.yd-shell-blooms {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

.yd-hull-bloom {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.2;
}

.yd-hull-bloom-1 {
  top: -100px;
  right: -100px;
  background: var(--yd-primary);
}

.yd-hull-bloom-2 {
  bottom: 100px;
  left: -150px;
  background: #94A3B8;
}

.yd-shell-container {
  position: relative;
  z-index: 10;
  max-width: 1440px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .yd-premium-shell {
    padding: var(--yd-space-12) var(--yd-space-4) var(--yd-space-16);
  }
}

/* =============================================================================
   SECTION 15: Page Headers (Hero Style)
   ============================================================================= */

.yd-shell-header {
  text-align: center;
  margin-bottom: 56px;
  animation: yd-shell-fade-down 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes yd-shell-fade-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.yd-shell-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(232, 93, 42, 0.10);
  border: 1px solid rgba(232, 93, 42, 0.25);
  border-radius: 100px;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--yd-primary);
  margin-bottom: 24px;
}

.yd-shell-title {
  font-family: var(--yd-font-heading);
  font-size: 48px;
  font-weight: 800;
  color: var(--yd-charcoal);
  margin: 0 0 20px;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.yd-shell-title span {
  color: var(--yd-primary);
}

.yd-shell-desc {
  color: var(--yd-text-muted);
  font-size: 18px;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .yd-shell-title {
    font-size: 36px;
  }

  .yd-shell-desc {
    font-size: 16px;
  }

  .yd-shell-header {
    margin-bottom: 40px;
  }
}

/* Gallery Specific Layouts */
.yd-gallery-menu-wrapper {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  width: 100%;
}