/* ========================================
   Florería Y Perfumería Cristina LLC
   Custom Styles
======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-display {
    font-family: 'Playfair Display', Georgia, serif;
}

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

.shape-circle-1 {
    top: 15%;
    left: 5%;
    width: 300px;
    height: 300px;
    border: 3px solid #9d174d;
    border-radius: 50%;
}

.shape-circle-2 {
    bottom: 20%;
    right: 8%;
    width: 200px;
    height: 200px;
    background: #fbbf24;
    border-radius: 50%;
}

.shape-square-1 {
    top: 40%;
    right: 15%;
    width: 120px;
    height: 120px;
    background: #9d174d;
    transform: rotate(45deg);
    border-radius: 12px;
}

.shape-triangle-1 {
    bottom: 30%;
    left: 12%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #fbbf24;
}

.shape-ring-1 {
    top: 60%;
    left: 25%;
    width: 160px;
    height: 160px;
    border: 4px solid #fbbf24;
    border-radius: 50%;
}

/* Navbar */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 4px 30px rgba(157, 23, 77, 0.08);
    backdrop-filter: blur(10px);
}

.nav-text {
    color: #9d174d;
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-text {
    color: #9d174d;
}

.nav-link {
    position: relative;
}

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

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

#navbar.scrolled .nav-link {
    color: #374151;
}

#navbar.scrolled .nav-link:hover {
    color: #9d174d;
}

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

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

.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::before {
    width: 16px;
}

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

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

/* Back to Top */
#back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

#back-to-top:not(.visible) {
    transform: translateY(10px);
}

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

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

::-webkit-scrollbar-thumb {
    background: #9d174d;
    border-radius: 5px;
}

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

/* Selection */
::selection {
    background: #fbcfe8;
    color: #500724;
}

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
    border-color: #9d174d !important;
    box-shadow: 0 0 0 3px rgba(157, 23, 77, 0.15) !important;
}

/* Smooth image loading */
img {
    loading: lazy;
}

/* 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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Print styles */
@media print {
    #navbar,
    #back-to-top,
    .geo-shape {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
