/* Custom styles for Baskin-Robbins Abington */

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

/* Geometric shapes for hero */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, #facc15, #f59e0b);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f472b6, #ec4899);
    bottom: 10%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34d399, #10b981);
    top: 30%;
    left: -30px;
    animation: float 7s ease-in-out infinite;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    top: 20%;
    right: 15%;
    border-radius: 24px;
    transform: rotate(45deg);
    animation: spin 12s linear infinite;
}

.shape-square-2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fb923c, #f97316);
    bottom: 25%;
    right: 8%;
    border-radius: 16px;
    transform: rotate(20deg);
    animation: spin 8s linear infinite reverse;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #f472b6;
    opacity: 0.2;
    top: 45%;
    right: 25%;
    animation: float 5s ease-in-out infinite;
}

.shape-dots {
    background-image: radial-gradient(circle, rgba(250, 204, 21, 0.4) 2px, transparent 2px);
    background-size: 30px 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.3;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .geo-shape {
        animation: none;
    }
    
    .shape-square-1,
    .shape-square-2 {
        animation: none;
    }
    
    .scroll-reveal {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Navbar styles */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-scrolled .font-display,
.nav-scrolled span {
    color: #111c4d !important;
}

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

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

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

::-webkit-scrollbar-track {
    background: #f0f4ff;
}

::-webkit-scrollbar-thumb {
    background: #2b47cd;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e328f;
}

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

/* Image lazy load placeholder */
img {
    background: linear-gradient(90deg, #f0f4ff 25%, #d9e2ff 50%, #f0f4ff 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

img[src] {
    animation: none;
    background: none;
}
