/* General Body & Typography */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

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

h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

p {
    margin-bottom: 10px;
}

/* --- END Global Styles --- */

/* About Page Specific Styles */
.highlight {
    color: #e67e22; /* A vibrant orange for emphasis */
}

.gallery-section {
    padding: 60px 0;
    background-color: #f7f3f3; /* A light background for contrast */
    text-align: center;
}

.gallery-section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #d32f2f;
    margin-top: -30px;
}

.image-gallery {
    display: grid;
    /* This creates a responsive grid: minimum 300px wide columns, up to 1fr each */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px; /* Space between grid items */
    padding: 0 20px; /* Horizontal padding for the gallery */
}

.gallery-item {
    position: relative; /* Needed for positioning the overlay */
    overflow: hidden; /* Hides parts of image when scaled, also for overflow of overlay */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease; /* Smooth transition for hover effect */
}

.gallery-item:hover {
    transform: translateY(-5px); /* Lift effect on hover */
}

.gallery-item img {
    width: 100%;
    height: 250px; /* Fixed height for consistent gallery look */
    object-fit: cover; /* Ensures images cover the area without distortion */
    display: block; /* Removes extra space below image */
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05); /* Slight zoom on image */
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 15px;
    font-weight: bold;
    font-size: 1.1em;
}

/* Hero Section */
.hero-about {
    background: linear-gradient(to right, #f8f8f8, #e0e0e0);
    text-align: center;
    padding: 80px 20px;
    animation: fadeIn 1s ease-out;
}

.hero-about h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero-about .subheading {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 20px;
}

.hero-about .description {
    max-width: 800px;
    margin: 0 auto 30px auto;
    font-size: 1.1em;
}

/* Company Story Section */
.company-story {
    padding: 60px 0;
    background-color: #ffffff;
}

.company-story .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    justify-content: center;
}

.story-content {
    flex: 2;
    min-width: 300px;
}

.story-content h2 {
    font-size: 2.5em;
    color: #d32f2f;
    margin-bottom: 20px;
}

.story-content p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #00004d;
}

.story-image {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.story-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Company Details Section */
.company-details {
    background-color: #f7f3f3;
    padding: 60px 0;
    text-align: center;
}

.company-details h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

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

.detail-item {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-5px);
}

.detail-item h3 {
    color: #e67e22;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.detail-item p {
    font-size: 1.1em;
    color: #555;
}

/* Our Values Section */
.our-values {
    padding: 60px 0;
    background-color: #ffffff;
    text-align: center;
}

.our-values h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

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

.value-item {
    background-color: #f7f3f3;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.value-item:hover {
    background-color: #f0f0f0;
}

.value-item h3 {
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.value-item p {
    color: #666;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .gallery-section h2,
    .company-details h2,
    .our-values h2 {
        font-size: 2em;
    }

    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(calc(50% - 10px), 1fr)); /* Two columns, accounting for gap */
        justify-content: center; /* Center the grid */
        padding: 0 10px; /* Add some padding to the sides for smaller screens */
    }

    .gallery-item {
        margin: auto; /* Center individual gallery items if they don't fill the grid */
    }

    .hero-about h1 {
        font-size: 2.2em;
    }

    .hero-about .subheading {
        font-size: 1em;
    }

    .company-story .container {
        flex-direction: column;
    }

    .story-image {
        order: -1; /* Puts image above text on mobile */
    }

    .company-details h2,
    .our-values h2 {
        font-size: 2em;
    }
}

/* Media query for even smaller screens (e.g., phones) to ensure good fit */
@media screen and (max-width: 480px) {
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(calc(50% - 10px), 1fr)); /* Maintain two columns for smaller phones as well */
        gap: 15px; /* Slightly reduced gap for very small screens */
    }
}