@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0a0f1c;
    color: #ffffff;
    overflow-x: hidden;
}

/* Futuristic Background Grid */
.bg-grid {
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -2;
}

/* Glowing Orbs for Background */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: float 10s ease-in-out infinite alternate;
}

.glow-orb-1 {
    top: -10%; left: -10%;
    width: 500px; height: 500px;
    background: #0055ff;
}

.glow-orb-2 {
    bottom: -10%; right: -10%;
    width: 600px; height: 600px;
    background: #00f0ff;
    animation-delay: -5s;
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Mobile hamburger menu — readable panel (replaces faint glass on small screens) */
.mobile-nav-panel {
    background: linear-gradient(180deg, rgba(12, 18, 32, 0.98) 0%, rgba(8, 12, 24, 0.99) 100%);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-top: 1px solid rgba(34, 211, 238, 0.25);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.mobile-nav-panel a {
    color: rgba(255, 255, 255, 0.92);
}
.mobile-nav-panel a:hover,
.mobile-nav-panel a:focus-visible {
    color: #22d3ee;
}
.mobile-nav-panel a.text-cyan-400 {
    color: #22d3ee;
}

.glass-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-card {
    transition: all 0.4s ease;
}

.glass-card:hover {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.15);
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
}

/* Form Inputs */
.glass-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.glass-input:focus {
    outline: none;
    border-color: #00f0ff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

/* Select & dropdown options — dark panel so list is readable (not white) */
select.glass-input,
select.quote-service-select {
    background-color: #0f1729 !important;
    color: #e2e8f0;
    cursor: pointer;
    color-scheme: dark;
}

select.glass-input option,
select.quote-service-select option,
select.glass-input optgroup,
select.quote-service-select optgroup {
    background-color: #0a0f1c;
    color: #e2e8f0;
    padding: 0.5rem;
}

select.glass-input:focus option:checked {
    background: linear-gradient(#0891b2, #0891b2);
}

/* Animations */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulseGlow 3s infinite;
}

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

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 240, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0f1c;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.6);
}

/* Services list bullets */
.service-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.service-list li {
    position: relative;
    padding-left: 1.25rem;
}
.service-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.6);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

/* —— Floating WhatsApp (animated, bottom-right, responsive) —— */
@keyframes whatsapp-enter {
    0% {
        opacity: 0;
        transform: translate3d(120%, 20px, 0) scale(0.5);
    }
    60% {
        opacity: 1;
        transform: translate3d(0, -6px, 0) scale(1.06);
    }
    80% { transform: translate3d(0, 2px, 0) scale(0.98); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes whatsapp-ping {
    0% {
        transform: scale(1);
        opacity: 0.55;
    }
    100% {
        transform: scale(1.55);
        opacity: 0;
    }
}
@keyframes whatsapp-breathe {
    0%, 100% {
        box-shadow:
            0 4px 14px rgba(37, 211, 102, 0.45),
            0 2px 6px rgba(0, 0, 0, 0.25),
            0 0 0 0 rgba(37, 211, 102, 0.35);
    }
    50% {
        box-shadow:
            0 6px 22px rgba(37, 211, 102, 0.55),
            0 4px 12px rgba(0, 0, 0, 0.28),
            0 0 0 10px rgba(37, 211, 102, 0);
    }
}
@keyframes whatsapp-icon-wave {
    0%, 88%, 100% { transform: rotate(0deg) scale(1); }
    90% { transform: rotate(-10deg) scale(1.05); }
    92% { transform: rotate(10deg) scale(1.05); }
    94% { transform: rotate(-6deg) scale(1); }
    96% { transform: rotate(0deg) scale(1); }
}
@keyframes whatsapp-shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.whatsapp-float-wrap {
    position: fixed;
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Do NOT use pointer-events: none here — it breaks taps on the link in many browsers */
    isolation: isolate;
    animation: whatsapp-enter 0.9s cubic-bezier(0.22, 1.15, 0.36, 1) both;
}

/* Ripple rings (aligned to pill shape) — never steal clicks */
.whatsapp-float__ring {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 9999px;
    border: 2px solid rgba(37, 211, 102, 0.5);
    pointer-events: none !important;
    animation: whatsapp-ping 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.whatsapp-float__ring--delay {
    animation-delay: 1.25s;
}

.whatsapp-float {
    position: relative;
    z-index: 2;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.8125rem;
    line-height: 1.2;
    background: linear-gradient(125deg, #2fe077 0%, #25D366 35%, #128C7E 70%, #0d7a6e 100%);
    background-size: 200% 200%;
    animation: whatsapp-breathe 2.8s ease-in-out infinite, whatsapp-shimmer 6s ease infinite;
    border-radius: 9999px;
    padding: 0.65rem;
    box-shadow:
        0 4px 14px rgba(37, 211, 102, 0.45),
        0 2px 6px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.28);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, gap 0.25s ease, padding 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}
.whatsapp-float:hover {
    transform: scale(1.08) translateY(-2px);
    animation: none;
    box-shadow:
        0 10px 28px rgba(37, 211, 102, 0.5),
        0 4px 14px rgba(0, 0, 0, 0.35),
        0 0 24px rgba(37, 211, 102, 0.25);
    color: #fff;
}
.whatsapp-float:active {
    transform: scale(0.96) translateY(0);
}
.whatsapp-float__icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}
.whatsapp-float__icon i {
    display: block;
    animation: whatsapp-icon-wave 5s ease-in-out infinite;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}
.whatsapp-float:hover .whatsapp-float__icon i {
    animation: whatsapp-icon-wave 0.6s ease-in-out infinite;
}
.whatsapp-float__label {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    transition: max-width 0.3s ease, opacity 0.25s ease, margin 0.25s ease;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
/* Tablet+ */
@media (min-width: 640px) {
    .whatsapp-float {
        padding: 0.7rem 0.85rem 0.7rem 0.75rem;
        gap: 0.5rem;
    }
    .whatsapp-float__icon {
        width: 1.625rem;
        height: 1.625rem;
        font-size: 1.45rem;
    }
    .whatsapp-float__label {
        max-width: 12rem;
        opacity: 1;
        margin-right: 0.15rem;
    }
}
@media (min-width: 768px) {
    .whatsapp-float {
        padding: 0.85rem 1.1rem 0.85rem 0.95rem;
        font-size: 0.875rem;
    }
    .whatsapp-float__icon {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 1.55rem;
    }
}
@media (max-width: 639px) {
    .whatsapp-float:focus-visible .whatsapp-float__label,
    .whatsapp-float:hover .whatsapp-float__label {
        max-width: 11rem;
        opacity: 1;
        margin-left: 0.35rem;
        margin-right: 0.25rem;
    }
    .whatsapp-float:focus-visible,
    .whatsapp-float:hover {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
        gap: 0.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float-wrap {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .whatsapp-float__ring,
    .whatsapp-float__ring--delay {
        animation: none;
        opacity: 0;
    }
    .whatsapp-float {
        animation: none;
        background: linear-gradient(145deg, #25D366 0%, #128C7E 100%);
    }
    .whatsapp-float__icon i {
        animation: none;
    }
}
