/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0a4a7f; /* Deep Blue */
    --secondary-color: #4a90e2; /* Lighter Blue */
    --accent-color: #f5a623; /* Orange/Gold Accent */
    --light-gray: #f4f7f6;
    --medium-gray: #e0e0e0;
    --dark-gray: #333333;
    --text-color: #484848;
    --white-color: #ffffff;
    --body-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --heading-font: 'Arial', sans-serif; /* Or a more modern sans-serif */
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; color: var(--secondary-color);}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

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

ul {
    list-style: none; /* Reset */
    padding-left: 0; /* Reset */
}

ul li {
     margin-bottom: 0.5rem;
}

/* Add marker back for specific lists */
.service-item ul, .about-text ul, .ai-text ul {
    list-style: disc;
    padding-left: 20px; /* Indentation */
    margin-left: 20px; /* Overall spacing */
}
.service-item ul li::marker,
.about-text ul li::marker,
.ai-text ul li::marker {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents bottom space */
}

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

.section-padding {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--light-gray);
}

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

.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

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

.btn-primary:hover {
    background-color: #083a63; /* Darker primary */
    color: var(--white-color);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: #d98e1f; /* Darker accent */
     color: var(--white-color);
    transform: translateY(-2px);
}

/* --- Header & Navigation --- */
.navbar {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

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

.nav-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    /* If using logo image: */
    /* img { height: 40px; width: auto; } */
}

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

.nav-item {
    margin-left: 25px;
}

.nav-link {
    color: var(--text-color);
    padding: 5px 10px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    font-weight: bold;
    color: var(--primary-color);
}

.nav-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    position: relative;
    transition: background-color 0s 0.15s linear; /* Delay disappearance */
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: transform var(--transition-speed) ease, top var(--transition-speed) 0.15s ease; /* Delay vertical move */
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }


/* --- Hero Section --- */
.hero {
    background-color: var(--primary-color); /* Fallback */
    background-size: cover;
    background-position: center center;
    color: var(--white-color);
    height: 70vh; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative; /* For overlay */
}

/* Optional overlay for better text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 74, 127, 0.6); /* Primary color with transparency */
}

.hero-content {
    position: relative; /* To be above overlay */
    z-index: 1;
    max-width: 800px;
}

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

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

/* --- Intro Section --- */
.intro h2 {
    text-align: center;
    margin-bottom: 2rem;
}
.intro p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 1.1rem;
}


/* --- Key Services Section --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.service-card {
    background-color: var(--white-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.12);
}

/* Original image style - keep if needed as fallback or reference */
/* .service-card-img {
    max-height: 150px;
    width: auto;
    margin: 0 auto 1.5rem auto;
    object-fit: contain;
} */

.service-card h3 {
    margin-bottom: 1rem;
    margin-top: 0; /* Adjust if icon adds too much space */
}

.learn-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: bold;
}

.learn-more:hover {
    text-decoration: underline;
}

/* --- Call to Action (CTA) Section --- */
.cta h2 {
    margin-bottom: 1rem;
}
.cta p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* --- Page Header --- */
.page-header {
    text-align: center;
    padding: 40px 0; /* Smaller padding than section */
}
.page-header h1 {
    margin-bottom: 0.5rem;
}
.page-header p {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* --- About Page Specific --- */
.grid-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- Services Page Specific --- */
.service-item {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--medium-gray);
}
.service-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.service-item h2 {
    margin-bottom: 1rem;
    display: flex; /* Align icon and text */
    align-items: center; /* Vertically center icon and text */
}
.service-item ul {
    margin-top: 1rem;
}

/* --- AI Governance Page Specific --- */
.grid-ai {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start; /* Align items to the top */
}

