/* =============================================
   Portfolio - Tamsi Kamagate
   ============================================= */

html { scroll-behavior: smooth; }

/* ── Header ── ALTIJD BLAUW ── */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #1a3a5c !important;
  box-shadow: 0 3px 16px rgba(26,58,92,0.45);
}

.logoContainer img {
  height: 56px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}
.logoContainer img:hover {
  transform: rotate(-5deg) scale(1.1);
}

/* ── Dark mode toggle (floating) ── */
#darkModeToggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.85rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#darkModeToggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

/* ── Landing page ── */
.landingspage {
  position: relative;
  height: 88vh;
  background: url('../imgs/startscherm.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.2) 100%);
}
.textoverlay {
  position: relative;
  z-index: 2;
  text-align: center;
}
.text h1 {
  font-size: clamp(3.5rem, 11vw, 8rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
  animation: fadeInDown 1s ease both;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── About me ── */
.aboutMeImg img {
  width: 100%;
  max-width: 400px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.aboutMeImg img:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 40px rgba(0,0,0,0.3);
}

/* ── Cards ── */
.card {
  border: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 38px rgba(0,0,0,0.22);
}
.card-img-top {
  height: 160px;
  object-fit: contain;
  object-position: center;
  padding: 16px;
  background: transparent;
  transition: transform 0.4s ease;
}
.card:hover .card-img-top {
  transform: scale(1.07);
}

/* ── Progress bars ── */
.progress {
  border-radius: 50px;
  height: 22px;
  margin-bottom: 16px;
  overflow: hidden;
}
.progress-bar {
  border-radius: 50px;
  background: linear-gradient(90deg, #1a3a5c, #2e6da4);
  width: 0;
  transition: width 1.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  font-weight: 600;
  font-size: 0.8rem;
}

/* ── Stars ── */
.fa-star { color: #ffc107; transition: transform 0.2s ease; }
.fa-star:hover { transform: scale(1.3) rotate(12deg); }

/* ── Carousels ── */
.gg, .carouselMusic {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  margin-bottom: 32px;
}
.carousel-item img {
  height: 440px;
  object-fit: cover;
}

/* ── Section title underline animation ── */
.textzwemsport h1,
.texthobbys h1 {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}
.textzwemsport h1::after,
.texthobbys h1::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 3px;
  background: #1a3a5c;
  border-radius: 2px;
  transition: width 0.8s ease 0.2s;
}
.reveal.visible .textzwemsport h1::after,
.textzwemsport.visible h1::after,
.texthobbys.visible h1::after { width: 100%; }

/* Trigger underline when parent becomes visible */
.textzwemsport.reveal.visible h1::after,
.texthobbys.reveal.visible h1::after { width: 100%; }

/* ── Swim section images ── */
.swim-img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
  object-fit: cover;
  transition: transform 0.4s ease;
}
.swim-img:hover { transform: scale(1.025); }

/* ── Footer / FAQ / Contact ── */
footer {
  margin-top: 50px;
  padding: 40px 24px 60px;
  background: linear-gradient(135deg, #1a3a5c 0%, #152d47 50%, #0f2035 100%);
  color: #fff;
  border-radius: 24px 24px 0 0;
}

footer h2 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 20px;
}
footer h4 { color: #cfe2ff; font-size: 1rem; margin-bottom: 8px; }

/* Accordion in footer */
footer .accordion-item {
  border: none;
  border-radius: 10px !important;
  margin-bottom: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
}
footer .accordion-button {
  background: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: none;
}
footer .accordion-button:not(.collapsed) {
  background: rgba(255,255,255,0.18);
  color: #fff;
}
footer .accordion-button::after {
  filter: invert(1);
}
footer .accordion-body {
  background: rgba(255,255,255,0.08);
  color: #e8f0fe;
}

/* Contact info icons spacing */
footer .contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: #cfe2ff;
}
footer .contact-item i {
  width: 22px;
  color: #fff;
}

/* ── Offcanvas nav ── */
.offcanvas-body .btn {
  width: 100%;
  text-align: left;
  transition: transform 0.2s ease, letter-spacing 0.2s ease;
}
.offcanvas-body .btn:hover {
  transform: translateX(6px);
  letter-spacing: 0.04em;
}

/* ── Keyframes ── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .carousel-item img { height: 260px; }
  .swim-img { margin-bottom: 16px; }
}