/* =============================================
   COOLSIGN REKLAM - 3D EFFECTS & ANIMATIONS
   ============================================= */

/* --- 3D HERO SECTION --- */
.hero-section-premium {
    perspective: 1000px;
    overflow: hidden;
}

.hero-content {
    transform-style: preserve-3d;
}

.hero-title-premium {
    transform-style: preserve-3d;
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) translateZ(0); }
    50% { transform: translateY(-10px) translateZ(20px); }
}

/* Neon Glow Effect on H1 */
.text-gradient-glow {
    text-shadow:
        0 0 10px rgba(0, 102, 204, 0.5),
        0 0 20px rgba(0, 102, 204, 0.3),
        0 0 40px rgba(0, 102, 204, 0.2),
        0 0 80px rgba(0, 102, 204, 0.1);
    animation: neonPulse 3s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    0% {
        text-shadow:
            0 0 10px rgba(0, 102, 204, 0.5),
            0 0 20px rgba(0, 102, 204, 0.3),
            0 0 40px rgba(0, 102, 204, 0.2);
    }
    100% {
        text-shadow:
            0 0 15px rgba(0, 153, 255, 0.7),
            0 0 30px rgba(0, 153, 255, 0.5),
            0 0 60px rgba(0, 153, 255, 0.3),
            0 0 100px rgba(0, 153, 255, 0.15);
    }
}

/* --- 3D FLOATING PRODUCT CARDS IN HERO --- */
.hero-3d-products {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    perspective: 1000px;
}

.hero-section-premium .corporate-container {
    z-index: 4 !important;
}

.floating-product {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    color: #fff;
    text-decoration: none;
    transform-style: preserve-3d;
    animation: productFloat 8s ease-in-out infinite;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.floating-product:hover {
    background: rgba(0, 102, 204, 0.3);
    border-color: rgba(0, 153, 255, 0.4);
    transform: scale(1.15) translateZ(30px) !important;
}

.floating-product i {
    font-size: 1.6rem;
    color: #60a5fa;
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.5));
}

.floating-product img {
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.4));
    transition: transform 0.3s;
}

.floating-product:hover img {
    transform: scale(1.1);
}

.floating-product span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Proje kartlari - altin/turuncu vurgu */
.fp-project i {
    color: #f59e0b !important;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5)) !important;
}

.fp-project:hover {
    background: rgba(245, 158, 11, 0.25) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
}

/* Sol kolon - Hizmetler */
.fp-left {
    left: 8%;
}

/* Sag kolon - Projeler */
.fp-right {
    right: 8%;
}

@keyframes productFloat {
    0%, 100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg) translateZ(0);
    }
    25% {
        transform: translateY(-15px) rotateX(5deg) rotateY(-5deg) translateZ(10px);
    }
    50% {
        transform: translateY(-8px) rotateX(-3deg) rotateY(8deg) translateZ(20px);
    }
    75% {
        transform: translateY(-20px) rotateX(4deg) rotateY(-3deg) translateZ(5px);
    }
}

/* Tablet */
@media (max-width: 992px) {
    .fp-left { left: 3%; }
    .fp-right { right: 3%; }
    .floating-product { padding: 10px 14px; }
    .floating-product i { font-size: 1.2rem; }
    .floating-product span { font-size: 0.6rem; }
    .floating-product:nth-child(n+7) { display: none; }
}

/* Mobil */
@media (max-width: 576px) {
    .hero-3d-products { display: none; }
}

/* Hero Floating Particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-duration: 15s; animation-delay: 0s; width: 3px; height: 3px; }
.particle:nth-child(2) { left: 25%; animation-duration: 20s; animation-delay: 2s; width: 5px; height: 5px; }
.particle:nth-child(3) { left: 40%; animation-duration: 18s; animation-delay: 4s; }
.particle:nth-child(4) { left: 55%; animation-duration: 22s; animation-delay: 1s; width: 6px; height: 6px; }
.particle:nth-child(5) { left: 70%; animation-duration: 16s; animation-delay: 3s; width: 3px; height: 3px; }
.particle:nth-child(6) { left: 85%; animation-duration: 19s; animation-delay: 5s; }
.particle:nth-child(7) { left: 15%; animation-duration: 21s; animation-delay: 6s; width: 5px; height: 5px; }
.particle:nth-child(8) { left: 60%; animation-duration: 17s; animation-delay: 7s; width: 3px; height: 3px; }

@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* --- 3D TILT CARDS --- */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

