/* ============================================
   MODERN EFFECTS - Cin Ali
   Geri almak için bu dosyayı head.php'den kaldırın
   ============================================ */

/* ============================================
   1. GLASSMORPHISM EFFECTS
   ============================================ */

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   2. GRADIENT OVERLAYS
   ============================================ */

.gradient-overlay {
    position: relative;
    overflow: hidden;
}

.gradient-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gradient-overlay:hover::before {
    opacity: 1;
}

.gradient-overlay > * {
    position: relative;
    z-index: 2;
}

/* Farklı gradient varyantları */
.gradient-blue::before {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.8) 0%, rgba(0, 242, 254, 0.8) 100%);
}

.gradient-green::before {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.8) 0%, rgba(56, 239, 125, 0.8) 100%);
}

.gradient-red::before {
    background: linear-gradient(135deg, rgba(235, 51, 73, 0.8) 0%, rgba(244, 92, 67, 0.8) 100%);
}

/* ============================================
   3. PARALLAX EFFECTS
   ============================================ */

.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-layer {
    transition: transform 0.3s ease-out;
}

/* JS ile kontrol edilecek */
.parallax-slow {
    transform: translateY(calc(var(--scroll) * 0.5px));
}

.parallax-medium {
    transform: translateY(calc(var(--scroll) * 1px));
}

.parallax-fast {
    transform: translateY(calc(var(--scroll) * 2px));
}

/* ============================================
   4. IMAGE HOVER EFFECTS
   ============================================ */

/* Zoom Effect */
.img-hover-zoom {
    overflow: hidden;
    border-radius: 8px;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
    display: block;
    width: 100%;
}

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

/* Tilt Effect */
.img-hover-tilt {
    overflow: hidden;
    border-radius: 8px;
}

.img-hover-tilt img {
    transition: transform 0.5s ease;
    display: block;
    width: 100%;
}

.img-hover-tilt:hover img {
    transform: scale(1.1) rotate(3deg);
}

/* Brightness Effect */
.img-hover-brightness {
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.img-hover-brightness img {
    transition: filter 0.3s ease, transform 0.3s ease;
    display: block;
    width: 100%;
}

.img-hover-brightness:hover img {
    filter: brightness(1.2);
    transform: scale(1.05);
}

/* Overlay Text Effect */
.img-overlay-text {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.img-overlay-text img {
    display: block;
    width: 100%;
    transition: transform 0.3s ease;
}

.img-overlay-text .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-overlay-text:hover .overlay {
    opacity: 1;
}

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

/* ============================================
   5. TEXT EFFECTS
   ============================================ */

/* Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.text-gradient-blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Text Shadow Glow */
.text-glow {
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.8), 0 0 20px rgba(102, 126, 234, 0.5);
    animation: textGlowPulse 2s ease-in-out infinite;
}

@keyframes textGlowPulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(102, 126, 234, 0.8), 0 0 20px rgba(102, 126, 234, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(102, 126, 234, 1), 0 0 30px rgba(102, 126, 234, 0.8);
    }
}

/* 3D Text */
.text-3d {
    text-shadow:
        1px 1px 0 #ccc,
        2px 2px 0 #c9c9c9,
        3px 3px 0 #bbb,
        4px 4px 0 #b9b9b9,
        5px 5px 0 #aaa,
        6px 6px 1px rgba(0,0,0,.1),
        0 0 5px rgba(0,0,0,.1),
        1px 1px 3px rgba(0,0,0,.3),
        3px 3px 5px rgba(0,0,0,.2),
        5px 5px 10px rgba(0,0,0,.25),
        10px 10px 10px rgba(0,0,0,.2),
        20px 20px 20px rgba(0,0,0,.15);
}

/* ============================================
   6. CARD EFFECTS
   ============================================ */

/* Floating Card */
.card-float {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
}

.card-float:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Card with Border Animation */
.card-border-anim {
    position: relative;
    border-radius: 12px;
    background: white;
    padding: 30px;
    overflow: hidden;
}

.card-border-anim::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-border-anim:hover::before {
    opacity: 1;
}

