/* Custom styles for PaxMax Café & Restaurant */

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

/* Geometric shapes */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    background: #14b8a6;
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: #5eead4;
    bottom: 10%;
    left: 5%;
    animation: float 15s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    background: #2dd4bf;
    top: 40%;
    right: 10%;
    animation: float 12s ease-in-out infinite;
}

.geo-circle-4 {
    width: 400px;
    height: 400px;
    background: #0d9488;
    bottom: -100px;
    right: -100px;
    opacity: 0.05;
    animation: float 18s ease-in-out infinite;
}

.geo-circle-5 {
    width: 500px;
    height: 500px;
    background: #5eead4;
    top: -150px;
    left: -150px;
    opacity: 0.15;
    animation: float 22s ease-in-out infinite reverse;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0.06;
}

.geo-triangle-1 {
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #14b8a6;
    top: 20%;
    left: -50px;
    animation: spin 30s linear infinite;
}

.geo-triangle-2 {
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 139px solid #2dd4bf;
    bottom: 15%;
    right: 5%;
    animation: spin 25s linear infinite reverse;
}

.geo-diamond {
    position: absolute;
    width: 120px;
    height: 120px;
    background: #14b8a6;
    opacity: 0.06;
    transform: rotate(45deg);
}

.geo-diamond-1 {
    top: 30%;
    right: 15%;
    animation: float 16s ease-in-out infinite;
}

.geo-diamond-2 {
    width: 80px;
    height: 80px;
    background: #5eead4;
    top: 40%;
    left: 10%;
    animation: float 14s ease-in-out infinite reverse;
}

.geo-diamond-3 {
    width: 100px;
    height: 100px;
    background: #2dd4bf;
    bottom: 20%;
    right: 10%;
    opacity: 0.12;
    animation: spin 20s linear infinite;
}

/* Grid pattern */
.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

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

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

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

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

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

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #14b8a6;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

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

.mobile-link {
    position: relative;
}

/* Button hover effects */
a {
    text-decoration: none;
}

/* Image hover effects */
img {
    transition: transform 0.5s ease;
}

/* Focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

/* Tablet adjustments */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .geo-circle-2 {
        width: 150px;
        height: 150px;
    }
}

/* Small mobile */
@media (max-width: 360px) {
    .font-display {
        font-size: 2rem;
    }
}
