/* Shared Premium Styles for 3Dselfiy */

:root {
    --primary: #f8cc46; /* Matching logo yellow */
    --primary-alt: #eeb51c;
    --background-light: #ffffff;
    --background-dark: #0a0a0a;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --accent: #231d0f; /* From logo black */
    
    /* Rich UI Tokens */
    --g-honeydew: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    --g-sunset: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    --g-slate: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --glow-primary: 0 0 20px rgba(248, 204, 70, 0.3);
    --shadow-rich: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02), 0 20px 25px -5px rgba(0, 0, 0, 0.03);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.elegant-shimmer {
    background: linear-gradient(90deg, transparent, rgba(248, 204, 70, 0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

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

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

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Material Symbols Rendering Fix */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none !important;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.fill-1 {
    font-variation-settings: 'FILL' 1;
}

/* Custom Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes pulse-soft {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.animate-pulse-soft {
    animation: pulse-soft 3s ease-in-out infinite;
}

/* Glassmorphism 2.0 */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-rich);
}

.dark .glass {
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Rich Card System */
.rich-card {
    background: white;
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: var(--shadow-rich);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.dark .rich-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.rich-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.12), 0 18px 36px -18px rgba(0, 0, 0, 0.1);
    border-color: rgba(248, 204, 70, 0.2);
}

.rich-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-alt));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rich-card:hover::before {
    opacity: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

.dark ::-webkit-scrollbar-track {
    background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Page Transitions */
.page-transition-enter {
    opacity: 0;
    transform: translateY(10px);
}

.page-transition-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 400ms, transform 400ms;
}

/* Decorative Accents */
.blur-accent {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    border-radius: 50%;
}

.primary-blur {
    background: var(--primary);
}

/* FAQ Accordion */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-item.active .faq-content {
    max-height: 500px;
    padding-bottom: 2rem;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Modal Animations */
#product-modal.active {
    display: flex;
}

#product-modal.active .backdrop-blur-sm {
    opacity: 1;
}

#product-modal.active .relative.translate-y-20 {
    transform: translateY(0);
    opacity: 1;
}

/* Scrollbar for modal content */
#product-modal .overflow-y-auto::-webkit-scrollbar {
    width: 4px;
}

#product-modal .overflow-y-auto::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.dark #product-modal .overflow-y-auto::-webkit-scrollbar-thumb {
    background: #334155;
}

/* Success Message Animation */
@keyframes scaleIn {
    0% { opacity: 0; transform: scale(0.9) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.animate-scale-in {
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Loader Spinner Fix */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===================================================================
   Phase 2: Sitewide Premium Page Transitions
   Applies to all public pages that load styles.css.
   Admin pages load admin-styles.css only - unaffected.
   =================================================================== */

/* Page arrival: body fades + rises in on every load */
@keyframes ptArrival {
    from { opacity: 0; }
    to   { opacity: 1; }
}
body {
    animation: ptArrival 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Navigation exit overlay - injected by script.js */
#pt-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--background-light);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.dark #pt-overlay {
    background: var(--background-dark);
}
#pt-overlay.pt-exit {
    opacity: 1;
    pointer-events: all;
}

/* Preloader (injected by script.js) */
#pt-preloader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: var(--background-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}
.dark #pt-preloader { background: var(--background-dark); }
#pt-preloader.pt-hide {
    opacity: 0;
    visibility: hidden;
}
.pt-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    animation: ptLogoIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.pt-logo img {
    height: 44px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(248,204,70,0.25);
}
.pt-logo-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    color: #231d0f;
}
.dark .pt-logo-name { color: #ffffff; }
@keyframes ptLogoIn {
    from { opacity: 0; transform: scale(0.88) translateY(8px); filter: blur(4px); }
    to   { opacity: 1; transform: scale(1)    translateY(0);   filter: blur(0);   }
}

/* Three-dot loading indicator */
.pt-dots {
    display: flex;
    gap: 7px;
    animation: ptLogoIn 0.6s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.pt-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    display: block;
    animation: ptDot 1.1s infinite ease-in-out;
}
.pt-dots span:nth-child(2) { animation-delay: 0.16s; }
.pt-dots span:nth-child(3) { animation-delay: 0.32s; }
@keyframes ptDot {
    0%, 80%, 100% { transform: scale(0.5); opacity: 0.3; }
    40%           { transform: scale(1.1); opacity: 1; }
}

/* =====================================================
   Zoho SalesIQ - position fix
   Zoho injects <div data-id="zsalesiq"> with position:relative.
   Override to fixed so the bubble stays in the viewport.
   ===================================================== */

[data-id="zsalesiq"] {
    position: fixed !important;
    bottom: 24px !important;
    right:  24px !important;
    left:   auto !important;
    top:    auto !important;
    z-index: 2147483647 !important;
}

/* Float animation on the inner button */
[data-id="zsalesiq"] .zsiq-float,
[data-id="zsalesiq"] #zsiq_float {
    animation: zsiqFloat 3s ease-in-out infinite;
}

