/* ===== ZEHRA BULUT REFORMER PILATES - MAIN STYLESHEET ===== */
/* Professional, Corporate-Level CSS Architecture */
/* Author: Frontend Development Team */
/* Last Updated: 24 Şubat 2026 */

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #FAFAFB;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F3EDF5;
}
::-webkit-scrollbar-thumb {
    background: #7B4B82;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4B2C4F;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ===== ANIMATION UTILITY CLASSES ===== */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-slide-down {
    animation: slideDown 0.4s ease-out forwards;
}

/* ===== SCROLL-TRIGGERED ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-44px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(44px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Sadece opacity animasyonu - ince fade için */
.reveal-fade {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-fade.active {
    opacity: 1;
}

/* ===== STAGGER CHILDREN ANIMATIONS ===== */
.stagger-children > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-children.active > *:nth-child(1) { transition-delay: 0.08s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(2) { transition-delay: 0.18s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(3) { transition-delay: 0.28s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(4) { transition-delay: 0.38s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(5) { transition-delay: 0.48s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(6) { transition-delay: 0.58s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(7) { transition-delay: 0.68s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(8) { transition-delay: 0.78s; opacity: 1; transform: translateY(0); }

/* ===== SCROLL ANİMASYON GECIKME YARDIMCILARI ===== */
/* data-delay="0.2" gibi HTML atribütünü JS handle ediyor */
/* CSS class tabanlı delay alternatifi */
.reveal.anim-delay-1, .reveal-left.anim-delay-1, .reveal-right.anim-delay-1,
.reveal-scale.anim-delay-1, .reveal-fade.anim-delay-1 { transition-delay: 0.15s; }

.reveal.anim-delay-2, .reveal-left.anim-delay-2, .reveal-right.anim-delay-2,
.reveal-scale.anim-delay-2, .reveal-fade.anim-delay-2 { transition-delay: 0.30s; }

.reveal.anim-delay-3, .reveal-left.anim-delay-3, .reveal-right.anim-delay-3,
.reveal-scale.anim-delay-3, .reveal-fade.anim-delay-3 { transition-delay: 0.45s; }

.reveal.anim-delay-4, .reveal-left.anim-delay-4, .reveal-right.anim-delay-4,
.reveal-scale.anim-delay-4, .reveal-fade.anim-delay-4 { transition-delay: 0.60s; }

/* ===== COMPONENT STYLES ===== */

/* Card hover effect */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(123, 75, 130, 0.15);
}

/* Button shimmer effect */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}
.btn-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn-shimmer:hover::after {
    left: 100%;
}

/* Navbar active link */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #E6A4C6;
    transition: width 0.3s ease, left 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Header shrink on scroll */
.header-scrolled {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    box-shadow: 0 4px 20px rgba(75, 44, 79, 0.12);
}

/* Mobile menu animation */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}
.mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Decorative elements */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #E6D8E9, #F3EDF5);
    opacity: 0.5;
}

/* Section divider */
.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #7B4B82, #E6A4C6);
    border-radius: 2px;
}

/* Certifications icon container */
.cert-icon {
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.card-hover:hover .cert-icon {
    transform: scale(1.1);
    background-color: #7B4B82;
}
.card-hover:hover .cert-icon i {
    color: white;
}

/* Footer social icons */
.social-icon {
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.social-icon:hover {
    transform: translateY(-3px);
}

/* ===== RESPONSIVE OPTIMIZATIONS ===== */

/* Mobile optimizations */
@media (max-width: 640px) {
    /* Hero section mobile optimization */
    h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    /* Touch-friendly button sizes */
    .btn-shimmer {
        min-height: 44px;
        padding: 0.875rem 2rem;
    }
    
    /* Mobile card spacing */
    .card-hover {
        margin-bottom: 1rem;
    }
    
    /* Touch-friendly form elements */
    input, textarea, select {
        font-size: 16px !important; /* Prevents iOS zoom */
        min-height: 44px;
    }
}

/* Tablet optimizations */
@media (min-width: 641px) and (max-width: 1024px) {
    .hero-content {
        max-width: 90%;
    }
}

/* Large screen optimizations */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 1400px;
    }
}

/* ===== ACCESSIBILITY ===== */

/* Reduced motion for accessibility */
@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;
    }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #7B4B82;
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .no-print,
    header,
    footer,
    #backToTop {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ===== BROWSER-SPECIFIC ENHANCEMENTS ===== */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card-hover {
        border: 2px solid currentColor;
    }
}

/* Performance optimization - Lazy loading shimmer effect */
.lazy-load {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Hover effects only on pointer-capable devices */
@media (hover: none) {
    .card-hover:hover {
        transform: none;
    }
    
    .social-icon:hover {
        transform: none;
    }
}

/* Dark mode scrollbar */
[data-theme="dark"] ::-webkit-scrollbar-track { background: #18102A; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #7B4B82; border-radius: 4px; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #9B6BA8; }
