/* ============================================
   BÖLÜM GEÇİŞLERİ - MODERN TASARIM
   ============================================ */

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Animasyonlu section'lar — tüm section'lara overflow:hidden verme (iç sayfa içeriğini keser) */
section.section-animate,
section.fade-in-section,
section.zoom-in-section,
section.slide-from-left,
section.slide-from-right {
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* JavaScript yüklenmezse varsayılan olarak görünür */
html.js-loaded .section-animate:not(.is-visible),
html.js-loaded .fade-in-section:not(.is-visible),
html.js-loaded .zoom-in-section:not(.is-visible),
html.js-loaded .slide-from-left:not(.is-visible),
html.js-loaded .slide-from-right:not(.is-visible),
html.js-loaded .stagger-item:not(.is-visible) {
    opacity: 0;
}

/* Scroll Animasyonları için Hazırlık */
.section-animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

html.js-loaded .section-animate:not(.is-visible) {
    transform: translateY(50px);
}

.section-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Alternatif Fade Animasyonu */
.fade-in-section {
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.fade-in-section.is-visible {
    opacity: 1;
}

/* ============================================
   DALGA GEÇİŞLERİ
   ============================================ */

/* Üst Dalga Ayırıcı */
.wave-divider-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.wave-divider-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-divider-top .shape-fill {
    fill: #FFFFFF;
}

/* Alt Dalga Ayırıcı */
.wave-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 1;
}

.wave-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-divider-bottom .shape-fill {
    fill: #FFFFFF;
}

/* Dalga Alternatif Renkler */
.wave-divider-top.wave-gray .shape-fill {
    fill: #f9f9f9;
}

.wave-divider-bottom.wave-gray .shape-fill {
    fill: #f9f9f9;
}

/* ============================================
   GEOMETRİK AYIRICILAR
   ============================================ */

/* Eğik Ayırıcı */
.section-slant::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: inherit;
    transform: skewY(-2deg);
    transform-origin: top left;
    z-index: -1;
}

.section-slant::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: inherit;
    transform: skewY(-2deg);
    transform-origin: bottom right;
    z-index: -1;
}

/* Diagonal Ayırıcı */
.diagonal-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom right, transparent 49%, #f9f9f9 50%);
    z-index: 1;
}

.diagonal-separator.reverse {
    background: linear-gradient(to bottom left, transparent 49%, #f9f9f9 50%);
}

/* ============================================
   DEKORATIF ÇIZGILER
   ============================================ */

/* Gradient Çizgi Ayırıcı */
.gradient-line-separator {
    position: relative;
    margin: 80px 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        #e3000f 20%,
        #e3000f 80%,
        transparent 100%
    );
    opacity: 0.3;
}

/* Noktalı Ayırıcı */
.dotted-separator {
    position: relative;
    text-align: center;
    margin: 60px 0;
}

.dotted-separator::before {
    content: '• • •';
    font-size: 24px;
    color: #e3000f;
    letter-spacing: 10px;
    opacity: 0.5;
}

/* ============================================
   PARALLAX BENZERİ EFEKTLER
   ============================================ */

.parallax-section {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Section Overlay */
.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    z-index: 0;
    transition: background 0.3s ease;
}

.section-overlay.dark {
    background: rgba(0, 0, 0, 0.5);
}

/* ============================================
   HOVER VE FOKUS EFEKTLERİ
   ============================================ */

/* Section Hover Efekti */
.section-hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-hover-effect:hover {
    transform: scale(1.01);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* ============================================
   BAŞLIK ANIMASYONLARI
   ============================================ */

.centered-title {
    position: relative;
    margin-bottom: 10px;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.centered-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

/* Başlık Alt Çizgisi Animasyonu */
.heading-border {
    display: block;
    width: 60px;
    height: 3px;
    background: #e3000f;
    margin: 15px auto 0;
    position: relative;
    animation: expandWidth 0.8s ease-out 0.3s both;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

/* Dekoratif Border */
.heading-border::before,
.heading-border::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: #e3000f;
    opacity: 0.3;
}

.heading-border::before {
    right: 70px;
    transform: translateY(-50%);
}

.heading-border::after {
    left: 70px;
    transform: translateY(-50%);
}

/* ============================================
   SECTION PADDING YARDIMCILARI
   ============================================ */

.section-padding-large {
    padding: 120px 0;
}

.section-padding-medium {
    padding: 80px 0;
}

.section-padding-small {
    padding: 60px 0;
}

/* ============================================
   ARKA PLAN VARYASYONLARI
   ============================================ */

.bg-light-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
}

.bg-subtle-pattern {
    background-color: #f9f9f9;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(227, 0, 15, 0.02) 35px, rgba(227, 0, 15, 0.02) 70px);
}

.bg-white-to-gray {
    background: linear-gradient(to bottom, #ffffff 0%, #f9f9f9 100%);
}

/* ============================================
   ZOOM ANIMASYONLARI
   ============================================ */

.zoom-in-section {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

html.js-loaded .zoom-in-section:not(.is-visible) {
    opacity: 0;
    transform: scale(0.95);
}

.zoom-in-section.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   SLIDE ANIMASYONLARI
   ============================================ */

.slide-from-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

html.js-loaded .slide-from-left:not(.is-visible) {
    opacity: 0;
    transform: translateX(-100px);
}

.slide-from-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-from-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

html.js-loaded .slide-from-right:not(.is-visible) {
    opacity: 0;
    transform: translateX(100px);
}

.slide-from-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   STAGGER ANIMASYONLARI (Sıralı Element Animasyonu)
   ============================================ */

.stagger-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

html.js-loaded .stagger-item:not(.is-visible) {
    opacity: 0;
    transform: translateY(30px);
}

.stagger-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Her item için gecikme */
.stagger-item:nth-child(1) { transition-delay: 0.1s; }
.stagger-item:nth-child(2) { transition-delay: 0.2s; }
.stagger-item:nth-child(3) { transition-delay: 0.3s; }
.stagger-item:nth-child(4) { transition-delay: 0.4s; }
.stagger-item:nth-child(5) { transition-delay: 0.5s; }
.stagger-item:nth-child(6) { transition-delay: 0.6s; }

/* ============================================
   MOBİL UYUM
   ============================================ */

@media (max-width: 767px) {
    .wave-divider-top svg,
    .wave-divider-bottom svg {
        height: 40px;
    }
    
    .section-slant::before,
    .section-slant::after {
        height: 50px;
    }
    
    .gradient-line-separator,
    .dotted-separator {
        margin: 40px 0;
    }
    
    .section-padding-large {
        padding: 60px 0;
    }
    
    .section-padding-medium {
        padding: 50px 0;
    }
    
    .section-padding-small {
        padding: 40px 0;
    }
    
    .heading-border::before,
    .heading-border::after {
        display: none;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .section-padding-large {
        padding: 90px 0;
    }
}

/* ============================================
   PERFORMANS İYİLEŞTİRMELERİ
   ============================================ */

/* GPU Hızlandırma - Sadece animasyon sırasında aktif */
.section-animate:not(.is-visible),
.fade-in-section:not(.is-visible),
.zoom-in-section:not(.is-visible),
.slide-from-left:not(.is-visible),
.slide-from-right:not(.is-visible),
.stagger-item:not(.is-visible) {
    will-change: opacity, transform;
}

/* Animasyon Bittiğinde will-change'i Kaldır */
.is-visible {
    will-change: auto;
}

/* Reduced Motion Desteği */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
