/* ===== Custom Styles for Jitterbean Coffee ===== */

/* Base & Resets */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
}

/* ===== Geometric Decorative Shapes ===== */
.geo-shape {
    position: absolute;
    opacity: 0.06;
    pointer-events: none;
}

.geo-circle-1 {
    top: 15%;
    right: -5%;
    width: 500px;
    height: 500px;
    border: 3px solid #fbbf24;
    border-radius: 50%;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    bottom: 20%;
    left: -8%;
    width: 350px;
    height: 350px;
    border: 3px solid #f9a8d4;
    border-radius: 50%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-circle-3 {
    top: 60%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: #fbbf24;
    border-radius: 50%;
    animation: float-slow 12s ease-in-out infinite;
}

.geo-triangle {
    top: 40%;
    left: 5%;
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #fbbf24;
    animation: float-slow 18s ease-in-out infinite;
}

.geo-square {
    bottom: 10%;
    right: 20%;
    width: 120px;
    height: 120px;
    border: 3px solid #f9a8d4;
    transform: rotate(45deg);
    animation: float-slow 14s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

/* ===== Hero Animations ===== */
@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out both;
}

.animate-slide-up {
    animation: slide-up 0.8s ease-out both;
}

.animate-slide-up-delay {
    animation: slide-up 0.8s ease-out 0.2s both;
}

.animate-slide-up-delay-2 {
    animation: slide-up 0.8s ease-out 0.4s both;
}

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

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

/* ===== Mobile Menu ===== */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Hamburger Animation */
.menu-line {
    transition: all 0.3s ease;
}

#mobileMenuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

#mobileMenuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

#mobileMenuBtn.active .menu-line:nth-child(3) {
    width: 28px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Navbar Scroll State ===== */
.navbar-scrolled {
    background: rgba(44, 5, 20, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Button Hover Effects ===== */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ===== Selection Color ===== */
::selection {
    background: #fbbf24;
    color: #500724;
}

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

::-webkit-scrollbar-track {
    background: #3d0519;
}

::-webkit-scrollbar-thumb {
    background: #9d174d;
    border-radius: 4px;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .geo-circle-2 {
        width: 180px;
        height: 180px;
    }
    
    .geo-triangle {
        display: none;
    }
    
    .geo-square {
        width: 60px;
        height: 60px;
    }
}

/* ===== 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;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}
