﻿/* SMOOTH SCROLL */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* ROOT COLORS */
:root {
    --primary: #1e3a8a;
    --secondary: #2563eb;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --border: #e2e8f0;
}

/* BODY */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.65;
}

/* HEADINGS */
h1, h2, h3 {
    line-height: 1.25;
    margin-bottom: 16px;
}

h1 {
    font-size: 38px;
}

h2 {
    font-size: 34px;
}

h3 {
    font-size: 22px;
}

/* PARAGRAPH */
p {
    font-size: 18px;
    color: var(--text-muted);
}

/* SECTIONS */
section {
    padding: 30px 20px; /* consistent top/bottom padding */
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* STICKY HEADER */
/* --- Desktop & Base Styles --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #0f172a; /* Your dark color */
    border-bottom: 1px solid #1e293b; /* Darker border to match */
    padding: 15px 0; /* Reduced padding slightly for better fit */
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 0 !important; /* Removes space before logo */
    padding-right: 0 !important; /* Removes space after Malaysia */
    max-width: 100% !important; /* Allows it to hit the screen edges */
    margin: 0 20px; /* Optional: keeps it aligned with your body text */
}

/* NAVIGATION LIST */
.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-list a {
    text-decoration: none;
    color: #ffffff; /* Pure white for main links */
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-list a:hover {
    color: #93c5fd; /* Soft blue on hover */
}

/* DESKTOP STYLES for Location Tag */
.location-tag {
    color: #cbd5e1; /* Light grey/blue that looks good on dark navy */
    border-left: 1px solid #334155; /* Subtle vertical divider */
    padding-left: 20px;
    margin-left: 5px; /* Extra breathing room from the previous link */
    font-weight: 500;
}
/* --- Mobile Styles --- */
@media (max-width: 768px) {
    header-flex {
        padding: 0 15px; /* Keeps a small gap on mobile screens */
    }
    /* SHOW THE BUTTON */
    .menu-toggle {
        display: flex !important; /* Force visibility */
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    /* THE HAMBURGER BARS */
    .menu-toggle .bar {
        width: 100%;
        height: 3px;
        background-color: #ffffff !important; /* White bars so they show up */
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* THE DROPDOWN MENU */
    .nav-menu {
        display: none; /* Hidden by default */
        position: absolute;
        top: 100%; /* Sits right under the header */
        left: 0;
        right: 0;
        background: #1e293b; /* Slightly lighter navy for the mobile dropdown */
        border-bottom: 2px solid #2563eb;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 20px;
        z-index: 999;
    }

    /* SHOW WHEN ACTIVE */
    .nav-menu.active {
        display: block !important;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    /* Hide location tag on mobile or style it */
    .location-tag {
        border-left: none; /* Remove vertical line on mobile */
        padding-left: 0;
        margin-left: 0;
        color: #93c5fd; /* Light blue so it stands out on mobile */
        display: block;
        padding-top: 10px; /* Space it out from 'Contact Us' */
    }
}

/* Hide button on desktop */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

/* HERO */
.hero {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
}

.hero p {
    color: #e0e7ff;
    font-size: 20px;
}

.cta-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 16px 32px;
    background: #fff;
    color: var(--primary);
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
}

/* Hover effect */
.cta-btn:hover {
    color: #ffffff;
    background: var(--primary);
    transform: translateY(-1px);
}

/* HERO FLEX */
.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-image-container {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Rounded frame */
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.hero-image-container img {
    width: 100%;
    height: auto;
    max-height: 600px;
    border-radius: 14px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    background: linear-gradient(to right, rgba(0,0,0,0.35), rgba(0,0,0,0));
    pointer-events: none;
}

/* FEATURES */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: #fff;
    padding: 32px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.feature-card i {
    font-size: 36px;
    color: var(--secondary);
    margin-bottom: 20px;
}

/* IMAGE BLOCK */
.image-block {
    margin-top: 30px;
    text-align: center;
}

.image-block img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* CHOOSING SYSTEM */
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.criteria {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.criteria i {
    font-size: 30px;
    color: var(--secondary);
    margin-bottom: 16px;
}

/* CTA */
.final-cta {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
    text-align: center;
}

.final-cta p {
    color: #e0e7ff;
    font-size: 20px;
}

/* MEDIA QUERIES */
@media (max-width: 900px) {
    .hero-flex {
        flex-direction: column-reverse;
        gap: 40px;
    }

    .hero-image-container img {
        max-height: none;
        width: 100%;
    }

    h1 {
        font-size: 36px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }
}


/* Compliance Section Styling */
.compliance-readiness {
    padding: 80px 0;
    background-color: #ffffff;
}

.compliance-box {
    max-width: 900px;
    margin: 0 auto;
    border-left: 5px solid #1e3a8a; /* Your primary blue */
    padding: 20px 40px;
    background: #f8fafc; /* Very subtle cool grey */
    border-radius: 0 12px 12px 0;
}

.compliance-tag-container {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.compliance-tag {
    background: #eff6ff;
    color: #1e3a8a;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #dbeafe;
}

/* FAQ Section Styling */
.faq-section {
    padding: 80px 0;
    background-color: #f1f5f9;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 30px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.faq-question {
    color: #1e3a8a;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.faq-answer {
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.feature-btn {
    display: inline-block;
    margin-top: 40px;
    padding: 18px 36px;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

/* Hover */
.feature-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    letter-spacing: 0.3px;
}

.feature-btn:hover::after {
    margin-left: 6px;
}

.arrow {
    transition: transform 0.2s ease;
}

.feature-btn:hover .arrow {
    transform: translateX(4px);
}

/* Click */
.feature-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* ============================= */
/* FOOTER – MATCH MAIN SITE      */
/* ============================= */

.site-footer {
    background: #0f172a;
    color: #cbd5f5;
    padding: 48px 20px 32px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.footer-brand {
    justify-self: start;
    text-decoration: none;
}

.footer-brand a {
    display: block;
    font-weight: bold;
    font-size: 20px;
    color: #ffffff;
    text-decoration: none;
}

.footer-brand strong {
    font-size: 18px;
    font-weight: 700;
    display: block;
    color: #ffffff;
    text-decoration: none;
}

.footer-brand small {
    font-size: 14px;
    color: #94a3b8;
}

.footer-connect {
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: center; /* 🔥 this centers everything */
}

.footer-title {
    text-align: center;
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.footer-socials a {
    text-decoration: none;
    color: #cbd5f5;
    font-size: 26px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-socials a + a {
    margin-left: 12px; /* ✔ clean spacing */
}

.footer-socials a:hover {
    color: #93c5fd;
    transform: translateY(-2px);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap; /* 🔥 prevents breaking */
    white-space: nowrap;
}

.footer-nav a {
    color: #cbd5f5;
    text-decoration: none;
    font-size: 14px;
}

.footer-nav a:hover {
    color: #93c5fd;
}

.footer-bottom {
    max-width: 1200px;
    margin: 28px auto 0;
    font-size: 16px;
    color: #94a3b8;
    border-top: 1px solid #1e293b;
    padding-top: 16px;
    text-align: center;
}

/* MOBILE */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; /* 🔥 stack everything */
        text-align: center;
        gap: 24px;
    }

    .footer-brand,
    .footer-nav,
    .footer-connect {
        justify-self: center; /* override left/right */
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap; /* allow wrapping */
        justify-content: center;
        gap: 10px;
    }

    .footer-socials {
        justify-content: center;
    }
}
/* Section Setup */
.features-cta-slider {
    padding-top: 50px;
    padding-bottom: 50px;
    overflow: visible;
    position: relative;
    color: #fff;
}

.features-cta-slider .content-container {
    position: relative;
    z-index: 2;
}

/* Animated Gradient Background */
.animated-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4A90E2, #50E3C2, #7B61FF, #FF6BCB);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: 0;
    opacity: 0.9;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Module Slider */
.module-slider-wrapper {
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
}

.module-slider {
    display: flex;
    gap: 1rem;
    min-width: max-content;
    justify-content: center;
}

/* Module Cards */
.module-card {
    color: #fff;
    font-weight: 600;
    padding: 1.2rem 1.5rem;
    border-radius: 1rem;
    min-width: 140px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: none; /* remove hover transitions */
}

/* Remove hover effects */
.module-card:hover {
    transform: none;
    box-shadow: none;
    z-index: auto;
}

/* Individual Gradients */
.gradient-crm {
    background: linear-gradient(135deg, #1ABC9C, #16A085);
}

.gradient-jobs {
    background: linear-gradient(135deg, #3498DB, #2980B9);
}

.gradient-timesheets {
    background: linear-gradient(135deg, #F39C12, #D35400);
}

.gradient-expenses {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
}

.gradient-leaves {
    background: linear-gradient(135deg, #9B59B6, #8E44AD);
}

.gradient-ai {
    background: linear-gradient(135deg, #F1C40F, #F39C12);
}

/* CTA Button Hover */
.features-cta-slider .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Hide scrollbar on WebKit */
.module-slider-wrapper::-webkit-scrollbar {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .module-card {
        min-width: 120px;
        padding: 1rem 1.2rem;
    }
}

.form-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-container label {
    color: #1e293b;
    font-weight: 500;
}

.form-container input,
.form-container textarea,
.form-container select {
    font-family: inherit;
    font-size: 14px; /* or your preferred size */
    line-height: 1.5;
    color: #000;

    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    grid-column: span 2;
}

.form-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

/*.form-submit-btn {
    background: #1e3a8a;
    color: #ffffff !important;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}*/

.form-submit-btn {
    background: #1e3a8a;
    color: #ffffff !important;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 18px !important; /* force override */
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
    appearance: none; /* remove browser default */
    -webkit-appearance: none;
}
/* Hover effect */
.form-submit-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* Click effect */
.form-submit-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.contact-direct-section {
    margin-top: 16px; /* or even 12px for tighter UI */
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    background: #ffffff;
    color: #1e3a8a;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Hover effect */
.contact-btn:hover {
    color: #ffffff;
    background: #1e3a8a;
    transform: translateY(-1px);
}

/* Ensure icon follows text color */
.contact-btn i {
    transition: color 0.25s ease;
}

.contact-btn:hover i {
    color: white;
}

.contact-buttons {
    display: flex;
    gap: 60px;
    margin-top: 40px;    
}

.contact-buttons > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-buttons p {
    display: flex;
    align-items: flex-start; /* aligns icon with first line */
    gap: 10px;
    margin: 0;
}
.contact-buttons i {
    font-size: 20px;
    line-height: 1;
    margin-top: 2px; /* small nudge instead of top:20px */
}
.contact-buttons p {
    display: flex;
    align-items: flex-start; /* aligns icon with first line */
    gap: 10px;
    margin: 0;
}
.contact-buttons .expectations {
    display: flex;
    flex-direction: column;
    gap: 8px; /* tight, clean spacing */
}

.contact-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 768px) {
    .contact-buttons {
        flex-direction: column;
        gap: 30px;
    }   
    .contact-action-buttons {
        justify-content: center; /* center buttons */
    }
    .contact-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Full width on mobile (optional but recommended) */
@media (max-width: 600px) {
    .form-submit-btn {
        width: 100%;
    }
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: span 1;
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 350px;
}

.loading-box h5 {
    margin-top: 15px;
    color: #1e3a8a;
    font-weight: bold;
    font-size: 25px;
}

.loading-box p {
    color: #6c757d;
    margin-bottom: 0;
}

/* Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e5e7eb;
    border-top: 5px solid #1e3a8a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}