body {
    background: url('/assets/img/bgaiwhat.png') no-repeat center center fixed;
    background-size: cover;
}

body,
html {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .img-center-mobile {
        margin-left: auto;
        margin-right: auto;
        display: block;
        max-width: 80%;
    }
}

/* Navbar */
.navbar {
    background-color: #ff69b4;
    transition: background-color 0.3s ease;
}

.navbar .nav-link {
    color: black;
}

.nav-link {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar .nav-link.active {
    font-weight: bold;
}

.navbar .btn-primary {
    background-color: #ff1493;
    border: none;
}

.navbar .btn-primary:hover {
    background-color: #ff69b4;
}

.nav-item {
    margin-right: 10px;
    color: black;
}

.nav-link:hover {
    color: rgb(1, 71, 147);
    background-color: aquamarine;
    border-radius: 10px;
    padding: 5px;
}

@media (max-width: 768px) {
    .navbar-brand {
        width: 100%;
        justify-content: center;
        padding-top: 30px;
        padding-bottom: 0px;
    }
}

/* Hero Header */
.hero-header {
    max-width: 100%;
    margin-top: -120px;
}

.hero-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
}

.hero-header h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
}

.hero-header .btn {
    background-color: #ff1493;
    border-color: rgb(117, 3, 64);
    color: #fff;
}

