/* MG Online - Mobile-First Premium CSS Design System */

:root {
    --primary-color: #0F4C81;
    --secondary-color: #2F80ED;
    --accent-color: #F2994A;
    --text-color: #333333;
    --light-text: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, #0F4C81 0%, #2F80ED 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.accent {
    color: var(--accent-color);
}

/* --- Default Mobile Styles (min-width: 0) --- */

/* Navbar */
.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--light-text);
    margin-top: -5px;
}

/* Hide Desktop Nav by Default */
.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 40px 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px);
    opacity: 0;
    transition: var(--transition);
    gap: 20px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-links.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.nav-links a {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-cta {
    display: none;
}

/* Hidden on Mobile */

.menu-toggle {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    width: 100%;
    /* Full width buttons on mobile */
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(47, 128, 237, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: url('assets/images/hero.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 76, 129, 0.9), rgba(15, 76, 129, 0.7));
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-text-content {
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Stats Bar */
.stats-bar {
    background: var(--white);
    padding: 30px 15px;
    box-shadow: var(--card-shadow);
    margin: -30px 20px 0;
    position: relative;
    z-index: 20;
    border-radius: 15px;
}

.stats-bar .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--light-text);
    font-weight: 500;
    text-transform: uppercase;
}

/* Services */
.services {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--light-text);
    font-size: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(47, 128, 237, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.service-card ul li {
    margin-bottom: 10px;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.service-card ul li i {
    color: var(--accent-color);
    font-size: 0.8rem;
}

/* About */
.about {
    padding: 80px 0;
}

.about-flex {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-image {
    width: 100%;
    height: 300px;
    background: url('assets/images/gov.png') center/cover no-repeat;
    border-radius: 20px;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--light-text);
    font-size: 1rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 25px;
}

.feat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 10px;
}

.feat i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.feat span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Contact */
.contact {
    padding: 80px 0;
    background: var(--bg-light);
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item i {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    box-shadow: var(--card-shadow);
}

.info-item h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.info-item p {
    font-size: 0.9rem;
    color: var(--light-text);
}

.contact-form {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 15px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

/* Footer */
footer {
    padding: 40px 0;
    background: var(--primary-color);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-links {
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.footer-links a {
    color: var(--white);
    margin: 0 10px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 25px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Tablets (min-width: 768px) --- */
@media (min-width: 768px) {
    .logo-text {
        font-size: 1.5rem;
    }

    .menu-toggle {
        display: none;
    }

    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        width: auto;
        background: none;
        padding: 0;
        box-shadow: none;
        transform: none;
        opacity: 1;
        border: none;
        gap: 30px;
    }

    .nav-links a {
        font-size: 0.95rem;
        font-weight: 500;
    }

    .nav-cta {
        display: block;
    }

    .btn {
        width: auto;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

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

    .hero-btns {
        flex-direction: row;
    }

    .stats-bar {
        margin: -60px auto 0;
        padding: 40px;
        max-width: 900px;
    }

    .stats-bar .container {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .footer-bottom p,
    .footer-links {
        margin-bottom: 0;
    }
}

/* --- Desktops (min-width: 992px) --- */
@media (min-width: 992px) {
    .hero {
        background-attachment: fixed;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .about-flex {
        flex-direction: row;
        align-items: center;
        gap: 80px;
    }

    .about-image {
        flex: 1;
        height: 450px;
    }

    .about-text {
        flex: 1.2;
    }

    .about-features {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        flex-direction: row;
        gap: 80px;
        align-items: flex-start;
    }

    .contact-info {
        flex: 1;
    }

    .contact-form {
        flex: 1.2;
        padding: 50px;
    }

    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Animations (Same for all) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.fade-in-delay {
    animation: fadeIn 0.8s ease 0.3s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 0.8s ease 0.6s forwards;
    opacity: 0;
}

.reveal,
.reveal-right {
    opacity: 0;
    transition: all 1s ease;
}

.reveal {
    transform: translateY(30px);
}

.reveal-right {
    transform: translateX(30px);
}

.reveal.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}