:root {
    --primary: #365F5Dff;
    --secondary: #B7BD65ff;
    --accent: #597662ff;
    --dark: #365F5Dff;
    --light: #f1f8e9;
    --white: #FFFFFF;
    --muted-olive: #B7BD65ff;
    --white-2: #FFFFFFff;
    --dark-slate-grey: #365F5Dff;
    --deep-teal: #597662ff;
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary);
    color: #333;
}
main {
    margin-top: 6rem !important;
    margin-bottom: 30px;
    min-height: calc(100vh - 100px);
    background-color: #f1ffe0;
    border-radius: 24px;
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: column;
    gap: 18px;
    padding: 30px;
}

.navbar {
    background: var(--primary);
    backdrop-filter: blur(10px);
}

.navbar-brand img{
    height: 40px;
    border-radius: 12px;
}

.navbar-brand img:hover {
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    width: 100%;
    text-align: center;
    border-radius: 12px;
    scale: 1.02;
}

.section-title {
    position: relative;
    display: inline-block;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 3rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}
.service-card, .project-card, .training-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.service-card:hover, .project-card:hover, .training-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.testimonial-item {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
}
.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--light);
}
.btn-primary {
    background: var(--primary);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background: var(--dark);
    transform: translateY(-3px);
}
.btn-success {
    background: var(--secondary);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-success:hover {
    background: var(--dark);
    transform: translateY(-3px);
}

.btn-secondary {
    background: #333;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #fff;
}
.btn-secondary:hover {
    background: var(--dark);
    transform: translateY(-3px);
    color: #fff;
}

.scroll-to-top  {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 80% 80% 0 0%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    background: var(--dark);
    transform: translateY(-3px);
}

footer {
    background: var(--dark);
    color: #e8f5e9;
}
.carousel-control-prev, .carousel-control-next {
    width: 5%;
}
.carousel-indicators [data-bs-target] {
    background-color: var(--primary);
}
.form {
    width: 80%;
    min-width: 300px;
    max-width: 600px;
}

.form-control {
    border-radius: 24px;
    padding: 12px 20px;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(13,110,253,.25);
    outline: none;
}

.form-control:focus:nth-child(-1) {
    color: var(--primary);
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
}

.form button {
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 12px;
    width: 100%;
}

.modal-dialog {
    max-height: 95vh;
    overflow-y: auto;
    width: 90% !important;
    max-width: 600px !important;
    min-width: 300px !important;
}

.modal-dialog .form{
    width: 95% !important;
    max-width: none !important;
    min-width: none !important;
}

/* Nested Modal Styles */
.modal-nested {
    z-index: 1060 !important;
}
.modal-nested .modal-dialog {
    z-index: 1070 !important;
}
.modal-backdrop-nested {
    z-index: 1055 !important;
}
.modal.show .modal-dialog {
    animation: modalFadeInUp 0.3s ease-out;
}
@keyframes modalFadeInUp {
    from {
        opacity: 0;
        transform: translate(0, -50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}
/* Ensure proper stacking for multiple modals */
.modal:nth-of-type(2) {
    z-index: 1060 !important;
}
.modal:nth-of-type(2) .modal-dialog {
    z-index: 1070 !important;
}
.modal:nth-of-type(3) {
    z-index: 1080 !important;
}
.modal:nth-of-type(3) .modal-dialog {
    z-index: 1090 !important;
}

.animate-float {
    animation: animate-float 3s ease-in-out infinite;
}
.animate-float:hover {
    animation-play-state: paused;
}

@keyframes animate-float {

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