/* ================================
   WOILA VTC - Premium Styles
   Design ultra-moderne avec animations avancées
   ================================ */

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background: #020617;
}

/* === Custom Scrollbar === */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #0F172A;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3B82F6, #8B5CF6);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2563EB, #7C3AED);
}

/* === Animations Keyframes === */
@keyframes gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

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

@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 80px rgba(59, 130, 246, 0.8);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient 5s ease infinite;
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

.animate-bounce-slow {
    animation: bounce-slow 2s infinite;
}

.animate-scroll {
    animation: scroll 2s infinite;
}

/* === Header Premium === */
#header {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* === Phone Mockup Premium === */
.phone-mockup-premium {
    position: relative;
    width: 320px;
    height: 650px;
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-mockup-premium:hover {
    transform: scale(1.05) rotateY(5deg);
}

.phone-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-radius: 50px;
    padding: 15px;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 0 60px rgba(0, 0, 0, 0.5);
    border: 3px solid #1e293b;
}

.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.9);
}

.phone-notch-premium {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 32px;
    background: #000;
    border-radius: 0 0 25px 25px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
}

.notch-speaker {
    width: 70px;
    height: 7px;
    background: linear-gradient(90deg, #1e293b, #334155);
    border-radius: 4px;
}

.notch-camera {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #1e40af 30%, #1e293b 70%);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(30, 64, 175, 0.5);
}

.phone-button {
    position: absolute;
    background: #1e293b;
    border-radius: 3px;
}

.phone-button-left {
    left: -3px;
    top: 120px;
    width: 3px;
    height: 50px;
}

.phone-button-right-1 {
    right: -3px;
    top: 100px;
    width: 3px;
    height: 70px;
}

.phone-button-right-2 {
    right: -3px;
    top: 180px;
    width: 3px;
    height: 70px;
}

.phone-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 70%);
    filter: blur(40px);
    z-index: -1;
    animation: glow-pulse 3s infinite;
}

/* === Glass Cards === */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.floating-badge {
    position: absolute;
    animation: float 4s ease-in-out infinite;
    z-index: 10;
}

/* === Feature Cards Premium === */
.feature-card-premium {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s;
}

.feature-card-premium:hover::before {
    left: 100%;
}

.feature-card-premium:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
}

.feature-icon-premium {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.feature-card-premium:hover .feature-icon-premium {
    transform: scale(1.1) rotate(5deg);
}

/* === Service Cards Premium === */
.service-card-premium {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-icon-bg {
    position: absolute;
    inset: -100px;
    opacity: 0;
    transition: opacity 0.4s;
    filter: blur(60px);
}

.service-card-premium:hover .service-icon-bg {
    opacity: 1;
}

.service-card-premium:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.service-icon-premium {
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.service-card-premium:hover .service-icon-premium {
    transform: scale(1.2);
}

/* === Download Cards Premium === */
.download-card-premium {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 2rem;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: white;
    min-width: 350px;
    position: relative;
    overflow: hidden;
}

.download-card-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    opacity: 0;
    transition: opacity 0.4s;
}

.download-card-premium:hover::before {
    opacity: 1;
}

.download-card-premium:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.4);
}

/* === Testimonial Cards === */
.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 20px 60px rgba(251, 191, 36, 0.2);
}

/* === Contact Cards Premium === */
.contact-card-premium {
    display: flex;
    align-items: start;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card-premium:hover {
    transform: translateX(10px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
}

.contact-icon-premium {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.contact-card-premium:hover .contact-icon-premium {
    transform: scale(1.1) rotate(-5deg);
}

/* === Social Icons Premium === */
.social-icon-premium {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-icon-premium:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* === Form Premium === */
.form-container-premium {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem;
}

.form-group-premium {
    position: relative;
}

.form-label-premium {
    display: block;
    color: #E5E7EB;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-input-premium {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.form-input-premium::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input-premium:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-submit-premium {
    position: relative;
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border: none;
    border-radius: 16px;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.form-submit-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

.form-submit-premium:active {
    transform: translateY(0);
}

/* === Form Messages === */
.form-success {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 1.25rem;
    border-radius: 16px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.form-error {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    padding: 1.25rem;
    border-radius: 16px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

/* === Back to Top Button === */
#back-to-top {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#back-to-top.show {
    opacity: 1 !important;
    pointer-events: all !important;
}

#back-to-top:active {
    transform: scale(0.95);
}

/* === Grid Pattern === */
.bg-grid-pattern {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* === Responsive Design === */
@media (max-width: 1024px) {
    .phone-mockup-premium {
        width: 280px;
        height: 570px;
    }

    .floating-badge {
        display: none;
    }
}

@media (max-width: 768px) {
    .phone-mockup-premium {
        width: 240px;
        height: 490px;
    }

    .phone-frame {
        border-radius: 40px;
        padding: 12px;
    }

    .phone-screen {
        border-radius: 32px;
    }

    .phone-notch-premium {
        width: 150px;
        height: 28px;
    }

    .feature-card-premium,
    .service-card-premium,
    .contact-card-premium,
    .form-container-premium {
        padding: 1.5rem;
    }

    .download-card-premium {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .phone-mockup-premium {
        width: 220px;
        height: 450px;
    }

    h1 {
        font-size: 3rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }
}

/* === Loading States === */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.spinner {
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-top: 4px solid #3B82F6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* === Utility Classes === */
.perspective-1000 {
    perspective: 1000px;
}

/* === Text Gradient === */
.text-gradient {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Hover Effects === */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* === Selection Color === */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: white;
}

/* === Focus Visible === */
:focus-visible {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* === Smooth Transitions === */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Print Styles === */
@media print {
    #header-container,
    #back-to-top,
    #particles-canvas {
        display: none;
    }
}