/* Custom styles for Cosmetic Dentistry Plantation */

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

/* Base styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #FAFAF7;
    color: #1a1a1a;
    line-height: 1.6;
}

/* Hero section gradient */
.hero-gradient {
    background: linear-gradient(135deg, #14341e 0%, #1c4f2c 50%, #266339 100%);
}

/* Floating animation for stat cards */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card-delay {
    animation: float 6s ease-in-out 2s infinite;
}

.floating-card-delay-2 {
    animation: float 6s ease-in-out 4s infinite;
}

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

/* Reveal animation for scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Service card hover effects */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Primary button styles */
.btn-primary {
    background: linear-gradient(135deg, #3d8253 0%, #266339 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #266339 0%, #1c4f2c 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(61, 130, 83, 0.3);
}

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

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

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

/* Stat number styling */
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3d8253;
}

/* Grid pattern for hero */
.grid-pattern {
    background-image: radial-gradient(circle, #e3efe7 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.3s ease-out;
    max-height: 0;
    overflow: hidden;
}

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

/* Form focus states */
input:focus,
textarea:focus {
    outline: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #3d8253;
    border-radius: 5px;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
    
    .floating-card,
    .floating-card-delay,
    .floating-card-delay-2 {
        animation: none;
        position: relative;
        margin-bottom: 1rem;
    }
}
