/* ========================================
   Artistic Health — Custom Styles
   Burgundy + Blush | Vibrant Modern
======================================== */

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

body {
    overflow-x: hidden;
}

::selection {
    background: #F4C2C2;
    color: #6B1B2A;
}

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

.shape-circle-1 {
    top: 10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(244,194,194,0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    bottom: 15%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(107,27,42,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-circle-3 {
    top: 40%;
    right: 30%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(244,194,194,0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-rect-1 {
    top: 20%;
    left: 0;
    width: 80px;
    height: 80px;
    background: rgba(107,27,42,0.04);
    border-radius: 20px;
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.shape-triangle {
    bottom: 25%;
    right: 10%;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(244,194,194,0.15);
    animation: float 7s ease-in-out infinite;
}

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

@keyframes spin {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* ---------- Hero ---------- */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-image-wrapper {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-img-main {
    box-shadow: 0 25px 60px rgba(107,27,42,0.2);
}

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

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

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll line animation */
.animate-scroll-line {
    animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

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

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

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

/* Mobile menu */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* ---------- Services ---------- */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ---------- About ---------- */
.about-images {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.about-images.revealed {
    opacity: 1;
    transform: translateX(0);
}

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

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* ---------- Testimonials ---------- */
.testimonial-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* ---------- Section Reveal ---------- */
.section-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Staggered reveal for children */
.service-card.revealed,
.testimonial-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Navbar scroll state ---------- */
nav.scrolled {
    background: rgba(253,248,245,0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(107,27,42,0.08);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 300px;
        height: 300px;
    }
    .shape-circle-2 {
        width: 200px;
        height: 200px;
    }
    .shape-rect-1,
    .shape-triangle {
        display: none;
    }
}

/* ---------- Focus styles ---------- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #6B1B2A;
    outline-offset: 2px;
}
