
/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FDFCFB;
    overflow-x: hidden;
    width: 100%;
}

/* Loading Screen Styles */
#loadingScreen {
    animation: fadeOut 0.8s ease-in-out 2.5s forwards;
    overflow: hidden;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

/* Tea liquid animation */
.tea-liquid {
    animation: fillTea 2s ease-in-out forwards;
    transform-origin: bottom center;
}

@keyframes fillTea {
    0% {
        d: path('M 30 130 Q 30 140 40 140 L 60 140 Q 70 140 70 130 L 70 130 Q 50 135 30 130 Z');
    }
    50% {
        d: path('M 30 90 Q 30 140 40 140 L 60 140 Q 70 140 70 90 L 70 90 Q 50 95 30 90 Z');
    }
    100% {
        d: path('M 30 60 Q 30 140 40 140 L 60 140 Q 70 140 70 60 L 70 60 Q 50 65 30 60 Z');
    }
}

/* Ice cube animations */
.ice-cube-1 {
    animation: fallIce1 1.5s ease-in 0.3s forwards;
    opacity: 0;
}

.ice-cube-2 {
    animation: fallIce2 1.8s ease-in 0.8s forwards;
    opacity: 0;
}

@keyframes fallIce1 {
    0% {
        transform: translateY(-100px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 0.6;
    }
}

@keyframes fallIce2 {
    0% {
        transform: translateY(-100px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 0.6;
    }
}

h1, h2, h3, .font-serif { font-family: 'Playfair Display', serif; }

nav a {
    font-family: 'Caveat Brush', cursive;
    weight: 500;
}
a {
    font-family: 'Caveat Brush', cursive;
}
#title {
    font-family: 'Caveat Brush', cursive;
}
.glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.hero-gradient {
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.2));
}

/* Custom Hover for Menu Cards */
.menu-card:hover img { transform: scale(1.05); }
.menu-card img { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }

/* Teh Iketan Brand Colors */
.brand-red { color: #E63946; }
.bg-brand-red { background-color: #E63946; }

/* Social Media Icons Styling */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #1a1a1a;
    transition: all 0.3s ease;
    font-size: 20px;
    text-decoration: none;
}

.social-icon:hover {
    background-color: #E63946;
    color: white;
    transform: translateY(-3px);
}

/* Gallery Styles */
.gallery-container {
    perspective: 1000px;
}

.gallery-item {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-8px);
}

.gallery-image {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    height: 100%;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.08);
}

.gallery-overlay {
    animation: overlayFadeIn 0.3s ease-out forwards;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Lightbox Modal Styles */
#galleryModal {
    animation: modalFadeIn 0.3s ease-out;
    backdrop-filter: blur(5px);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#galleryModal.hidden {
    display: none !important;
}

#galleryModal:not(.hidden) {
    display: flex !important;
}

#modalImage {
    animation: imageZoomIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes imageZoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Navbar Responsive - Mobile */
@media (max-width: 767px) {
    #navbar {
        padding: 0.75rem 0.5rem !important;
        gap: 0.5rem;
    }

    #navbar img {
        width: 2.5rem;
        height: 2.5rem;
        flex-shrink: 0;
    }

    #navbar > * {
        flex-shrink: 0;
    }
}

/* Navbar Desktop */
@media (min-width: 768px) {
    #navbar {
        padding: 1.5rem 2.5rem !important;
    }
}

/* Hamburger Button - HANYA di Mobile */
@media (max-width: 767px) {
    #hamburger {
        position: relative;
        width: 24px;
        height: 24px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        cursor: pointer;
        z-index: 50;
        padding: 4px;
        margin: 0;
        background: none;
        border: none;
    }

    #hamburger span {
        display: block;
        height: 2px;
        background-color: currentColor;
        border-radius: 1px;
        transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
        transform-origin: center;
        width: 20px;
    }

    #hamburger:hover span {
        background-color: rgba(255, 255, 255, 0.8);
    }
}

/* Hamburger hidden di Desktop */
@media (min-width: 768px) {
    #hamburger {
        display: none !important;
    }
}

/* Mobile Menu Styling - HANYA di Mobile */
@media (max-width: 767px) {
    #mobileMenu {
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        width: 100vw;
        max-width: 100%;
    }

    #mobileMenu a {
        display: flex;
        align-items: center;
        padding: 0.75rem 0;
        min-height: 48px;
        font-size: 1.125rem;
        color: white;
        text-decoration: none;
        transition: all 0.3s ease;
        font-family: 'Playfair Display', serif;
        letter-spacing: 0.05em;
    }

    #mobileMenu a:active {
        transform: scale(0.98);
    }

    /* Gallery responsive di mobile */
    .gallery-item.col-span-2 {
        grid-column: span 1;
    }
}

/* Tooltip/Info Effect pada Gallery Hover */
.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(230, 57, 70, 0.1), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}


/* Contact Section - Minimal Elegant Styles */
#contact {
    background: #ffffff;
}

#contact label {
    display: block;
    color: #78716c;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

#contact input,
#contact textarea {
    background: #faf9f8;
    border: 1px solid #e7e5e4;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

#contact input:focus,
#contact textarea:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px #fecaca, 0 0 0 4px rgba(220, 38, 38, 0.1);
    background: #ffffff;
}

#contact button[type="submit"] {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

#contact button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Contact Info Section Icons */
#contact .group {
    transition: all 0.3s ease;
}

#contact .group:hover {
    transform: translateY(-4px);
}

#contact .group [class*="bg-"] {
    transition: all 0.3s ease;
}

#contact .group:hover [class*="bg-"] {
    transform: scale(1.1);
}

