/*
Theme Name: Astra Child VELX
Theme URI: https://velx-agency.com
Description: Thème enfant Astra pour les landing pages VELX Agency
Author: VELX Agency
Author URI: https://velx-agency.com
Template: astra
Version: 1.0.0
Text Domain: astra-child-velx
*/

/* ==========================================================================
   VELX Agency Styles
   ========================================================================== */

/* Import parent theme styles */
/* Note: Parent styles are enqueued via functions.php */

/* ===== Base Reset ===== */
.velx-page {
    --velx-blue: #38BDF8;
    --velx-blue-light: #7DD3FC;
    --velx-blue-dark: #0284C7;
    --velx-cyan: #22D3EE;
    --velx-dark: #1A1A1A;
    --velx-darker: #0F0F0F;
    --velx-light: #F3F4F6;
    --velx-white: #FFFFFF;
    --velx-gray: #9CA3AF;
    --velx-accent: #8B5CF6;
}

.velx-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Glass Panel Effect ===== */
.glass-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ===== Gradient Text ===== */
.gradient-text {
    background: linear-gradient(135deg, #38BDF8 0%, #22D3EE 50%, #8B5CF6 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-x 8s ease infinite;
}

@keyframes gradient-x {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ===== Animated Border ===== */
.animated-border {
    position: relative;
    overflow: hidden;
}

.animated-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, #38BDF8, #8B5CF6, #22D3EE, #38BDF8);
    background-size: 300% 300%;
    animation: gradient-x 4s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    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;
}

.animated-border:hover::before {
    opacity: 1;
}

/* ===== Button Shimmer ===== */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::before {
    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::before {
    left: 100%;
}

/* ===== Glow Effect ===== */
.glow-on-hover {
    position: relative;
    transition: all 0.3s ease;
}

.glow-on-hover::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), rgba(139, 92, 246, 0.4));
    filter: blur(20px);
    opacity: 0;
    z-index: -1;
    border-radius: inherit;
    transition: opacity 0.3s ease;
}

.glow-on-hover:hover::after {
    opacity: 1;
}

/* ===== Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===== Delay Classes ===== */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* ===== Gateway Cards ===== */
.gateway-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gateway-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(56, 189, 248, 0.3);
}

/* ===== Gateway Background ===== */
.gateway-bg {
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(56, 189, 248, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(139, 92, 246, 0.1), transparent),
        linear-gradient(180deg, #0F0F0F 0%, #1A1A1A 100%);
}

/* ===== Icon Box ===== */
.icon-box {
    position: relative;
    transition: all 0.4s ease;
}

.icon-box::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, #38BDF8, #8B5CF6);
    border-radius: inherit;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.4s ease;
    z-index: -1;
}

.group:hover .icon-box::before {
    opacity: 0.5;
}

/* ===== Noise Overlay ===== */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ===== Gradient Line ===== */
.gradient-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, #38BDF8, #8B5CF6, #38BDF8, transparent);
    background-size: 200% 100%;
    animation: gradient-x 4s ease infinite;
}

/* ===== Timeline ===== */
.timeline-line::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #38BDF8, #8B5CF6, transparent);
}

@media (min-width: 768px) {
    .timeline-line::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #38BDF8, #8B5CF6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7DD3FC, #A78BFA);
}

/* ===== Float Animation ===== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* ===== Shadow Glow ===== */
.shadow-glow {
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
}

.shadow-glow-lg {
    box-shadow: 0 0 60px rgba(56, 189, 248, 0.3);
}

/* ===== Card Hover Shadow ===== */
.shadow-card-hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.1);
}

/* ===== Cyan Colors for Better Visibility ===== */
.text-cyan-400 {
    color: #22D3EE !important;
}

.bg-cyan-400 {
    background-color: #22D3EE !important;
}

.bg-cyan-400\/20 {
    background-color: rgba(34, 211, 238, 0.2) !important;
}

/* ===== MOBILE RESPONSIVE ENHANCEMENTS ===== */

/* Mobile-first touch targets */
@media (max-width: 768px) {

    /* Base typography adjustments */
    html {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
    }

    body {
        padding-bottom: env(safe-area-inset-bottom);
    }

    /* Gateway Page Mobile */
    .gateway-card {
        padding: 1.5rem !important;
        min-height: 140px;
    }

    .gateway-card h2 {
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem;
    }

    .gateway-card p {
        font-size: 0.875rem !important;
        line-height: 1.5;
    }

    /* Improve touch targets */
    button,
    a,
    input,
    select,
    textarea {
        min-height: 44px;
        min-width: 44px;
    }

    /* Navigation adjustments */
    nav {
        padding: 0.75rem 1rem;
    }

    /* Form inputs */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    select,
    textarea {
        font-size: 16px !important;
        /* Prevents iOS zoom on focus */
        padding: 0.875rem 1rem;
    }

    /* Table responsiveness */
    .glass-panel table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Stack cards on mobile */
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Reduce padding on mobile */
    .p-6 {
        padding: 1rem !important;
    }

    .p-8 {
        padding: 1.25rem !important;
    }

    .px-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .py-24 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    /* Smaller text on mobile */
    .text-3xl {
        font-size: 1.5rem !important;
    }

    .text-4xl {
        font-size: 1.75rem !important;
    }

    .text-5xl {
        font-size: 2rem !important;
    }

    .text-6xl {
        font-size: 2.25rem !important;
    }

    /* Fix absolute positioned elements */
    .absolute.top-4.right-4 {
        top: 0.75rem !important;
        right: 0.75rem !important;
    }

    /* Improve modal display */
    .fixed.inset-0 .glass-panel {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }

    /* Hide decorative elements on small screens */
    .blur-3xl,
    .blur-\[100px\],
    .blur-\[120px\] {
        display: none !important;
    }

    /* Gateway specific */
    .gateway-bg main {
        padding: 1.5rem !important;
        padding-top: 6rem !important;
    }

    .gateway-bg h1 {
        font-size: 1.75rem !important;
        margin-bottom: 1.5rem !important;
    }

    .gateway-bg .absolute.top-10 {
        top: 1.5rem !important;
    }

    .gateway-bg .absolute.bottom-8 {
        bottom: 1.5rem !important;
        left: 1rem !important;
        right: 1rem !important;
        text-align: center;
    }
}

/* Small phones */
@media (max-width: 375px) {
    .gateway-card {
        padding: 1.25rem !important;
    }

    .gateway-bg h1 {
        font-size: 1.5rem !important;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Landscape phone optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .gateway-bg main {
        padding-top: 4rem !important;
    }

    .gateway-card {
        padding: 1rem !important;
    }
}

/* Dark mode scrollbar mobile */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }
}

/* Improve focus states for accessibility */
*:focus-visible {
    outline: 2px solid #22D3EE;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}