/* ============================================
   SAHAJ CONNECT — Ultra-Premium Stylesheet
   Theme: Dark Blue + Gold + White
   Features: Glassmorphism, Dark/Light Mode,
             Smooth Animations, Premium Typography
   ============================================ */

/* ── CSS Custom Properties ── */
:root {
    --gold: #d4af37;
    --gold-light: #e8c547;
    --gold-glow: rgba(212, 175, 55, 0.25);
    --navy-900: #060e1a;
    --navy-800: #0a1628;
    --navy-700: #0f2341;
    --navy-600: #1a3a5c;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base Resets ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Inter', system-ui, sans-serif; overflow-x: hidden; }
::selection { background: var(--gold); color: var(--navy-900); }

/* ── Glassmorphism Utility ── */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-light {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.glass-gold {
    background: rgba(212, 175, 55, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

/* ── Gradient Text ── */
.gradient-text {
    background: linear-gradient(135deg, var(--gold), var(--gold-light), #fff5cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Animated Gradient Border ── */
.gradient-border {
    position: relative;
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--gold), transparent 50%, var(--gold));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}
.gradient-border:hover::before { opacity: 1; }

/* ══════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════ */
.navbar {
    transition: var(--transition);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
.nav-link {
    position: relative;
    transition: var(--transition);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
    transform: translateX(-50%);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ══════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════ */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* Animated mesh background */
.hero-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(212,175,55,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 20% 80%, rgba(26,58,92,0.3) 0%, transparent 60%);
    animation: meshFloat 12s ease-in-out infinite alternate;
}
@keyframes meshFloat {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.08) translate(-2%, 3%); }
}

/* Floating particles */
.hero-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.35);
    animation: particleRise linear infinite;
}
@keyframes particleRise {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* Floating animation for hero cards */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
@keyframes floatDelay {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
.animate-float       { animation: float 4s ease-in-out infinite; }
.animate-float-delay { animation: floatDelay 5s ease-in-out infinite 1s; }
.animate-float-slow  { animation: float 6s ease-in-out infinite 0.5s; }

/* ══════════════════════════════════════
   SERVICE CARDS (Glassmorphism)
   ══════════════════════════════════════ */
.service-card {
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.service-card:hover {
    transform: translateY(-6px);
}
.service-card:hover::after {
    transform: scaleX(1);
}

/* Service icon container */
.service-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* ══════════════════════════════════════
   PORTFOLIO CARDS
   ══════════════════════════════════════ */
.portfolio-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.portfolio-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(6,14,26,0.95) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
    display: flex; align-items: flex-end; padding: 1.5rem;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-card:hover img,
.portfolio-card:hover .portfolio-visual { transform: scale(1.06); }

/* ══════════════════════════════════════
   PRICING CARDS
   ══════════════════════════════════════ */
.pricing-card {
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: var(--transition);
    position: relative;
}
.pricing-card:hover { transform: translateY(-6px); }
.pricing-card.featured { z-index: 2; }
.pricing-badge {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy-900);
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ══════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════ */
.testimonial-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-card {
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}
.testimonial-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

/* ══════════════════════════════════════
   FAQ ACCORDION
   ══════════════════════════════════════ */
.faq-item {
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}
.faq-question {
    cursor: pointer;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: var(--transition);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem;
}
.faq-chevron {
    transition: transform 0.35s ease;
    flex-shrink: 0;
}
.faq-item.active .faq-chevron { transform: rotate(180deg); }

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */
.btn-gold {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy-900);
    font-weight: 700; font-size: 0.9rem;
    border-radius: 12px;
    border: none; cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px;
    background: transparent;
    font-weight: 600; font-size: 0.9rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    color: var(--gold);
}
.btn-outline:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: var(--gold);
    transform: translateY(-2px);
}

/* ══════════════════════════════════════
   FORM INPUTS
   ══════════════════════════════════════ */
.form-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}
.form-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* ══════════════════════════════════════
   FLOATING BUTTONS (WhatsApp + Call)
   ══════════════════════════════════════ */
.float-btn {
    position: fixed; z-index: 999;
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.float-btn:hover { transform: scale(1.1); }

.whatsapp-btn {
    bottom: 28px; right: 28px;
    background: #25D366;
    animation: floatPulse 2.5s ease-in-out infinite;
}
.call-btn {
    bottom: 96px; right: 28px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy-900);
}

@keyframes floatPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,0.3); }
    50% { box-shadow: 0 6px 30px rgba(37,211,102,0.55), 0 0 0 10px rgba(37,211,102,0.08); }
}

/* Scroll to Top */
.scroll-top-btn {
    position: fixed; bottom: 164px; right: 28px; z-index: 998;
    width: 44px; height: 44px;
    border-radius: 50%; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}
