/* (c) 2026 DE KRIJGER */
:root {
  --site-background: #050a15;
}

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

body {
  background: #f8fafc;
  font-family: system-ui, 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  display: flex;
  flex-direction: column;
  height: 100vh;
  }

html, body {
  height: 100%;
  overflow: hidden;
  }

.navbar {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  }

/* Tab content area scrolls if needed */
.tab-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px; 
  }

/* Each tab pane can scroll independently */
.tab-pane {
  min-height: 100%;
  height: auto;
  padding: 20px;
  position: absolute;
  }

.tab-pane.active {
  position: relative;
  }

/* Stick footer to bottom */
footer {
  flex-shrink: 0; 
  position: relative;
  z-index: 10;
  }

.intro-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;          
  background: var(--site-background);
  overflow: hidden;
  }

.animated-title {
  position: absolute;
  top: 100vh; 
  left: 50%;
  transform: translateX(-50%); 
  opacity: 0;
  padding-top: 10px;
  max-width: 90%;
  animation: scrollToTopStay 1.6s cubic-bezier(0.2, 0.9, 0.3, 1.1) forwards;
  }
  
@keyframes scrollToTopStay {
  0% {
    opacity: 0;
    top: 100vh;
    }
  25% {
    opacity: 1;
    }
  85% {
    opacity: 1;
    top: 0;
    }
  100% {
    opacity: 1;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    }
  }

.intro-hero.title-at-top {
  padding-top: 1vh;          
  }

.main-site-content {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
  background: #ffffff;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  }

.main-site-content.visible {
  opacity: 1;
  }

/* Navbar custom: sleek, glass effect, sticky top (after content fades) */
.navbar-custom {
  background-color: var(--site-background);
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  padding: 0.8rem 1.8rem;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  }

.navbar-brand {
  width: 32px;
  filter: invert(100%);
  color: transparent;
  }

.navbar-custom .nav-link {
  color: #f1f5f9;
  font-weight: 500;
  margin: 0 0.2rem;
  transition: 0.2s;
  }

.navbar-custom .nav-link:hover {
  color: #a3dcff;
  transform: translateY(-1px);
  }
  
.navbar-custom  .nav-link.active {
  color: #f1f5f9;
  }


.navbar-toggler {
  border-color: rgba(255,255,255,0.5);
  }

.navbar-toggler-icon {
  filter: invert(1);
  }

.reparatie-bg {
  background-image: url("../img/reparatie_bg.jpg");
  background-color: rgba(255,255,255,0.6);
  background-blend-mode: lighten;
  }

.projects-carousel-section, .reparatie-section, .contact-section {
  background: #f8fafc;
  padding: 8px 2rem;
  }

.section-title {
  font-size: 2rem;
  font-weight: 650;
  margin-bottom: 2rem;
  text-align: center;
  color: #0a1e2f;
  letter-spacing: -0.2px;
  }

.carousel-inner {
  border-radius: 2rem;
  box-shadow: 0 25px 40px -14px rgba(0,0,0,0.3);
  }

.carousel-item img {
  object-fit: cover;
  height: 480px;
  width: 100%;
  background: #1e293b;
  }

.carousel-caption {
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
  border-radius: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  padding: 1rem;
  }

.carousel-caption h5 {
  font-size: 1.8rem;
  font-weight: 700;
  }

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #0f172a;
  border-radius: 50%;
  padding: 1.2rem;
  background-size: 50%;
  }

/* Footer styling */
.footer-custom {
  background: #0b1120;
  color: #cbd5e6;
  padding: 1rem 1rem;
  text-align: center;
  border-top: 1px solid #1e2a3a;
  }

.footer-custom a {
  color: #94a3b8;
  text-decoration: none;
  transition: 0.2s;
  }

.footer-custom a:hover {
  color: #7dd3fc;
  text-decoration: underline;
  }

/* ensure no overflow */
.container-fluid {
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  }

.carousel-fade .carousel-item {
  opacity: 0;
  transition-duration: 0.7s;
  transition-property: opacity;
  }
.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
  }
.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
  opacity: 0;
  }
.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev,
.carousel-fade .carousel-item.active,
.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-prev {
  transform: translateX(0);
  }

/* responsive adjustments */
@media (max-width: 768px) {
  .carousel-caption {
    padding: 0.3rem;
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    }
  .carousel-item img {
    height: 320px;
    }
  .carousel-caption h5 {
    font-size: 1.2rem;
    }
  .projects-carousel-section {
    padding: 2rem 1rem;
    }
  .navbar-custom {
    padding: 0.6rem 1rem;
    }
  .intro-hero.title-at-top {
    padding-top: 0;
    }
  .animated-title {
    font-size: clamp(2.2rem, 9vw, 4rem);
    }
  .tab-content {
    padding: 0;
    }
  .projects-carousel-section, .reparatie-section, .contact-section{
    padding: 0;
    }
  }
