/* ============================================
   Conspiracy Coffee Co. & Bakery — Custom Styles
   ============================================ */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

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

.shape-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: #d4a017;
    top: -200px;
    right: -150px;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #1a3a70;
    bottom: -100px;
    left: -100px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 260px solid #d4a017;
    top: 30%;
    left: 5%;
    opacity: 0.04;
    animation: rotate-slow 25s linear infinite;
}

.shape-square {
    width: 200px;
    height: 200px;
    border: 3px solid #d4a017;
    top: 60%;
    right: 10%;
    opacity: 0.08;
    animation: rotate-slow 30s linear infinite reverse;
    border-radius: 20px;
}

.shape-dots {
    background-image: radial-gradient(circle, #d4a017 1px, transparent 1px);
    background-size: 30px 30px;
    width: 300px;
    height: 300px;
    top: 20%;
    right: 30%;
    opacity: 0.1;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.02); }
}

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

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(40px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar Styles */
#navbar {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    background: transparent;
}

#navbar.scrolled {
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu */
#mobile-menu {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

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

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Menu Toggle Animation */
#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

#menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
    margin-left: 0;
}

/* Selection Color */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #fff;
}

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

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

::-webkit-scrollbar-thumb {
    background: #1a3a70;
    border-radius: 4px;
}

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

/* Image Aspect Ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Focus Styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d4a017;
    outline-offset: 2px;
}

/* Select Dropdown */
select option {
    background: #0f2140;
    color: #fff;
}

/* Print Styles */
@media print {
    nav, #gallery, .geo-shape, .reveal[data-reveal] {
        display: none !important;
    }
    
    body {
        background: #fff;
        color: #000;
    }
    
    a {
        color: #000;
    }
}