@media (max-width: 768px) {
    /* Aggressively normalize headings for mobile */
    h1, .display-4 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important; /* Tighter line height */
        margin-top: 10px !important;
        margin-bottom: 10px !important; /* Reduced bottom margin */
    }
    
    h2, .fs-1 {
        font-size: 1.4rem !important;
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
    }

    h3, .card-title {
        font-size: 1.2rem !important;
        margin-bottom: 5px !important; /* Closer to text */
    }

    h4 {
        font-size: 1.05rem !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
    }

    p, .lead {
        font-size: 0.95rem !important;
        line-height: 1.45 !important; /* Reduced from 1.6 for compactness */
        margin-bottom: 10px !important; /* Less gap between paragraphs */
    }

    /* Fix Section Padding on Mobile - Make it tighter */
    section {
        padding: 25px 0 !important; /* Significant reduction from 50px/40px */
    }
    
    /* Card Spacing fix for mobile */
    .mb-4, .mb-5 {
        margin-bottom: 1rem !important; /* Force smaller gaps between components */
    }

    /* Reduce gap inside text containers */
    .wow {
        margin-bottom: 0 !important;
    }

     /* Fix weird spacing in justified text on mobile */
     .text-justify-mobile, p, h4 {
        text-align: left !important;
    }
    .text-center {
        text-align: center !important; /* Keep center elements centered */
    }
    
    /* Adjust Hero Image size on mobile */
    .hero-header img {
        max-width: 70% !important; /* Slightly smaller to save vertical space */
        height: auto !important;
        margin-bottom: 10px !important;
    }

    /* --- HERO HEADER OPTIMIZATION --- */
    .hero-header {
        margin-top: 0 !important; /* Remove negative margin on mobile */
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }

    /* Pink background section (if using container-fluid) */
    .bg-primary, 
    section[style*="background"],
    .hero-header .container-fluid {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        min-height: auto !important;
    }

    /* Logo in pink header */
    .hero-header img[src*="logo"],
    img[alt*="logo" i],
    img[alt*="AiWhat" i] {
        max-width: 140px !important;
        max-height: 50px !important;
        margin-bottom: 15px !important;
    }

    /* Hero title adjustments */
    .hero-header h1,
    .hero-header .display-4 {
        font-size: 1.6rem !important;
        line-height: 1.2 !important;
        margin-top: 15px !important;
        margin-bottom: 12px !important;
    }

    /* Hero subtitle */
    .hero-header h4 {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
    }

    /* Hero CTA buttons */
    .hero-header .btn {
        margin-top: 15px !important;
        margin-bottom: 10px !important;
    }

    /* --- FEATURE CARD FIXES FOR MOBILE --- */
    .col-6 {
        display: flex; /* Make the column a flex container */
    }
    
    .card {
        width: 100%; /* Ensure card takes full width */
        height: 100%; /* Force card to match column height (equal height) */
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* Align content to top */
        padding: 1rem !important; /* Reduce padding inside card */
    }

    .card-body {
        padding: 0.5rem !important; /* Minimal padding for content */
        flex-grow: 1; /* Allow body to fill space */
    }

    /* Resize Icons in Cards */
    .card i {
        font-size: 2em !important; /* Reduce from 3x to 2x */
        margin-top: 5px !important;
        margin-bottom: 10px !important;
    }

    /* Resize Card Titles */
    .card .card-title {
        font-size: 1rem !important; /* Smaller title */
        font-weight: 700;
        margin-bottom: 5px !important;
        min-height: 40px; /* Force minimum height for alignment */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Resize Card Text */
    .card .card-text {
        font-size: 0.8rem !important; /* Micro text for descriptions */
        line-height: 1.3 !important;
    }

     /* --- PRICING/PAKET CARD FIXES FOR MOBILE --- */
     .paket-item .card-body {
        padding: 1rem 1.5rem !important; /* Side padding to frame content, less vertical */
        text-align: left !important; /* Reset alignment to left */
    }
    
    /* Reset UL to span full width and remove defaults */
    .paket-item ul {
        padding-left: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        display: block !important;
        text-align: left !important;
    }

    .paket-item li {
        font-size: 0.85rem !important; /* Compact font */
        margin-bottom: 0.25rem !important; /* Very tight spacing */
        padding: 0 !important;
        display: flex !important;
        align-items: flex-start !important;
        line-height: 1.2 !important; /* Tight line height */
        color: #333 !important;
    }

    /* Perfect Icon Alignment */
    .paket-item li i {
        width: 20px !important; /* Fixed width container for icon */
        text-align: center !important;
        margin-right: 8px !important;
        margin-top: 2px !important;
        font-size: 0.9rem !important; /* Match text size */
        flex-shrink: 0 !important;
    }
    
    /* Center the Price Tag Only */
    .paket-item .price {
        text-align: center !important;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
        margin-bottom: 10px !important;
    }
    
    /* Compact Header */
    .paket-item .card-header {
        padding: 0.5rem !important;
    }
    .paket-item .card-header h3 {
        font-size: 1.2rem !important;
        margin: 0 !important;
    }

    /* --- FOOTER & FLOATING BTN FIXES FOR MOBILE --- */
    
    /* Compact footer overall */
    .footer, footer, footer.bg-dark {
        padding: 20px 15px 70px 15px !important; /* Minimal padding, space for WA button */
        text-align: center !important;
    }
    
    /* Logo compact */
    .footer img, footer img {
       max-width: 100px !important;
       margin-bottom: 10px !important;
    }

    /* AGGRESSIVELY HIDE Quick Links Title */
    footer h4, 
    .footer h4,
    footer .text-white.mb-4,
    footer h4.text-white,
    .footer h4.text-white.mb-4 { 
        display: none !important; 
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Ultra-compact horizontal menu with separators */
    footer ul, .footer ul {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 5px !important;
        padding: 0 !important;
        margin: 10px 0 !important;
        list-style: none !important;
    }

    footer ul li, .footer ul li {
        margin: 0 !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    /* Add separator dots between links */
    footer ul li:not(:last-child)::after, 
    .footer ul li:not(:last-child)::after {
        content: "•" !important;
        margin: 0 8px !important;
        color: #999 !important;
    }

    footer ul li a, .footer ul li a {
        font-size: 0.85rem !important;
        padding: 3px 0 !important;
        display: inline-block !important;
        color: #ddd !important;
        text-decoration: none !important;
    }

    /* Copyright text */
    footer p, footer a, .footer p, .footer a,
    footer .text-light, footer span {
        font-size: 0.8rem !important;
        color: #999 !important;
        margin: 10px 0 0 0 !important;
    }

    /* WhatsApp FAB - Material Design Standard */
    .whatsapp-float {
        width: 56px !important;
        height: 56px !important;
        bottom: 16px !important;
        right: 16px !important;
        background-color: #25d366 !important;
        border-radius: 50% !important;
        box-shadow: 0 6px 10px 0 rgba(0,0,0,0.14), 
                    0 1px 18px 0 rgba(0,0,0,0.12), 
                    0 3px 5px -1px rgba(0,0,0,0.20) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 999 !important;
    }
    
    .whatsapp-icon {
        color: #ffffff !important;
        font-size: 30px !important;
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* --- BUTTONS & CTA OPTIMIZATION --- */
    .btn, button {
        font-size: 0.9rem !important;
        padding: 10px 20px !important;
        border-radius: 8px !important;
        min-height: 44px !important; /* Touch target minimum */
    }

    .btn-lg {
        font-size: 1rem !important;
        padding: 12px 24px !important;
    }

    .btn-sm {
        font-size: 0.85rem !important;
        padding: 8px 16px !important;
    }

    /* --- FORM INPUTS --- */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important; /* Prevent zoom on iOS */
        padding: 10px 12px !important;
        border-radius: 6px !important;
        min-height: 44px !important;
    }

    /* --- TESTIMONIAL CARDS --- */
    .carousel-item .card {
        margin: 0 10px !important;
    }

    .testimonial-img, 
    .card img.rounded-circle {
        width: 60px !important;
        height: 60px !important;
    }

    /* --- NAVBAR/HEADER --- */
    .navbar {
        padding: 10px 15px !important;
    }

    .navbar-brand img {
        max-height: 40px !important;
    }

    .nav-link {
        font-size: 0.9rem !important;
        padding: 8px 12px !important;
    }

    /* --- IMAGE OPTIMIZATION --- */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* --- CONTAINER PADDING --- */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Zoom Delay */
.zoom-delay {
    transform: scale(0.5);
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    transition-delay: 0.4s;
}

.zoom-delay.visible {
    transform: scale(1);
    opacity: 1;
}

body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .order-1 {
        order: 1;
    }

    .order-2 {
        order: 2;
    }

    .text-justify-mobile {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .img-center-mobile {
        margin-left: auto;
        margin-right: auto;
        display: block;
        max-width: 80%;
    }
}

/* Summary Container */
/* Feature Cards */
#fitur .card {
    border: none;
    border-radius: 20px;
    padding: 30px 20px;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
}

#fitur .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f9f9ff 100%);
}

#fitur .card i {
    color: #ff69b4;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

#fitur .card:hover i {
    transform: scale(1.1);
}

