/* ===================================
   DAITLY - CUSTOM STYLES V2.0
   Design moderne et sexy
   =================================== */

/* === GLOBAL === */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* === SPLINE 3D VIEWER === */
spline-viewer {
    width: 100%;
    height: 100%;
    display: block;
}

#hero spline-viewer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* === HERO TEXT SHADOW === */
.hero-text-shadow {
    text-shadow: 0 0 20px rgba(255, 92, 138, 0.5),
                 0 0 40px rgba(255, 92, 138, 0.3),
                 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* === GLASSMORPHISM HEADER === */
.glass-header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: all 0.3s ease;
}

.glass-header.scrolled {
    background: linear-gradient(135deg, rgba(255, 92, 138, 0.15), rgba(139, 92, 246, 0.15));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* === BUTTON GLOW EFFECT === */
.btn-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 92, 138, 0.5),
                    0 0 40px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 92, 138, 0.8),
                    0 0 60px rgba(139, 92, 246, 0.5);
    }
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 92, 138, 0.6),
                0 15px 60px rgba(139, 92, 246, 0.4);
}

/* === GRADIENT ANIMATIONS === */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

/* === ANIMATED GRADIENT BUTTON === */
.animate-gradient-btn {
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

/* === FLOATING SHAPES === */
.floating-shapes::before,
.floating-shapes::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.floating-shapes::before {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #FF5C8A, #8B5CF6);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.floating-shapes::after {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #8B5CF6, #FF99AC);
    bottom: -250px;
    right: -250px;
    animation-delay: 10s;
}

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

/* === FADE IN ANIMATION === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* === PULSE ANIMATION === */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(255, 92, 138, 0.7);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 40px rgba(255, 92, 138, 1);
    }
}

/* === SCROLLBAR STYLING === */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1a0a1f;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FF5C8A, #8B5CF6);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff3d6e, #7c3aed);
}

/* === SELECTION === */
::selection {
    background: rgba(255, 92, 138, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(255, 92, 138, 0.3);
    color: white;
}

/* === TEXT GLOW === */
.text-glow {
    text-shadow: 0 0 20px rgba(255, 92, 138, 0.5),
                 0 0 40px rgba(139, 92, 246, 0.3);
}

/* === CARD HOVER EFFECTS === */
.card-3d {
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.card-3d:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* === GRADIENT BORDER === */
.gradient-border {
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #FF5C8A, #8B5CF6, #FF99AC);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* === RIPPLE EFFECT === */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
}

/* === NEON TEXT === */
.neon-text {
    color: #fff;
    text-shadow:
        0 0 7px #fff,
        0 0 10px #fff,
        0 0 21px #fff,
        0 0 42px #FF5C8A,
        0 0 82px #FF5C8A,
        0 0 92px #FF5C8A,
        0 0 102px #FF5C8A,
        0 0 151px #FF5C8A;
    animation: neon-flicker 1.5s infinite alternate;
}

@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow:
            0 0 7px #fff,
            0 0 10px #fff,
            0 0 21px #fff,
            0 0 42px #FF5C8A,
            0 0 82px #FF5C8A,
            0 0 92px #FF5C8A,
            0 0 102px #FF5C8A,
            0 0 151px #FF5C8A;
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* === SHIMMER EFFECT === */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* === PARALLAX === */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* === SMOOTH TRANSITIONS === */
a, button, .transition-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === BLUR ANIMATIONS === */
.blur-in {
    animation: blurIn 0.5s ease-out;
}

@keyframes blurIn {
    from {
        filter: blur(10px);
        opacity: 0;
    }
    to {
        filter: blur(0);
        opacity: 1;
    }
}

/* === SCALE HOVER === */
.scale-hover {
    transition: transform 0.3s ease;
}

.scale-hover:hover {
    transform: scale(1.05);
}

/* === FOCUS STATES === */
a:focus, button:focus, input:focus {
    outline: 2px solid #FF5C8A;
    outline-offset: 2px;
}

/* === MOBILE MENU ANIMATION === */
#mobile-menu {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
}

#mobile-menu.hidden {
    transform: scaleY(0);
    opacity: 0;
}

#mobile-menu:not(.hidden) {
    transform: scaleY(1);
    opacity: 1;
}

/* === LOADING STATES === */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* === STAGGER ANIMATIONS === */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* === RESPONSIVE IMAGES === */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === ACCESSIBILITY === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* === PRINT STYLES === */
@media print {
    header, footer, .no-print {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}

/* === DARK MODE SUPPORT === */
@media (prefers-color-scheme: dark) {
    /* Already dark by default */
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* === MOBILE OPTIMIZATIONS === */
@media (max-width: 768px) {
    .parallax {
        background-attachment: scroll;
    }

    .floating-shapes::before,
    .floating-shapes::after {
        width: 200px;
        height: 200px;
    }
}

/* === TOUCH DEVICES === */
@media (hover: none) and (pointer: coarse) {
    .scale-hover:hover {
        transform: none;
    }

    .btn-glow:hover {
        transform: none;
    }
}

/* === HIGH CONTRAST MODE === */
@media (prefers-contrast: high) {
    .glass-header {
        background: rgba(0, 0, 0, 0.9);
        border: 2px solid white;
    }
}
