/* --- My Company Website Styles --- */

/* --- Color Palette & Fonts --- */
:root {
    --primary-color: #0A192F; /* Dark Navy Blue */
    --accent-color: #64B5F6;  /* Sky Blue */
    --light-bg-color: #F8F9FA; /* Light Gray */
    --text-color: #333;
    --white-color: #FFFFFF;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
}

/* --- General Structure & Spacing --- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

section {
    padding: 60px 0;
}

section.bg-light {
    background-color: var(--light-bg-color);
}

/* --- Header & Navigation Bar --- */
header {
    /* Default style for interior pages */
    background-color: var(--primary-color); /* Navy Blue */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid transparent; /* Hide border by default */
}

/* Specific override ONLY for the homepage */
.homepage header {
    background-color: var(--white-color);
    border-bottom: 1px solid #ddd;
}

/* Add this new block to control the header's internal layout */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none; /* This removes the bullet points */
    margin: 0;
    padding: 0;
    display: flex; /* This makes the list items sit side-by-side */
}

nav li {
    margin-left: 25px; /* Adds space to the left of each menu item */
}

nav a {
    /* Default style for interior pages (on dark background) */
    text-decoration: none;
    color: var(--white-color); /* White text */
    font-weight: bold;
    font-size: 16px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s; /* We only need to transition color now */
}

/* Specific override ONLY for the homepage */
.homepage nav a {
    color: var(--primary-color); /* Dark text on white background */
}

/* This is the version WITHOUT the underline */
nav a:hover, nav a.active {
    color: var(--accent-color); /* Sky Blue for hover/active on all pages */
}

/* --- Hero Section (for Homepage) --- */
.hero {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    color: var(--white-color); /* This ensures the H1 is white */
    font-size: 48px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #42a5f5; /* A slightly darker blue for hover */
}

/* --- General Page Content --- */
h1, h2, h3 {
    color: var(--primary-color);
}

h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}

/* Add this new class for justified text */
.text-justify {
    text-align: justify;
}

/* --- Homepage: Why Choose Us Section --- NEWLY ADDED --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates 3 equal columns */
    gap: 40px; /* Space between the columns */
    text-align: center; /* Ensures text inside columns is left-aligned */
}

/* --- About Page: Team & Clients --- */
/* This style is now ONLY for the client logos */
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
    align-items: center; /* This helps vertically align logos of different heights */
}

/* This is the base style for a team member's content */
.team-member {
    text-align: center;
}

/* This styles the images for both team and clients */
.team-member img, .client-logo img {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Makes team photos circular */
    object-fit: cover; /* Prevents images from stretching */
    margin-bottom: 10px; /* Adds a little space between image and name */
}

/* --- Styles for the new Tiered Team Layout --- */
.team-layout {
    width: 100%;
}

.team-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

/* Makes the Founder/Co-Founder images slightly larger for emphasis */
.team-tier-1 .team-member img {
    width: 180px;
    height: 180px;
}
/* --- End of Tiered Team Layout Styles --- */

/* This specifically styles the client logo images */
.client-logo img {
    width: 150px;
    height: auto;
    border-radius: 0;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s;
}

.client-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- Products Page --- */
.product-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to 1 column */
    gap: 40px;
}

.product-card {
    display: flex;
    flex-direction: column; /* Stack image and text on small screens */
    gap: 30px;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
}

.product-card img {
    width: 100%;
    max-width: 400px;
    border-radius: 5px;
}

.product-video {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 16 / 9; /* For responsive videos */
}

/* --- Contact Page --- */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-details, .contact-map {
    flex: 1;
    min-width: 300px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border: 0;
}

/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 30px 0;
}

footer p {
    margin: 0;
}

/* --- Responsive Design for smaller screens --- */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 15px;
    }
    
    .hero h1 {
        font-size: 36px;
    }

    /* --- NEWLY ADDED FOR RESPONSIVENESS --- */
    .features-grid {
        grid-template-columns: 1fr; /* Stack to a single column on mobile */
    }
}

@media (min-width: 768px) {
    .product-card {
        flex-direction: row; /* Side-by-side on larger screens */
    }
    .product-grid {
        grid-template-columns: 1fr; /* Keep it one column for clarity */
    }
}