/* ============================================
   Konekta Service - Main Stylesheet
   ============================================ */

/* Base */
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Inter', sans-serif; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; }

/* Floating WhatsApp Button */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

/* CTA Pulse */
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.5); }
    50% { box-shadow: 0 0 0 12px rgba(249, 115, 22, 0); }
}
.cta-pulse { animation: ctaPulse 2s infinite; }

/* Fade-in utility */
.fade-section { opacity: 0; transform: translateY(30px); }

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-slide.active {
    opacity: 1;
    position: relative;
    min-height: 100vh;
}
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}
.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}
.hero-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Gallery lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
}
.lightbox-overlay.active {
    display: flex;
}
.lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Rich text content styling */
.rich-content h2 { font-size: 1.5rem; font-weight: 700; margin: 1.5rem 0 0.75rem; color: #111827; }
.rich-content h3 { font-size: 1.25rem; font-weight: 600; margin: 1.25rem 0 0.5rem; color: #1f2937; }
.rich-content p { margin-bottom: 1rem; line-height: 1.75; color: #4b5563; }
.rich-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.rich-content ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1rem; }
.rich-content li { margin-bottom: 0.25rem; color: #4b5563; }
.rich-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1rem 0; }
.rich-content a { color: #1E3A8A; text-decoration: underline; }
.rich-content blockquote {
    border-left: 4px solid #38BDF8;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    background: #F1F5F9;
    border-radius: 0 8px 8px 0;
}

/* Logo sizing */
.navbar-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.footer-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Invoice print styles */
@media print {
    .no-print { display: none !important; }
    body { background: white; }
    .invoice-container { box-shadow: none !important; }
}

/* Pagination */
.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}
.pagination a {
    background: #F1F5F9;
    color: #374151;
}
.pagination a:hover {
    background: #1E3A8A;
    color: white;
}
.pagination .active {
    background: #1E3A8A;
    color: white;
}

/* Service card image */
.service-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 4/3;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}
.gallery-item:hover .overlay {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 8px;
    }
    .hero-dots {
        bottom: 60px;
    }
}
