/* Yumuşak Geçişler */
html { 
    scroll-behavior: smooth; 
}

/* ==========================================================================
   MEVCUT BİLEŞENLER
   ========================================================================== */
.accordion-content { 
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease; 
    max-height: 0; 
    opacity: 0; 
    overflow: hidden; 
}
.accordion-content.open { 
    max-height: 200px; 
    opacity: 1; 
}
.rotate-180 { 
    transform: rotate(180deg); 
}

/* Navbar Link Animasyonu */
.nav-link {
    position: relative;
    padding-bottom: 6px;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    border-radius: 2px;
    background-color: #f59e0b;
    transition: width 0.3s ease-in-out;
}
.nav-link:not(.active):hover::after { width: 100%; }
.nav-link.active::after {
    width: 100%;
    left: 0;
    right: auto;
    transition: width 0.3s ease-in-out;
}
.nav-link.active:hover::after { width: 0; }

.btn-pulse {
    animation: minimalPulseWave 2.2s infinite ease-in-out;
}

@keyframes minimalPulseWave {
    0% { transform: scale(1); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { transform: scale(0.98); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 0 0 8px rgba(245, 158, 11, 0); }
    100% { transform: scale(1); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 0 0 0 rgba(245, 158, 11, 0); }
}

.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background-color: #e2e8f0; border-radius: 20px; }


/* ==========================================================================
   YENİ EKLENEN ANİMASYONLAR VE BİLEŞENLER
   ========================================================================== */

/* 1. Buton Shine (Işık) ve İkon Sallanma Efekti */
.shine-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    transition: none;
}
.shine-btn:hover::before {
    animation: shineSweep 0.6s ease-out;
}
@keyframes shineSweep {
    100% { left: 200%; }
}

.icon-wiggle {
    display: inline-block;
}
.shine-btn:hover .icon-wiggle {
    animation: wiggle 0.4s ease-in-out infinite alternate;
}
@keyframes wiggle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(15deg) scale(1.1); }
}

/* 2. Açılış Animasyonları (Hızlı Fade-in Up) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    will-change: opacity, transform;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Drag Slider (Sürüklemeli Kutu Yapısı) */
.drag-slider {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox için gizleme */
    -ms-overflow-style: none; /* IE/Edge için gizleme */
}
.drag-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari için gizleme */
}

/* 4. Müşteri Yorumları Grafiti Arkaplan (Çok Soluk) */
.graffiti-bg {
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 50px,
        rgba(255, 255, 255, 0.02) 50px,
        rgba(255, 255, 255, 0.02) 100px
    );
}
.graffiti-bg::after {
    content: "kepenkserviscin.com kepenkserviscin.com kepenkserviscin.com kepenkserviscin.com kepenkserviscin.com kepenkserviscin.com";
    position: absolute;
    top: 50%;
    left: -50%;
    width: 200%;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    transform: translateY(-50%) rotate(-10deg);
    line-height: 1;
    word-break: break-all;
}

/* 5. Markalar İçin Sıralı Büyüme & Gölge Efekti */
.brand-item {
    animation: brandGlow 5s infinite;
}
.brand-item:nth-child(1) { animation-delay: 0s; }
.brand-item:nth-child(2) { animation-delay: 1s; }
.brand-item:nth-child(3) { animation-delay: 2s; }
.brand-item:nth-child(4) { animation-delay: 3s; }
.brand-item:nth-child(5) { animation-delay: 4s; }

@keyframes brandGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    }
    10% {
        transform: scale(1.08);
        box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.3), 0 4px 6px -2px rgba(245, 158, 11, 0.1); 
    }
    20% {
        transform: scale(1);
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    }
}

/* =========================================================
   YENİ EKLENEN: PORTFOLYO MODAL ANİMASYONLARI
   ========================================================= */
#portfolio-modal.modal-active {
    opacity: 1;
    pointer-events: auto;
}
#portfolio-modal.modal-active .modal-content {
    transform: scale(1); /* Büyüyerek açılma animasyonu */
}