/* ==========================================================================
   RUDER-TRANSPORTE — Modern Redesign Stylesheet
   Colors inspired by the signature Ruder Royal Blue MAN & Scania fleet
   ========================================================================== */

:root {
  --bg-dark: #060d1f;
  --bg-darker: #040814;
  --bg-card: #0d1836;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;

  --ruder-blue: #0e2a78;
  --ruder-royal: #1d4ed8;
  --ruder-accent: #3b82f6;
  --ruder-sky: #60a5fa;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #f8fafc;
  --text-light-muted: #94a3b8;

  --border-light: #e2e8f0;
  --border-dark: rgba(255, 255, 255, 0.12);

  --shadow-sm: 0 4px 12px rgba(6, 13, 31, 0.06);
  --shadow-md: 0 12px 32px rgba(6, 13, 31, 0.12);
  --shadow-lg: 0 24px 48px rgba(6, 13, 31, 0.24);
  --shadow-glow: 0 10px 30px rgba(29, 78, 216, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.topbar {
  background: var(--bg-darker);
  color: var(--text-light-muted);
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.55rem 0;
  position: relative;
  z-index: 101;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #e2e8f0;
  font-weight: 500;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.topbar-item,
.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar-link:hover {
  color: #ffffff;
}

.topbar-divider {
  opacity: 0.25;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 13, 31, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(4, 8, 20, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.brand-logo {
  height: 34px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.4));
}

.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.38em;
  color: var(--ruder-sky);
  font-weight: 700;
  padding-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  color: #cbd5e1;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ruder-royal), var(--ruder-accent));
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(59, 130, 246, 0.5);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.9rem 1.65rem;
  font-size: 1rem;
}

.btn-primary-sm {
  background: linear-gradient(135deg, var(--ruder-royal), var(--ruder-accent));
  color: #ffffff;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
}

.btn-primary-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-outline-sm {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 0.95rem;
  font-size: 0.86rem;
}

.btn-outline-sm:hover {
  border-color: var(--ruder-sky);
  color: #ffffff;
  background: rgba(59, 130, 246, 0.12);
}

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  transition: 0.3s ease;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-dark);
  color: var(--text-light);
  overflow: hidden;
  padding-top: 4.5rem;
  padding-bottom: 4rem;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 60%;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s ease, transform 6s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    105deg,
    rgba(4, 8, 20, 0.92) 0%,
    rgba(6, 15, 40, 0.78) 50%,
    rgba(10, 25, 65, 0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 2rem 1.5rem 3.5rem;
}

.hero-content > * {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #93c5fd;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.35rem;
}

.text-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  color: #e2e8f0;
  max-width: 640px;
  margin-bottom: 2.25rem;
  line-height: 1.65;
}

.hero-subtitle strong {
  color: #ffffff;
  font-weight: 700;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 28px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  width: 44px;
  background: var(--ruder-sky);
}

.hero-caption {
  font-size: 0.84rem;
  color: #cbd5e1;
}

/* ==========================================================================
   HERO INFO CARDS (The 3 original Home blocks)
   ========================================================================== */
