/* ============================================
   VSP India - Main Stylesheet
   Virus Solution Provider - Design System
   ============================================ */

:root {
    --primary: #DC2626;
    --primary-light: #FEE2E2;
    --navy: #0F172A;
}

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
::selection { background-color: var(--primary); color: #FFFFFF; }

/* Background Colors */
.bg-red-gray { background-color: #FEF2F2; }
.bg-red-gray-50 { background-color: #FFF5F5; }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: 'Rubik', sans-serif; }
h1 span, h2 span, h3 span, h4 span, h5 span, h6 span { font-family: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Animations */
.animate-float { animation: float 6s ease-in-out infinite; }
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

details summary::-webkit-details-marker { display: none; }
a, button, input, select, textarea { transition: all 0.2s ease; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #475569;
    border-radius: 10px;
}
.nav-link:hover { color: var(--primary); }

/* ============================================
   BUTTONS - VSP Design Standard
   ============================================ */
.btn-primary {
    display: inline-flex; align-items: center; gap: 0.375rem;
    background: var(--primary); color: #fff; font-weight: 700;
    border-radius: 10px; box-shadow: 4px 4px 0px 0px var(--navy);
    border: 2px solid transparent;
    font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover {
    box-shadow: none; transform: translateY(4px) translateX(4px);
    border-color: #fff;
}
.btn-primary:active { transform: translateY(1px) translateX(1px); }

.btn-secondary {
    display: inline-flex; align-items: center; gap: 0.375rem;
    background: #fff; color: var(--navy); font-weight: 700;
    border-radius: 10px; box-shadow: 4px 4px 0px 0px var(--navy);
    border: 2px solid #CBD5E1;
    font-family: 'DM Sans', sans-serif;
}
.btn-secondary:hover {
    box-shadow: none; transform: translateY(4px) translateX(4px);
    border-color: var(--navy);
}
.btn-secondary:active { transform: translateY(1px) translateX(1px); }

.btn-secondary-dark {
    display: inline-flex; align-items: center; gap: 0.375rem;
    background: #fff; color: var(--navy); font-weight: 700;
    border-radius: 10px; box-shadow: 4px 4px 0px 0px var(--navy);
    border: 2px solid #475569;
    font-family: 'DM Sans', sans-serif;
}
.btn-secondary-dark:hover {
    box-shadow: none !important; transform: translateY(4px) translateX(4px);
    border-color: #fff !important;
}
.btn-secondary-dark:active { transform: translateY(1px) translateX(1px); }

/* ============================================
   HOVER EFFECTS
   ============================================ */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover { transform: translateY(-4px); }

/* ============================================
   3D BORDER CARDS
   ============================================ */
.card-3d {
    box-shadow: 4px 4px 0px 0px #0F172A !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.card-3d:hover {
    transform: translateY(-4px);
    box-shadow: 6px 6px 0px 0px #0F172A !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}
.cursor-blink { animation: blink 1s infinite; }

@keyframes shine-text {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.brand-shine {
    background: linear-gradient(90deg, #94A3B8 0%, #94A3B8 40%, #ffffff 50%, #94A3B8 60%, #94A3B8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine-text 4s linear infinite;
}
.brand-shine:hover { animation-duration: 1.5s; }

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-question {
    cursor: pointer; user-select: none;
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 1.25rem 1.5rem; text-align: left;
    font-family: 'Rubik', sans-serif; font-weight: 700;
    font-size: 0.9375rem; color: #1E293B;
    background: #fff; border: none;
}
.faq-question::after {
    content: '';
    width: 0.625rem; height: 0.625rem;
    border-right: 2px solid #94A3B8; border-bottom: 2px solid #94A3B8;
    transform: rotate(45deg); transition: transform 0.3s ease;
    flex-shrink: 0; margin-left: 1rem; margin-top: -0.1875rem;
}
.faq-question[aria-expanded="true"]::after { transform: rotate(-135deg); }
.faq-answer { display: none; }
.faq-answer.open { display: block; }

/* ============================================
   FORM STYLES
   ============================================ */
.form-input {
    width: 100%; height: 2.75rem; padding: 0 1rem;
    font-family: 'DM Sans', sans-serif; font-size: 0.9375rem;
    color: #1E293B; background-color: #F8FAFC;
    border: 2px solid #E2E8F0; border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    background-color: #FFFFFF;
}
.form-input.error {
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.form-error-msg {
    display: none; font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem; color: #DC2626; margin-top: 0.25rem; line-height: 1.4;
}
.form-error-msg.visible { display: block; }
.form-submit-error {
    display: none; background-color: #FEF2F2; border: 1px solid #FECACA;
    border-radius: 10px; padding: 0.625rem 1rem;
    font-family: 'DM Sans', sans-serif; font-size: 0.8125rem;
    color: #DC2626; text-align: center; margin-top: 0.5rem;
}
.form-submit-error.visible { display: block; }
.form-submit-success {
    display: none; background-color: #F0FDF4; border: 1px solid #BBF7D0;
    border-radius: 10px; padding: 0.625rem 1rem;
    font-family: 'DM Sans', sans-serif; font-size: 0.8125rem;
    color: #15803D; text-align: center; margin-top: 0.5rem;
}
.form-submit-success.visible { display: block; }
.btn-submit-loading { opacity: 0.7; cursor: not-allowed; pointer-events: none; }

/* Form Icon Wrapper */
.input-icon-wrap { position: relative; }
.input-icon-wrap .input-icon {
    position: absolute; left: 0.875rem; top: calc(50% + 0px);
    transform: translateY(-50%);
    color: #94A3B8; pointer-events: none; z-index: 1;
}
.input-icon-wrap input,
.input-icon-wrap select,
.input-icon-wrap textarea {
    padding-left: 2.75rem;
    font-family: 'DM Sans', sans-serif;
}

/* Honeypot (spam protection) */
.honeypot-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ============================================
   FAB BUTTONS
   ============================================ */
.fab-container {
    position: fixed; bottom: 28px; z-index: 9999;
    display: flex; flex-direction: column; gap: 12px;
}
.fab-container.fab-right { right: 28px; }
.fab-container.fab-left { left: 28px; }

.fab-btn {
    display: flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 50%;
    text-decoration: none; color: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative; overflow: hidden; border: none; cursor: pointer;
}
.fab-btn::after {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-20deg); animation: fabShine 3s infinite;
}
@keyframes fabShine {
    0% { left: -100%; }
    60%, 100% { left: 150%; }
}
.fab-btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.fab-btn:active { transform: translateY(0) scale(0.95); }

.fab-call { background: linear-gradient(135deg, #0ea5e9, #0369a1); }
.fab-whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); }

@keyframes fabPulse {
    0%, 100% { box-shadow: 0 4px 24px rgba(0,0,0,0.3), 0 0 0 0 rgba(37,211,102,0.5); }
    70% { box-shadow: 0 4px 24px rgba(0,0,0,0.3), 0 0 0 12px rgba(37,211,102,0); }
}
.fab-whatsapp { animation: fabPulse 2.5s infinite; }

@keyframes fabPulseCall {
    0%, 100% { box-shadow: 0 4px 24px rgba(0,0,0,0.3), 0 0 0 0 rgba(220,38,38,0.5); }
    70% { box-shadow: 0 4px 24px rgba(0,0,0,0.3), 0 0 0 12px rgba(220,38,38,0); }
}
.fab-call { animation: fabPulseCall 2.5s infinite; animation-delay: 1.2s; }

@media(max-width: 640px) {
    .fab-container { bottom: 20px; }
    .fab-container.fab-right { right: 16px; }
    .fab-container.fab-left { left: 16px; }
    .fab-btn { width: 50px; height: 50px; }
}

/* ============================================
   SERVICE PAGE HERO
   ============================================ */
.service-hero {
    background: linear-gradient(135deg, #FEF2F2 0%, #FFFFFF 100%);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    font-size: 0.8125rem;
    color: #64748B;
}
.breadcrumb a {
    color: #64748B;
    text-decoration: none;
}
.breadcrumb a:hover {
    color: var(--primary);
    text-decoration: underline;
}
.breadcrumb .separator {
    margin: 0 0.5rem;
    color: #94A3B8;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media print {
    .fab-container,
    .no-print { display: none !important; }
}
