/* ========================================
   TULAROSA SALON — Custom Styles
   ======================================== */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* --- Geometric Blobs --- */
.geometric-blob {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blobFloat 20s ease-in-out infinite;
}

.blob-teal {
    background: #14b8a6;
}

.blob-slate {
    background: #1e293b;
}

.blob-teal-light {
    background: #5eead4;
    opacity: 0.2;
    animation-delay: -10s;
    animation-duration: 25s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(30px, -30px) rotate(5deg) scale(1.05); }
    50% { transform: translate(-20px, 20px) rotate(-3deg) scale(0.95); }
    75% { transform: translate(15px, 10px) rotate(3deg) scale(1.02); }
}

/* --- Hero Geometric Shapes --- */
.geo-shape {
    position: absolute;
    opacity: 0.12;
}

.geo-circle-1 {
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: geoFloat 15s ease-in-out infinite;
}

.geo-circle-2 {
    bottom: 15%;
    right: 8%;
    width: 180px;
    height: 180px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: geoFloat 12s ease-in-out infinite reverse;
}

.geo-square-1 {
    top: 25%;
    right: 15%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
    animation: geoSpin 20s linear infinite;
}

.geo-triangle-1 {
    bottom: 30%;
    left: 10%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(255, 255, 255, 0.08);
    animation: geoFloat 18s ease-in-out infinite;
}

.geo-dots {
    top: 60%;
    left: 20%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 15px 15px;
    opacity: 0.5;
    animation: geoFloat 22s ease-in-out infinite reverse;
}

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

@keyframes geoSpin {
    from { transform: rotate(45deg) translate(0, 0); }
    50% { transform: rotate(225deg) translate(10px, -10px); }
    to { transform: rotate(405deg) translate(0, 0); }
}

/* --- Buttons --- */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

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

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #14b8a6, #0d9488);
    transition: width 0.4s ease;
}

.service-card:hover::after {
    width: 100%;
}

/* --- Gallery --- */
.gallery-item {
    cursor: pointer;
}

/* --- Testimonials --- */
.testimonial-card {
    transition: all 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(20, 184, 166, 0.3);
}

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

.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(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
    padding: 0;
}

.nav-link {
    position: relative;
}

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

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

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

/* --- Back to Top --- */
#back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* --- Form --- */
input:focus,
select:focus,
textarea:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 150px;
        height: 150px;
    }
    
    .geo-square-1 {
        width: 60px;
        height: 60px;
    }
    
    .geo-triangle-1 {
        border-left: 40px solid transparent;
        border-right: 40px solid transparent;
        border-bottom: 66px solid rgba(255, 255, 255, 0.08);
    }
}

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