/* =========================================================
   KEMAS IT SOLUTIONS - CUSTOM STYLES
   Dipadukan dengan Tailwind CSS Utility Classes
========================================================= */

/* --- BASE & UTILITIES --- */
html {
    scroll-padding-top: 85px; /* Memberi jarak saat scroll ke ID agar tidak tertutup navbar fixed */
    scroll-behavior: smooth;
}
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
::selection { background: #2563EB; color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #F8FAFC; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #2563EB, #3B82F6);
    border-radius: 10px;
    border: 2px solid #F8FAFC;
}
.shadow-soft { box-shadow: 0 10px 40px -10px rgba(37,99,235,0.12); }
.shadow-card { box-shadow: 0 4px 24px -6px rgba(15,23,42,0.06); }

/* --- LOADER (PRELOADER) --- */
.loader-glow {
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    animation: glowPulse 2.5s ease-in-out infinite;
}
.animate-ping-slow {
    animation: ping 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: .6; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* --- BACKGROUNDS & PATTERNS --- */
.bg-grid {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(0,0,0,0.04) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(0,0,0,0.04) 1px, transparent 1px);
}
.bg-grid-white {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255,255,255,0.1) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255,255,255,0.1) 1px, transparent 1px);
}
.aurora-bg {
    background: linear-gradient(125deg, #DBEAFE 0%, #FFFFFF 40%, #E0F2FE 80%, #DBEAFE 100%);
    background-size: 200% 200%;
    animation: aurora 14s ease infinite;
    filter: blur(80px);
}
.aurora-bg-dark {
    background: linear-gradient(125deg, #1e293b 0%, #0f172a 40%, #020617 80%, #1e293b 100%);
    background-size: 200% 200%;
    animation: aurora 14s ease infinite;
    filter: blur(80px);
}
@keyframes aurora {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* BLOB BACKGROUND HERO */
.blob {
    position: absolute;
    filter: blur(60px);
    z-index: 0;
    opacity: 0.4;
    border-radius: 50%;
    animation: floatBlob 10s ease-in-out infinite;
}
.blob-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: #2563EB; }
.blob-2 { bottom: -10%; right: -10%; width: 400px; height: 400px; background: #3B82F6; animation-delay: -5s; }
@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* --- HERO ANIMATIONS --- */
.floating { animation: floating 3s ease-in-out infinite; }
.float-delay-1 { animation-delay: 1s; }
.float-delay-2 { animation-delay: 2s; }
@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.dash-move {
    animation: dashMove 20s linear infinite;
}
@keyframes dashMove {
    to { stroke-dashoffset: -100; }
}

/* --- NAVBAR --- */
.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}
.nav-link {
    position: relative;
    padding-bottom: 4px;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #2563EB;
    transition: width 0.3s ease;
    border-radius: 2px;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.mobile-link { transition: color 0.2s ease, padding-left 0.2s ease; }
.mobile-link:not(:last-child):hover { color: #2563EB; padding-left: 6px; }

/* --- MARQUEE PARTNER --- */
.marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 3.5rem;
}
.marquee-content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    min-width: 100%;
    animation: scrollX 30s linear infinite;
}
@keyframes scrollX {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - 3.5rem)); }
}

