/* Custom styles for Grace to You Coffee */

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Geometric Background Shapes */
.geometric-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(152, 255, 185, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -200px;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-square-1 {
    width: 200px;
    height: 200px;
    background: rgba(152, 255, 185, 0.05);
    border: 2px solid rgba(152, 255, 185, 0.1);
    border-radius: 24px;
    bottom: 20%;
    left: 5%;
    transform: rotate(45deg);
    animation: spin-slow 30s linear infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(152, 255, 185, 0.06);
    top: 30%;
    right: 10%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(152, 255, 185, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -50px;
    left: 30%;
    animation: float-slow 18s ease-in-out infinite;
}

.shape-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(152, 255, 185, 0.3) 2px, transparent 2px);
    background-size: 16px 16px;
    top: 20%;
    left: 15%;
    opacity: 0.5;
    animation: float-slow 12s ease-in-out infinite;
}

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

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

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

@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scale-in {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Animation Classes */
.animate-fade-in {
    animation: fade-in 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slide-up 0.8s ease-out forwards;
    opacity: 0;
}

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

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

.animate-scale-in {
    animation: scale-in 1s ease-out forwards;
    opacity: 0;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Menu Card Hover */
.menu-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(152, 255, 185, 0.1);
}

/* Gallery Item Hover */
.gallery-item {
    position: relative;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Navbar Scroll State */
nav.scrolled {
    background: rgba(5, 13, 30, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(152, 255, 185, 0.1);
}

/* Mobile Menu Open State */
body.menu-open {
    overflow: hidden;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(152, 255, 185, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(152, 255, 185, 0.5);
}

/* Selection */
::selection {
    background: rgba(152, 255, 185, 0.3);
    color: #98ffb9;
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid #98ffb9;
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 300px;
        height: 300px;
        right: -100px;
    }
    
    .shape-square-1 {
        width: 100px;
        height: 100px;
        left: 2%;
    }
    
    .shape-triangle-1 {
        border-left: 40px solid transparent;
        border-right: 40px solid transparent;
        border-bottom: 70px solid rgba(152, 255, 185, 0.06);
    }
}

/* 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;
    }
}
