/* ===== Custom Styles for Little Sunshine Speech Clinic ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ===== Navbar ===== */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 1px 20px rgba(15, 25, 38, 0.08);
}

#navbar.scrolled .text-navy-900 {
    color: #0f1926 !important;
}

/* ===== Mobile Menu ===== */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

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

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Geometric Background Shapes ===== */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.12) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(61, 90, 136, 0.15) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    animation: float 10s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.08) 0%, transparent 70%);
    top: 40%;
    right: 30%;
    animation: float 6s ease-in-out infinite;
}

.geo-circle-4 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.06) 0%, transparent 70%);
    bottom: -200px;
    right: -150px;
    animation: float 12s ease-in-out infinite;
}

.geo-circle-5 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.08) 0%, transparent 70%);
    top: -80px;
    left: -80px;
    animation: float 7s ease-in-out infinite reverse;
}

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

/* Triangle shapes */
.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

.geo-triangle-1 {
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(212, 160, 23, 0.1);
    top: 20%;
    right: 15%;
    animation: spin 20s linear infinite;
    transform-origin: center;
}

.geo-triangle-2 {
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid rgba(61, 90, 136, 0.15);
    bottom: 20%;
    left: 10%;
    animation: spin 15s linear infinite reverse;
    transform-origin: center;
}

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

/* Square shapes */
.geo-square {
    position: absolute;
    pointer-events: none;
    border-radius: 8px;
}

.geo-square-1 {
    width: 60px;
    height: 60px;
    background: rgba(212, 160, 23, 0.08);
    top: 30%;
    left: 8%;
    animation: float 9s ease-in-out infinite;
    transform: rotate(15deg);
}

/* Dot patterns */
.geo-dots {
    position: absolute;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(212, 160, 23, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
    width: 120px;
    height: 120px;
    top: 15%;
    left: 5%;
    opacity: 0.6;
}

.geo-dots-2 {
    position: absolute;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(61, 90, 136, 0.15) 1px, transparent 1px);
    background-size: 16px 16px;
    width: 100px;
    height: 100px;
    bottom: 25%;
    right: 8%;
    opacity: 0.5;
}

/* ===== Service Cards ===== */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

/* ===== Condition Tags ===== */
.condition-tag {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: default;
}

.condition-tag:hover {
    background: rgba(212, 160, 23, 0.15);
    border-color: rgba(212, 160, 23, 0.4);
    color: #fde047;
}

/* ===== Approach Steps ===== */
.approach-step {
    position: relative;
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

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

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

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .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; }
}

/* ===== Mobile Menu Link ===== */
.mobile-link {
    transition: color 0.2s ease;
}

/* ===== Form Styles ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ===== Button Ripple Effect ===== */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* ===== Selection Color ===== */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #0f1926;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .geo-circle-2 {
        width: 150px;
        height: 150px;
    }
}
