/* ===== Custom Styles ===== */

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

/* Selection color */
::selection {
    background-color: #d9aad7;
    color: #4a1558;
}

/* ===== Floating Card Animations ===== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}

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

.floating-card-1 {
    animation: float-slow 6s ease-in-out infinite;
}

.floating-card-2 {
    animation: float-medium 5s ease-in-out infinite 1s;
}

.floating-card-3 {
    animation: float-fast 4s ease-in-out infinite 0.5s;
}

/* ===== Scroll Reveal ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

    .scroll-reveal:nth-child(1) { transition-delay: 0ms; }
    .scroll-reveal:nth-child(2) { transition-delay: 100ms; }
    .scroll-reveal:nth-child(3) { transition-delay: 200ms; }
    .scroll-reveal:nth-child(4) { transition-delay: 300ms; }
    .scroll-reveal:nth-child(5) { transition-delay: 400ms; }
    .scroll-reveal:nth-child(6) { transition-delay: 500ms; }
}

/* ===== Navbar Scroll State ===== */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(123, 45, 142, 0.08);
}

/* ===== Mobile Menu ===== */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Custom Select Arrow ===== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237B2D8E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* ===== Input Focus Transitions ===== */
input:focus,
textarea:focus,
select:focus {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* ===== Button Hover Glow ===== */
button:hover,
a:hover {
    transition: all 0.3s ease;
}

/* ===== Card Hover Effects ===== */
.group:hover .group-hover\\:bg-plum-700 {
    background-color: #7B2D8E;
}

/* ===== Gradient Text (if needed) ===== */
.gradient-text {
    background: linear-gradient(135deg, #7B2D8E, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #a352a0;
}

/* ===== Mobile Nav Link Hover ===== */
.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7B2D8E, #f59e0b);
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::after {
    width: 100%;
}

/* ===== Responsive Tweaks ===== */
@media (max-width: 640px) {
    .floating-card-1,
    .floating-card-2,
    .floating-card-3 {
        display: none;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero h1 .font-serif {
        font-size: 2.25rem;
    }
}

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

    html {
        scroll-behavior: auto;
    }

    .floating-card-1,
    .floating-card-2,
    .floating-card-3 {
        animation: none;
    }
}