.ai-image img {
     border-radius: 8px;
     box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ai-text ul {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

/* --- Contact Page Specific --- */
.contact-form-section {
     background-size: cover;
     background-position: center;
     position: relative;
}
/* Optional overlay for background image */
.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* White overlay */
    z-index: 0;
}

.contact-form-section .container {
    position: relative;
    z-index: 1;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.contact-info h2, .contact-form h2 {
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex; /* Align icon and text */
    align-items: center; /* Vertically center */
}
.contact-info strong {
    color: var(--primary-color);
    margin-right: 5px; /* Space between icon/strong and rest of text */
}
.contact-info a {
    word-break: break-all; /* Prevent long emails/URLs from breaking layout */
}


.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--dark-gray);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--body-font);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

#form-status {
    margin-top: 1rem;
    font-weight: bold;
}

/* --- Footer --- */
footer {
    background-color: var(--dark-gray);
    color: var(--light-gray);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px; /* Add some space before footer */
}

/* --- Icon Styles (MDI) --- */

/* Service Card Icons (Home Page) */
.service-icon {
    font-size: 4rem; /* Adjust size as needed */
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block; /* Center it */
    line-height: 1; /* Prevent extra spacing */
}

/* Service Item Title Icons (Services Page) */
.title-icon {
    font-size: 1.5rem; /* Match h2 size or slightly smaller */
    color: var(--secondary-color);
    margin-right: 0.75rem; /* More space */
    vertical-align: middle; /* Align with text - might not be needed with flex on h2 */
    flex-shrink: 0; /* Prevent icon from shrinking if title wraps */
}

/* Contact Info Icons (Contact Page) */
.contact-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 0.6rem;
    vertical-align: middle; /* Align with text */
    width: 20px; /* Ensure consistent alignment space */
    display: inline-block; /* Needed for width */
    text-align: center; /* Center icon within its space */
    flex-shrink: 0; /* Prevent shrinking */
}


/* --- Responsive Design --- */

@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.1rem; }

    .grid-about, .grid-ai, .contact-wrapper {
        grid-template-columns: 1fr; /* Stack columns */
    }
    .about-image, .ai-image {
        order: -1; /* Move image above text on smaller screens */
        margin-bottom: 2rem;
        text-align: center; /* Center image if needed */
    }
    .about-image img, .ai-image img {
        max-width: 80%; /* Don't let images take full width when stacked */
        margin: 0 auto;
    }
     .contact-wrapper {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero { height: 60vh; }
    .section-padding { padding: 40px 0; }

    .nav-menu {
        display: none; /* Hide menu */
        flex-direction: column;
        position: absolute;
        top: 70px; /* Below navbar */
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-menu.active {
        display: flex; /* Show menu when active */
    }

    .nav-item {
        margin: 0;
    }

    .nav-link {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--light-gray);
    }
     .nav-link::after {
        display: none; /* Hide underline effect on mobile */
    }
     .nav-link.active {
        background-color: var(--light-gray); /* Highlight active */
    }

    .nav-toggle {
        display: block; /* Show hamburger */
    }

    /* Hamburger animation */
    .nav-toggle.active .hamburger {
        background-color: transparent; /* Hide middle line */
        transition: background-color 0s linear;
    }
    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg) translate(5px, 6px); /* Combine rotation and translation */
        transition: transform var(--transition-speed) ease, top var(--transition-speed) ease;
    }
    .nav-toggle.active .hamburger::after {
         transform: rotate(-45deg) translate(5px, -6px); /* Combine rotation and translation */
         transition: transform var(--transition-speed) ease, top var(--transition-speed) ease;
    }

    .service-grid {
        grid-template-columns: 1fr; /* Single column */
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .btn { padding: 10px 20px; font-size: 0.9rem; }
    .container { padding: 0 15px; }
    .contact-wrapper { padding: 20px; }
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea {
        padding: 10px;
    }
    .service-item h2 { font-size: 1.6rem; } /* Adjust title size on mobile */
    .title-icon { font-size: 1.4rem; } /* Adjust icon size accordingly */
}
