/* ============================================
   MAIRELIS BEAUTY SUPPLY CORP
   Custom Styles
   ============================================ */

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

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

body {
    min-height: 100vh;
}

/* --- Geometric Decorative Shapes --- */
.geo-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.circle-1 {
    top: 15%;
    right: 5%;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    bottom: 20%;
    left: 8%;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(16, 185, 129, 0.08);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

.triangle-1 {
    top: 40%;
    left: 3%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(16, 185, 129, 0.06);
    animation: rotate-slow 20s linear infinite;
}

.rect-1 {
    bottom: 30%;
    right: 10%;
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.05);
    transform: rotate(45deg);
    animation: float 10s ease-in-out infinite;
}

.rotated-square {
    transform: rotate(45deg);
    transition: transform 0.5s ease;
}

.rotated-square:hover {
    transform: rotate(135deg);
}

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

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

/* --- Scroll Reveal Animations --- */
/* Default state: visible (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

/* --- Mobile Menu --- */
#mobile-menu {
    box-shadow: none;
}

#mobile-menu.open {
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}

.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #065f46;
}

/* --- Selection --- */
::selection {
    background: #047857;
    color: #fefce8;
}

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

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

/* --- Form Styles --- */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* --- Animation Utilities --- */
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

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

/* --- Print Styles --- */
@media print {
    .geo-shape,
    .fixed,
    #navbar,
    .animate-float {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
