/* ========================================
   Cloud Migrate Dynamics — Landing Page
   Custom styles & animations
   ======================================== */

/* --- Scroll animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Navbar shadow on scroll --- */
#navbar.scrolled {
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.06);
}

/* --- FAQ accordion --- */
.faq-icon {
    transition: transform 0.2s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-content {
    max-height: 300px;
}

/* --- Pricing card popular badge --- */
.pricing-popular {
    position: relative;
}

.pricing-popular::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: linear-gradient(135deg, #3f51b5, #00bcd4);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* --- Pricing card hover --- */
.pricing-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
}

/* --- Smooth scrollbar --- */
html {
    scrollbar-width: thin;
    scrollbar-color: #c5cae9 transparent;
}

html::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb {
    background: #c5cae9;
    border-radius: 4px;
}

html::-webkit-scrollbar-thumb:hover {
    background: #9fa8da;
}

/* --- Selection color --- */
::selection {
    background: #c5cae9;
    color: #1e293b;
}

/* --- Focus styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid #3f51b5;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Lucide icon fill helper for stars --- */
.fill-yellow-400 {
    fill: #facc15;
}
