/* --- Global Styles & Fonts --- */
body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #ffffff;
    color: #000000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Added for sub-pages to prevent content from hiding behind the fixed header */
body.sub-page {
    padding-top: 70px;
}

.container {
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Main Header (Full Screen) --- */
.header {
    background-color: #00042F;
    color: #ffffff;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden; 
}

/* --- Top Navigation Bar --- */
.navbar {
    padding: 14px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 22px; 
    font-weight: 600;
    color: inherit;
}

.logo img {
    height: 36px;
    width: 36px;
    margin-right: 14px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.header .nav-links {
    position: relative;
    right: 25px;
}

.header .nav-links a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 28px;
    font-size: 16px;
    font-weight: 400;
}

.header .nav-links a:hover {
    text-decoration: underline;
}

/* --- Hero Content (inside large header) --- */
.hero-content {
    text-align: center;
    color: #ffffff;
    padding-bottom: 10vh;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 16px 0;
}

.hero-content .subtitle {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 32px auto;
    line-height: 1.6;
    color: #f2f2f2;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* --- Quick Links Bar (at bottom of large header) --- */
.quick-links-nav {
    padding: 16px 0;
    background-color: rgba(0, 0, 0, 0.2);
    font-size: 11px;
}

.quick-links-nav .container {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap; 
}

.quick-links-nav span {
    font-weight: 600;
    color: #ffffff;
}

.quick-links-nav a {
    color: #ffffff;
    text-decoration: none;
}

.quick-links-nav a:hover {
    text-decoration: underline;
}

/* --- Sticky Header (Initially Hidden) --- */
.sticky-header {
    position: fixed;
    top: -100px; /* Start off-screen */
    left: 0;
    width: 100%;
    background-color: #00042F;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: top 0.3s ease-in-out;
    color: #ffffff;
}

.sticky-header .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sticky-header.visible {
    top: 0; /* Slide into view */
}

.sticky-header .nav-links a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 28px;
    font-size: 16px;
    font-weight: 400;
}

.sticky-header .nav-links a:hover {
    text-decoration: underline;
}

/* --- Internal Page Header --- */
.page-header {
    background-color: #00042F;
    color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.page-header .nav-links {
    position: relative;
    right: 25px;
}

.page-header .nav-links a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 28px;
}

.page-header .nav-links a:hover {
    text-decoration: underline;
}


/* --- Quick Links Dropdown (for sticky header) --- */
.quick-links-dropdown {
    position: relative;
    display: inline-block;
}

.quick-links-button {
    background: none;
    border: none;
    color: inherit;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    margin-left: 20px;
    font-weight: 400;
}

.quick-links-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    width: 400px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    right: 0;
    border-radius: 4px;
    column-count: 2;
    column-gap: 0;
    padding: 5px 0;
}

.nav-links .quick-links-content a {
    color: #00042F;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    margin-left: 0;
    white-space: normal !important;
    word-break: break-word !important;
    break-inside: avoid-column;
}

.quick-links-content a:hover {
    background-color: #ddd;
    color: #0067b8 !important;
}

.quick-links-dropdown:hover .quick-links-content {
    display: block;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    background-color: #00042F;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid #00042F;
    transition: background-color 0.2s, color 0.2s;
}

.btn:hover {
    background-color: #00074d;
    border-color: #00074d;
}

.btn--light {
    background-color: #ffffff;
    color: #00042F;
    border-color: #ffffff;
}

.btn--light:hover {
    background-color: #e0e0e0;
}

.btn--secondary-light {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn--secondary-light:hover {
    background-color: #ffffff;
    color: #00042F;
}

.btn-link {
    color: #00042F;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    position: relative;
}

.btn-link::after {
    content: '→';
    margin-left: 8px;
    transition: margin-left 0.2s;
}

.btn-link:hover::after {
    margin-left: 12px;
}

/* --- Sections --- */
.categories-section, .about-section, .tech-assistance-section, .contact-section, .careers-section {
    padding: 100px 0;
    text-align: center;
}

.tech-assistance-section, .contact-section {
    background-color: #f2f2f2;
}

.categories-section h2, .about-section h2, .tech-assistance-section h2, .contact-section h2, .careers-section h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-description, .about-section p, .tech-assistance-section p, .careers-section p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 60px auto;
    color: #333;
    line-height: 1.7;
}

