/*
===============================================
MIRACLE PAINTS — MAIN STYLESHEET
Premium Dark Theme · Glassmorphism · 2026
===============================================
*/

/* ─── Reset ───────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #141b2d 50%, #0f1420 100%);
    background-attachment: fixed;
    color: #e5e7eb;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* ─── Scrollbar ──────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #0a0e27 0%, #141b2d 100%);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1, #38bdf8);
    border-radius: 8px;
    border: 2px solid rgba(10,14,39,0.8);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #60a5fa, #a78bfa);
}
* { scrollbar-width: thin; scrollbar-color: #6366f1 #0a0e27; }

/* ─── Selection ──────────────────────────── */
::selection { background: rgba(59,130,246,0.35); color: #fff; }
::-moz-selection { background: rgba(59,130,246,0.35); color: #fff; }

/* ─── Focus ──────────────────────────────── */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
    outline: 2px solid #4a90d9;
    outline-offset: 2px;
}

/* ─── Glassmorphism ──────────────────────── */
.glassmorphism {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 8px 32px rgba(31,38,135,0.3);
}
.glassmorphism-dark {
    background: rgba(10,14,39,0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.glassmorphism-card {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 24px rgba(31,38,135,0.18);
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}
.glassmorphism-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}
.glassmorphism-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 12px 40px rgba(31,38,135,0.35);
    transform: translateY(-5px);
}

/* ─── Gradient text ──────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-purple {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.glow-text {
    text-shadow: 0 0 20px rgba(59,130,246,0.5), 0 0 40px rgba(139,92,246,0.3);
}

/* ─── Navbar ─────────────────────────────── */
nav { transition: all 0.3s ease; }
nav.scrolled {
    background: rgba(10,14,39,0.96) !important;
    backdrop-filter: blur(24px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.nav-link {
    color: #9ca3af;
    font-weight: 500;
    font-size: 0.875rem;
    position: relative;
    transition: color 0.2s ease;
    text-decoration: none;
    padding-bottom: 2px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #38bdf8);
    transition: width 0.3s ease;
    border-radius: 2px;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #9ca3af;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}
.mobile-nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

/* Mobile menu */
#mobile-menu { transition: all 0.3s ease-in-out; max-height: 0; overflow: hidden; }
#mobile-menu.active { max-height: 560px; }

/* ─── Hero Orbs ──────────────────────────── */
.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
    will-change: transform;
}
.orb-blue {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(99,102,241,0.8) 0%, rgba(99,102,241,0.2) 50%, transparent 100%);
    top: 10%; left: 10%;
}
.orb-purple {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(56,189,248,0.8) 0%, rgba(56,189,248,0.2) 50%, transparent 100%);
    top: 40%; right: 15%;
}
.orb-pink {
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(167,139,250,0.7) 0%, rgba(167,139,250,0.2) 50%, transparent 100%);
    bottom: 20%; left: 30%;
}
@media (max-width: 768px) {
    .orb-blue { width: 280px; height: 280px; }
    .orb-purple { width: 320px; height: 320px; }
    .orb-pink { width: 260px; height: 260px; }
}

/* ─── Hero pulse glow on primary CTA ──────── */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(59,130,246,0.4), 0 0 40px rgba(139,92,246,0.2); }
    50% { box-shadow: 0 0 35px rgba(59,130,246,0.65), 0 0 65px rgba(139,92,246,0.4); }
}

/* ─── Client logo strip ──────────────────── */
.client-logo {
    opacity: 0.5;
    color: #9ca3af;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    text-align: center;
    user-select: none;
    animation: float-subtle 3s ease-in-out infinite;
}
.client-logo:hover {
    opacity: 1;
    color: #fff;
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(255,255,255,0.3), 0 0 40px rgba(59,130,246,0.25);
}
.client-logo:nth-child(1) { animation-delay: 0s; }
.client-logo:nth-child(2) { animation-delay: 0.4s; }
.client-logo:nth-child(3) { animation-delay: 0.8s; }
.client-logo:nth-child(4) { animation-delay: 1.2s; }
@keyframes float-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ─── Audience tabs ──────────────────────── */
.audience-tab {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.04);
    color: #9ca3af;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}
