/* --- Premium MSP Corporate Color Tokens --- */
:root {
    --bg-midnight: #050914;        /* Solid dark header, drawer, and footer base */
    --bg-primary: #0a0f1d;         /* Canvas primary background layer */
    --bg-surface: #11182c;         /* Card wrappers, dropdowns, and container modules */
    --bg-section-alt: #0d1426;     /* Subtle section variant divider */
    
    --brand-indigo: #1e3a8a;       /* Deep corporate blue foundation anchor */
    --accent-electric: #0066ff;    /* Vibrant button gradient starting base */
    --accent-cyan: #00d2ff;        /* Hyper-modern technology highlight pointer */
    
    --text-white: #ffffff;         /* Bold structural main headers */
    --text-main: #e2e8f0;          /* Readability optimal light gray content body text */
    --text-muted: #94a3b8;         /* Subheader references and inactive text labels */
    
    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
}

/* --- Header & Navigation --- */
header {
    position: sticky;
    top: 0;
    background-color: var(--bg-midnight);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    z-index: 1000;
    width: 100%;
}

.nav-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 17px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 3000;
    order: 1;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    transition: all 0.3s ease;
}

.logo {
    order: 2;
    margin-right: auto;
    margin-left: 20px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 38px;
    width: auto;
}

.nav-wrapper {
    order: 3;
    margin-right: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.25s ease;
}

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

.cta-btn {
    order: 4;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-electric));
    color: var(--bg-midnight);
    padding: 10px 22px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 210, 255, 0.35);
}

/* --- Dropdown Engine (Desktop) --- */
.dropdown {
    position: relative;
}

.dropdown .dropbtn {
    padding: 14px 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.arrow {
    font-size: 9px;
    transition: transform 0.2s ease;
    color: var(--text-muted);
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
    color: var(--accent-cyan);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-surface);
    min-width: 230px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 10px 0;
    z-index: 2000;
}

.dropdown-grid {
    display: flex;
    flex-direction: column;
}

.dropdown-grid a {
    color: var(--text-muted);
    padding: 10px 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-grid a:hover {
    background-color: rgba(255, 255, 255, 0.015);
    color: var(--text-white);
    border-left: 3px solid var(--accent-cyan);
    padding-left: 24px;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInMenu 0.2s ease-out;
}

@keyframes fadeInMenu {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* --- Hero Section --- */
.hero {
    max-width: 100%;
    margin: 0 auto;
    padding: 130px 20px;
    display: flex;
    align-items: center;
    min-height: 75vh;
    background-image: 
        linear-gradient(to right, rgba(10, 15, 29, 0.96) 35%, rgba(10, 15, 29, 0.2)), 
        url('img/certificatesbg1.png'); 
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    background-color: var(--bg-primary);
}

.hero-content {
    max-width: 660px;
    margin-left: 5%;
}

.hero h1 {
    font-size: 50px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 25px;
    color: var(--text-white);
}

.hero h1 span {
    background: linear-gradient(to right, var(--text-white), var(--accent-cyan));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* --- Certificates Section --- */
.certificates-section {
    background-color: var(--bg-section-alt);
    padding: 60px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.certificates-container {
    max-width: 1200px;
    margin: 0 auto;
}

.certificates-title {
    text-align: center;
    margin-bottom: 45px;
}

.certificates-title h2 {
    font-size: 28px;
    color: var(--text-white);
    font-weight: 700;
    margin-bottom: 12px;
}

.certificates-title p {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
}

.certificates-grid-display {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 10px;
}

.cert-item {
    background-color: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 20px;
    width: 175px;
    height: 135px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
}

.cert-item:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 210, 255, 0.25);
    background-color: rgba(17, 24, 44, 0.8);
}

.cert-item img {
    max-height: 50px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    margin-bottom: 14px;
}

.cert-item span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

.cert-item:hover span {
    color: var(--accent-cyan);
}

/* --- Services Section --- */
.services-section {
    background-color: var(--bg-primary);
    padding: 90px 20px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 34px;
    color: var(--text-white);
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 16px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-surface);
    padding: 45px 35px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 210, 255, 0.3);
}

.service-icon {
    margin-bottom: 24px;
    display: flex;
}

.service-icon img {
    height: 38px;
    width: auto;
}

