/* ============================================
   Carlitos Accessories & Souvenirs — Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

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

.shape-circle-1 {
    top: 15%;
    right: 5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid rgba(232, 99, 74, 0.15);
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    bottom: 20%;
    left: 3%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 99, 74, 0.08) 0%, transparent 70%);
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-triangle {
    top: 40%;
    left: 8%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(232, 99, 74, 0.06);
    animation: rotate-slow 30s linear infinite;
    transform-origin: center;
}

.shape-diamond {
    top: 60%;
    right: 10%;
    width: 80px;
    height: 80px;
    background: rgba(232, 99, 74, 0.08);
    transform: rotate(45deg);
    animation: float-slow 12s ease-in-out infinite;
}

.shape-arc {
    bottom: 10%;
    right: 20%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid rgba(232, 99, 74, 0.1);
    border-top-color: transparent;
    border-left-color: transparent;
    animation: rotate-slow 25s linear infinite;
    transform-origin: center;
}

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

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

.shape-diamond {
    animation-name: float-diamond;
}

@keyframes float-diamond {
    0%, 100% { transform: rotate(45deg) translateY(0px); }
    50% { transform: rotate(45deg) translateY(-15px); }
}

/* --- Navbar --- */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
    background: rgba(13, 13, 18, 0.92);
    border-bottom: 1px solid rgba(232, 99, 74, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

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

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

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

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a21;
}
::-webkit-scrollbar-thumb {
    background: #40404b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E8634A;
}

/* --- Selection --- */
::selection {
    background: rgba(232, 99, 74, 0.3);
    color: #fff;
}

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

/* --- Responsive Tweaks --- */
@media (max-width: 640px) {
    .shape-circle-1 {
        width: 150px;
        height: 150px;
    }
    .shape-circle-2 {
        width: 100px;
        height: 100px;
    }
    .shape-triangle {
        border-left-width: 30px;
        border-right-width: 30px;
        border-bottom-width: 52px;
    }
    .shape-diamond {
        width: 40px;
        height: 40px;
    }
    .shape-arc {
        width: 80px;
        height: 80px;
    }
}
