/* ===== Custom Styles for Resurrected Rovers ===== */

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

/* Custom selection color */
::selection {
    background-color: #0d9488;
    color: #f8fafc;
}

/* ===== Navbar ===== */
#navbar {
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* ===== Hero ===== */
#hero {
    min-height: 100vh;
    padding-top: 5rem;
}

/* ===== Service Cards Hover ===== */
.group:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
}

.service-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Floating Card Animation ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== Typography ===== */
.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

.font-sans {
    font-family: 'Inter', system-ui, sans-serif;
}

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

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

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

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

/* ===== Image Hover Zoom ===== */
img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Gradient Text Fallback ===== */
.text-gradient {
    background: linear-gradient(135deg, #0d9488, #2dd4bf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    #hero {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 4rem;
    }

    .font-serif {
        font-size: 2.5rem !important;
    }

    .font-serif:nth-of-type(1) {
        font-size: 2rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    #navbar, #contact-form, button {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
