/* ===== CUSTOM STYLES ===== */

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

/* ===== NAVBAR ===== */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(15, 23, 42, 0.08);
}

.navbar-transparent {
    background: transparent;
    box-shadow: none;
}

/* ===== FLOATING CARDS ===== */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-stats-1 {
    animation-delay: 0s;
}

.card-stats-2 {
    animation-delay: -2s;
}

.card-stats-3 {
    animation-delay: -4s;
}

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

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Initial state for reveal elements (progressive enhancement) */
.reveal[data-reveal] {
    opacity: 1;
    transform: translateY(0);
}

/* ===== MOBILE MENU ===== */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #14b8a6;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* ===== BUTTON HOVER EFFECTS ===== */
a[href="tel:13028564092"] {
    position: relative;
    overflow: hidden;
}

a[href="tel:13028564092"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

a[href="tel:13028564092"]:hover::before {
    left: 100%;
}

/* ===== SERVICE CARD HOVER ===== */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1) rotate(5deg);
}

/* ===== FORM FOCUS STATES ===== */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #5eead4;
}

/* ===== SELECTION ===== */
::selection {
    background: #ccfbf1;
    color: #0f766e;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .floating-card {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        transition: none;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
    
    .card-stats-1, .card-stats-2, .card-stats-3 {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .floating-card.card-stats-3 {
        display: none;
    }
}
