/* ============================================
   MaJiKal Kreations Quilt Shop — Custom Styles
   ============================================ */

/* --- Hero Gradient --- */
.hero-gradient {
    background: linear-gradient(
        135deg,
        #0d9488 0%,
        #14b8a6 15%,
        #1e3a5f 35%,
        #1e293b 55%,
        #0f766e 75%,
        #134e4a 100%
    );
    background-size: 300% 300%;
    animation: heroGradientShift 16s ease infinite;
}

@keyframes heroGradientShift {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 0% 100%; }
}

/* --- CTA Gradient --- */
.cta-gradient {
    background: linear-gradient(
        135deg,
        #0f766e 0%,
        #115e59 30%,
        #1e293b 70%,
        #042f2e 100%
    );
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: #fff;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(13, 148, 136, 0.5);
    background: linear-gradient(135deg, #14b8a6, #2dd4bf);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: #0f766e;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    background: #f0fdfa;
}

/* --- Hero Animations --- */
.hero-subtitle {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-title {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-description {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero-buttons {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.9s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Scroll Reveal (below fold only) --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.animated,
.reveal-left.animated,
.reveal-right.animated {
    opacity: 1;
    transform: translate(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-subtitle,
    .hero-title,
    .hero-description,
    .hero-buttons {
        opacity: 1;
        animation: none;
    }

    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }

    .hero-gradient {
        animation: none;
    }
}

/* --- Navbar Scroll State --- */
.nav-scrolled {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* --- Service Card Hover --- */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-6px);
}

/* --- Gallery Item --- */
.gallery-item {
    cursor: pointer;
}

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

/* --- Selection --- */
::selection {
    background: #0d9488;
    color: #fff;
}

/* --- Focus Visible --- */
:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}