.scroll-top-btn.show { opacity: 1; visibility: visible; }
.scroll-top-btn:hover { transform: translateY(-3px); }

/* PWA Install App button */
.pwa-install-btn {
    position: fixed; bottom: 220px; right: 28px; z-index: 998;
    height: 44px; padding: 0 14px 0 12px;
    border-radius: 999px; border: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 0.82rem;
    transition: var(--transition), opacity .3s;
    animation: fadeInUp .4s;
    box-shadow: 0 6px 18px rgba(212,175,55,0.4);
}
.pwa-install-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(212,175,55,0.55); }
.pwa-install-btn.hidden { display: none !important; }
.pwa-install-label { white-space: nowrap; }
@media (max-width: 640px) {
    .pwa-install-btn { bottom: 230px; right: 20px; padding: 0 12px; }
    .pwa-install-label { display: none; }
    .pwa-install-btn { width: 44px; padding: 0; justify-content: center; }
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ══════════════════════════════════════
   SECTION UTILITIES
   ══════════════════════════════════════ */
.section-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ══════════════════════════════════════
   PRELOADER
   ══════════════════════════════════════ */
.preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--navy-900);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-ring {
    width: 48px; height: 48px;
    border: 3px solid rgba(212,175,55,0.12);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════
   TOAST NOTIFICATIONS
   ══════════════════════════════════════ */
.toast {
    position: fixed; bottom: 110px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 14px 28px; border-radius: 12px;
    font-size: 0.88rem; font-weight: 500;
    z-index: 9999; opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: rgba(5,150,105,0.9); color: #d1fae5; border: 1px solid #10b981; }
.toast.error   { background: rgba(185,28,28,0.9); color: #fecaca; border: 1px solid #ef4444; }

/* ══════════════════════════════════════
   MOBILE MENU OVERLAY
   ══════════════════════════════════════ */
.mobile-menu {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 2rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
    font-size: 1.4rem; text-decoration: none;
    font-family: 'Playfair Display', serif;
    transition: var(--transition);
}

/* ══════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ══════════════════════════════════════ */
.reveal {
    opacity: 0; transform: translateY(35px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left {
    opacity: 0; transform: translateX(-35px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right {
    opacity: 0; transform: translateX(35px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-scale {
    opacity: 0; transform: scale(0.92);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible, .reveal-left.visible,
.reveal-right.visible, .reveal-scale.visible {
    opacity: 1; transform: none;
}

/* ══════════════════════════════════════
   COUNTER ANIMATION
   ══════════════════════════════════════ */
.counter-num {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1;
}

/* ══════════════════════════════════════
   CTA BANNER
   ══════════════════════════════════════ */
.cta-banner {
    background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
    position: relative; overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(212,175,55,0.1), transparent 60%);
}

/* ══════════════════════════════════════
   HAPPY CUSTOMERS MARQUEE (right → left)
   ══════════════════════════════════════ */
.happy-marquee { position: relative; width: 100%; overflow: hidden; padding: 1rem 0; }
.happy-marquee-track {
    animation: happyScroll 50s linear infinite;
    will-change: transform;
}
.happy-marquee:hover .happy-marquee-track { animation-play-state: paused; }
@keyframes happyScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.happy-marquee-fade-left, .happy-marquee-fade-right {
    position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.happy-marquee-fade-left  { left: 0;  background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0)); }
.happy-marquee-fade-right { right: 0; background: linear-gradient(to left,  rgba(255,255,255,1), rgba(255,255,255,0)); }
.dark .happy-marquee-fade-left  { background: linear-gradient(to right, rgba(6,14,26,1), rgba(6,14,26,0)); }
.dark .happy-marquee-fade-right { background: linear-gradient(to left,  rgba(6,14,26,1), rgba(6,14,26,0)); }
.happy-card { cursor: pointer; }
#happyModal:not(.hidden) { display: flex; }
@media (prefers-reduced-motion: reduce) {
    .happy-marquee-track { animation-duration: 200s; }
}
@media (max-width: 640px) {
    .happy-marquee-fade-left, .happy-marquee-fade-right { width: 40px; }
    .happy-marquee-track { animation-duration: 40s; }
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 768px) {
    .pricing-card.featured { transform: none !important; }
    .btn-gold, .btn-outline { padding: 12px 24px; font-size: 0.85rem; }
}
@media (max-width: 480px) {
    .float-btn { width: 50px; height: 50px; }
    .whatsapp-btn { bottom: 20px; right: 16px; }
    .call-btn { bottom: 80px; right: 16px; }
    .scroll-top-btn { bottom: 140px; right: 16px; }
}
