/* About Hero Carousel */
.about-hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-bottom: 0;
}

.about-hero .carousel-item {
    height: 100vh;
    position: relative;
}

.about-hero .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

/* Hero Content Overlay */
.hero-content {
    position: absolute;
    top: 0%;
    left: 10%;
    transform: translate(5%, 0%);
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 5%;
    z-index: 2;
}

/* Circle Text Container */
.circle-text {
    width: clamp(300px, 35vw, 500px);
    height: clamp(300px, 35vw, 500px);
    border-radius: 50%;
    background: rgba(44, 48, 53, 0.85);
    backdrop-filter: blur(10px);
    border: 3px dashed rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 4vw, 4rem);
    text-align: center;
    color: #fff;
    animation: fadeInScale 1s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.circle-text .circle-icon {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #f57c20;
    margin-bottom: 1rem;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.circle-text h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.circle-text p:first-of-type {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.circle-text p:first-of-type i {
    color: #f57c20;
}

.circle-text p:last-of-type {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 15;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(245, 124, 32, 0.9);
    border-color: #f57c20;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 25px;
    height: 25px;
}

/* Timeline Section */
.timeline-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.timeline-container {
    position: relative;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    overflow-y: hidden;
}

.timeline-wrapper {
    display: flex;
    align-items: center;
    padding: 0 50px;
    min-width: max-content;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f57c20;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(245, 124, 32, 0.3);
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-dot:hover {
    transform: scale(1.3);
    box-shadow: 0 0 0 5px rgba(245, 124, 32, 0.4);
}

.timeline-dot.active {
    width: 20px;
    height: 20px;
    background: #ff6b00;
    box-shadow: 0 0 0 5px rgba(245, 124, 32, 0.5);
}

.timeline-year {
    position: absolute;
    top: -35px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3035;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.timeline-year i {
    color: #f57c20;
    font-size: 0.8rem;
}

.timeline-line {
    width: clamp(60px, 8vw, 120px);
    height: 2px;
    background: linear-gradient(to right, rgba(245, 124, 32, 0.3), rgba(245, 124, 32, 0.6), rgba(245, 124, 32, 0.3));
}

/* Floating Email Button */
.floating-email {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f57c20, #ff9a4d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(245, 124, 32, 0.4);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-email:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 30px rgba(245, 124, 32, 0.6);
}

.floating-email i {
    color: #fff;
    font-size: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        justify-content: center;
        padding: 0 1rem;
    }

    .circle-text {
        width: clamp(280px, 80vw, 350px);
        height: clamp(280px, 80vw, 350px);
        padding: 1.5rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }

    .carousel-control-prev {
        left: 10px;
    }

    .carousel-control-next {
        right: 10px;
    }

    .timeline-container {
        height: 120px;
    }

    .timeline-year {
        font-size: 0.8rem;
        top: -30px;
    }

    .timeline-line {
        width: 50px;
    }

    .floating-email {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .floating-email i {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .circle-text h1 {
        margin-bottom: 0.5rem;
    }

    .circle-text p:first-of-type {
        margin-bottom: 0.5rem;
    }

    .timeline-wrapper {
        padding: 0 20px;
    }
}

/* Smooth Scroll */
.timeline-container::-webkit-scrollbar {
    height: 6px;
}

.timeline-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.timeline-container::-webkit-scrollbar-thumb {
    background: #f57c20;
    border-radius: 3px;
}

.timeline-container::-webkit-scrollbar-thumb:hover {
    background: #ff6b00;
}


/* core-beliefs-section */
/* Placeholder for the concrete background pattern */
.custom-bg-pattern {
    background: #49494B url('concrete_texture.jpg') repeat;
    /* Use your actual concrete background image */
    background-size: cover;
    min-height: 50vh;
}

/* Styling for the left image area */
.image-box {
    width: 100%;
    /* Adjust to match the required visual width */
    max-width: 600px;
    /* Example max-width */
    /* box-shadow: 0 4px 8px rgba(0,0,0,0.1); */
    position: relative;
    /* Optional: Add the watercolor background effect */
    background: url('watercolor_bg.png') no-repeat top left;
    /* Use your watercolor image */
    background-size: contain;
    padding-top: 0px;
    /* Space for the watercolor effect */
}

/* Adjusting the image to fit the sketch style */
.custom-image-style {
    display: block;
    width: 100%;
    /* Make the image slightly smaller than the box to allow background to show */
    margin: 0 auto;
    transition: opacity 0.3s ease-in-out;
    /* For smooth image transition */
}

/* Styling for the right content box */
.core-beliefs-box {
    background-color: #38312e;
    /* Dark background for the box */
    color: #fff;
    padding: 3rem;
    width: 100%;
    /* Optional: To match the look, ensure both columns take up full height */
    min-height: 500px;
    /* Ensure content box is tall enough */
}

/* Tab/Pill Styling */
.nav-pills .nav-link {
    background-color: transparent;
    color: #fff;
    /* Light color for text */
    border-radius: 0;
    margin-right: 15px;
    padding: 5px 0;
    font-weight: bold;
    font-size: 0.8rem;
    border-bottom: 2px solid transparent;
    /* Underline effect for tabs */
    transition: all 0.2s;
}

.nav-pills .nav-link:hover {
    color: #ffd700;
    /* Hover color */
    border-bottom-color: #ffd700;
}

.nav-pills .nav-link.active {
    background-color: transparent;
    color: #ffd700;
    /* Active tab color (gold/yellow) */
    border-bottom-color: #ffd700;
    /* Active tab underline color */
}

/* Tab Content Styling */
.tab-content {
    background-color: #796c56;
    /* The olive/brown color block */
    color: #eee;
    padding: 2rem;
    min-height: 300px;
    /* Adjust height as needed */
}

.tab-content p {
    line-height: 1.8;
}


/* What Made Us background */
.bg-dark-pattern {
    background:
        linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8));
    padding: 70px 0;
    width: 100%;
    color: #fff;
}

/* Stat Boxes */
.stat-wrapper {
    display: flex;
    width: 100%;
}

.stat-box {
    background: #9c814c;
    color: #fff;
    padding: 25px;
    font-size: 28px;
    font-weight: 600;
    width: 30%;
    text-align: center;
    border-radius: 4px 0 0 4px;
}

.stat-label {
    background: #e6e6e6;
    padding: 25px;
    font-size: 16px;
    font-weight: 500;
    width: 70%;
    border-radius: 0 4px 4px 0;
    color: #333;
}

/* Compliments Section */
.compliment-bg {
    background: #1c1c1c;
    padding: 70px 0;
    color: #fff;
}

.underline {
    width: 70px;
    height: 3px;
    background: #b1976b;
    margin: 12px auto 40px;
}

/* Testimonial */
.testimonial-slide {
    background: #6e5a3a;
    padding: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.testimonial-slide img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
}

/* Small screen adjustments for responsiveness */
@media (max-width: 991px) {
    .core-beliefs-box {
        padding: 2rem;
    }

    .image-box {
        display: none !important;
        /* Hide image on small screens if desired, or adjust styling */
    }
}

/* Outer container */
.core-wrapper {
    display: flex;
    position: relative;
    padding: 60px;
    background: #4A4A4A url('https://i.imgur.com/Mh6Qe8L.jpeg') center/cover;
}

/* Left image */
.core-image-area {
    position: relative;
    width: 55%;
}

.wc-bg {
    background: url('https://i.imgur.com/cG0HkYq.png') no-repeat center;
    background-size: contain;
    position: absolute;
    inset: 0;
}

.core-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    z-index: 2;
    position: relative;
}

/* RIGHT BOX — ABSOLUTE ONLY FOR LARGE SCREENS */
.core-box {
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
    background: #1e1e1e;
    width: 48%;
    padding: 40px;
    color: #fff;
    z-index: 5;
}

/* Tabs */
.core-tabs .nav-link {
    color: #ddd;
    padding: 6px 0;
    margin-right: 15px;
    border-bottom: 2px solid transparent;
    font-size: 0.85rem;
    transition: all 0.2s;
    cursor: pointer;
}

.core-tabs .nav-link.active {
    color: #e4c07d;
    border-bottom-color: #e4c07d;
}

/* Content box */
.core-content {
    background: #8a6c31;
    padding: 1.8rem;
    margin-top: 15px;
}

/* --------------------- */
/* 📱 MOBILE & TABLET FIX */
/* --------------------- */
@media(max-width: 991px) {

    /* Stack vertically */
    .core-wrapper {
        flex-direction: column;
        padding: 30px;
    }

    .core-image-area {
        width: 100%;
        height: 400px;
        object-fit: contain;
    }

    /* Remove absolute, make NORMAL flow */
    .core-box {
        position: relative;
        transform: none;
        top: auto;
        right: auto;
        width: 100%;
        padding: 20px;
        margin-top: 20px;
    }
}

@media(max-width: 576px) {

    .core-wrapper {
        padding: 10px;
    }

    .core-image-area {
        width: 100%;
        height: 300px;
        object-fit: contain;
    }

    .core-image {
        width: 100%;
        height: 300px;
        z-index: 2;
        position: relative;
    }

    .core-box {
        padding: 10px;
    }

    .core-content {
        padding: 1rem;
    }

    .core-tabs .nav-link {
        font-size: 0.8rem;
    }
}