/* Flip Card */
.card-flip {
    perspective: 1000px;
    width: 100%;
    height: 300px;
}

.card-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card-flip:hover .card-flip-inner {
    transform: rotateY(180deg);
}

.card-flip-front,
.card-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-flip-front {
    background: white;
}

.card-flip-back {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: rotateY(180deg);
}

/* ============================================
   7. BORDER & SHAPE EFFECTS
   ============================================ */

/* Animated Border */
.border-animated {
    position: relative;
    padding: 30px;
    border-radius: 12px;
}

.border-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 3px;
    background: linear-gradient(45deg, #667eea, #764ba2, #667eea);
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Blob Shape */
.blob-shape {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blobAnimation 8s ease-in-out infinite;
}

@keyframes blobAnimation {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

/* ============================================
   8. SCROLL REVEAL EFFECTS
   ============================================ */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   9. BACKGROUND EFFECTS
   ============================================ */

/* Animated Gradient Background */
.bg-gradient-animated {
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #4facfe);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Particles Background */
.bg-particles {
    position: relative;
    overflow: hidden;
}

.bg-particles::before,
.bg-particles::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    animation: particleFloat 20s ease-in-out infinite;
}

.bg-particles::before {
    top: -150px;
    left: -150px;
}

.bg-particles::after {
    bottom: -150px;
    right: -150px;
    animation-delay: 10s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(100px, -100px) scale(1.2);
    }
    66% {
        transform: translate(-100px, 100px) scale(0.8);
    }
}

/* ============================================
   10. SHADOW EFFECTS
   ============================================ */

/* Soft Shadow */
.shadow-soft {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Deep Shadow */
.shadow-deep {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Colored Shadow */
.shadow-colored-blue {
    box-shadow: 0 10px 40px rgba(79, 172, 254, 0.4);
}

.shadow-colored-purple {
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
}

.shadow-colored-green {
    box-shadow: 0 10px 40px rgba(56, 239, 125, 0.4);
}

/* Neumorphism Shadow */
.shadow-neomorph {
    background: #f0f0f0;
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.1),
        -8px -8px 16px rgba(255, 255, 255, 0.7);
    border-radius: 20px;
}

.shadow-neomorph-inset {
    background: #f0f0f0;
    box-shadow:
        inset 8px 8px 16px rgba(0, 0, 0, 0.1),
        inset -8px -8px 16px rgba(255, 255, 255, 0.7);
    border-radius: 20px;
}

/* ============================================
   11. LOADER EFFECTS
   ============================================ */

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Progress Bar */
.progress-bar-animated {
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    background-size: 200% 100%;
    animation: progressBar 2s ease-in-out infinite;
}

@keyframes progressBar {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   12. UTILITY CLASSES
   ============================================ */

/* Smooth Transitions */
.transition-all {
    transition: all 0.3s ease;
}

.transition-fast {
    transition: all 0.15s ease;
}

.transition-slow {
    transition: all 0.5s ease;
}

/* Transform Origin */
.origin-center { transform-origin: center; }
.origin-top { transform-origin: top; }
.origin-bottom { transform-origin: bottom; }
.origin-left { transform-origin: left; }
.origin-right { transform-origin: right; }

/* Z-index helpers */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ============================================
   13. MOBILE OPTIMIZATION
   ============================================ */

@media (max-width: 768px) {
    /* Mobilde animasyonları hafiflet */
    .glass-card,
    .card-float,
    .img-hover-zoom img,
    .img-hover-tilt img {
        transition-duration: 0.2s;
    }

    /* Mobilde hover efektlerini devre dışı bırak */
    .glass-card:hover,
    .card-float:hover {
        transform: none;
    }

    /* 3D efektleri mobilde kaldır */
    .card-flip:hover .card-flip-inner {
        transform: none;
    }
}

/* Dokunmatik ekranlar için */
@media (hover: none) and (pointer: coarse) {
    .img-hover-zoom:hover img,
    .img-hover-tilt:hover img,
    .img-hover-brightness:hover img {
        transform: none;
        filter: none;
    }
}

/* Hareket hassasiyeti azaltılmış kullanıcılar için */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