.service-card h3 {
    font-size: 20px;
    color: var(--text-white);
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* --- Trust Bar Banner --- */
.trust-bar {
    width: 100%;
    background-color: var(--bg-section-alt);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    padding: 18px 20px;
}

.trust-bar p {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 35px;
    font-size: 14px;
    font-weight: 500;
}

.trust-bar p span {
    white-space: nowrap;
}

/* --- Footer Module --- */
.site-footer {
    background-color: var(--bg-midnight);
    padding: 85px 20px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 45px;
    padding-bottom: 55px;
}

.brand-col .footer-logo img {
    height: 42px;
    width: auto;
    margin-bottom: 22px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 310px;
    margin-bottom: 25px;
}

.contact-strip p {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 8px;
}

.contact-strip strong {
    color: var(--accent-cyan);
    font-weight: 600;
}

.footer-col h3 {
    color: var(--text-white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 28px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 25px;
    height: 2px;
    background-color: var(--accent-cyan);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col ul a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col ul a:hover {
    color: var(--text-white);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 35px 0;
}

.bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.legal-text p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.legal-links a {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
}

.legal-links a:hover {
    color: var(--accent-cyan);
}

.partner-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.badge-placeholder img {
    height: auto;
    max-width: 85px;
    filter: brightness(0.9);
}

/* --- Media Queries (Tablet View down to 992px) --- */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    .logo {
        margin-left: 16px;
    }

    .nav-wrapper {
        position: fixed;
        top: 69px; 
        left: 0;
        width: 100%;
        height: calc(100vh - 69px);
        background-color: var(--bg-midnight);
        max-height: 0;
        overflow-y: auto;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2500;
    }

    .nav-wrapper.is-open {
        max-height: 100vh;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 24px;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown .dropbtn {
        width: 100%;
        justify-content: space-between;
        padding: 18px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        color: var(--text-white);
    }

    .dropdown-content {
        display: none;
        position: static;
        transform: none;
        background-color: rgba(255, 255, 255, 0.01);
        box-shadow: none;
        border: none;
        padding: 6px 0 6px 16px;
        min-width: 100%;
    }
    
    .dropdown.is-active .dropdown-content {
        display: block;
    }

    .dropdown.is-active .arrow {
        transform: rotate(180deg);
        color: var(--accent-cyan);
    }

    .menu-toggle.is-open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle.is-open .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-open .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* --- Small Tablet / Mobile View adjustments --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 34px; }
    .hero { padding: 65px 20px; text-align: center; }
    .hero-content { margin: 0 auto; }
    .hero h1, .hero p { margin-left: 0; }
    
    .certificates-title h2 { font-size: 24px; }
    .cert-item {
        width: calc(50% - 12px); 
        height: 125px;
    }
    .trust-bar p { gap: 15px 25px; }
}

@media (max-width: 500px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    .bottom-container {
        flex-direction: column;
        text-align: center;
    }
    .partner-badges {
        justify-content: center;
    }
}

/* --- Contact Us Section Layout --- */
.contact-section {
    background-color: var(--bg-primary);
    padding: 100px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

/* Left Column Info Styles */
.small-tag {
    color: var(--accent-cyan);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.contact-info-block h2 {
    font-size: 36px;
    color: var(--text-white);
    margin-bottom: 18px;
    line-height: 1.25;
}

.contact-info-block p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 35px;
}

.info-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background-color: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.card-icon {
    font-size: 24px;
    color: var(--accent-cyan);
    background-color: rgba(0, 210, 255, 0.05);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.card-text h4 {
    color: var(--text-white);
    font-size: 15px;
    margin-bottom: 4px;
}

.card-text p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 0;
}

/* Right Column Interactive Form Elements */
.contact-form-wrapper {
    background-color: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.form-row-split {
    display: flex;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 22px;
    width: 100%;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    background-color: var(--bg-midnight);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 12px 16px;
    color: var(--text-white);
    font-family: var(--font-main);
    font-size: 14px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.15);
}

/* Custom Dropdown styling tweaks */
.form-group select option {
    background-color: var(--bg-surface);
    color: var(--text-white);
}

/* Form Action Submission Button */
.form-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-electric));
    color: var(--bg-midnight);
    border: none;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.4);
}

/* Mobile Responsive Collapses */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 45px;
    }
}

@media (max-width: 550px) {
    .form-row-split {
        flex-direction: column;
        gap: 0;
    }
    .contact-form-wrapper {
        padding: 25px 20px;
    }
}