/* ============================================
   WAVES HEALING THERAPY - CUSTOM STYLES
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    background: rgba(254, 252, 246, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(154, 37, 43, 0.08);
}

.nav.scrolled {
    background: rgba(254, 252, 246, 0.98);
    box-shadow: 0 4px 30px rgba(154, 37, 43, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #9a252b, #ff5c5c);
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
.mobile-menu {
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

.mobile-menu.closed {
    max-height: 0;
    opacity: 0;
}

.mobile-nav-link {
    position: relative;
}

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

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, #fefcf6 0%, #fff5f5 50%, #fdf2f2 100%);
    position: relative;
}

.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}

.hero h1 {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero p {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-btn-primary,
.hero-btn-secondary {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-image-wrapper {
    animation: fadeInRight 1s ease 0.4s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-btn-primary {
    box-shadow: 0 10px 40px rgba(154, 37, 43, 0.3);
}

.hero-btn-primary:hover {
    box-shadow: 0 20px 60px rgba(154, 37, 43, 0.4);
}

.hero-btn-secondary:hover {
    transform: translateY(-2px);
}

/* ============================================
   GEOMETRIC SHAPES
   ============================================ */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 142, 142, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(154, 37, 43, 0.08) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    background: rgba(255, 92, 92, 0.1);
    top: 30%;
    left: 15%;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.geo-rect-1 {
    width: 80px;
    height: 80px;
    background: rgba(154, 37, 43, 0.06);
    top: 20%;
    right: 25%;
    border-radius: 16px;
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(255, 142, 142, 0.12);
    bottom: 20%;
    right: 10%;
    animation: float 7s ease-in-out infinite;
}

.geo-dots {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 5%;
    background-image: radial-gradient(circle, rgba(154, 37, 43, 0.15) 1px, transparent 1px);
    background-size: 12px 12px;
    opacity: 0.6;
}

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

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

/* ============================================
   SERVICE TAGS
   ============================================ */
.service-tag {
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ============================================
   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, #9a252b, #ff5c5c, #9a252b);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.service-card:hover {
    border-color: rgba(154, 37, 43, 0.2);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-img-main {
    box-shadow: 0 25px 80px rgba(154, 37, 43, 0.15);
}

.about-image-grid {
    position: relative;
}

/* ============================================
   PHILOSOPHY SECTION
   ============================================ */
.philosophy-img {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-item {
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(8px);
}

.contact-item:hover .w-12 {
    transform: scale(1.1);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   (Progressive Enhancement - content visible by default)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-hidden.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:not(.visible) {
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
}

.back-to-top:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(154, 37, 43, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */
.footer a {
    text-decoration: none;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-image-wrapper {
        margin-top: 2rem;
    }
    
    .geo-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .geo-circle-2 {
        width: 120px;
        height: 120px;
    }
    
    .geo-circle-3 {
        display: none;
    }
    
    .geo-rect-1 {
        width: 40px;
        height: 40px;
    }
    
    .geo-triangle-1 {
        border-left: 20px solid transparent;
        border-right: 20px solid transparent;
        border-bottom: 35px solid rgba(255, 142, 142, 0.12);
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .services,
    .about,
    .philosophy,
    .cta {
        padding: 4rem 1.5rem;
    }
    
    .about-img-main {
        box-shadow: 0 15px 50px rgba(154, 37, 43, 0.12);
    }
}
