/* --- Global Reset for Clean Start --- */
html, body {
    /* Critical reset to ensure no default browser margins/padding */
    padding: 0;
    margin: 0;
}

/* --- Brand Identity Variables --- */
:root {
    --primary-color: #0F3C4D; /* Deep Blue */
    --accent-color: #3498db; /* A lighter blue for contrast/hover */
    --background-color: #ffffff; /* White */
    --light-bg: #f8f8f8; /* Light gray for section separation */
    --text-color: #333333;
    --font-family: 'Poppins', sans-serif;
}

/* --- Base Styles and Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto; /* Ensures content remains centered */
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5em;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-color);
}

.section-title {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 10px;
    padding-top: 10px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-weight: 300;
}

.content-section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

/* --- Buttons (Call-to-Action) --- */
.cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.9em;
}

.cta-button.primary {
    background-color: var(--primary-color);
    color: var(--background-color);
    border-color: var(--primary-color);
}

.cta-button.primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--background-color);
    border-color: var(--background-color);
}

.cta-button.secondary:hover {
    background-color: var(--background-color);
    color: var(--primary-color);
}

/* --- Header & Navigation --- */
.main-header {
    background-color: var(--background-color);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.08);
    position: sticky; 
    top: 0;
    z-index: 1000;
}

.main-header .container {
    /* Logo left, Nav right */
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 15px 20px;
}

