/* Custom Styles for PeauTrace */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FF7F87, #B85C8A);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FF4C56, #9D4D74);
}

/* Selection Color */
::selection {
    background-color: #FF7F87;
    color: white;
}

::-moz-selection {
    background-color: #FF7F87;
    color: white;
}

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

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

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #FF7F87, #B85C8A, #E6D8FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse Animation for CTA */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 127, 135, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(255, 127, 135, 0);
    }
}

.pulse-cta {
    animation: pulse-glow 2s infinite;
}

/* Responsive Image */
img {
    max-width: 100%;
    height: auto;
}

/* Focus States */
a:focus,
button:focus {
    outline: 2px solid #FF7F87;
    outline-offset: 2px;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(
        to right,
        #f6f7f8 0%,
        #edeef1 20%,
        #f6f7f8 40%,
        #f6f7f8 100%
    );
    background-size: 1000px 100%;
}

/* Custom Card Shadows */
.card-shadow {
    box-shadow: 0 10px 30px rgba(184, 92, 138, 0.1);
}

.card-shadow:hover {
    box-shadow: 0 20px 40px rgba(184, 92, 138, 0.2);
}

/* Prose Styles for Content Pages */
.prose {
    max-width: 65ch;
}

.prose h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.prose h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #333333;
}

.prose p {
    margin-bottom: 1rem;
    line-height: 1.75;
    color: #4d4d4d;
}

.prose ul, .prose ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

.prose strong {
    font-weight: 600;
    color: #1a1a1a;
}

.prose a {
    color: #FF7F87;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.prose a:hover {
    color: #B85C8A;
}

/* Hero Gradient Background */
.hero-gradient {
    background: linear-gradient(135deg, #FFF6F0 0%, #F9E6F2 50%, #E6D8FF 100%);
}

/* Feature Icon Gradient */
.icon-gradient {
    background: linear-gradient(135deg, #FF7F87 0%, #B85C8A 100%);
}

/* Smooth Transitions */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Mobile Menu Animations */
@media (max-width: 768px) {
    .mobile-menu-enter {
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Print Styles */
@media print {
    nav, footer {
        display: none;
    }
    
    body {
        background: white;
    }
    
    a {
        text-decoration: underline;
        color: black;
    }
}

/* Prevent horizontal scrollbars */
html, body {
    overflow-x: hidden;
}

/* Scroll-animated background for landing page */
body.animated-bg {
    /* Soft gradient without pure white */
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(184, 92, 138, 0.28), transparent),
        radial-gradient(900px 500px at -10% 10%, rgba(255, 127, 135, 0.24), transparent),
        linear-gradient(135deg, #FDE6F1 0%, #F3D8EA 50%, #E3D3FF 100%);
    background-attachment: fixed, fixed, fixed;
    background-size: 160% 160%, 160% 160%, 160% 160%;
    background-position: 50% calc(50% + var(--bg-shift, 0px)), 50% calc(50% + var(--bg-shift, 0px)), 50% calc(50% + var(--bg-shift, 0px));
    will-change: background-position;
}

