:root {
    --color-primary: #1E3A5F;
    --color-secondary: #00B4D8;
    --color-accent: #FF6B35;
    --color-accent-bright: #ff8554;
    --color-bg-black: #000000;

    --color-bg-body: #0A121F;
    /* Very dark blue for main background */
    --color-bg-dark: #152338;
    /* Slightly lighter for cards/sections */
    --color-bg-darker: #0E1A2B;

    --color-text-white: #FFFFFF;
    --color-text-grey: #d1d5db;

    --font-primary: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-body);
    color: var(--color-text-white);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-grey);
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

/* Decorative line for titles */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
    /* Match text */
    margin-top: 10px;
}

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

.text-center .section-title::after {
    margin: 10px auto 0;
}

/* Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-text-white);
}

.btn-primary:hover {
    background-color: var(--color-accent-bright);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.btn-outline {
    border: 2px solid var(--color-text-white);
    color: var(--color-text-white);
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-text-white);
    color: var(--color-bg-black);
}

.btn-link {
    color: var(--color-secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-link:hover {
    color: var(--color-accent);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

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

.logo {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    /* White background added */
    padding: 5px 12px;
    border-radius: 6px;
}

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

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    font-size: 0.85rem;
    /* Slightly smaller text */
    font-weight: 600;
    text-transform: uppercase;
}

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

.navbar .btn {
    padding: 8px 18px;
    /* Smaller button */
    font-size: 0.8rem;
    margin-left: 15px;
    /* Add some space from links */
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('../images/hero_radar_blue.png');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Page Header */
.page-header {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #111;
    /* Fallback */
    margin-top: 90px;
    /* Offset fixed navbar */
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-grey);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-dark {
    background-color: var(--color-bg-dark);
}

.section-black {
    background-color: var(--color-bg-body);
}

/* About Stats */
.about-stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    border-left: 2px solid #333;
    padding-left: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-secondary);
    /* Match text accent */
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    color: white;
    margin-top: 5px;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
    background: var(--color-bg-dark);
    padding: 2rem;
    border-radius: 8px;
    transition: 0.3s;
}

.team-member:hover {
    background: #222;
}

.member-img-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-accent-bright);
}

.member-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.member-role {
    font-size: 0.9rem;
    color: var(--color-accent-bright);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0;
}

