/* Custom styles to enhance the existing theme */

/* Navbar Styles */
#mainNav {
    background-color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 15px 0;
}

#mainNav .navbar-brand img {
    height: 50px;
    transition: all 0.3s ease;
}

#mainNav .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: #51A66F !important;
}

#mainNav.navbar-shrink {
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: #333;
}

#mainNav.navbar-shrink .navbar-brand img {
    height: 40px;
}

/* Hero Carousel */
#heroCarousel {
    margin-top: 76px;
}

.carousel-item {
    height: 80vh;
    min-height: 400px;
    background: no-repeat center center scroll;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.carousel-caption {
    bottom: 7%;
    z-index: 10;
    padding: 0 50px;
    background-color: #7f958c54;
}

.carousel-caption h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0rem;
}

.carousel-caption p {
    font-size: 1.5rem;
    font-weight: 300;
}

/* SAGE Model Section */
.sage-circles {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.sage-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.sage-circle:hover {
    transform: scale(1.1);
}

.sage-circle span {
    font-size: 2.5rem;
    font-weight: 700;
}

.sage-circle h4 {
    margin: 0;
    /* font-size: 1.2rem; */
    font-size:0.8rem;
}

.orange {
    background-color: #FF6B6B;
}

.green {
    background-color: #4ECDC4;
}

.blue {
    background-color: #45B7D1;
}

.yellow {
    background-color: #FFE66D;
}

.sage-description {
    padding: 2rem;
}

.sage-point {
    margin-bottom: 2rem;
}

.sage-point h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

/* Feature Boxes */
.feature-box {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-box i {
    color: #51A66F;
}

/* News & Events */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.btn-primary {
    background-color: #51A66F;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
}

.btn-primary:hover {
    background-color: #428c5c;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 4rem 0 2rem;
}

.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: white;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 10px;
}

.footer-bottom {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mb3{
    margin-bottom: 1rem !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .sage-circles {
        margin-bottom: 2rem;
    }
}

/* Team Member Styles */
.team-member {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    transform-origin: center; /* Added */
    backface-visibility: hidden; /* Added */
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.team-member img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.team-member h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.team-member .text-muted {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #51A66F !important;
}

.team-member p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

.team-member .social-links {
    margin-top: 1.5rem;
}

.team-member .social-links a {
    color: #51A66F;
    margin: 0 8px;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.team-member .social-links a:hover {
    color: #428c5c;
    transform: translateY(-3px);
}

/* Testimonial Styles */
.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform-origin: center; /* Added */
    backface-visibility: hidden; /* Added */
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #51A66F, #428c5c);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.testimonial-content {
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-content i {
    color: #51A66F;
    opacity: 0.2;
    font-size: 3rem;
    position: absolute;
    top: -10px;
    left: -10px;
}

.testimonial-content p {
    font-style: italic;
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    position: relative;
    z-index: 1;
    padding-left: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.testimonial-author img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.testimonial-author h5 {
    margin-bottom: 0.3rem;
    color: #333;
    font-size: 1.1rem;
}

.testimonial-author p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Section Titles with enhanced styling */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title h2 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::before { /* Added */
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px; /* Modified width */
    height: 3px;
    background: #51A66F;
}

.section-title h2::after { /* Removed */

}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 1rem auto 0;
    font-size: 1.1rem;
    line-height: 1.6;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .team-member {
        padding: 1.5rem;
        margin-bottom: 2rem; /* Added */
    }

    .team-member img {
        width: 150px;
        height: 150px;
    }

    .testimonial-card {
        padding: 1.5rem;
        margin-bottom: 2rem; /* Added */
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .section-title p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .section-title {
        margin-bottom: 2rem; /* Added */
    }
}

/* Add alternating section backgrounds */
section {
    position: relative; /* Added */
    overflow: hidden; /* Added */
}

section:nth-of-type(even) {
    background-color: #f8f9fa;
}

section:nth-of-type(odd) {
    background-color: #fff;
}

section::after { /* Added */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(81, 166, 111, 0.2), transparent);
}

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.team-member:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.testimonial-card:hover::before {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* customizing....................... */ 

.team-member {
    padding: 0.5rem 1rem;
}

.team-member h4 {
    margin-bottom: 0rem;
    font-size: 1rem;
}

.team-member .text-muted {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    
}

.team-member p {
    font-size: 0.7rem;
    line-height: 1.6;
    margin-bottom: 0.2rem;
}

.team-member .social-links {

    margin-top: 0.4rem;
}
/* ............done.......................... */


/* Gallery Section Styles */
.gallery-filter {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-filter button {
    margin: 0 5px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
}

.gallery-filter button.active {
    background-color: #51A66F;
    color: white;
    border-color: #51A66F;
}

.gallery-item {
    padding: 0.8rem;
    transition: all 0.4s ease;
    transform-origin: center;
    backface-visibility: hidden;
}

.gallery-box {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-box img {
    transition: all 0.5s ease;
    width: 100%;
    border-radius: 8px;
}

.gallery-box:hover img {
    transform: scale(1.05);
}

.gallery-box-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: all 0.3s ease;
    text-align: center;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.gallery-box:hover .gallery-box-caption {
    transform: translateY(0);
}

.gallery-box .project-category {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.gallery-box .project-name {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Video Section Styles */
.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.embed-responsive iframe {
    border-radius: 8px;
}

/* Mobile Responsive Gallery */
@media (max-width: 768px) {
    .gallery-filter button {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
        margin: 0 3px 10px;
    }
    
    .gallery-item {
        padding: 0.5rem;
    }
    
    .gallery-box .project-name {
        font-size: 1rem;
    }
    
    .gallery-box-caption {
        padding: 10px;
    }
}