.logo-area {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-tagline {
    font-size: 0.7em;
    font-weight: 400;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.main-nav {
    position: relative;
    /* Pushes the navigation block to the far right */
    margin-left: auto;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    margin-left: 0; 
}

.nav-list > li {
    margin-left: 30px;
    position: relative; 
}

.nav-list > li > a {
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 0;
    display: block;
}

.nav-list > li > a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none; /* Hidden by default on desktop */
    font-size: 1.5em;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
}


/* --- FULL-WIDTH MEGA MENU STYLING --- */

.dropdown-menu {
    /* Fixed positioning relative to Viewport for full width */
    position: fixed; 
    
    /* Place it right below the main header (Header height is approx 70px) */
    top: 70px; 
    
    left: 0; 
    right: 0; 
    width: 100%; 
    
    margin: 0; 
    
    background-color: var(--background-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-top: 3px solid var(--accent-color);
    list-style: none;
    padding: 30px 0;
    z-index: 999;
    
    display: none; 
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dropdown-trigger:hover .dropdown-menu {
    display: block;
    opacity: 1;
}

/* Wrapper for Content (Content stays centered within the 1200px container) */
.dropdown-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; 
    display: flex;
    gap: 40px;
}

/* Column 1: Software Links - Professional Look */
.software-links {
    flex: 2; 
}

.software-links h4 {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    font-size: 1.2em;
}

.dropdown-item {
    display: flex;
    flex-direction: column;
    padding: 15px 10px; 
    border-radius: 5px;
    margin-bottom: 5px;
    border: 1px solid transparent; 
    color: inherit; 
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    border-color: #ddd; 
    padding-left: 15px; 
    color: var(--primary-color);
}

.dropdown-item strong {
    font-weight: 600;
    font-size: 1.1em;
    color: var(--primary-color);
}

.dropdown-item span {
    font-size: 0.85em; 
    color: #666;
    margin-top: 2px;
}

.dropdown-item:hover strong {
    color: var(--accent-color);
}


/* Column 2: Service Panel Grid - Professional Look */
.service-panel {
    flex: 1.5; 
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.service-panel h4 {
    grid-column: 1 / -1; 
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    font-size: 1.2em;
}

.service-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px 10px;
    background-color: var(--light-bg);
    border-radius: 5px;
    transition: background-color 0.2s, transform 0.2s;
    border: 1px solid transparent;
    color: inherit;
    height: 100%; 
}

.service-link p {
    font-size: 0.75em; 
    color: #888;
    margin-top: 5px;
}

.service-link i {
    font-size: 1.5em;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.service-link span {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--primary-color);
}

.service-link:hover {
    background-color: var(--accent-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.service-link:hover i, .service-link:hover span, .service-link:hover p {
    color: var(--background-color);
}

/* ------------------------------------------------ */
/* --- HERO SECTION & SLIDER ANIMATION STYLES --- */
/* ------------------------------------------------ */

.hero-section {
    position: relative;
    height: 60vh;
    min-height: 450px;
    background-color: var(--primary-color); /* Primary color fallback */
    display: flex;
    align-items: center;
    color: var(--background-color);
    overflow: hidden; /* CRUCIAL: Hides slides that are off-screen */
}

/* Individual slide container setup */
.hero-content-slide {
    position: absolute; /* Allows stacking and animation */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Subtly darken the image for text readability */
    background-blend-mode: multiply;
    background-color: rgba(0, 0, 0, 0.35); 

    display: flex;
    align-items: center;
    justify-content: center; 
    text-align: center; 
    padding: 0 20px;
    
    /* Animation START State (Blurred, Hidden, and Off-Screen Right) */
    opacity: 0; 
    transform: translateX(100%); 
    filter: blur(10px); /* START: Heavy blur for stylish entry */
    
    /* Animation speed control (Set transition duration to 1.5s for a noticeable effect) */
    transition: opacity 1.5s ease-out, 
                transform 1.5s ease-out,
                filter 1.5s ease-out; /* ADDED filter to transition list */
    
    z-index: 1; 
}

/* Active slide state (Visible, Clear, and On-Screen) */
.hero-content-slide.active {
    opacity: 1; /* END: Fully visible */
    transform: translateX(0); /* END: Slides into view */
    filter: blur(0); /* END: Clear and sharp */
    z-index: 2; 
}

/* Wrapper for content - Kept transparent as requested */
.hero-slide-text {
    max-width: 800px; 
    margin: 0 auto;
    padding: 30px;
    background-color: transparent; 
    border-radius: 8px;
    color: var(--background-color); 
}

.hero-slide-text .hero-subtitle {
    display: block;
    font-size: 1.1em;
    font-weight: 300;
    margin-bottom: 5px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-slide-text h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--background-color);
}

.hero-slide-text .subtext {
    font-size: 1.3em;
    max-width: 600px;
    margin: 0 auto 30px;
    font-weight: 300;
}

.hero-slide-text .cta-group a:last-child {
    margin-left: 15px;
}

/* --- About Section --- */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.about-content ul li {
    font-weight: 600;
    color: var(--primary-color);
}

.about-content ul li i {
    color: var(--accent-color);
    margin-right: 5px;
}

/* --- What We Do Section (Service Grid) --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    text-align: center;
    padding: 30px;
    background-color: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.icon-big {
    font-size: 3em;
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* --- Pricing Section --- */
.software-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-button {
    padding: 10px 20px;
    background-color: var(--light-bg);
    color: var(--text-color);
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.tab-button.active {
    background-color: var(--primary-color);
    color: var(--background-color);
    border-color: var(--primary-color);
}

.pricing-table {
    display: none; 
}

.pricing-table.active {
    display: block;
}

.pricing-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.pricing-card {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.pricing-card.featured {
    border-top: 5px solid var(--accent-color);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.pricing-card h4 {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.pricing-card .price {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0 30px;
    line-height: 1;
}

/* Add Naira symbol before the price amount using a pseudo-element */
.pricing-card .price::before {
    content: "₦"; /* Naira Sign */
    margin-right: 5px; 
}

.pricing-card .price span {
    display: block;
    font-size: 0.4em;
    font-weight: 400;
    color: #666;
}

/* Feature Matrix Table */
.feature-matrix {
    overflow-x: auto; 
}

.feature-matrix table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; 
    text-align: left;
}

.feature-matrix th, .feature-matrix td {
    padding: 15px;
    border: 1px solid #f0f0f0;
}

.feature-matrix th {
    background-color: var(--primary-color);
    color: var(--background-color);
    font-weight: 600;
}

.feature-matrix td {
    color: var(--text-color);
    transition: background-color 0.3s;
}

.feature-matrix tr:nth-child(odd) td {
    background-color: var(--light-bg);
}

.feature-matrix td i.fa-check {
    color: var(--accent-color);
    font-size: 1.1em;
    display: block;
    text-align: center;
}

/* --- Training Section --- */
.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.training-card {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: border 0.3s;
    border: 1px solid #eee;
}

.training-card.featured {
    border: 2px solid var(--accent-color);
}

.training-card h4 {
    color: var(--primary-color);
    margin-top: 10px;
}

/* --- Technical Support Section --- */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.support-card {
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    background-color: var(--light-bg);
    border: 1px solid #ddd;
}

.support-card.featured {
    background-color: var(--primary-color);
    color: var(--background-color);
}

.support-card.featured h4, .support-card.featured p {
    color: var(--background-color);
}

/* --- Our Team Section --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.team-member {
    padding: 20px;
    background-color: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.team-member img {
    width: 100%;
    max-width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

.team-member .role {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 10px;
}

/* --- Contact Section --- */
.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1em;
}

.contact-form textarea {
    min-height: 150px;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 50px 0 20px;
    font-size: 0.9em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: var(--background-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-col a {
    color: var(--background-color);
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col address {
    margin-top: 15px;
    font-style: normal;
}

.footer-col i {
    margin-right: 8px;
    color: var(--accent-color);
}

.social-icons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.social-icons a {
    color: var(--background-color); 
    font-size: 1.2em;
    width: 35px;
    height: 35px;
    border: 1px solid var(--background-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    opacity: 0.8;
}

/* ---------------------------------------------------- */
/* --- Mobile Responsiveness (max-width 992px) --- */
/* ---------------------------------------------------- */
@media (max-width: 992px) {
    
    .main-header .container {
        /* This ensures the logo and toggle are on one row */
        flex-wrap: nowrap; 
    }
    
    .logo-tagline {
        display: none; 
    }
    
    /* FIX: Show and Align Toggle Button to the RIGHT */
    .menu-toggle {
        display: block; /* MUST be 'block' to appear */
        margin-left: auto; /* Pushes it to the far right */
    }

    .main-nav {
        order: 3; 
        width: 100%;
        position: static; 
        margin-left: 0;
        display: block; /* Must be 'block' so the nav-list can be contained when opened */
    }
    
    .nav-list {
        /* The list of links should be hidden initially in mobile */
        display: none; 
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
        background-color: var(--background-color);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 5px 5px;
        margin-left: 0; 
    }

    .nav-list.active {
        display: flex; 
    }
    
    /* Mobile menu styles (Dropdown) */
    .dropdown-menu {
        /* Reset Fixed position for mobile/stacked menu */
        position: static; 
        top: auto; 
        
        width: 100%;
        left: 0;
        right: auto;
        transform: translateX(0);
        min-width: 300px;
        box-shadow: none;
        border-top: none;
        padding: 0;
        display: none !important; 
        opacity: 1;
        margin: 0;
    }
    
    .dropdown-menu.mobile-open {
        display: block !important;
    }
    
    .dropdown-content-wrapper {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }
    
    .software-links, .service-panel {
        padding: 15px 20px;
        border-bottom: 1px solid #ddd;
    }
    
    .service-panel {
        grid-template-columns: 1fr;
    }
    

    .nav-list > li {
        margin: 0;
        border-bottom: 1px solid #eee;
        width: 100%;
        text-align: center;
    }

    .nav-list > li > a {
        padding: 15px;
    }
    
    .dropdown-item {
        border: none;
        padding: 10px 0;
        text-align: left;
        padding-left: 20px;
    }
    
    .dropdown-item:hover {
        padding-left: 30px; 
        border: none;
    }

    .pricing-tiers, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid, .training-grid, .service-grid, .support-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    /* Hero Slider Mobile Adjustments */
    .hero-slide-text {
        padding: 20px;
    }
    
    .hero-slide-text h1 {
        font-size: 2.5em;
    }
    
    .hero-slide-text .subtext {
        font-size: 1.1em;
    }
}

/* --- Further Mobile Optimizations (max-width 576px) --- */
@media (max-width: 576px) {
    .content-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8em;
    }
    
    .hero-slide-text h1 {
        font-size: 1.8em;
    }
    
    .hero-slide-text .subtext {
        font-size: 1em;
    }
    
    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .cta-group a:last-child {
        margin-left: 0;
    }
    
    .about-content ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-grid {
        gap: 20px;
    }
}