@keyframes zsiqFloat {
    0%,  100% { transform: translateY(0px);  }
    50%       { transform: translateY(-7px); }
}

/* =====================================================
   CORPORATE REDESIGN - Premium Dark Luxury Styles
   ===================================================== */

/* ---------- Hero Section Dark Radial Glows ---------- */
.hero-dark {
    background: #0a0a0f;
    position: relative;
    overflow: hidden;
}
.hero-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 30% 50%, rgba(201,163,82,0.13) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 75% 40%, rgba(99,102,241,0.10) 0%, transparent 65%);
    pointer-events: none;
}

/* ---------- Glassmorphism Floating Cards ---------- */
.glass-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    transition: transform 0.3s ease, background 0.3s ease;
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.11);
    transform: translateY(-3px);
}

/* ---------- Product Cards - Image Overlay & Hover ---------- */
.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease;
}
.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(201,163,82,0.18);
}
.product-card .card-img-wrap {
    position: relative;
    overflow: hidden;
}
.product-card .card-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        transparent 50%,
        rgba(201,163,82,0.18) 100%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
}
.product-card:hover .card-img-wrap::after {
    opacity: 1;
}
.product-card .card-img-wrap img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .card-img-wrap img {
    transform: scale(1.07);
}

/* ---------- Promise / Trust Pillar Cards ---------- */
.promise-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.promise-card:hover {
    background: rgba(201, 163, 82, 0.08);
    border-color: rgba(201, 163, 82, 0.3);
    transform: translateY(-4px);
}
.promise-card .promise-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(201,163,82,0.25) 0%, rgba(201,163,82,0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: background 0.3s ease;
}
.promise-card:hover .promise-icon {
    background: linear-gradient(135deg, rgba(201,163,82,0.4) 0%, rgba(201,163,82,0.15) 100%);
}

/* ---------- Timeline (About Page) ---------- */
.timeline-item {
    position: relative;
    padding-left: 2.5rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 52px;
    bottom: -24px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(201,163,82,0.5), transparent);
}
.timeline-item:last-child::before {
    display: none;
}
.timeline-dot {
    position: absolute;
    left: 0;
    top: 36px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a352, #e8c96a);
    box-shadow: 0 0 0 4px rgba(201,163,82,0.2), 0 0 16px rgba(201,163,82,0.35);
}

/* ---------- Urgency Pulse Badge ---------- */
.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 9999px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #34d399;
    letter-spacing: 0.03em;
}
.urgency-badge .pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    animation: urgencyPulse 1.8s ease-in-out infinite;
}
@keyframes urgencyPulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(52,211,153,0.5); }
    50%       { opacity: 0.85; transform: scale(1.15); box-shadow: 0 0 0 5px rgba(52,211,153,0); }
}

/* ---------- Stats / Counter Strip ---------- */
.stat-strip {
    background: linear-gradient(135deg, rgba(201,163,82,0.08) 0%, rgba(99,102,241,0.05) 100%);
    border-top: 1px solid rgba(201,163,82,0.15);
    border-bottom: 1px solid rgba(201,163,82,0.15);
}
.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
}
.stat-item .stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #c9a352, #f0d98a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}
.stat-item .stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ---------- Dark Gallery Grid ---------- */
.gallery-dark {
    background: #0d0d12;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.gallery-item:hover::after {
    opacity: 1;
}
.gallery-item img {
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-item:hover img {
    transform: scale(1.08);
}

/* ---------- Testimonial Cards ---------- */
.testimonial-card {
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.12);
}

/* ---------- Section Entrance Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.animate-delay-100 { animation-delay: 0.10s; }
.animate-delay-200 { animation-delay: 0.20s; }
.animate-delay-300 { animation-delay: 0.30s; }
.animate-delay-400 { animation-delay: 0.40s; }

/* ---------- Gold Gradient Text Utility ---------- */
.text-gold-gradient {
    background: linear-gradient(135deg, #c9a352 0%, #f0d98a 50%, #c9a352 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: goldShimmer 4s ease-in-out infinite;
}
@keyframes goldShimmer {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

/* ---------- Primary CTA Button - Shine Effect ---------- */
.btn-primary-shine {
    position: relative;
    overflow: hidden;
}
.btn-primary-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
}
.btn-primary-shine:hover::after {
    left: 150%;
}

/* ---------- Scrollbar Styling (Webkit) ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb {
    background: rgba(201,163,82,0.4);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(201,163,82,0.65); }
