/* About Page Animations */

/* Title Animation */
@keyframes titleReveal {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes subtitleSlide {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-title {
    animation: titleReveal 1s ease-out forwards;
}

.animate-subtitle {
    animation: subtitleSlide 1s ease-out 0.3s forwards;
    opacity: 0;
}

/* Section Reveal Animations */
.section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.fade-in {
    opacity: 0;
    transform: translateY(50px);
}

.section.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Card Hover Effects */
.card {
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(107, 68, 35, 0.1) 50%, 
        transparent 100%);
    transition: left 0.5s ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(107, 68, 35, 0.15);
    border-color: var(--brand-accent);
}

/* Material Cards Animation */
@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.material-card {
    animation: cardFloat 3s ease-in-out infinite;
}

/* Slider kartlarında animasyonu devre dışı bırak */
.material-slider-card.material-card {
    animation: none;
}

.material-card:nth-child(2) {
    animation-delay: 0.5s;
}

.material-card:nth-child(3) {
    animation-delay: 1s;
}

/* Product Cards Stagger Animation */
@keyframes productCardReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) rotateX(20deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.product-card-animated {
    opacity: 0;
    animation: productCardReveal 0.6s ease forwards;
}

.product-card-animated:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card-animated:nth-child(2) {
    animation-delay: 0.2s;
}

.product-card-animated:nth-child(3) {
    animation-delay: 0.3s;
}

.product-card-animated:nth-child(4) {
    animation-delay: 0.4s;
}

/* Process Steps Animation */
@keyframes stepPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(107, 68, 35, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(107, 68, 35, 0);
    }
}

.process-step {
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    animation: stepPulse 1.5s infinite;
    transform: scale(1.1);
}

.step-number {
    transition: transform 0.3s ease;
}

/* Gradient Banner Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-banner {
    background: linear-gradient(135deg, 
        var(--brand-accent) 0%, 
        var(--brand-accent2) 50%,
        var(--brand-accent) 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    position: relative;
    overflow: hidden;
}

.gradient-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Image Placeholder Hover */
.image-placeholder {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(107, 68, 35, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.image-placeholder:hover::after {
    width: 300%;
    height: 300%;
}

/* Main Section Images (Hikaye, Ekip, Atölye) */
.section img[alt*="Hikayesi"],
.section img[alt*="Ekibi"],
.section img[alt*="Atölye"] {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.section img[alt*="Hikayesi"]:hover,
.section img[alt*="Ekibi"]:hover,
.section img[alt*="Atölye"]:hover {
    opacity: 0.9;
}

/* Parallax Effect */
.parallax-section {
    transition: transform 0.1s ease-out;
}

/* Text Gradient Animation */
@keyframes textShine {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.shine-text {
    background: linear-gradient(90deg, 
        var(--brand-accent) 0%, 
        var(--brand-accent2) 25%,
        var(--brand-accent) 50%,
        var(--brand-accent2) 75%,
        var(--brand-accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 3s linear infinite;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-accent2));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Bounce In Animation */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.bounce-in {
    animation: bounceIn 0.6s ease;
}

/* Fade Slide Animation */
@keyframes fadeSlide {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-slide {
    opacity: 0;
    animation: fadeSlide 0.8s ease forwards;
}

/* Button Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* Material Slider Styles */
.material-slider {
    position: relative;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: var(--radius-md);
    width: 100%;
    pointer-events: none; /* Slider container tıklanamaz */
}

.slider-container {
    overflow: hidden;
    border-radius: var(--radius-md);
    width: 100%;
    position: relative;
    pointer-events: none; /* Container tıklanamaz */
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
    width: 100%;
}

.slider-item {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    flex-shrink: 0;
    flex-grow: 0;
}

.slider-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-md);
    cursor: pointer;
    pointer-events: auto; /* Görseller tıklanabilir */
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-accent);
    border: 2px solid var(--brand-accent);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    box-shadow: 0 4px 12px rgba(107, 68, 35, 0.2);
    pointer-events: auto;
    user-select: none;
}

.slider-btn:hover {
    background: var(--brand-accent);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(107, 68, 35, 0.35);
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    position: relative;
    z-index: 10;
    pointer-events: none; /* Dots container tıklanamaz */
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(107, 68, 35, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto; /* Sadece dotlar tıklanabilir */
}

.slider-dot.active {
    background: var(--brand-accent);
    transform: scale(1.3);
}

.slider-dot:hover {
    background: rgba(107, 68, 35, 0.6);
    transform: scale(1.15);
}

/* Material Slider Card */
.material-slider-card {
    overflow: visible !important;
    position: relative;
}

/* Slider Image Zoom Effect */
.slider-item img {
    transition: opacity 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.slider-item img:hover {
    opacity: 0.95;
    filter: brightness(1.05);
}

/* Image Lightbox Modal */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.image-lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    animation: zoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-accent);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
}

.lightbox-close:hover {
    background: var(--brand-accent);
    color: white;
    transform: rotate(90deg) scale(1.1);
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .section {
        transform: translateY(30px);
    }
    
    .card:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    /* Mobilde butonları gizle */
    .slider-btn {
        display: none;
    }
    
    .slider-dot {
        width: 8px;
        height: 8px;
    }
    
    .slider-item img {
        height: 200px;
    }
    
    .section img[alt*="Hikayesi"],
    .section img[alt*="Ekibi"],
    .section img[alt*="Atölye"] {
        max-height: 300px;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 80vh;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}
