/* ============================================
   Resonote Official Website Styles
   Theme: Light, Professional SaaS
   ============================================ */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
#hero {
    --mouse-x: 50%;
    --mouse-y: 50%;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y),
        rgba(224, 123, 36, 0.15),
        transparent 40%
    );
    pointer-events: none;
    transition: background 0.3s ease;
    z-index: 2;
}

/* Base gradient animation layer */
#hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 80% 50% at 20% 40%,
            rgba(250, 212, 174, 0.3),
            transparent 50%
        ),
        radial-gradient(
            ellipse 60% 40% at 80% 60%,
            rgba(246, 182, 122, 0.25),
            transparent 50%
        ),
        radial-gradient(
            ellipse 50% 60% at 50% 80%,
            rgba(224, 123, 36, 0.15),
            transparent 50%
        );
    pointer-events: none;
    z-index: 1;
    animation: gradient-breathe 8s ease-in-out infinite;
}

@keyframes gradient-breathe {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1) translate(0, 0);
    }
    25% {
        opacity: 0.8;
        transform: scale(1.05) translate(2%, -1%);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02) translate(-1%, 2%);
    }
    75% {
        opacity: 0.9;
        transform: scale(1.08) translate(-2%, -1%);
    }
}

/* Selection Color */
::selection {
    background: #fdecd8;
    color: #a34a0a;
}

/* Form Focus States */
input:focus {
    box-shadow: 0 0 0 3px rgba(224, 123, 36, 0.1);
}

/* Button Hover */
button:active {
    transform: scale(0.98);
}

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

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Print Styles */
@media print {
    .fade-in {
        opacity: 1;
        transform: none;
    }
}