/* WhatsApp Button Styles */
a[href*="wa.me"] {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

a[href*="wa.me"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3) !important;
}

/* Maps Container */
#contact .rounded-xl {
    border: 1px solid #f5f5f4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #contact {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    #contact > div > div:first-child {
        margin-bottom: 3rem;
    }

    #contact .grid.md\:grid-cols-2 > div:last-child {
        min-height: 300px;
    }
}

/* Menu Section Styles */
#menu .menu-card {
    border: 1px solid #f5f5f4;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#menu .menu-card:hover {
    border-color: #dc2626;
}

#menu .menu-filter-btn {
    cursor: pointer;
    transition: all 0.3s ease;
}

#menu .menu-filter-btn.active {
    background-color: #dc2626;
    color: white;
}

#menu .menu-filter-btn.active:hover {
    background-color: #b91c1c;
}

#menu .menu-filter-btn:not(.active):hover {
    border-color: #dc2626;
    color: #dc2626;
}

/* Menu card animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#menu .menu-card.show {
    animation: slideIn 0.3s ease-out;
}

#menu .menu-card.hide {
    display: none;
}

/* Search input styling */
#menuSearch {
    font-family: inherit;
}

#menuSearch:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Footer Styles */
footer {
    position: relative;
    background: linear-gradient(135deg, #1c1917 0%, #2d2520 100%);
}

footer h3, footer h4 {
    color: #ffffff;
}

footer a {
    transition: all 0.3s ease;
}

/* Footer Social Icons */
.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    transition: all 0.3s ease;
    font-size: 18px;
    text-decoration: none;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.footer-social-icon:hover {
    background-color: #ef4444;
    color: white;
    transform: translateY(-3px) scale(1.1);
    border-color: #ef4444;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* Footer Links Hover */
footer a.hover\:text-red-500:hover {
    color: #ef4444;
}

/* Footer responsive */
@media (max-width: 768px) {
    footer {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    footer .grid {
        gap: 2rem;
    }

    footer .flex-col {
        text-align: center;
    }
}

/* Floating WhatsApp Button Styles */
#whatsappFloating {
    animation: slideInUp 0.6s ease-out 3s both;
}

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

#whatsappFloating:hover {
    text-decoration: none;
}

#whatsappFloating .group:hover > div {
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Mobile responsive for WhatsApp button */
@media (max-width: 640px) {
    #whatsappFloating {
        bottom: 1rem;
        right: 1rem;
    }

    #whatsappFloating .relative > div:nth-child(2) {
        width: 3rem;
        height: 3rem;
    }

    #whatsappFloating .relative > div:nth-child(2) i {
        font-size: 1.5rem;
    }

    /* Hide tooltip on mobile */
    #whatsappFloating .group-hover\:opacity-100 {
        display: none;
    }
}

/* Desktop - keep tooltip visible on hover */
@media (min-width: 641px) {
    #whatsappFloating {
        transition: all 0.3s ease;
    }
}

/* Halal Badge Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Certificate Modal Styles */
#certModal {
    animation: fadeIn 0.3s ease-out;
}

#certModal.hidden {
    display: none !important;
}

#certModal:not(.hidden) {
    display: flex !important;
}

/* Certificate Card Styles */
#certificate .group {
    position: relative;
}

#certificate .group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 100%);
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#certificate .group:hover::before {
    opacity: 1;
}

/* Button hover effects */
#certificate .cert-btn {
    position: relative;
    overflow: hidden;
}

#certificate .cert-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
    pointer-events: none;
}

#certificate .cert-btn:hover::before {
    left: 100%;
}

/* Mobile responsive for halal badge */
@media (max-width: 640px) {
    #halalBadge {
        top: 20px;
        right: 10px;
    }

    #halalBadge .relative {
        width: 20px;
        height: 20px;
    }

    #halalBadge .w-24.h-24 {
        width: 5rem;
        height: 5rem;
    }

    #halalBadge .text-2xl {
        font-size: 1rem;
    }

    #halalBadge .text-xs {
        font-size: 0.625rem;
    }
}

/* Review Section Styles */
#review .review-card {
    border: 1px solid #f5f5f4;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#review .review-card:hover {
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.15);
    border-color: #dc2626;
    transform: translateY(-4px);
}

/* Review Carousel Styles */
#reviewCarousel {
    display: flex;
    transition: transform 0.5s ease-out;
}

#review .carousel-indicator {
    cursor: pointer;
    transition: all 0.3s ease;
}

#review .carousel-indicator.active {
    width: 2.5rem;
    background-color: #dc2626;
}

#review .carousel-indicator:not(.active):hover {
    background-color: #a78bfa;
}

/* Navigation buttons responsive */
@media (max-width: 767px) {
    #prevReview, #nextReview {
        display: none !important;
    }
}

/* Mobile carousel - full width items */
@media (max-width: 767px) {
    #reviewCarousel {
        margin: 0 -0.5rem;
    }

    #review .review-card {
        margin: 0 0.5rem;
        width: calc(100% - 1rem);
    }
}

/* Review form styling */
#reviewForm input,
#reviewForm textarea {
    background: #ffffff;
    border: 1px solid #e7e5e4;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

#reviewForm input:focus,
#reviewForm textarea:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px #fecaca, 0 0 0 4px rgba(220, 38, 38, 0.1);
    background: #ffffff;
}

#reviewForm button[type="submit"] {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

#reviewForm button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Review card animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-card.animate-fadeIn {
    animation: fadeIn 0.4s ease-out;
}

/* Notification animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(400px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slideIn {
    animation: slideIn 0.3s ease-out;
}

/* Notification exit animation */
.animate-slideIn[style*="opacity: 0"] {
    animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}