/* ==================== MİKROANİMASYONLAR ==================== */

/* 1. 3D TILT EFEKTİ - Araç Kartları */
.vehicle-card,
.service-card,
.campaign-card,
.testimonial-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.vehicle-card:hover,
.service-card:hover,
.campaign-card:hover,
.testimonial-card:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(2deg);
    box-shadow: 
        0 25px 60px rgba(234, 179, 8, 0.3),
        0 0 0 1px rgba(234, 179, 8, 0.2) inset;
}

/* Card içindeki elementlerin 3D efekti */
.vehicle-card::before,
.service-card::before,
.campaign-card::before,
.testimonial-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.vehicle-card:hover::before,
.service-card:hover::before,
.campaign-card:hover::before,
.testimonial-card:hover::before {
    opacity: 1;
}

/* Gerçekçi 3D shadow */
.vehicle-card::after,
.service-card::after,
.campaign-card::after,
.testimonial-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 10%;
    right: 10%;
    height: 20px;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.3) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: -1;
}

.vehicle-card:hover::after,
.service-card:hover::after,
.campaign-card:hover::after,
.testimonial-card:hover::after {
    opacity: 1;
    transform: scaleX(1.1);
}

/* İç elementlerin depth efekti */
.vehicle-card > *,
.service-card > *,
.campaign-card > *,
.testimonial-card > * {
    transform: translateZ(20px);
}

/* 2. FLOATING LABEL - Form Inputs */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1.25rem 1rem 0.5rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    background: transparent;
    padding: 0 0.5rem;
}

/* Textarea için özel konum */
.form-group textarea + label {
    top: 1.5rem;
    transform: translateY(0);
}

/* Float effect - input focus veya dolu olduğunda */
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:not([value=""]) + label {
    top: 0.5rem;
    transform: translateY(0) scale(0.85);
    color: #eab308;
    font-weight: 600;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #eab308;
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 
        0 0 0 3px rgba(234, 179, 8, 0.15),
        0 8px 25px rgba(234, 179, 8, 0.2);
    transform: translateY(-2px);
}

/* Animated border */
.form-group::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, #eab308, #fbbf24);
    -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;
}

.form-group:focus-within::before {
    opacity: 1;
}

/* 3. SUCCESS/ERROR ANİMASYONLARI */
.form-success,
.form-error {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    margin-top: 1rem;
    font-weight: 600;
    animation: slideInBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInBounce {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    50% {
        transform: translateY(5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.form-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.form-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.form-success i,
.form-error i {
    font-size: 1.5rem;
    animation: iconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
}

@keyframes iconPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Checkmark animation */
.success-checkmark {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #10b981;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.success-checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
    animation: checkDraw 0.3s ease 0.3s both;
}

@keyframes checkDraw {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-45deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Error shake animation */
.form-error {
    animation: slideInBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), shake 0.4s ease 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* 4. LOADING SKELETON SCREENS */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(30, 58, 138, 0.3) 0%,
        rgba(59, 130, 246, 0.2) 50%,
        rgba(30, 58, 138, 0.3) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 12px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    padding: 2rem;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skeleton-title {
    height: 24px;
    width: 70%;
    margin-bottom: 1rem;
}

.skeleton-text {
    height: 16px;
    width: 100%;
    margin-bottom: 0.75rem;
}

.skeleton-text:last-child {
    width: 60%;
}

.skeleton-image {
    height: 200px;
    width: 100%;
    margin-bottom: 1rem;
}

.skeleton-button {
    height: 48px;
    width: 150px;
    margin-top: 1rem;
}

/* Pulse variant */
.skeleton-pulse {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 5. PARTICLE EFFECTS - Hero Background */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #eab308, transparent);
    border-radius: 50%;
    animation: float-particle var(--duration, 8s) var(--delay, 0s) infinite ease-in-out;
    opacity: 0.6;
}

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translate(var(--x, 100px), var(--y, -100vh)) rotate(360deg);
        opacity: 0;
    }
}

/* Glow particles */
.particle-glow {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #eab308;
    border-radius: 50%;
    box-shadow: 0 0 20px 4px rgba(234, 179, 8, 0.8);
    animation: glow-float 4s infinite ease-in-out;
    opacity: 0.8;
}

@keyframes glow-float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-30px) scale(1.5);
        opacity: 0.8;
    }
}

/* Subtle sparkle effect */
@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg, #fbbf24, #eab308);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: sparkle 3s infinite;
}

/* Responsive optimizations */
@media (max-width: 768px) {
    .vehicle-card:hover,
    .service-card:hover,
    .campaign-card:hover,
    .testimonial-card:hover {
        transform: translateY(-4px) rotateX(1deg) rotateY(1deg);
    }
    
    .hero-particles {
        display: none; /* Mobilde performans için kapat */
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .vehicle-card,
    .service-card,
    .campaign-card,
    .testimonial-card,
    .form-group input,
    .form-group textarea,
    .particle,
    .particle-glow,
    .sparkle {
        animation: none !important;
        transition: none !important;
    }
}

