/* ============================================
   Mas Bella Hair & Nail Studio — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 10%;
    left: 5%;
    animation: float 10s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 30%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.geo-square-1 {
    width: 100px;
    height: 100px;
    background: rgba(251, 191, 36, 0.2);
    top: 60%;
    left: 10%;
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.geo-square-2 {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    top: 20%;
    left: 15%;
    transform: rotate(20deg);
    animation: spin 15s linear infinite reverse;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(251, 191, 36, 0.15);
    top: 45%;
    right: 20%;
    animation: float 7s ease-in-out infinite;
}

.geo-triangle-2 {
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 60px solid rgba(255, 255, 255, 0.1);
    bottom: 20%;
    right: 5%;
    transform: rotate(180deg);
    animation: float 9s ease-in-out infinite reverse;
}

.geo-circle-4 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    animation: float 12s ease-in-out infinite;
}

.geo-square-3 {
    width: 120px;
    height: 120px;
    border: 3px solid rgba(251, 191, 36, 0.2);
    bottom: -30px;
    left: 5%;
    transform: rotate(30deg);
    animation: spin 25s linear infinite;
}

.geo-circle-5 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -80px;
    left: -80px;
    animation: float 8s ease-in-out infinite;
}

.geo-square-4 {
    width: 80px;
    height: 80px;
    background: rgba(251, 191, 36, 0.15);
    top: 10%;
    right: 10%;
    transform: rotate(60deg);
    animation: spin 18s linear infinite reverse;
}

.geo-circle-6 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -200px;
    right: -200px;
    animation: float 15s ease-in-out infinite;
}

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

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

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

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

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

/* Service Cards */
.service-card {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .service-card {
        opacity: 0;
        transform: translateY(20px);
    }

    .service-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .font-display {
    color: #1c3d1c !important;
}

#navbar.scrolled .nav-line {
    background: #2d602d !important;
}

#navbar.scrolled a:not(.bg-forest-700) {
    color: #2d602d !important;
}

/* Mobile Menu */
.mobile-link {
    transition: color 0.2s ease;
}

.mobile-link:hover {
    color: #2d602d;
}

/* Mobile menu open state */
#mobile-menu.open {
    display: block;
    animation: slideDown 0.3s ease;
}

#mobile-menu.hidden {
    display: none;
}

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

/* Nav hamburger animation */
.nav-line {
    transition: all 0.3s ease;
}

#mobile-toggle.active .nav-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-toggle.active .nav-line:nth-child(2) {
    opacity: 0;
}

#mobile-toggle.active .nav-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #5e9b5e;
}

/* Selection color */
::selection {
    background: #dce8dc;
    color: #1c3d1c;
}
