/* Global Custom Styles for Dhimahi Plastic Surgery Hospital */

/* Core Defaults */
body { 
    background-color: #f8fafc; /* slate-50 */
    color: #334155; 
    overflow-x: hidden; 
    transition: background-color 0.3s ease, color 0.3s ease;
}
.dark body {
    background-color: #020617; /* slate-950 */
    color: #cbd5e1; /* slate-300 */
}
.dark .bg-grid-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0V0zm1 1h38v38H1V1z' fill='%23ffffff' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5, h6, .font-display { 
    font-family: 'Outfit', sans-serif; 
    color: #0f172a; 
    transition: color 0.3s ease; 
}
.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6, .dark .font-display { 
    color: #ffffff; 
}

/* Custom Scrollbar - Dual Mode */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f8fafc; }
.dark ::-webkit-scrollbar-track { background: #020617; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.dark ::-webkit-scrollbar-thumb { background: #334155; }
::-webkit-scrollbar-thumb:hover { background: #0d9488; }

/* SaaS Glassmorphism Elements - Dual Mode */
.glass-pill {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.05);
}
.dark .glass-pill {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.3);
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}
.dark .glass-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}

/* Glowing Orbs for Tech Feel */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: float 10s infinite ease-in-out alternate;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -50px) scale(1.1); }
}

/* SaaS Buttons - Dark Mode */
.btn-saas {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-saas::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s;
}
.btn-saas:hover::after { left: 100%; }
.btn-saas:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(13, 148, 136, 0.6);
}

.btn-outline-saas {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #cbd5e1;
    color: #0f172a;
    transition: all 0.3s ease;
}
.dark .btn-outline-saas {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid #334155;
    color: #f8fafc;
}
.btn-outline-saas:hover {
    border-color: #14b8a6;
    color: #14b8a6;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}
.dark .btn-outline-saas:hover {
    background: rgba(20, 184, 166, 0.05);
}

/* GSAP Initial States */
.reveal, .reveal-up, .bento-item { opacity: 0; transform: translateY(40px); }
.reveal-scale { opacity: 0; transform: scale(0.95); }

/* Bento Grid Layouts */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}
.bento-span-4 { grid-column: span 12; }
.bento-span-8 { grid-column: span 12; }
@media (min-width: 768px) {
    .bento-span-4 { grid-column: span 5; }
    .bento-span-8 { grid-column: span 7; }
}
@media (min-width: 1024px) {
    .bento-span-4 { grid-column: span 4; }
    .bento-span-8 { grid-column: span 8; }
}

/* Swiper Adjustments for Responsive Video */
.swiper-slide { 
    width: 92vw; 
    max-width: 700px;
}
@media (min-width: 768px) {
    .swiper-slide { width: 75vw; }
}
.swiper-pagination-bullet { background: rgba(0, 0, 0, 0.2); }
.dark .swiper-pagination-bullet { background: rgba(255, 255, 255, 0.2); }
.swiper-pagination-bullet-active { background: #14b8a6 !important; }

.swiper-button-next, .swiper-button-prev {
    color: #14b8a6 !important; 
    background: rgba(255, 255, 255, 0.8); 
    backdrop-filter: blur(8px);
    width: 48px !important;
    height: 48px !important;
    border-radius: 50%;
    border: 1px solid rgba(20, 184, 166, 0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.dark .swiper-button-next, .dark .swiper-button-prev {
    background: rgba(2, 6, 23, 0.8); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    background: rgba(20, 184, 166, 0.1);
    transform: scale(1.05);
}
.dark .swiper-button-next:hover, .dark .swiper-button-prev:hover {
    background: rgba(20, 184, 166, 0.2);
    color: #14b8a6 !important;
}
.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 1.2rem !important;
    font-weight: 800;
}

@media (max-width: 768px) {
    .swiper-button-next, .swiper-button-prev {
        display: none !important;
    }
}

.ig-overlay { transition: all 0.3s ease; opacity: 0; }
.ig-item:hover .ig-overlay { opacity: 1; backdrop-filter: blur(4px); }

/* Floating Animation for WhatsApp */
@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-float { animation: pulse-whatsapp 2s infinite; }

/* Sticky Emergency CTA Styles */
.sticky-emergency-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.85); /* Premium Slate-900 glassmorphism */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: white;
    z-index: 100;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    border-top: 1.5px solid rgba(20, 184, 166, 0.5); /* Glowing teal top border */
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}
.sticky-emergency-cta h4 {
    color: #ffffff;
}

@media (max-width: 768px) {
    .sticky-emergency-cta {
        padding: 0.5rem 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Stepper (Wound Progression) Styling */
.progression-step {
    position: relative;
    flex: 1;
}
.progression-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 2rem; /* Aligned with the center of the desktop circle (64px) */
    right: -10%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #ef4444; /* red-500 */
    font-weight: bold;
    z-index: 10;
}
@media (max-width: 768px) {
    .progression-step:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 24px; /* Center of mobile circle (w-12 = 48px) */
        top: 48px;  /* Bottom of mobile circle */
        bottom: -36px; /* Stretches through the gap-8 (32px) to the top of the next circle with overlap */
        width: 2px;
        border-left: 2px dashed #ef4444; /* red-500 dashed line */
        transform: translateX(-50%);
        z-index: 0;
    }
}

/* Floating Opinion Widget styling */
.opinion-widget {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(20, 184, 166, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.dark .opinion-widget {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(20, 184, 166, 0.2);
}
.opinion-widget:hover {
    transform: translateY(-5px);
    border-color: #14b8a6;
}
