/* ============================================
   Atlas Pediatric Therapy — Custom Styles
   ============================================ */

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

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Hero Animations
   ============================================ */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 122, 150, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: floatSlow 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(123, 45, 59, 0.1) 0%, transparent 70%);
    bottom: 10%;
    left: -50px;
    animation: floatSlow 10s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 196, 214, 0.3) 0%, transparent 70%);
    top: 40%;
    right: 10%;
    animation: floatSlow 6s ease-in-out infinite;
}

.shape-square-1 {
    width: 80px;
    height: 80px;
    background: rgba(123, 45, 59, 0.06);
    border-radius: 16px;
    top: 25%;
    left: 5%;
    transform: rotate(45deg);
    animation: spinSlow 20s linear infinite;
}

.shape-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(123, 45, 59, 0.15) 2px, transparent 2px);
    background-size: 16px 16px;
    top: 15%;
    right: 5%;
    animation: floatSlow 7s ease-in-out infinite;
}

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

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

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

.hero-image {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

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

/* Floating badges */
.floating-badge {
    animation: floatBadge 4s ease-in-out infinite;
}

.badge-1 {
    animation-delay: 0s;
}

.badge-2 {
    animation-delay: 1s;
}

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

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: rgba(255, 248, 245, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
}

#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(123, 45, 59, 0.08);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

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

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

/* Hamburger animation */
#bar1.open {
    transform: rotate(45deg) translate(5px, 5px);
}

#bar2.open {
    opacity: 0;
}

#bar3.open {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(123, 45, 59, 0.02) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* ============================================
   Approach Cards
   ============================================ */
.approach-card {
    position: relative;
}

.approach-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #7B2D3B, #FF7A96);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.approach-card:hover::after {
    width: 60%;
}

/* ============================================
   Testimonial Cards
   ============================================ */
.testimonial-card {
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(123, 45, 59, 0.1);
}

/* ============================================
   Section Reveal Animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   Focus Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    border-color: #7B2D3B !important;
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1);
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FFF8F5;
}

::-webkit-scrollbar-thumb {
    background: #f9cfd9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f4a7bc;
}

/* ============================================
   Selection
   ============================================ */
::selection {
    background: rgba(255, 122, 150, 0.3);
    color: #1A2744;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
}
