/* ============================================
   QQ Nails and Spa — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

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

.circle-1 {
    top: 15%;
    right: 5%;
    width: 300px;
    height: 300px;
    border: 3px solid rgba(217, 79, 36, 0.15);
    border-radius: 50%;
    animation: float-slow 20s ease-in-out infinite;
}

.circle-2 {
    bottom: 20%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(217, 79, 36, 0.06);
    border-radius: 50%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.triangle {
    top: 40%;
    left: 8%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(217, 79, 36, 0.08);
    animation: rotate-slow 25s linear infinite;
    transform-origin: center;
}

.square {
    top: 60%;
    right: 10%;
    width: 80px;
    height: 80px;
    border: 3px solid rgba(217, 79, 36, 0.12);
    animation: rotate-slow 20s linear infinite reverse;
    transform-origin: center;
}

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

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

/* --- Floating Cards --- */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: 1.5s; }
.card-3 { animation-delay: 3s; }
.card-4 { animation-delay: 4.5s; }

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

/* --- Scroll Reveal --- */
.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(30px);
}

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

.reveal[data-reveal="1"] { transition-delay: 0.1s; }
.reveal[data-reveal="2"] { transition-delay: 0.2s; }
.reveal[data-reveal="3"] { transition-delay: 0.3s; }
.reveal[data-reveal="4"] { transition-delay: 0.4s; }
.reveal[data-reveal="5"] { transition-delay: 0.5s; }

/* --- Navbar --- */
.nav-link {
    position: relative;
}

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

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

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

/* --- Service Cards --- */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e26a3f, #d94f24, #c43d1e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* --- Mobile Menu --- */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
}

/* --- Button Focus States --- */
a:focus-visible, button:focus-visible {
    outline: 2px solid #d94f24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- 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[data-reveal] {
        opacity: 1;
        transform: none;
    }
    
    .floating-card {
        animation: none;
    }
    
    .geo-shape {
        animation: none;
    }
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .geo-shape {
        display: none;
    }
    
    #hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .floating-card {
        display: none;
    }
    
    .floating-card.card-1 {
        display: block;
        position: relative;
        animation: none;
        margin-bottom: 16px;
    }
    
    .floating-card.card-2 {
        display: block;
        position: relative;
        animation: none;
        margin-bottom: 16px;
    }
    
    .floating-card.card-3 {
        display: block;
        position: relative;
        animation: none;
        margin-bottom: 16px;
    }
    
    .floating-card.card-4 {
        display: block;
        position: relative;
        animation: none;
    }
}

/* --- Selection --- */
::selection {
    background: rgba(217, 79, 36, 0.2);
    color: #3d110b;
}

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

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

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

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