/* Custom Styling for MrAmpr Media - Dark Agency Theme & Motion Graphics */

:root {
    --primary-glow: rgba(37, 99, 235, 0.3);
    --accent-glow: rgba(56, 189, 248, 0.25);
    --sapphire-glow: rgba(29, 78, 216, 0.35);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #060b14;
}
::-webkit-scrollbar-thumb {
    background: #172644;
    border-radius: 9999px;
    border: 1px solid rgba(56, 189, 248, 0.1);
}
::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Background Gradients & Grid Patterns */
.bg-grid-pattern {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(56, 189, 248, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
}

/* Glassmorphic Cards (Dark Mode) */
.glass-card {
    background: rgba(11, 19, 34, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.12);
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 15px 30px -10px rgba(37, 99, 235, 0.25);
}

.glass-card-hover:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 20px 35px -10px rgba(37, 99, 235, 0.3);
}

/* 3D Tilt Card Container */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1);
}

/* Radiant Text Gradients */
.text-gradient-primary {
    background: linear-gradient(135deg, #ffffff 0%, #bae6fd 25%, #38bdf8 55%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
    background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 50%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-ice {
    background: linear-gradient(135deg, #f0f9ff 0%, #7dd3fc 50%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===================================================
   MOTION GRAPHICS & FLOATING SOCIAL MEDIA ELEMENTS
=================================================== */

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-16px) rotate(3deg);
    }
}

@keyframes floatReverse {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(16px) rotate(-3deg);
    }
}

@keyframes floatDrift {
    0%, 100% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(10px, -12px) scale(1.03);
    }
    66% {
        transform: translate(-8px, 10px) scale(0.98);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.08);
    }
}

@keyframes orbitSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.motion-float-1 {
    animation: floatSlow 6s ease-in-out infinite;
}

.motion-float-2 {
    animation: floatReverse 7s ease-in-out infinite;
}

.motion-float-3 {
    animation: floatDrift 9s ease-in-out infinite;
}

.motion-pulse-glow {
    animation: pulseGlow 5s ease-in-out infinite;
}

.motion-spin-slow {
    animation: orbitSpin 30s linear infinite;
}

/* Floating Social Motion Badge Card */
.social-floating-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    border-radius: 9999px;
    background: rgba(11, 19, 34, 0.82);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5), 0 0 15px rgba(37, 99, 235, 0.2);
    z-index: 5;
    pointer-events: auto;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.social-floating-badge:hover {
    transform: scale(1.08) translateY(-3px) !important;
    border-color: #38bdf8;
    box-shadow: 0 20px 35px -5px rgba(56, 189, 248, 0.4);
}

@media (max-width: 1279px) {
    .social-floating-badge {
        display: none !important;
    }
}

@media (min-width: 1280px) and (max-width: 1440px) {
    .social-floating-badge {
        transform: scale(0.88);
        transform-origin: center;
    }
}

/* ===================================================
   ON-SCROLL TRIGGER REVEAL ANIMATIONS
=================================================== */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    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.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    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.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Staggered transition delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Brand Logo Badge Frame */
.brand-logo-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    overflow: hidden;
    background: #dbeafe;
    border: 1.5px solid rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-logo-frame:hover {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.7);
    border-color: #38bdf8;
}

/* ===================================================
   3D YES/NO STYLE SLIDING TOGGLE (Creator vs Brand)
=================================================== */

.toggle-3d-wrapper {
    display: inline-flex;
    align-items: center;
}

.toggle-3d-track {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: linear-gradient(180deg, #050a14 0%, #0c1628 100%);
    border-radius: 9999px;
    padding: 4px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    box-shadow: 
        inset 0 3px 6px rgba(0, 0, 0, 0.85),
        inset 0 -1px 2px rgba(255, 255, 255, 0.08),
        0 4px 14px rgba(0, 0, 0, 0.5),
        0 0 12px rgba(37, 99, 235, 0.2);
    user-select: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.toggle-3d-track:hover {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 
        inset 0 3px 6px rgba(0, 0, 0, 0.85),
        inset 0 -1px 2px rgba(255, 255, 255, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.55),
        0 0 16px rgba(56, 189, 248, 0.3);
}

/* 3D Liquid Sliding Knob */
.toggle-3d-slider {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    border-radius: 9999px;
    z-index: 1;
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.34, 1.45, 0.64, 1), background 0.35s ease, box-shadow 0.35s ease;
    transform-style: preserve-3d;
}

/* State: Brand Selected (Default / Right) */
.toggle-3d-slider.slider-brand {
    transform: translateX(100%);
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #0ea5e9 100%);
    box-shadow: 
        0 8px 18px -2px rgba(0, 0, 0, 0.75),
        0 3px 8px rgba(37, 99, 235, 0.65),
        inset 0 1.5px 2px rgba(255, 255, 255, 0.65),
        inset 0 -2px 3px rgba(0, 0, 0, 0.45);
}

/* State: Creator Selected (Left) */
.toggle-3d-slider.slider-creator {
    transform: translateX(0%);
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #38bdf8 100%);
    box-shadow: 
        0 8px 18px -2px rgba(0, 0, 0, 0.75),
        0 3px 8px rgba(14, 165, 233, 0.65),
        inset 0 1.5px 2px rgba(255, 255, 255, 0.75),
        inset 0 -2px 3px rgba(0, 0, 0, 0.35);
}

/* Specular Glass Reflection on Top of Knob */
.toggle-3d-slider-glare {
    position: absolute;
    top: 1.5px;
    left: 12%;
    right: 12%;
    height: 42%;
    border-radius: 9999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

/* Interactive Text Button Elements */
.toggle-3d-btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 9999px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    white-space: nowrap;
}

.toggle-3d-btn:hover {
    color: #e2e8f0;
}

.toggle-3d-btn.active {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