.careers-section p {
    margin-bottom: 30px;
}


.about-section p, .tech-assistance-section p {
    margin-bottom: 30px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: left;
}

.category-card {
    background-color: #f7f7f7;
    padding: 24px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.category-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.category-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.category-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    flex-grow: 1;
    margin-bottom: 20px;
}

.tech-ai-card {
    background-color: #00042F;
    color: #ffffff;
}

.tech-ai-card h3, .tech-ai-card .btn-link {
    color: #ffffff;
}

.tech-ai-card p {
    color: #e0e0e0;
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    height: 600px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.contact-form-container iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* --- HQ Section --- */
.hq-section {
    padding: 100px 0;
    background-color: #f2f2f2;
}

.hq-content {
    display: flex;
    align-items: center;
    gap: 48px;
}

.hq-image {
    flex: 1 1 50%;
}

.hq-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hq-text {
    flex: 1 1 50%;
    text-align: left;
}

.hq-text h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 16px;
}

.hq-text p {
    font-size: 18px;
    color: #333;
    line-height: 1.7;
    margin-bottom: 30px;
}


/* --- Footer --- */
.footer {
    background-color: #e0e0e0;
    color: #333;
    font-size: 14px;
    padding: 60px 0;
}

.footer-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 15px;
}

.footer-column a {
    display: block;
    color: #333;
    text-decoration: none;
    margin-bottom: 10px;
}

.footer-column a:hover {
    text-decoration: underline;
    color: #00042F;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid #c0c0c0;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom-links a {
    color: #333;
    text-decoration: none;
    margin-left: 20px;
}

.footer-bottom-links a:hover {
    text-decoration: underline;
}

/* --- Subpage Hero --- */
.subpage-hero {
    position: relative;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* MODIFIED: Aligns content to the left */
    text-align: left; /* MODIFIED: Aligns text to the left */
    color: #ffffff;
    overflow: hidden;
    margin-top: -70px; 
}

.subpage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 4, 47, 0.6); /* Dark overlay */
    z-index: 1;
}

.subpage-hero img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.subpage-hero .container {
    position: relative;
    z-index: 2;
}

.subpage-hero h1 {
    font-size: 48px;
    font-weight: 600;
    margin: 0;
}

/* --- Content Section for Subpages --- */
.content-section {
    padding: 80px 0;
    line-height: 1.8;
    font-size: 17px;
}

.content-section .container {
    max-width: 900px;
    text-align: left;
}

.content-section h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 24px;
}

.content-section p {
    margin-bottom: 20px;
}


/* --- Responsive Design for Mobile & Tablet --- */
@media (max-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 992px) {
    .quick-links-nav .container {
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content .subtitle {
        font-size: 16px;
    }

    .nav-links a.hide-on-mobile {
        display: none;
    }
    
    .header .nav-links a {
        display: none;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }

    .quick-links-dropdown {
        display: inline-block;
    }

    /* Mobile styles for internal page header */
    .page-header .logo span {
        font-size: 18px; /* Slightly smaller logo text */
    }
    .page-header .nav-links a {
        margin-left: 15px; /* Reduced spacing between links */
        font-size: 14px;
    }
    .page-header .quick-links-button {
        margin-left: 15px;
        font-size: 14px;
    }

    /* Mobile styles for HQ Section */
    .hq-content {
        flex-direction: column;
        text-align: center;
    }
    .hq-text {
        text-align: center;
    }


    .footer-bottom {
        flex-direction: column;
        justify-content: center;
    }

    .footer-bottom-links {
        margin-top: 15px;
    }

    .footer-bottom-links a {
        margin: 0 10px;
    }
}