/* ═══════════════════════════════════════════
   MEND SALON — Custom Styles
   ═══════════════════════════════════════════ */

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

.shape-circle-1 {
    top: 8%;
    left: 5%;
    width: 180px;
    height: 180px;
    border: 2px solid rgba(245, 158, 11, 0.2);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    top: 60%;
    left: 15%;
    width: 100px;
    height: 100px;
    background: rgba(157, 85, 165, 0.15);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-circle-3 {
    top: 15%;
    right: 30%;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 50%;
    animation: float 5s ease-in-out infinite;
}

.shape-triangle-1 {
    top: 70%;
    right: 5%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(245, 158, 11, 0.15);
    animation: spin-slow 20s linear infinite;
    transform-origin: center;
}

.shape-triangle-2 {
    bottom: 20%;
    left: 8%;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 45px solid rgba(157, 85, 165, 0.2);
    animation: spin-slow 15s linear infinite reverse;
    transform-origin: center;
}

.shape-square-1 {
    top: 25%;
    right: 10%;
    width: 50px;
    height: 50px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    animation: spin-slow 12s linear infinite, float 4s ease-in-out infinite;
    transform-origin: center;
}

.shape-square-2 {
    bottom: 30%;
    right: 20%;
    width: 30px;
    height: 30px;
    background: rgba(157, 85, 165, 0.2);
    animation: spin-slow 8s linear infinite reverse, float 3s ease-in-out infinite;
    transform-origin: center;
}

.shape-line-1 {
    top: 40%;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(245, 158, 11, 0.3), transparent);
    animation: slide-line 4s ease-in-out infinite;
}

.shape-line-2 {
    bottom: 45%;
    right: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(157, 85, 165, 0.3), transparent);
    animation: slide-line 5s ease-in-out infinite reverse;
}

.shape-dots {
    top: 50%;
    left: 3%;
    display: grid;
    grid-template-columns: repeat(4, 8px);
    gap: 8px;
    opacity: 0.4;
}

.shape-dots span {
    width: 4px;
    height: 4px;
    background: rgba(245, 158, 11, 0.5);
    border-radius: 50%;
}

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

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

@keyframes slide-line {
    0%, 100% { transform: translateX(0); opacity: 0.3; }
    50% { transform: translateX(20px); opacity: 0.6; }
}

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

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

.reveal[data-reveal="true"] {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal="true"] {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ── Service Card Hover ── */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* ── Gallery Item ── */
.gallery-item img {
    transition: transform 0.7s ease;
}

/* ── Navbar scroll state ── */
.nav-scrolled {
    background: rgba(42, 18, 45, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ── Mobile menu open ── */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 40px;
}

.menu-open #mobileMenu {
    transform: translateX(0);
}

/* ── Selection color ── */
::selection {
    background: rgba(157, 85, 165, 0.3);
    color: #2a122d;
}
