/* ============================================
   Rocksteady Stylez Salon — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* --- Geometric Background Shapes --- */
.geo-shapes {
    z-index: 0;
}

.geo-circle {
    position: absolute;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.geo-circle--1 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(194, 112, 78, 0.15) 0%, transparent 70%);
    top: 15%;
    right: 5%;
}

.geo-circle--2 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.2) 0%, transparent 70%);
    bottom: 20%;
    left: 3%;
    animation-delay: -4s;
}

.geo-triangle {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(194, 112, 78, 0.12) 0%, rgba(212, 165, 116, 0.08) 100%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 30%;
    left: 8%;
    animation: spin-slow 20s linear infinite;
}

.geo-diamond {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(194, 112, 78, 0.1);
    top: 60%;
    right: 12%;
    animation: float 6s ease-in-out infinite reverse;
}

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

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

/* --- Navbar --- */
.nav {
    background: rgba(253, 248, 243, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(228, 188, 142, 0.2);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.nav.scrolled {
    background: rgba(253, 248, 243, 0.95);
    box-shadow: 0 4px 20px rgba(61, 43, 31, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile menu */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

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

.menu-line {
    transition: all 0.3s ease;
}

.mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #C2704E;
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid #C2704E;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    background: #A35A3E;
    border-color: #A35A3E;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(194, 112, 78, 0.35);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #3D2B1F;
    font-weight: 600;
    border-radius: 12px;
    border: 2px solid #E4BC8E;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #3D2B1F;
    color: #fff;
    border-color: #3D2B1F;
    transform: translateY(-2px);
}

/* --- Hero --- */
.hero {
    position: relative;
    background: linear-gradient(135deg, #FDF8F3 0%, #F9DCBF 50%, #F5C49A 100%);
}

.hero-content {
    padding-top: 2rem;
}

@media (min-width: 1024px) {
    .hero-content {
        padding-top: 0;
    }
}

.floating-card {
    animation: floatCard 4s ease-in-out infinite;
}

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

.scroll-indicator {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* --- Service Cards --- */
.service-card {
    opacity: 1;
}

/* --- Gallery --- */
.gallery-item {
    opacity: 1;
}

/* --- Testimonial Cards --- */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(61, 43, 31, 0.12);
}

/* --- Form Inputs --- */
.input-field {
    background: #FDF8F3;
}

.input-field:focus {
    background: #fff;
    border-color: #C2704E;
    box-shadow: 0 0 0 3px rgba(194, 112, 78, 0.15);
}

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

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

/* 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;
    }
}

/* --- 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:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(194, 112, 78, 0.4);
}

/* --- Responsive Tweaks --- */
@media (max-width: 640px) {
    .hero {
        min-height: auto;
        padding: 6rem 0 4rem;
    }

    .hero-image-wrapper {
        margin-bottom: 2rem;
    }

    .hero-image-main img {
        h: 300px;
    }

    .floating-card {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }
}

/* --- Selection Color --- */
::selection {
    background: rgba(194, 112, 78, 0.25);
    color: #3D2B1F;
}
