/* ========================================
   Patel Haroon MD — Custom Styles
   ======================================== */

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

/* Base transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Navbar
   ======================================== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 30px rgba(17, 31, 56, 0.06);
}

/* ========================================
   Floating Cards Animation
   ======================================== */
.float-card-1 {
    animation: float1 4s ease-in-out infinite;
}

.float-card-2 {
    animation: float2 5s ease-in-out infinite;
}

.float-card-3 {
    animation: float3 4.5s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}

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

/* ========================================
   Service Cards
   ======================================== */
.service-card {
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    border-color: rgba(17, 31, 56, 0.06);
    transform: translateY(-4px);
}

/* ========================================
   Scroll Reveal Animations
   (progressive enhancement — content visible without JS)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    /* Default state for JS-gated reveals */
    .reveal-up {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.mobile-link {
    display: block;
    transition: all 0.2s ease;
}

.mobile-link:hover {
    padding-left: 12px;
}

/* ========================================
   Form Focus States
   ======================================== */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(17, 31, 56, 0.06);
}

/* ========================================
   Selection Color
   ======================================== */
::selection {
    background: rgba(212, 140, 26, 0.2);
    color: #1c3154;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9bb3d6;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    #navbar,
    #contact-form,
    .float-card-1,
    .float-card-2,
    .float-card-3 {
        display: none !important;
    }

    body {
        background: white !important;
        color: #1c3154 !important;
    }
}
