/* ============================================
   CIUFFO's Coffee Shop & Things — Custom Styles
   ============================================ */

/* Geometric shape animations */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border: 3px solid white;
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: floatShape 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 50%;
    bottom: 15%;
    left: 5%;
    animation: floatShape 15s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 120px;
    height: 120px;
    border: 2px solid white;
    border-radius: 50%;
    top: 30%;
    left: 10%;
    animation: floatShape 12s ease-in-out infinite;
}

.geo-square-1 {
    width: 100px;
    height: 100px;
    border: 2px solid white;
    top: 20%;
    right: 15%;
    transform: rotate(45deg);
    animation: floatShape 18s ease-in-out infinite reverse;
}

.geo-square-2 {
    width: 60px;
    height: 60px;
    background: white;
    bottom: 25%;
    right: 25%;
    transform: rotate(30deg);
    animation: floatShape 14s ease-in-out infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid white;
    top: 45%;
    right: 8%;
    opacity: 0.06;
    animation: floatShape 16s ease-in-out infinite reverse;
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-3deg);
    }
    75% {
        transform: translateY(-25px) rotate(2deg);
    }
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

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

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #14b8a6;
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero text animation */
#hero h1 {
    animation: fadeInUp 1s ease forwards;
}

#hero p {
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

#hero .flex-col {
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

#hero .inline-flex {
    animation: fadeInUp 1s ease 0.1s forwards;
    opacity: 0;
}

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

/* Card hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #14b8a6;
    color: white;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
}
