/* ============================================
   Almost Heaven Ice Cream — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

.geo-circle-2 {
    top: 60%;
    right: -3%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4A017, #f0be4d);
    animation: float 15s ease-in-out infinite reverse;
}

.geo-square-1 {
    top: 30%;
    right: 10%;
    width: 120px;
    height: 120px;
    background: #D4A017;
    transform: rotate(45deg);
    animation: spin 25s linear infinite;
}

.geo-diamond-1 {
    bottom: 20%;
    left: 5%;
    width: 80px;
    height: 80px;
    border: 3px solid #f0be4d;
    transform: rotate(45deg);
    animation: float 12s ease-in-out infinite;
}

.geo-triangle-1 {
    top: 50%;
    left: 15%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #D4A017;
    opacity: 0.04;
    animation: float 18s ease-in-out infinite;
}

.geo-circle-3 {
    bottom: 10%;
    right: 20%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid #f0be4d;
    animation: float 22s ease-in-out infinite reverse;
}

/* ============================================
   Hero Blobs
   ============================================ */
.hero-blob {
    animation: pulse-blob 8s ease-in-out infinite;
}

.hero-blob-2 {
    animation-delay: 3s;
}

.hero-blob-3 {
    animation-delay: 5s;
}

/* ============================================
   Floating Elements
   ============================================ */
.floating-element {
    animation: float-element 6s ease-in-out infinite;
}

/* ============================================
   Scroll Indicator
   ============================================ */
.scroll-indicator {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(212, 160, 23, 0.4);
    border-radius: 13px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: #D4A017;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}

/* ============================================
   Reveal Animations (Progressive Enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal.hidden-reveal {
        opacity: 0;
        transform: translateY(30px);
    }

    .flavor-card {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    }

    .flavor-card.hidden-reveal {
        opacity: 0;
        transform: translateY(25px);
    }

    .gallery-item {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .gallery-item.hidden-reveal {
        opacity: 0;
        transform: scale(0.95);
    }

    .testimonial-card {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    }

    .testimonial-card.hidden-reveal {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* ============================================
   Navbar Scroll State
   ============================================ */
.navbar-scrolled {
    background: rgba(10, 26, 46, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 160, 23, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Keyframes
   ============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(3deg); }
    66% { transform: translateY(10px) rotate(-2deg); }
}

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

@keyframes pulse-blob {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.15); opacity: 0.15; }
}

@keyframes float-element {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes scroll-wheel {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 20px; }
}

/* ============================================
   Back to Top Button
   ============================================ */
#backToTop.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* ============================================
   Mobile Menu Transitions
   ============================================ */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(100, 125, 152, 0.2);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .geo-circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .geo-square-1 {
        width: 60px;
        height: 60px;
    }
    
    .geo-diamond-1 {
        width: 40px;
        height: 40px;
    }
}
