:root {
    --primary: #FF6B35;
    --secondary: #004E98;
    --dark: #333333;
    --light: #F7F7F7;
    --gray: #E0E0E0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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

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

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary);
}

.logo span {
    color: var(--primary);
}

.logo-icon {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

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

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #e55a2a;
}

.btn-secondary {
    background-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: #003d7a;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section (for index.html) */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, var(--secondary) 0%, #002d59 100%);
    color: white;
}

.hero-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
}

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

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

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Sub-page Hero Section (for services.html, industries.html, useful-links.html, cybersecurity-solutions.html) */
.hero-sub {
    padding-top: 120px;
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--secondary) 0%, #002d59 100%);
    color: white;
    text-align: center;
}

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

.hero-sub p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Services Preview Section (used on index.html) */
.services-preview {
    padding: 80px 0;
    background-color: white;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

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

.service-card {
    background-color: var(--light);
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    background-color: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

/* Content Sections (used on services.html, industries.html, useful-links.html, cybersecurity-solutions.html) */
.content-section {
    padding: 80px 0;
}

.content-section.bg-light {
    background-color: var(--light);
}
.content-section.bg-white {
    background-color: white;
}

.service-detail-block {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    gap: 40px; /* Consistent spacing between flex items */
}

.service-detail-block:last-child {
    margin-bottom: 0;
}

.service-detail-block.reverse {
    flex-direction: row-reverse;
}

.service-detail-text {
    flex: 1;
    min-width: 300px;
    /* Spacing now handled by gap on parent .service-detail-block */
}

.service-detail-block.reverse .service-detail-text {
    /* Spacing now handled by gap on parent .service-detail-block */
}

.service-detail-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
    /* Specific margins for spacing removed, handled by gap on parent */
    margin-right: 0;
    margin-left: 0;
}

.service-detail-block.reverse .service-detail-image {
    /* Specific margins for spacing removed, handled by gap on parent */
    margin-right: 0;
    margin-left: 0;
}

/* Ensure images scale correctly within their flex container */
.service-detail-image img {
    max-width: 100%; /* Ensure image doesn't overflow its parent flex item */
    height: auto;   /* Maintain aspect ratio */
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-detail-text h3 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.service-detail-text ul {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.service-detail-text ul li {
    margin-bottom: 10px;
    color: #555;
    display: flex; /* Keep flex for icon alignment */
    align-items: flex-start; /* Keep flex for icon alignment */
}

.checkmark-icon {
    color: #28a745; /* Green color for checkmark */
    margin-right: 10px; /* Space after checkmark */
    font-size: 1.2em;
    line-height: 1.6;
    display: inline-block;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

/* Adjusting how the text content flows for bullets */
.service-detail-text ul li div {
    flex-grow: 1; /* Allow the div to take up remaining space */
}

/* Allow strong to be inline, let natural flow handle wrapping */
.service-detail-text ul li div strong {
    /* Removed display: block and margin-bottom from previous fixes */
}

/* Solution Grid specific styles (from cybersecurity-solutions.html) */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.solution-card {
    background-color: var(--light);
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--gray);
}

.solution-card.bg-white {
    background-color: white;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.solution-icon {
    background-color: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.solution-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.solution-card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.solution-card ul li {
    margin-bottom: 8px;
    color: #555;
    display: flex;
    align-items: flex-start;
}

/* Checkmark icon styling for solution cards (now targeting span for consistency) */
.solution-card ul li .checkmark-icon {
    color: #28a745; /* Green color for checkmark */
    margin-right: 10px; /* Space after checkmark */
    font-size: 0.9em; /* Smaller size for solution card icons */
    line-height: 1.6;
    display: inline-block;
    flex-shrink: 0;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--light);
}

.about-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 1rem;
    color: #666;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background-color: white;
}

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

.testimonial-card {
    background-color: var(--light);
    border-radius: 10px;
    padding: 30px;
    position: relative;
}

.testimonial-card:before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.client-info {
    display: flex;
    align-items: center;
}

.client-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    background-color: var(--gray);
}

.client-name {
    font-weight: 600;
}

.client-position {
    font-size: 0.9rem;
    color: #666;
}

/* Call to Action */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #ff8f66 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

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

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

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    margin-bottom: 20px;
}

.info-icon {
    color: var(--primary);
    font-size: 1.5rem;
    margin-right: 15px;
}

.contact-form h3 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    list-style: none;
}

.social-links li {
    margin-right: 15px;
}

.social-links a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-image {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .mobile-menu {
        display: block;
    }

    .nav-links {
        display: none; /* Mobile menu is toggled via JS 'active' class */
        flex-direction: column;
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 20px;
    }

    .nav-links .btn {
        margin-top: 10px;
        display: block;
        text-align: center;
    }

    /* Adjustments for content-sections on smaller screens */
    .service-detail-text {
        padding-right: 0; /* Removed explicit padding, gap handles it */
        margin-bottom: 40px; /* Add vertical margin when stacked */
    }

    .service-detail-block {
        flex-direction: column; /* Stack image and text vertically */
        gap: 20px; /* Adjust gap for smaller screens if needed */
    }

    .service-detail-block.reverse {
        flex-direction: column-reverse; /* Maintain order for reversed blocks */
    }

    .service-detail-image {
        margin-right: 0; /* Removed explicit margin, gap handles it */
        margin-left: 0;  /* Removed explicit margin, gap handles it */
        /* margin-bottom is now handled by gap on parent .service-detail-block */
    }
}