#fitur .card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e293b;
}

#fitur .card-text {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Pricing Refinements */
.paket-item .card {
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.paket-item .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.paket-item .card-header {
    padding: 25px 15px;
    border-bottom: none;
}

.paket-item .card-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.price .h3 {
    font-weight: 800;
    color: #2d3436;
}

.custom-list li {
    font-size: 0.95rem;
    color: #555;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    text-align: left;
    display: flex;
    align-items: center;
}

.custom-list li:last-child {
    border-bottom: none;
}

.custom-list i {
    width: 25px;
    font-size: 1rem;
}

/* Distinctive Card Variants */
.card-office {
    border: 2px solid #28a745 !important;
}

.card-corporate {
    border: 2px solid #ffc107 !important;
    background: linear-gradient(180deg, #ffffff 0%, #fffdf5 100%);
}

.card-corporate .card-header {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%) !important;
    color: #000 !important;
}

.card-office .card-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

/* Ribbon / Badge */
.badge-premium {
    position: absolute;
    top: 20px;
    right: -35px;
    background: #ff4757;
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1;
}

.badge-recommended {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #2ed573;
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

#bank-info {
    margin-top: -100px;
}

#bank-info-details {
    display: none !important;
}

.nav-link-footer {
    color: #fff;
    transition: color 0.3s ease;
}

.nav-link-footer:hover {
    color: rgb(1, 71, 147);
    background-color: aquamarine;
    border-radius: 3px;
    padding: 5px;
}

.custom-list {
    padding-left: 20px;
    text-align: left;
}

.custom-list li {
    list-style-type: none;
}

.custom-list i {
    margin-right: 10px;
}

.price-item {
    margin-bottom: -100px;
}

.submit-btn:hover {
    transform: scale(1.1);
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.bank-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.bank-logo:hover {
    cursor: pointer;
    transform: scale(1.3);
    transition: all 0.3s ease;
}

.warning-message {
    position: absolute;
    top: 50%;
    right: -300px;
    transform: translateY(-50%);
    background-color: #ffcccb;
    color: #000;
    border: 1px solid #ff0000;
    padding: 10px;
    font-size: 0.9em;
    width: 300px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .col-lg-4 {
        width: 100%;
    }

    .warning-message {
        right: 0;
        left: 0;
        margin: 0 auto;
        top: 100%;
        transform: translateY(10px);
        width: 100%;
    }
}

.text-left {
    text-align: left;
}

.whatsapp-float {
    position: fixed;
    width: 56px;
    height: 56px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    color: #ffffff !important;
    font-size: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    display: block !important;
}

.footer-links {
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

.footer-links h5 {
    margin-bottom: 0.5rem;
}

.footer-links ul {
    gap: 3px;
}

.nav-link-footer {
    padding: 2px 4px;
    font-size: 0.8rem;
}

.footer-contact ul li {
    margin-bottom: 0.5rem;
}

/* Media queries untuk tampilan mobile */
@media (max-width: 768px) {
    .footer-links ul {
        flex-direction: column;
        gap: 1px;
    }

    .nav-link-footer {
        padding: 2px 0;
        font-size: 1rem;
    }

    .footer-links h5 {
        font-size: 1.2rem;
    }
}
