html {
    scroll-behavior: smooth;
}

/* Shared Global Styles */
body{
    font-family: sans-serif;
}

.glass{
background:rgba(255,255,255,.8);
backdrop-filter:blur(10px);
}

.fade-up{
opacity:0;
transform:translateY(40px);
transition:.6s;
}

.fade-up.show{
opacity:1;
transform:none;
}


/* ===== GLOBAL RAINBOW SYNC ===== */
:root {
    --rainbow-gradient: linear-gradient(
        90deg,
        #2563eb,
        #22c55e,
        #eab308,
        #f97316,
        #f43f5e,
        #a855f7,
        #2563eb
    );
}

.rainbow-gradient, .rainbow-text {
    background: var(--rainbow-gradient);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbowMove 12s linear infinite; /* Slower, more elegant move */
}

@keyframes rainbowMove {
    from { background-position: 0% 50%; }
    to { background-position: 400% 50%; }
}

.logo-v {
    width: 32px;
    height: 32px;
    background: var(--rainbow-gradient);
    background-size: 300% 300%;
    animation: rainbowMove 8s linear infinite;
    clip-path: polygon(20% 0%, 0% 0%, 50% 100%, 100% 0%, 80% 0%, 50% 70%);
}

.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
}

/* Global Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* Page Loader - Improved & Smoother */
#loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

/* First-Time Welcome Overlay */
.welcome-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, rgba(37, 99, 235, 0.6), #020617 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.welcome-overlay.show {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.welcome-card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 32px;
    padding: 2.5rem 2rem;
    max-width: 560px;
    width: 90%;
    text-align: center;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.25);
    backdrop-filter: blur(20px);
    animation: entranceScale 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.welcome-button {
    background: #2563eb;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.95rem 2.5rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.welcome-button:hover {
    transform: translateY(-3px);
    background: #1d4ed8;
    box-shadow: 0 24px 60px rgba(37, 99, 235, 0.8);
}

/* Custom V Logo Styling */
.logo-v-box {
    background: transparent;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-v-text {
    font-size: 24px;
    font-weight: 900;
    font-family: 'Inter', sans-serif;
    transform: skewX(-5deg);
    background: var(--rainbow-gradient);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbowMove 12s linear infinite;
}

.group:hover .logo-v-box {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 15px 30px -10px rgba(124, 58, 237, 0.5);
}

/* Enhanced Magnetic Button Animation */
.btn-magnetic {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-magnetic:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.4);
}

/* Float Animation for Images */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}
.entrance-scale {
    animation: entranceScale 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes entranceScale {
    0% { transform: scale(1.2); opacity: 0; filter: blur(20px); }
    100% { transform: scale(1); opacity: 1; filter: blur(0); }
}

.entrance-slide-up {
    animation: entranceSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes entranceSlideUp {
    0% { transform: translateY(100px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Staggered entrance for hero elements */
.hero-stagger-1 { animation-delay: 0.1s; }
.hero-stagger-2 { animation-delay: 0.2s; }
.hero-stagger-3 { animation-delay: 0.3s; }
.hero-stagger-4 { animation-delay: 0.4s; }

/* New: Hover Glow Effect */
.hover-glow {
    transition: all 0.4s ease;
}
.hover-glow:hover {
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.15);
    transform: translateY(-5px);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hover Animations */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hover-lift:hover {
    transform: translateY(-8px);
}

/* Premium WhatsApp FAB */
.whatsapp-fab {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.3rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 18px 40px rgba(22, 163, 74, 0.6);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.whatsapp-fab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-fab-label {
    display: none;
}

@media (min-width: 640px) {
    .whatsapp-fab-label {
        display: inline-block;
    }
}

.whatsapp-fab::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    border: 1px solid rgba(187, 247, 208, 0.35);
    opacity: 0.8;
}

.whatsapp-fab-pulse {
    position: absolute;
    inset: -14px;
    border-radius: 999px;
    border: 2px solid rgba(74, 222, 128, 0.4);
    opacity: 0.4;
    animation: pulseRing 2.3s infinite ease-out;
    pointer-events: none;
}

.whatsapp-fab:hover {
    transform: translateY(-3px) scale(1.03);
    background: linear-gradient(135deg, #16a34a, #15803d);
    box-shadow: 0 24px 60px rgba(22, 163, 74, 0.8);
}

@keyframes pulseRing {
    0% {
        opacity: 0.4;
        transform: scale(1);
    }
    70% {
        opacity: 0;
        transform: scale(1.25);
    }
    100% {
        opacity: 0;
        transform: scale(1.4);
    }
}

/* Extra card hover motion */
.tilt-hover {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.tilt-hover:hover {
    transform: translateY(-8px) rotate3d(1, -1, 0, 4deg);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

/* Shrink header on scroll */
.header-scrolled {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(16px);
}

/* Rainbow Border */
.rainbow-border {
    position: relative;
    border-radius: 2rem;
    padding: 1px;
    background: linear-gradient(90deg, #2563eb, #f43f5e, #a855f7, #2563eb);
    background-size: 300% 300%;
    animation: rainbow 4s linear infinite;
}

/* Input Focus Glow */
input:focus, textarea:focus {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
}