@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* Override Typography */
body, h1, h2, h3, h4, h5, h6, .navbar-brand, .nav-link, .btn, .quote {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    color: #475569;
    background-color: #ffffff;
}

/* Custom Navbar (Glassmorphism) */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px 0;
}

.navbar-custom.scrolled {
    background: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    padding: 12px 0;
}

.navbar-custom .navbar-brand {
    display: flex;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-custom .navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-custom .nav-link {
    color: #475569 !important;
    font-weight: 600;
    font-size: 15px;
    position: relative;
    padding: 8px 18px !important;
    transition: color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-custom .nav-link:hover {
    color: #3b82f6 !important;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 2px;
    left: 50%;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-50%);
}

.navbar-custom .nav-link:hover::after {
    width: 50%;
}

@media (max-width: 767.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 16px;
        padding: 20px;
        margin-top: 15px;
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
        border: 1px solid rgba(226, 232, 240, 0.8);
    }
    
    .navbar-custom .nav-link::after {
        display: none;
    }
    
    .navbar-custom .nav-link {
        padding: 10px 0 !important;
    }
}

/* Header & Hero Section */
.topbar {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%) !important;
    overflow: hidden;
    padding-top: 160px !important; /* Extra padding for sticky navbar */
    padding-bottom: 80px !important;
}

.topbar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 40%);
    animation: slow-mesh 25s infinite alternate ease-in-out;
    z-index: 1;
    pointer-events: none;
}

@keyframes slow-mesh {
    0% {
        transform: rotate(0deg) translate(0, 0);
    }
    50% {
        transform: rotate(3deg) translate(-1%, 1%);
    }
    100% {
        transform: rotate(-3deg) translate(1%, -1%);
    }
}

.topbar .container {
    position: relative;
    z-index: 2;
}

.header-banner h2 {
    font-size: 1.85rem;
    line-height: 1.35;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
}

@media (max-width: 991.98px) {
    .header-banner h2 {
        font-size: 1.5rem;
    }
}

.header-banner h2 .text-info {
    color: #3b82f6 !important;
    border-bottom: 4px solid #3b82f6 !important;
}

.header-banner p {
    font-size: 1.1rem;
    color: #475569;
}

/* Slow Hover CTA Button */
.btn-info.dm-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border: none !important;
    border-radius: 50px !important;
    color: #fff !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3) !important;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-info.dm-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.5) !important;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
}

/* Floating Image Hero */
.hero-img {
    animation: slow-float 8s infinite ease-in-out;
    filter: drop-shadow(0 25px 35px rgba(15, 23, 42, 0.08));
    border-radius: 24px;
}

@keyframes slow-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Features Section */
.feature2.spacer {
    background-color: #ffffff;
    padding: 100px 0;
}

.feature2 h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
}

.feature-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: 24px;
    padding: 35px 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.01);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.25);
}

.feature-card .feature-image {
    display: block;
    margin-bottom: 25px;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card .feature-image img {
    border-radius: 12px;
}

.feature-card:hover .feature-image {
    transform: scale(1.08);
}

.feature-card h4 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
}

.feature-card p {
    color: #64748b;
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.card-btn {
    border-radius: 30px !important;
    padding: 10px 28px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    color: #ffffff !important;
    border: none !important;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-btn:hover {
    color: #ffffff !important;
    transform: translateY(-3px);
}

/* Green Gradient (Kampung Bahagia) */
.btn-green-gradient {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.2) !important;
}

.btn-green-gradient:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35) !important;
}

/* Orange Gradient (11 Program Prioritas) */
.btn-orange-gradient {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.2) !important;
}

.btn-orange-gradient:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.35) !important;
}

/* Blue Gradient (Pengawasan Internal) */
.btn-blue-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.2) !important;
}

.btn-blue-gradient:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35) !important;
}

/* Red Gradient (Audit BOS / Layanan Lain) */
.btn-red-gradient {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.2) !important;
}

.btn-red-gradient:hover {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.35) !important;
}

/* Testimonial Section */
.testimonial.spacer {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 120px 0;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 28px;
    padding: 55px 40px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.02);
    position: relative;
    overflow: hidden;
}

.testimonial-card h3.quote {
    font-size: 1.45rem;
    line-height: 1.8;
    font-weight: 500;
    color: #334155;
    font-style: italic;
    letter-spacing: -0.01em;
}

.testimonial-card .text-info {
    color: #3b82f6 !important;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 25px;
    display: inline-block;
}

/* Footer Section */
.footer {
    background: #0f172a !important; /* Premium dark theme background */
    color: #94a3b8;
    padding: 100px 0 60px 0;
    position: relative;
}

.footer h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff !important;
    line-height: 1.35;
}

.footer h1 .text-info {
    color: #60a5fa !important; /* Brighter blue for contrast */
}

.footer p {
    color: #94a3b8 !important;
    line-height: 1.8;
    font-size: 15px;
}

.footer img {
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copy {
    font-size: 14px;
    color: #64748b;
    text-align: center;
}

/* Scroll Reveal (Slow-Motion) Class Definition */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}
