/* About Us Page Specific Styles */

/* About Hero Section */
.about-hero {
    margin-top: 80px;
    position: relative;
    height: 50vh;
    /* Shorter than index hero */
    min-height: 500px;
    background-image: url('../images/about-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

@media (max-width: 991px) {
    .about-hero {
        background-attachment: scroll;
        /* Fix for mobile/laptop background issues */
        background-position: center bottom;
        /* Better framing for portrait images if needed */
        min-height: 400px;
        /* Slightly shorter on mobile */
    }
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.about-hero-content {
    position: relative;
    z-index: 2;
}

.about-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.stat-item {
    padding: 20px;
    position: relative;
}

/* Responsive Separators */
@media (min-width: 768px) {

    /* Vertical line on the right for desktop, excluding the last item */
    .col-md-4:not(:last-child) .stat-item::after {
        content: '';
        position: absolute;
        right: 0;
        top: 20%;
        /* Center vertically */
        height: 60%;
        width: 1px;
        background-color: #dee2e6;
        /* Bootstrap border color */
    }
}

@media (max-width: 767px) {

    /* Horizontal line on the bottom for mobile, excluding the last item */
    .col-md-4:not(:last-child) .stat-item::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 20%;
        /* Center horizontally */
        width: 60%;
        height: 1px;
        background-color: #dee2e6;
    }
}

.stat-number {
    font-size: 3rem;
    font-weight: 900 !important;
    color: var(--brand-blue);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-text {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    font-weight: 600;
}

/* Customer Feedback (Owl Carousel) */
.feedback-section {
    padding: 100px 0;
    background-color: #fff;
    overflow: hidden;
}

.feedback-card {
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 10px;
    margin: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feedback-text {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.client-info h5 {
    font-weight: 700;
    margin: 0;
    color: #333;
}

.client-info span {
    font-size: 0.9rem;
    color: var(--brand-green);
}

/* Team Section */
.team-section {
    padding: 100px 0;
    background-color: #fff;
}

.team-card {
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
}

.team-img-wrapper {
    overflow: hidden;
    position: relative;
    border-radius: 15px;
}

.team-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: none;
    /* Normal by default */
}

/* Grayscale on Hover Effect */
.team-img-wrapper:hover .team-img {
    filter: grayscale(100%);
    transform: scale(1.05);
    /* Subtle zoom */
}

.team-info {
    margin-top: 20px;
    text-align: center;
}

.team-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
}

.team-designation {
    color: var(--secondary-color);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}




.icon-container .text-primary {
    color: var(--brand-blue) !important;
}

/* Company Space Gallery */
.company-space-section {
    background-color: #fcfcfc;
    padding: 80px 0;
}

.space-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-overlay i {
    color: #fff;
    font-size: 2.5rem;
    transform: scale(0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Responsive Grid */
@media (max-width: 991px) {
    .space-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 250px);
        gap: 15px;
    }

    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 576px) {
    .space-gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 250px);
        gap: 15px;
    }

    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }
}