.audience-tab:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.audience-tab.active-tab {
    background: linear-gradient(135deg, #6366f1, #38bdf8);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(59,130,246,0.4);
}

/* ─── Product cards ──────────────────────── */
.product-card { transition: all 0.35s cubic-bezier(0.4,0,0.2,1); }
.product-card.hidden-card { display: none; }
.featured-card {
    border-color: rgba(74,144,217,0.35) !important;
    box-shadow: 0 0 30px rgba(74,144,217,0.12);
}
.feature-bullet {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 0.8125rem;
}
.feature-bullet::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #38bdf8);
    flex-shrink: 0;
}
.learn-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s ease;
}
.learn-more-link:hover { color: #93c5fd; }

/* ─── Gallery ────────────────────────────── */
.gallery-item {
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
.gallery-item:hover {
    transform: translateY(-6px);
    border-color: rgba(139,92,246,0.4) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.gallery-item .overflow-hidden img {
    transition: transform 0.5s ease;
}
.gallery-item:hover .overflow-hidden img {
    transform: scale(1.06);
}

/* ─── Contact Form ───────────────────────── */
.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #9ca3af;
    margin-bottom: 0.375rem;
}
.form-input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 0.625rem;
    color: #e5e7eb;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.form-input::placeholder { color: #4b5563; }
.form-input:focus {
    outline: none;
    border-color: rgba(74,144,217,0.6);
    background: rgba(255,255,255,0.07);
    box-shadow: 0 0 0 3px rgba(74,144,217,0.12);
}
select.form-input option {
    background: #141b2d;
    color: #e5e7eb;
}

/* Form feedback states */
#form-feedback {
    padding: 0.75rem 1rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
}
#form-feedback.success {
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.4);
    color: #86efac;
}
#form-feedback.error {
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.4);
    color: #fca5a5;
}

/* ─── WhatsApp float button ──────────────── */
.whatsapp-float-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.4);
    animation: whatsapp-pulse 2.5s ease-in-out infinite;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37,211,102,0.7);
    animation: none;
}
@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 4px 24px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 24px rgba(37,211,102,0.6), 0 0 0 12px rgba(37,211,102,0); }
}
.whatsapp-tooltip {
    position: absolute;
    right: 68px;
    background: rgba(10,14,39,0.95);
    border: 1px solid rgba(37,211,102,0.4);
    color: #86efac;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    transition: all 0.25s ease;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
}
.whatsapp-float-btn:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* ─── WhatsApp CTA (contact section) ──────── */
.whatsapp-cta { cursor: pointer; text-decoration: none; }

/* ─── Footer links ───────────────────────── */
.footer-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #6b7280;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}
.footer-link::before {
    content: '›';
    color: #4a90d9;
    font-size: 1rem;
    line-height: 1;
}
.footer-link:hover {
    color: #fff;
    transform: translateX(3px);
}

/* ─── Responsive typography ──────────────── */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    body { font-size: 14px; }
    .orb-blue, .orb-purple, .orb-pink { filter: blur(50px); opacity: 0.25; }
    .whatsapp-float-btn { bottom: 20px; right: 16px; width: 52px; height: 52px; }
}
@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}

/* ─── Animations ─────────────────────────── */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.loading-spinner {
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #6366f1;
    border-radius: 50%;
    width: 24px; height: 24px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ─── Divider ────────────────────────────── */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.5), transparent);
}

/* ─── Glow effects ───────────────────────── */
.glow-blue  { box-shadow: 0 0 20px rgba(59,130,246,0.4), 0 0 40px rgba(59,130,246,0.2); }
.glow-purple{ box-shadow: 0 0 20px rgba(139,92,246,0.4), 0 0 40px rgba(139,92,246,0.2); }