.tilt-card .tilt-inner {
    transform: translateZ(30px);
    transition: transform 0.3s ease;
}

.tilt-card:hover .tilt-inner {
    transform: translateZ(50px);
}

/* Service Cards 3D */
.service-card-premium {
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    perspective: 800px;
}

.service-card-premium:hover {
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(0, 102, 204, 0.1);
}

.service-card-premium .service-img-wrapper {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.service-card-premium:hover .service-img-wrapper {
    transform: translateZ(20px) scale(1.05);
}

/* Project Cards 3D */
.project-card-premium {
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
}

.project-card-premium:hover {
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(0, 102, 204, 0.1);
}

.project-card-premium .project-img-box {
    overflow: hidden;
    transform-style: preserve-3d;
}

.project-card-premium:hover .project-img-box img {
    transform: scale(1.08) translateZ(10px);
}

/* --- 3D SCROLL ANIMATIONS --- */
.scroll-3d {
    opacity: 0;
    transform: perspective(1000px) translateY(80px) rotateX(10deg);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-3d.visible {
    opacity: 1;
    transform: perspective(1000px) translateY(0) rotateX(0deg);
}

.scroll-3d-left {
    opacity: 0;
    transform: perspective(1000px) translateX(-100px) rotateY(15deg);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-3d-left.visible {
    opacity: 1;
    transform: perspective(1000px) translateX(0) rotateY(0deg);
}

.scroll-3d-right {
    opacity: 0;
    transform: perspective(1000px) translateX(100px) rotateY(-15deg);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-3d-right.visible {
    opacity: 1;
    transform: perspective(1000px) translateX(0) rotateY(0deg);
}

.scroll-3d-scale {
    opacity: 0;
    transform: perspective(1000px) scale(0.8) translateZ(-100px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-3d-scale.visible {
    opacity: 1;
    transform: perspective(1000px) scale(1) translateZ(0);
}

/* Staggered delay for children */
.scroll-3d-stagger > *:nth-child(1) { transition-delay: 0.1s; }
.scroll-3d-stagger > *:nth-child(2) { transition-delay: 0.2s; }
.scroll-3d-stagger > *:nth-child(3) { transition-delay: 0.3s; }
.scroll-3d-stagger > *:nth-child(4) { transition-delay: 0.4s; }
.scroll-3d-stagger > *:nth-child(5) { transition-delay: 0.5s; }
.scroll-3d-stagger > *:nth-child(6) { transition-delay: 0.6s; }

/* --- STATS BAR 3D --- */
.stat-item-clean {
    transform-style: preserve-3d;
    transition: transform 0.4s ease;
}

.stat-item-clean:hover {
    transform: translateY(-5px) translateZ(15px);
}

.stat-item-clean:hover .stat-number {
    text-shadow: 0 0 20px rgba(0, 102, 204, 0.4);
}

/* --- GLASSMORPHISM HERO BADGE --- */
.hero-badge {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
    .hero-title-premium,
    .text-gradient-glow,
    .particle,
    .tilt-card,
    .scroll-3d,
    .scroll-3d-left,
    .scroll-3d-right,
    .scroll-3d-scale {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }
}

/* --- MOBILE OPTIMIZATIONS --- */
@media (max-width: 768px) {
    .hero-title-premium {
        animation: none;
    }

    .hero-particles .particle {
        display: none;
    }

    .hero-particles .particle:nth-child(-n+4) {
        display: block;
    }

    .scroll-3d,
    .scroll-3d-left,
    .scroll-3d-right {
        transform: translateY(40px);
    }

    .scroll-3d.visible,
    .scroll-3d-left.visible,
    .scroll-3d-right.visible {
        transform: translateY(0);
    }
}
