/* -------------------
   Global
------------------- */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fdf6f0;
  color: #3b1f2b;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  transition: opacity 0.5s ease; /* transition douce */
}

/* User request: hide all images site-wide (visual removal without deleting files) */
img, .gallery img, .profile-img, figure img {
  display: none !important;
  visibility: hidden !important;
}

/* -------------------
   Header & Nav
------------------- */
.site-header {
  background: linear-gradient(135deg, #6a1b30, #4b1e2f);
  color: #fdf6f0;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: bold;
}

.site-sub {
  margin: 0;
  font-size: 1rem;
  opacity: 0.85;
}

.main-nav {
  display: flex;
  gap: 20px;
}

.main-nav a {
  color: #fdf6f0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #ffdfc9;
}

/* Menu burger */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.menu-toggle span {
  background: #fdf6f0;
  margin: 4px 0;
  width: 25px;
  height: 3px;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    flex-direction: column;
    background: #6a1b30;
    text-align: center;
    padding: 10px;
  }
  .main-nav.active {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
}

/* -------------------
   Cards
------------------- */
.card-light {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 30px; /* unified padding to match other pages */
  margin-bottom: 30px; /* unified spacing */
  transition: transform 0.3s ease, box-shadow 0.25s ease;
}
.card-light:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 26px rgba(0,0,0,0.12);
}

/* -------------------
   Buttons
------------------- */
.btn-custom {
  background-color: #6a1b30;
  color: #fdf6f0;
  border-radius: 50px;
  padding: 10px 25px;
  transition: background 0.3s;
}
.btn-custom:hover {
  background-color: #8c2640;
}

/* -------------------
   Footer
------------------- */
.site-footer {
  background: #4b1e2f;
  color: #fdf6f0;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* -------------------
   Animations & Reveal
------------------- */

/* Base hidden state for reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  will-change: opacity, transform;
}

/* When `.show` is added, element animates into place */
.reveal.show {
  animation-name: fadeInUp;
  animation-duration: 650ms;
  animation-timing-function: cubic-bezier(.22,.9,.32,1);
  animation-fill-mode: both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* subtle floating effect for the site title */
@keyframes floatTitle {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}
.site-title {
  animation: floatTitle 6s ease-in-out infinite;
}

.site-name {
  margin: 6px 0 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffd9c9;
  opacity: 0.95;
  font-style: italic;
}

/* slide in variations */
.reveal-left { transform: translateX(-18px); }
.reveal-right { transform: translateX(18px); }
.reveal-left.show { animation-name: slideInLeft; }
.reveal-right.show { animation-name: slideInRight; }

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulseSoft {
  0% { transform: scale(1); }
  50% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-top: 10px; }
.gallery img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; display: block; box-shadow: 0 8px 18px rgba(0,0,0,0.06); transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease; }
.gallery img:hover { transform: translateY(-3px) scale(1.012); box-shadow: 0 12px 28px rgba(0,0,0,0.10); filter: saturate(1.02); }

/* Lightbox overlay */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,8,10,0.78);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}
.lb-overlay.active { display: flex; }
.lb-content { max-width: 92vw; max-height: 92vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb-content img { max-width: 100%; max-height: 78vh; border-radius: 10px; box-shadow: 0 28px 64px rgba(0,0,0,0.45); transform-origin: center center; animation: zoomIn 240ms ease; }
.lb-caption { color: #fff; opacity: 0.92; font-size: 0.95rem; text-align: center; }
.lb-close { position: absolute; top: 18px; right: 18px; background: rgba(255,255,255,0.08); color: #fff; border: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; }

/* micro-tilt effect for images */
.tilt { transition: transform 220ms cubic-bezier(.2,.9,.2,1); will-change: transform; }
.tilt:hover { transform: perspective(700px) rotateX(3deg) rotateY(-3deg) translateY(-6px) scale(1.01); }

/* small profile image used in header/cv */
.profile-img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,0.12); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .site-title, .site-name, .card-light, .gallery img { animation: none !important; transition: none !important; }
}

@media (max-width: 480px) {
  .gallery { gap: 10px; }
  .gallery img { height: 90px; }
}

/* -------------------
   Hero / Headline
------------------- */
.hero {
  background: linear-gradient(180deg, rgba(106,27,48,0.06), rgba(75,30,47,0.02));
  padding: 48px 18px;
  border-radius: 14px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.6px;
  color: #3b1f2b;
  font-weight: 800;
}
.hero p.lead {
  margin: 10px 0 0 0;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  color: #6b2b3a;
  opacity: 0.95;
}

/* Typographic utility for nicer reading */
.prose {
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
  color: #3b1f2b;
  font-size: 1rem;
  letter-spacing: -0.2px;
}
.prose p { margin: 0 0 0.9rem 0; }
.prose h2, .prose h3 { color: #52202a; margin-top: 0.6rem; margin-bottom: 0.6rem; }
.prose strong { color: #3b1f2b; }
.prose em { color: #6b2b3a; font-style: italic; }
.prose blockquote { border-left: 3px solid rgba(106,27,48,0.12); padding-left: 12px; margin: 12px 0; color: #4e2a2f; background: rgba(106,27,48,0.02); border-radius: 6px; }

/* Stagger helper for lists - default small reveal */
.stagger-list li { opacity: 0; transform: translateY(8px); will-change: opacity, transform; }
.stagger-list li.show { animation: fadeInUp 420ms cubic-bezier(.22,.9,.32,1) both; }

/* Small polish for nav and footer */
.main-nav a { transition: transform 200ms ease, color 200ms ease; }
.main-nav a:hover { transform: translateY(-2px); }
.site-footer { opacity: 0.98; }

/* make hero less heavy on small devices */
@media (max-width: 480px) {
  .hero { padding: 28px 12px; }
  .hero h1 { font-size: 1.45rem; }
}

/* utility delays for easy staggering */
.delay-1 { animation-delay: 80ms; }
.delay-2 { animation-delay: 160ms; }
.delay-3 { animation-delay: 260ms; }
.delay-4 { animation-delay: 360ms; }
.delay-5 { animation-delay: 460ms; }

/* nav link underline animation */
.main-nav a {
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  background: rgba(255, 223, 201, 0.9);
  border-radius: 3px;
  transition: width 260ms ease;
}
.main-nav a:hover::after { width: 100%; }

/* micro interactions */
.btn-custom {
  transition: transform 180ms ease, box-shadow 180ms ease, background 0.25s;
}
.btn-custom:active { transform: translateY(2px) scale(0.995); }
.card-light { transition: transform 260ms ease, box-shadow 260ms ease; }
.card-light:hover { box-shadow: 0 8px 26px rgba(0,0,0,0.12); transform: translateY(-6px) scale(1.007); }

/* responsive tweak: make sure reveal animations don't jump on very small screens */
@media (max-width: 420px) {
  .reveal { transform: none; }
}
