/* ============================================
   el guerito sabrozon — Custom Styles
   Vibrant Modern · Navy + Gold
   ============================================ */

/* ---------- Base Reset & Smooth Scroll ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #102a43;
    color: #ffffff;
    overflow-x: hidden;
}

::selection {
    background-color: #f59e0b;
    color: #102a43;
}

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

::-webkit-scrollbar-track {
    background: #102a43;
}

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

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

/* ---------- Hero Animations ---------- */
.hero-badge {
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero-text {
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

.hero-stats {
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

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

/* ---------- Geometric Shapes ---------- */
.hero-shape {
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.shape-circle-1 {
    animation: floatSlow 8s ease-in-out infinite;
}

.shape-circle-2 {
    animation: floatSlow 10s ease-in-out infinite reverse;
}

.shape-rect-1 {
    animation: floatSlow 6s ease-in-out infinite;
}

.shape-diamond {
    animation: rotateSlow 12s linear infinite;
}

.shape-triangle {
    animation: floatSlow 7s ease-in-out infinite;
}

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

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

@keyframes rotateSlow {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* ---------- Floating Cards ---------- */
.hero-float-1 {
    animation: floatCard 4s ease-in-out infinite;
}

.hero-float-2 {
    animation: floatCard 5s ease-in-out infinite reverse;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* ---------- Navbar ---------- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(10, 26, 46, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(245, 158, 11, 0.1);
}

/* ---------- Mobile Menu ---------- */
.mobile-link {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ---------- Menu Cards ---------- */
.menu-card {
    background: rgba(16, 42, 67, 0.5);
    border: 1px solid rgba(51, 78, 104, 0.5);
    border-radius: 1.5rem;
    padding: 1.5rem;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.menu-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 20px 60px -20px rgba(245, 158, 11, 0.1);
    transform: translateY(-4px);
}

.menu-card:hover img {
    transform: scale(1.1);
}

.menu-header,
.gallery-header {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* ---------- Gallery ---------- */
.gallery-item {
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.gallery-grid {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* ---------- Section Headers ---------- */
.about-content,
.visit-content,
.contact-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.about-images,
.visit-map {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.menu-cta {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.contact-form-wrapper {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* ---------- Button Ripple Effect ---------- */
button, a {
    position: relative;
    overflow: hidden;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero-shape.shape-circle-1 {
        width: 300px;
        height: 300px;
    }

    .hero-shape.shape-circle-2 {
        width: 200px;
        height: 200px;
    }

    .hero-shape.shape-rect-1 {
        display: none;
    }

    .hero-shape.shape-diamond {
        display: none;
    }

    .hero-shape.shape-triangle {
        display: none;
    }

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

    #hero h1 span.text-3xl {
        font-size: 1.5rem !important;
    }

    .hero-float-1 {
        position: relative;
        -webkit-animation: none;
        animation: none;
        margin-top: 1rem;
    }

    .hero-float-2 {
        position: relative;
        -webkit-animation: none;
        animation: none;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }

    .section-padding {
        padding-left: 1.25rem;
        padding-right: 1.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;
    }
}