.hero-cards-wrapper {
  position: relative;
  z-index: 3;
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.info-card {
  background: rgba(13, 24, 54, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: var(--shadow-lg);
}

.info-card-highlight {
  background: linear-gradient(155deg, rgba(29, 78, 216, 0.9) 0%, rgba(14, 42, 120, 0.92) 100%);
  border-color: rgba(147, 197, 253, 0.4);
}

.info-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.info-card-highlight .info-card-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.info-card p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.info-card-highlight p {
  color: #eff6ff;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ruder-sky);
}

.info-card-highlight .card-link {
  color: #ffffff;
}

.card-link:hover {
  gap: 0.75rem;
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section {
  padding: 6rem 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ruder-royal);
  background: rgba(29, 78, 216, 0.08);
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
}

/* ==========================================================================
   ÜBER UNS SECTION
   ========================================================================== */
.about-section {
  background: var(--bg-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.about-experience-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(6, 13, 31, 0.92);
  backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 1rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(96, 165, 250, 0.35);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  box-shadow: var(--shadow-md);
}

.exp-year {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ruder-sky);
  line-height: 1;
}

.exp-text {
  font-size: 0.85rem;
  line-height: 1.3;
  color: #cbd5e1;
}

.exp-text strong {
  color: #ffffff;
}

.about-img-secondary {
  width: 52%;
  margin-left: auto;
  margin-top: -5.5rem;
  position: relative;
  z-index: 2;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 5px solid var(--bg-white);
  box-shadow: var(--shadow-lg);
}

.about-img-secondary img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.original-story-quote {
  font-size: 1.14rem;
  line-height: 1.75;
  color: var(--text-main);
  font-weight: 500;
  background: linear-gradient(to right, rgba(29, 78, 216, 0.06), transparent);
  border-left: 4px solid var(--ruder-royal);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 2rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

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

.timeline-marker {
  flex-shrink: 0;
  width: 68px;
  padding: 0.3rem 0.5rem;
  background: var(--bg-dark);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  text-align: center;
  border-radius: 6px;
  margin-top: 2px;
}

.timeline-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.timeline-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.stat-box {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ruder-royal);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   GALERIE SECTION
   ========================================================================== */
.gallery-section {
  background: var(--bg-light);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: var(--bg-white);
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.filter-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--text-main);
}

.filter-btn.active {
  background: var(--ruder-royal);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: var(--bg-dark);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item.hidden {
  display: none;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 8, 20, 0.9) 0%, rgba(4, 8, 20, 0.2) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.35rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #ffffff;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ruder-sky);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.gallery-overlay h4 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  padding-right: 2rem;
}

.gallery-zoom-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

/* ==========================================================================
   KONTAKT SECTION
   ========================================================================== */
.contact-section {
  background: var(--bg-dark);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.contact-section .section-tag {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.contact-section .section-title {
  color: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-lead {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.contact-card {
  display: flex;
  gap: 1.1rem;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(96, 165, 250, 0.4);
}

.contact-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.18);
  color: var(--ruder-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.contact-list li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 0.2rem;
}

.contact-list .label {
  color: #94a3b8;
  min-width: 52px;
}

.contact-list a:hover,
.contact-highlight-link:hover {
  color: var(--ruder-sky);
}

.contact-highlight-link {
  font-size: 1.02rem;
  font-weight: 600;
  color: #93c5fd;
}

.map-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ruder-sky);
}

/* Contact Form Card */
.contact-form-card {
  background: var(--bg-white);
  color: var(--text-main);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-form-card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.form-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.form-error-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.form-success-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.required {
  color: #dc2626;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  background: #f8fafc;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--ruder-royal);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.form-group input.invalid {
  border-color: #dc2626;
  background: #fff5f5;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.required-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--bg-darker);
  color: #94a3b8;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-claim {
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 340px;
}

.footer-claim strong {
  color: #ffffff;
}

.footer h4 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer ul li {
  margin-bottom: 0.55rem;
}

.footer ul a,
.footer-modal-link {
  color: #94a3b8;
  font-size: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: color 0.2s ease;
}

.footer ul a:hover,
.footer-modal-link:hover,
.footer-contact a:hover {
  color: #ffffff;
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

/* ==========================================================================
   LIGHTBOX & MODALS
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 8, 20, 0.94);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 88vw;
  max-height: 85vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
}

.lightbox-caption {
  color: #e2e8f0;
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-nav:hover,
.lightbox-close:hover {
  background: var(--ruder-royal);
}

.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }

/* Legal Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(4, 8, 20, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-white);
  color: var(--text-main);
  width: 100%;
  max-width: 620px;
  max-height: 86vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-dialog-lg {
  max-width: 820px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.75rem;
  border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
}

.modal-close {
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
}

.legal-block h4 {
  margin: 1.35rem 0 0.5rem;
  color: var(--text-main);
}

.legal-block h4:first-child {
  margin-top: 0;
}

.legal-block p,
.legal-block ul {
  margin-bottom: 0.9rem;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.legal-block ul {
  list-style: disc;
  padding-left: 1.4rem;
}

.legal-block a {
  color: var(--ruder-royal);
  font-weight: 600;
}

.legal-block hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 1.25rem 0;
}

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-cards {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.15rem;
  }

  .topbar {
    display: none;
  }

  .navbar-inner {
    height: 68px;
    gap: 0.75rem;
  }

  .brand-logo {
    height: 26px;
  }

  .brand-sub {
    font-size: 0.54rem;
    letter-spacing: 0.32em;
  }

  .navbar-actions {
    gap: 0.5rem;
  }

  .navbar-actions .btn-outline-sm {
    display: none;
  }

  .navbar-actions .btn-primary-sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(4, 8, 20, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
    gap: 0.4rem;
    border-bottom: 1px solid var(--border-dark);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    text-align: left;
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }

  /* Hero Mobile */
  .hero {
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-slide {
    background-position: 62% center;
  }

  .hero-content {
    padding: 1rem 1.15rem 2.25rem;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 0.35rem 0.8rem;
    margin-bottom: 1.1rem;
  }

  .hero-title {
    font-size: clamp(2.1rem, 8.5vw, 2.8rem);
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.65rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
  }

  .info-card {
    padding: 1.4rem;
  }

  .info-card h3 {
    font-size: 1.15rem;
  }

  /* Sections Mobile */
  .section {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 1.85rem;
  }

  /* About Mobile */
  .about-img-main img {
    height: 270px;
  }

  .about-experience-badge {
    bottom: 0.85rem;
    left: 0.85rem;
    padding: 0.65rem 0.95rem;
    gap: 0.65rem;
  }

  .exp-year {
    font-size: 1.45rem;
  }

  .exp-text {
    font-size: 0.76rem;
  }

  .about-img-secondary {
    width: 60%;
    margin-top: -2.75rem;
    border-width: 3px;
  }

  .about-img-secondary img {
    height: 135px;
  }

  .original-story-quote {
    font-size: 1rem;
    padding: 1rem 1.15rem;
    margin-bottom: 1.5rem;
  }

  .timeline-item {
    flex-direction: column;
    gap: 0.4rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .stat-box {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    background: var(--bg-light);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
  }

  /* Gallery Mobile */
  .section-header {
    margin-bottom: 1.75rem;
  }

  .gallery-filters {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    white-space: nowrap;
    flex: 1 0 auto;
    text-align: center;
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  /* Show caption overlay permanently on touch devices */
  .gallery-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(4, 8, 20, 0.88) 0%, rgba(4, 8, 20, 0.15) 60%, transparent 100%);
    padding: 1rem;
  }

  /* Contact Mobile */
  .contact-card {
    padding: 1.1rem;
    gap: 0.85rem;
  }

  .contact-list li {
    flex-wrap: wrap;
    font-size: 0.9rem;
  }

  .contact-highlight-link {
    word-break: break-all;
  }

  .contact-form-card {
    padding: 1.5rem 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .form-footer .btn {
    width: 100%;
  }

  /* Footer Mobile */
  .footer {
    padding: 3rem 0 1.75rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-bottom: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  /* Lightbox & Modals Mobile */
  .lightbox-content {
    max-width: 94vw;
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    font-size: 1.6rem;
  }

  .lightbox-nav {
    top: auto;
    bottom: 1.5rem;
    transform: none;
    width: 46px;
    height: 46px;
  }

  .lightbox-prev {
    left: calc(50% - 56px);
  }

  .lightbox-next {
    right: calc(50% - 56px);
  }

  .modal-backdrop {
    padding: 0.75rem;
  }

  .modal-header {
    padding: 1rem 1.25rem;
  }

  .modal-body {
    padding: 1.25rem;
  }
}

@media (max-width: 400px) {
  .navbar-actions .btn-primary-sm {
    display: none;
  }
}
