/* Custom Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 1s ease-out;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Image zoom on hover */
.img-zoom {
    transition: transform 0.5s ease;
}

.img-zoom:hover {
    transform: scale(1.1);
}

/* Button hover effects */
.btn-hover {
    transition: all 0.2s ease;
}

.btn-hover:hover {
    transform: translateX(4px);
}

/* Hero slideshow defaults (moved from JS inline styles) */
#hero-slideshow {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 800ms ease-in-out, visibility 800ms;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

/* When hero contains a video iframe, make it cover the area responsively */
/* Ensure the iframe always fills the screen horizontally (no left/right gaps)
   even when the hero section height changes. We center the iframe and
   require it to be at least the viewport width so it never leaves horizontal
   gutters. */
#hero-slideshow iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* make sure iframe is at least as wide as the viewport to avoid side gaps */
    min-width: 100vw;
    /* also ensure it fills the container vertically when needed */
    min-height: 100%;
    /* allow the browser to preserve aspect ratio */
    /* width: auto; */
    height: auto;
    /* prevent layout constraints from shrinking it */
    max-width: none;
    max-height: none;
    border: 0;
    pointer-events: none; /* prevent YouTube hover/click UI */
}

#hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.video-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh; /* 16:9 oranında */
  height: 100vh;
  min-width: 100vw;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  pointer-events: none; /* tıklanmasın */
}

