:root {
    --bg-light: #ffffff;
    --bg-section: #f4f6f8;
    --primary: #0a2540;
    /* Navy Blue */
    --secondary: #0066cc;
    /* Professional Blue */
    --highlight: #e63946;
    /* Accent Red (sparingly used) */
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #ffffff;
    --font-primary: 'Inter', sans-serif;
    --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
    --spacing-md: 2rem;
    --spacing-lg: 5rem;
}

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

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

h1,
h2,
h3,
h4 {
    color: var(--primary);
    font-weight: 700;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--bg-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.highlight {
    color: var(--secondary);
}

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

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

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

.btn-contact {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    transition: background 0.3s !important;
}

.btn-contact:hover {
    background: var(--secondary) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    /* Use the generated background image with an overlay */
    background: linear-gradient(rgba(10, 37, 64, 0.8), rgba(10, 37, 64, 0.6)), url('../assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 80px;
    color: white;
}

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

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    /* Override default primary color for hero */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.text-highlight {
    color: #4dabf7;
    /* Lighter blue for better contrast on dark bg */
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.9rem 2.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--secondary);
    color: white;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 102, 204, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Services */
.services {
    padding: var(--spacing-lg) 10%;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 3.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin: 15px auto 0;
}

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--secondary);
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    opacity: 0.9;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.service-card p {
    color: var(--text-muted);
}

/* Products */
.products {
    padding: var(--spacing-lg) 10%;
    background: var(--bg-section);
}

.product-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.product-item {
    background: white;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    /* Removed side border */
    overflow: hidden;
    text-decoration: none;
    /* For anchor tags */
    color: inherit;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-item:hover .product-img {
    transform: scale(1.05);
}

.product-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
    transition: transform 0.5s ease;
}

.product-info {
    padding: 2rem;
    flex-grow: 1;
    /* Ensure balanced height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-info p {
    color: var(--text-muted);
}

/* About */
.about {
    padding: var(--spacing-lg) 10%;
    text-align: center;
    background: var(--bg-light);
}

.mission-text {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    font-size: 1.3rem;
    color: var(--text-main);
    font-weight: 500;
}

.values-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.value-item h4 {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
footer {
    background: var(--primary);
    padding: 4rem 10% 2rem 10%;
    color: rgba(255, 255, 255, 0.8);
    border-top: 5px solid var(--secondary);
    /* Professional blue accent */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }

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

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

    .hamburger {
        display: flex;
    }

    .hero {
        text-align: center;
        height: auto;
        min-height: 80vh;
        padding: 120px 5% 60px 5%;
    }

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

    .hero p {
        margin: 0 auto 2rem auto;
    }

    .cta-group {
        justify-content: center;
    }
}