/* Custom styles that extend Tailwind */

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* Selection color */
::selection {
    background: #fbbf24;
    color: #340517;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #fdf4f8;
}
::-webkit-scrollbar-thumb {
    background: #9d174d;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #831443;
}

/* Geometric decorative elements */
.geo-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

/* Roti dot pattern */
.roti-pattern {
    background-image: radial-gradient(circle, rgba(157, 23, 77, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Card hover effects */
.card-hover {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
    transform: translateY(-6px);
}

/* Scroll reveal — default visible, JS adds animation */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* On desktop with reduced motion preference, skip animations */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero geometric animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(-3deg); }
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: no-preference) {
    .animate-float { animation: float 6s ease-in-out infinite; }
    .animate-float-slow { animation: floatSlow 8s ease-in-out infinite; }
    .animate-spin-slow { animation: spinSlow 30s linear infinite; }
}

/* Image overlay effect */
.img-overlay {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}
.img-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(80, 7, 36, 0.08), transparent);
    border-radius: 20px;
    pointer-events: none;
}
.img-overlay img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}
.img-overlay:hover img {
    transform: scale(1.05);
}

/* Navigation */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Primary button */
.btn-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #340517;
    font-weight: 700;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
    text-decoration: none;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

/* Secondary button */
.btn-secondary {
    background: transparent;
    color: #fce7f3;
    border: 2px solid rgba(251, 191, 212, 0.5);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-secondary:hover {
    background: rgba(251, 191, 212, 0.15);
    border-color: #fbcfe8;
    color: #fce7f3;
}

/* Menu items */
.menu-item {
    border-bottom: 1px dashed rgba(157, 23, 77, 0.2);
    padding: 16px 0;
}
.menu-item:last-child {
    border-bottom: none;
}

/* Testimonial cards */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    position: relative;
    box-shadow: 0 4px 30px rgba(80, 7, 36, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    color: #fbcfe8;
    position: absolute;
    top: -10px;
    left: 20px;
    line-height: 1;
    user-select: none;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(80, 7, 36, 0.12);
}

/* Footer */
.footer-section {
    background: #340517;
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
    max-height: 400px;
}

.mobile-link {
    display: block;
    padding: 8px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.75rem;
    }

    .testimonial-card {
        padding: 24px;
    }
    .testimonial-card::before {
        font-size: 4rem;
        top: -5px;
        left: 12px;
    }
}

@media (max-width: 640px) {
    html {
        scroll-padding-top: 72px;
    }

    .hero-section {
        padding-top: 1rem;
    }
}