/* --- CARDS: LAYANAN --- */
.service-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(37,99,235,0.1);
    border-color: #DBEAFE;
}
.service-icon {
    width: 3.5rem; height: 3.5rem;
    border-radius: 1rem;
    background: #F8FAFC;
    display: flex; align-items: center; justify-content: center;
    color: #2563EB; margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}
.service-card:hover .service-icon {
    background: #2563EB; color: #fff;
    transform: scale(1.1) rotate(-5deg);
}
.service-card h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.75rem; color: #0F172A; }
.service-card p { color: #64748B; font-size: 0.95rem; line-height: 1.6; }

/* --- CARDS: KEUNGGULAN (GLASS CARD) --- */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}
.glass-card i { width: 3rem; height: 3rem; margin: 0 auto 1rem; color: #3B82F6; }
.glass-card h4 { color: #fff; font-weight: 700; margin-bottom: 0.5rem; font-size: 1.1rem; }
.glass-card p { color: #94a3b8; font-size: 0.875rem; line-height: 1.5; }

/* --- CARDS: PROSES KERJA (STEP CARD) --- */
.step-card {
    position: relative;
    padding: 1.5rem;
    background: #F8FAFC;
    border-radius: 1.5rem;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}
.step-card:hover {
    background: #fff;
    box-shadow: 0 10px 30px -10px rgba(37,99,235,0.15);
    border-color: #DBEAFE;
}
.step-num {
    position: absolute;
    top: -15px; left: 1.5rem;
    background: #2563EB; color: #fff;
    font-weight: 800; font-size: 0.875rem;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(37,99,235,0.3);
}
.step-card i { color: #3B82F6; width: 2rem; height: 2rem; margin-top: 0.5rem; margin-bottom: 1rem; }
.step-card h4 { font-weight: 800; color: #0F172A; margin-bottom: 0.5rem; font-size: 1.1rem; }
.step-card p { font-size: 0.875rem; color: #64748B; line-height: 1.5; }

/* --- CARDS: PORTFOLIO --- */
.portfolio-swiper .swiper-slide {
    width: 85%;
    max-width: 400px;
}
@media (min-width: 768px) {
    .portfolio-swiper .swiper-slide {
        width: 350px;
    }
}

.portfolio-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.5rem; color: white;
    background-color: #1e293b;
    box-shadow: 0 10px 30px -10px rgba(15,23,42,0.2);
}
.portfolio-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.2) 50%, transparent 100%);
    z-index: 1; transition: opacity 0.3s ease;
}
.portfolio-icon, .portfolio-tag, .portfolio-card h3 { position: relative; z-index: 2; }
.portfolio-tag {
    align-self: flex-start;
    background: rgba(255,255,255,0.2); backdrop-filter: blur(4px);
    padding: 4px 10px; border-radius: 6px;
    font-size: 0.75rem; font-weight: 600; margin-bottom: 0.75rem;
}
.portfolio-card h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.3; }
.portfolio-overlay {
    position: absolute; inset: 0;
    background: rgba(37,99,235,0.85); backdrop-filter: blur(4px);
    z-index: 3; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: all 0.3s ease;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }

/* FIX: Ubah span menjadi a agar link detail berfungsi */
.portfolio-overlay a {
    background: #fff; color: #2563EB; padding: 0.5rem 1.25rem; border-radius: 2rem;
    font-weight: 700; font-size: 0.875rem;
    display: inline-flex; align-items: center; gap: 0.5rem;
    transform: translateY(20px); transition: transform 0.3s ease;
    text-decoration: none;
}
.portfolio-card:hover .portfolio-overlay a { transform: translateY(0); }

/* --- CARDS: TESTIMONI --- */
.testimoni-swiper .swiper-slide {
    width: 85%;
    max-width: 380px;
    height: auto; /* Agar semua card tingginya sejajar/sama rata */
}
@media (min-width: 768px) {
    .testimoni-swiper .swiper-slide {
        width: 380px;
    }
}

.testi-card {
    background: #fff; border: 1px solid #f1f5f9; border-radius: 1.5rem;
    padding: 2rem; box-shadow: 0 4px 20px -6px rgba(15,23,42,0.05);
    height: 100%; display: flex; flex-direction: column;
    transition: all 0.3s ease;
}

/* Tambahkan efek hover elegan */
.testi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(37,99,235,0.1);
    border-color: #DBEAFE;
}

.testi-stars { display: flex; gap: 4px; margin-bottom: 1rem; color: #F59E0B; }
.testi-stars i { width: 1.1rem; height: 1.1rem; fill: currentColor; }

/* FIX: Hanya target Paragraf utama (isi review), jangan sentuh nama/posisi */
.testi-card > p { 
    color: #475569; 
    font-style: italic; 
    font-size: 0.95rem; 
    line-height: 1.6; 
    flex-grow: 1; 
    margin-bottom: 1.5rem; 
    margin-top: 0;
}

.testi-user { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    border-top: 1px solid #f1f5f9; 
    padding-top: 1.5rem; 
}

/* Reset margin dan style untuk teks di dalam profil klien */
.testi-user p {
    margin-bottom: 0;
    font-style: normal;
    line-height: 1.4;
}

.testi-avatar {
    width: 3rem; height: 3rem; border-radius: 50%;
    background: #DBEAFE; color: #2563EB;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1rem; flex-shrink: 0;
}

/* --- CARDS: BLOG --- */
.blog-card {
    background: #fff; border-radius: 1.5rem; border: 1px solid #f1f5f9;
    overflow: hidden; transition: all 0.3s ease;
}
.blog-card:hover { box-shadow: 0 20px 40px -10px rgba(37,99,235,0.1); transform: translateY(-5px); }
.blog-thumb { height: 200px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-card:hover .blog-thumb img { transform: scale(1.05); transition: transform 0.4s ease; }
.blog-tag {
    position: absolute; top: 1rem; left: 1rem;
    background: rgba(255,255,255,0.9); backdrop-filter: blur(4px);
    color: #2563EB; padding: 4px 12px; border-radius: 2rem;
    font-size: 0.75rem; font-weight: 700; z-index: 10;
}
.blog-body { padding: 1.5rem; }
.blog-meta { display: flex; gap: 1rem; color: #94A3B8; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.75rem; }
.blog-body h3 { font-size: 1.15rem; font-weight: 800; color: #0F172A; margin-bottom: 0.75rem; line-height: 1.4; transition: color 0.2s; }
.blog-card:hover .blog-body h3 { color: #2563EB; }
.blog-body p { color: #64748B; font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-more { display: inline-flex; align-items: center; gap: 6px; color: #2563EB; font-weight: 700; font-size: 0.875rem; transition: gap 0.2s; }
.blog-card:hover .blog-more { gap: 10px; }

/* --- MAP PING & AREA CHIP --- */
.area-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: #F8FAFC; border: 1px solid #E2E8F0;
    padding: 6px 14px; border-radius: 2rem;
    font-size: 0.875rem; font-weight: 600; color: #475569; transition: all 0.2s;
}
.area-chip:hover { background: #DBEAFE; color: #2563EB; border-color: #BFDBFE; }
.area-chip-more { background: #fff; border-style: dashed; }
.map-ping { position: absolute; width: 12px; height: 12px; background: #2563EB; border-radius: 50%; }
.map-ping::after {
    content: ''; position: absolute; inset: -10px;
    border-radius: 50%; background: rgba(37,99,235,0.4);
    animation: pingMap 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes pingMap { 75%, 100% { transform: scale(2.5); opacity: 0; } }

/* --- FAQ ACCORDION --- */
.faq-item {
    border: 1px solid #E2E8F0; border-radius: 1rem;
    overflow: hidden; background: #fff; transition: all 0.3s ease;
}
.faq-item:hover { border-color: #BFDBFE; }
.faq-btn {
    width: 100%; text-align: left; padding: 1.25rem 1.5rem;
    font-weight: 700; color: #0F172A;
    display: flex; justify-content: space-between; align-items: center;
    background: transparent; transition: all 0.3s ease; cursor: pointer; border: none;
}
.faq-icon { color: #64748B; transition: transform 0.3s ease; }
.faq-item.active { border-color: #2563EB; box-shadow: 0 10px 20px -10px rgba(37,99,235,0.15); }
.faq-item.active .faq-btn { color: #2563EB; }
.faq-item.active .faq-icon { transform: rotate(45deg); color: #2563EB; }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.faq-content p { padding: 0 1.5rem 1.25rem; color: #64748B; font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* --- FORM KONTAK --- */
.form-label { font-size: 0.875rem; font-weight: 700; color: #334155; margin-bottom: 6px; display: block; }
.form-input {
    width: 100%; padding: 0.875rem 1rem;
    background: #F8FAFC; border: 1px solid #E2E8F0;
    border-radius: 0.75rem; font-size: 0.95rem; color: #0F172A;
    transition: all 0.2s; outline: none;
}
.form-input:focus { background: #fff; border-color: #2563EB; box-shadow: 0 0 0 4px rgba(37,99,235,0.1); }
.contact-info { display: flex; gap: 1rem; align-items: flex-start; }
.contact-ico {
    width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
    background: #DBEAFE; color: #2563EB;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* --- FOOTER --- */
.site-footer { background: #0F172A; color: #fff; padding-top: 5rem; position: relative; overflow: hidden; }
.footer-inner { max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; position: relative; z-index: 10; }
.footer-cta {
    background: linear-gradient(135deg, #2563EB, #3B82F6); border-radius: 2rem; padding: 3rem;
    display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 2rem;
    margin-bottom: 4rem; text-align: center;
}
@media (min-width: 640px) { .footer-cta { flex-direction: row; text-align: left; } }
.footer-cta h3 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.footer-cta p { color: rgba(255,255,255,0.8); font-size: 1rem; }
.footer-cta-btn {
    background: #fff; color: #2563EB; padding: 1rem 2rem; border-radius: 2rem;
    font-weight: 800; display: inline-flex; align-items: center; gap: 0.5rem;
    transition: transform 0.2s; white-space: nowrap;
}
.footer-cta-btn:hover { transform: scale(1.05); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 3rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-logo { font-size: 1.5rem; font-weight: 800; display: inline-flex; align-items: center; gap: 0.5rem; color: #fff; margin-bottom: 1.25rem; }
.footer-logo-badge { width: 2rem; height: 2rem; border-radius: 0.5rem; background: linear-gradient(135deg, #2563EB, #3B82F6); display: flex; align-items: center; justify-content: center; }
.footer-desc { color: #94A3B8; font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.5rem; }
.footer-socials { display: flex; gap: 0.75rem; }
.social-btn {
    width: 2.5rem; height: 2.5rem; border-radius: 50%;
    background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center;
    color: #cbd5e1; transition: all 0.2s;
}
.social-btn:hover { background: #2563EB; color: #fff; transform: translateY(-3px); }
.footer-col h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: #94A3B8; transition: color 0.2s; display: inline-flex; align-items: center; gap: 4px; text-decoration: none;}
.footer-links a:hover { color: #3B82F6; }
.footer-contact li { display: flex; gap: 0.75rem; color: #94A3B8; align-items: flex-start; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 1rem; color: #64748B; font-size: 0.875rem; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-heart { color: #ef4444; fill: #ef4444; display: inline-block; margin: 0 2px; }

/* --- SWIPER PAGINATION OVERRIDE --- */
.swiper-pagination-bullet { background: #cbd5e1; opacity: 1; transition: all 0.3s; }
.swiper-pagination-bullet-active { background: #2563EB; width: 24px; border-radius: 4px; }