/* Products */
.product-card {
    background-color: var(--color-bg-dark);
    padding: 0;
    border-top: 4px solid var(--color-secondary);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.product-content {
    padding: 2.5rem;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    margin-bottom: 2rem;
    color: var(--color-text-grey);
}

.feature-list li {
    margin-bottom: 0.5rem;
    padding-left: 20px;
    position: relative;
}

.feature-list li::before {
    content: '►';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-size: 0.7rem;
    top: 5px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Projects Page */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.project-item {
    background-color: var(--color-bg-dark);
    /* Card background matching other cards */
    border-radius: 10px;
    /* Consistent corner rounding if used elsewhere, or just keep square */
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle border */
}

@media (min-width: 768px) {
    .project-item {
        grid-template-columns: 1fr 1fr;
        /* Image left, Text right */
        align-items: center;
    }

    /* Alternating layout for variety */
    .project-item:nth-child(even) {
        direction: rtl;
        /* Puts image on right */
    }

    .project-item:nth-child(even) .project-content {
        direction: ltr;
        /* Reset text direction */
    }
}

.project-img-wrapper {
    width: 100%;
    height: 100%;
    min-height: 340px;
    /* Ensure visibility */
    position: relative;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-content {
    padding: 2.5rem;
}

.project-content h3 {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.project-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

.project-content p:last-child {
    margin-bottom: 0;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border: 1px solid #333;
    transition: 0.3s;
}

.service-card:hover {
    background: var(--color-accent);
    /* Use darker blue for card background on hover */
    border-color: var(--color-accent);
}

.service-card:hover h4,
.service-card:hover p {
    color: white;
}

.service-card h4 {
    font-size: 1.1rem;
    color: white;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* Projects Banner */
.project-banner {
    background: linear-gradient(45deg, #111, #222);
    padding: 4rem;
    border-radius: 4px;
    border-left: 10px solid var(--color-accent-bright);
}

/* Footer */
.footer {
    background-color: #0a0a0a;
    padding-top: 5rem;
    border-top: 1px solid #222;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: var(--color-text-grey);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--color-accent-bright);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid #222;
    padding: 2rem 0;
    text-align: center;
    color: #666;
    font-size: 0.8rem;
}

/* Partner Logos in Footer */
.partner-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.partner-logos p {
    margin-bottom: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    margin-right: 10px;
}

.content-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.partner-img {
    height: 40px;
    width: auto;
    background: white;
    padding: 5px;
    border-radius: 4px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
}

.social-icons a {
    width: 35px;
    height: 35px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
}

.social-icons a:hover {
    background: var(--color-accent-bright);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* simple hide for now, or implement toggle */
    }

    /* Hide specific buttons on mobile */
    .navbar .btn-primary,
    .hero-buttons .btn-outline {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .grid-2-col {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        border-left: none;
        border-top: 2px solid #333;
        padding-left: 0;
        padding-top: 2rem;
        flex-direction: row;
        flex-wrap: wrap;
        /* Allow wrapping */
        justify-content: center;
        /* Center items */
        gap: 2rem;
        /* Add spacing */
    }

    .about-text {
        text-align: center;
    }

    .project-banner {
        padding: 0.5rem;
    }

    .partner-logos {
        justify-content: flex-start;
    }
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
}

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

/* =========================================
   Service Listing Page (services.html)
   ========================================= */
.page-hero {
    background-color: var(--color-bg-black);
    padding: 120px 0 60px;
    text-align: left;
    border-bottom: 1px solid #222;
}

.page-hero h1 {
    font-size: 3rem;
    color: var(--color-text-white);
    margin-bottom: 1rem;
}

.breadcrumbs {
    font-size: 1rem;
    color: var(--color-text-grey);
    margin-bottom: 0;
}

.breadcrumbs a {
    color: var(--color-accent-bright);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.services-grid-section {
    padding: 80px 0;
    background-color: var(--color-bg-black);
}

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

.service-card {
    background: var(--color-bg-dark);
    border-radius: 8px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: var(--color-accent-bright);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-white);
}

.service-card p {
    color: var(--color-text-grey);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more-btn {
    display: inline-block;
    color: var(--color-accent-bright);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more-btn:hover {
    color: var(--color-accent-light);
}

/* =========================================
   Service Detail Pages
   ========================================= */
.service-detail-body {
    background-color: var(--color-bg-black);
    color: var(--color-text-white);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* =========================================
   New Services Page Layout (70/30 Split)
   ========================================= */

.service-row {
    display: flex;
    flex-direction: row;
    background: var(--color-bg-dark);
    border: 1px solid #333;
    border-radius: 8px;
    margin-bottom: 3rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-row:nth-child(even) {
    flex-direction: row-reverse;
}

.service-row:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--color-accent);
}

.service-main {
    flex: 0 0 70%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.service-offer {
    flex: 0 0 30%;
    background: rgba(0, 0, 0, 0.3);
    border-left: 1px solid #333;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.service-row:nth-child(even)>.service-offer {
    border-left: none;
    border-right: 1px solid #333;
}

.service-icon-large {
    font-size: 3.5rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-main h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.service-main p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-grey);
    margin-bottom: 0;
}

.offer-title {
    font-size: 1.2rem;
    color: var(--color-accent);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.offer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offer-list li {
    position: relative;
    padding: 0;
    margin-bottom: 0.8rem;
    color: var(--color-text-white);
    font-size: 0.95rem;
    line-height: 1.5;
}

.offer-list li::before {
    content: '✓';
    display: inline-block;
    margin-right: 8px;
    color: var(--color-secondary);
    font-weight: bold;
    position: static;
}

/* Responsive for Services Layout */
@media (max-width: 992px) {
    .service-row {
        flex-direction: column;
    }

    .service-main,
    .service-offer {
        flex: 0 0 100%;
        width: 100%;
        border-left: none;
    }

    .service-offer {
        border-top: 1px solid #333;
        background: rgba(0, 0, 0, 0.2);
    }
}



/* Reusing .page-hero for header */

.service-content-section {
    padding: 60px 0 100px;
    position: relative;
}

.content-card {
    background: var(--color-bg-dark);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 60px;
    min-height: 400px;
    position: relative;
    border: 1px solid #333;
}

/* Staggered Grid Layout for Text */
/* Staggered Grid Layout - Modified to Single Column */
.staggered-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    /* Limit width for readability */
    margin: 0 auto;
    /* Center the column */
}

.text-block-1,
.text-block-2 {
    width: 100%;
    margin-top: 0;
    text-align: left;
    color: var(--color-text-grey);
}

.text-block-1 p,
.text-block-2 p {
    color: var(--color-text-grey);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .header-partners {
        display: none !important;
    }

    .staggered-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .text-block-1,
    .text-block-2 {
        grid-column: 1;
        margin-top: 0;
    }

    .content-card {
        padding: 30px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }
}

/* Statistics Section */
.stats-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #333;
    transition: transform 0.3s ease;
}

.stat-box:hover {
    border-color: var(--color-accent-bright);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    color: var(--color-accent-bright);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-grey);
    text-transform: uppercase;
    letter-spacing: 1px;
}