/* Custom Styles for the Hero Section and Animations */
.hero-section {
    padding-top: 56px; /* Adjust for the fixed navbar height */    
}

/* Nav Bar Customization */
.navbar-dark .navbar-nav .nav-link {
    color: #e0e0e0;
}

.btn-outline-light {
    border-color: #e0e0e0;
    color: #e0e0e0;
    border-radius: 20px;
}

.btn-outline-light:hover {
    background-color: #e0e0e0;
    color: black;
}

/* Text and Carousel Styling */
.text-content h1, h2 {
    font-size: 3.5rem; /* Adjust font size for responsiveness */
    text-align: left;
}

.text-content .sub-text {
    color: #b0b0b0; /* Light gray color */
}

/* Transparent Owl Carousel */
.transparent-carousel.owl-carousel {
    display: inline-block;
    vertical-align: top;
    height: auto;
    width: 100%;
    overflow: hidden;
}

.transparent-carousel .owl-stage-outer {
    overflow: hidden;
}

.transparent-carousel .owl-item {
    padding-left: 10px;
}

.transparent-carousel .owl-nav,
.transparent-carousel .owl-dots {
    display: none; /* Hide navigation and dots */
}

/* Rotating Icon Animation */
@keyframes rotate-360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotating-icon {
    position: absolute;
    top: -5%; /* Center vertically */
    right: -25%; /* Center horizontally */
    transform: translate(-50%, -50%) rotate(0deg); /* Adjust transform for centering + rotation */
    animation: rotate-360 10s linear infinite; /* Keep animation */
    max-width: 55vw; /* Make it larger for background effect */
    z-index: 1; /* Place it behind the text (which has z-2) */
}

.branding-div {
    /* position: relative; */
    overflow: hidden; /* Ensure no scrollbars appear */
}

/* --- New Styles for "Who We Are" section and Footer --- */
.about-section {
    background-color: #fff;
}

.about-section h2 {
    color: #212529; /* Dark color for heading */
}

.about-logo {
    max-width: 50%; /* Adjust size as needed */
    height: auto;
}

.color-bar {
    display: flex;
    width: 250px;
    height: 10px;
}

.color-red { background-color: #e30613; flex-grow: 1; }
.color-green { background-color: #00a859; flex-grow: 1; }
.color-white { background-color: #fff; flex-grow: 1; border: 1px solid #ccc; }
.color-black { background-color: #000; flex-grow: 1; }


/* Media Queries for Responsiveness */
@media (max-width: 991.98px) {
    .text-content {
        font-size: 3rem;
        /* text-align: center; */
    }

    .text-content {
        margin-bottom: 2rem;
    }
    
    .col-lg-6 { /* Reset display for columns when icon is absolute */
        display: block; 
    }

    /* Mobile specific styles for rotating icon */
    .rotating-icon {
        position: absolute;
        top: 60%; /* Center vertically */
        left: 30%; /* Center horizontally */
        transform: translate(-50%, -50%) rotate(0deg); /* Adjust transform for centering + rotation */
        animation: rotate-360 10s linear infinite; /* Keep animation */
        opacity: 0.5; /* Set opacity */
        max-width: 60vh; /* Make it larger for background effect */
        z-index: 1; /* Place it behind the text (which has z-2) */
    }

    .about-logo {
        max-width: 80%;
    }

    .color-bar {
        width: 180px;
    }
}

/* Gallery Section Styles */
.gallery-section {
    background-color: #000;
    color: #fff;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-content {
    transform: translateY(0);
}

.gallery-content h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.gallery-content p {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-item img {
        height: 250px;
    }
    
    .gallery-content h5 {
        font-size: 1rem;
    }
    
    .gallery-content p {
        font-size: 0.8rem;
    }
}