:root {
    --primary-color: #0066cc;
    --secondary-color: #004a99;
    --dark-bg: #1a1a1a;
    --text-grey: #666;
    --light-bg: #f8f9fa;
    --bs-info: #1a1a1a;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* --- 1. Top Bar --- */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.85rem;
    padding: 10px 0;
}

    .top-bar a {
        color: white;
        text-decoration: none;
        margin-right: 15px;
        transition: opacity 0.3s;
    }

        .top-bar a:hover {
            opacity: 0.8;
        }

.top-bar-divider {
    margin: 0 15px;
    opacity: 0.5;
}

/* --- 2. Navbar --- */
.navbar {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 15px 0;
    font-family: 'Poppins', sans-serif;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--secondary-color);
}

.nav-link {
    color: #333;
    font-weight: 500;
    margin: 0 10px;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

    .nav-link:hover, .dropdown-item:hover {
        color: var(--primary-color);
    }

.btn-nav-contact {
    background: var(--primary-color);
    color: white;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s;
}

    .btn-nav-contact:hover {
        background: var(--secondary-color);
        color: white;
    }

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 0 0 8px 8px;
    padding: 15px;
}

.dropdown-item {
    padding: 8px 20px;
    font-size: 0.9rem;
    color: #555;
}

.mega-menu {
    min-width: 600px;
}

.menu-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999;
    font-weight: 700;
    margin-bottom: 10px;
    padding-left: 20px;
    letter-spacing: 1px;
}

/* --- 3. Hero Slider --- */
.hero-slider .carousel-item {
    height: 700px;
    background-color: #000;
    position: relative;
}

    .hero-slider .carousel-item img {
        object-fit: cover;
        height: 100%;
        width: 100%;
        opacity: 0.6;
        animation: zoomEffect 20s infinite alternate;
    }

.hero-caption {
    bottom: 30%;
    left: 10%;
    right: 10%;
    text-align: left;
    z-index: 10;
}

.hero-subtitle {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
}

.hero-desc {
    font-size: 1.1rem;
    max-width: 700px;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.1s;
}

.hero-btns {
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.4s;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 4. Stats Strip --- */
.stats-section {
    position: relative;
    margin-top: -60px;
    z-index: 20;
    padding-bottom: 50px;
}

.stats-box {
    background: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 40px 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    border-bottom: 3px solid var(--primary-color);
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    flex: 1;
    border-right: 1px solid #e5e5e5;
}

    .stat-item:last-child {
        border-right: none;
    }

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-right: 20px;
}

.stat-info h3 {
    font-weight: 700;
    font-size: 2rem;
    margin: 0;
    color: #333;
    line-height: 1;
}

.stat-info p {
    margin: 5px 0 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #777;
    font-weight: 600;
    letter-spacing: 1px;
}

/* --- 5. About Us --- */
.about-img-box {
    position: relative;
    padding-right: 50px;
    padding-bottom: 50px;
}

    .about-img-box .img-1 img {
        width: 90%;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

/* --- 6. Services --- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

    .section-title span {
        color: var(--primary-color);
        text-transform: uppercase;
        font-weight: 700;
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .section-title h2 {
        font-weight: 700;
        margin-top: 10px;
        color: #222;
    }

.service-card {
    background: white;
    padding: 30px;
    height: 100%;
    border: 1px solid #eee;
    border-radius: 20px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0px 10px 25px 0px rgba(0, 0, 0, 0.2);
        border-bottom: 3px solid var(--primary-color);
    }

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.read-more-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-top: 15px;
    display: inline-block;
    transition: color 0.3s ease;
}

    .read-more-link:hover {
        color: var(--secondary-color);
    }

.bg-gradient1 {
    background-image: linear-gradient(128deg, #e6f7f5 35%, #fff 100%);
}

.bg-gradient2 {
    background-image: linear-gradient(180deg, #f0f4ff 0%, #fff 100%);
}

.bg-gradient3 {
    background-image: linear-gradient(180deg, #fff8f0 0%, #fff 100%);
}

.bg-gradient4 {
    background-image: linear-gradient(180deg, #f0faff 0%, #fff 100%);
}

.bg-gradient5 {
    background-image: linear-gradient(180deg, #fff0f1 0%, #fff 100%);
}

.bg-gradient6 {
    background-image: linear-gradient(180deg, #f0fff4 0%, #fff 100%);
}

/* --- 7. Work Process --- */
.process-section {
    position: relative;
    background: linear-gradient(rgba(10, 38, 71, 0.95), rgba(13, 110, 253, 0.9)), url('../img/process-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

    .process-section .section-title span {
        color: #4da6ff;
    }

    .process-section .section-title h2 {
        color: white;
    }

.step-number {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
    font-weight: 900;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.process-step {
    text-align: center;
    position: relative;
    padding: 20px;
}

.step-content {
    position: relative;
    z-index: 1;
    margin-top: 40px;
}

.step-icon {
    background: white;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.process-step h5 {
    color: white;
    margin-top: 15px;
}

.process-step p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* --- 8. Academy & Courses --- */
.academy-banner {
    position: relative;
    background: linear-gradient(rgba(10, 38, 71, 0.9), rgba(13, 110, 253, 0.8)), url('../img/academy-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 100px 0;
}

.course-list-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease;
}

    .course-list-item:hover {
        transform: translateX(10px);
        background: rgba(255, 255, 255, 0.2);
        border-color: white;
    }

    .course-list-item a {
        color: #4da6ff;
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 600;
    }

        .course-list-item a:hover {
            color: white;
        }

#courses {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.mainHead.center {
    text-align: center;
    margin-bottom: 60px;
}

.mainTitle {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: inline-block;
}

    .mainTitle::after {
        content: '';
        display: block;
        width: 60px;
        height: 3px;
        background: var(--primary-color);
        margin: 10px auto 0;
    }

.subT {
    color: var(--text-grey);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.courseCard {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

    .courseCard:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.1);
        border-color: var(--primary-color);
    }

.topSec {
    padding: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

    .topSec .icon {
        width: 50px;
        height: 50px;
        margin-right: 15px;
        flex-shrink: 0;
    }

        .topSec .icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

    .topSec .title {
        font-size: 1rem;
        font-weight: 700;
        color: var(--secondary-color);
        line-height: 1.3;
    }

.bottomSec {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.contentBox .subT {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #666;
    text-align: left;
    min-height: 60px;
}

.imgBox {
    margin: 10px 0 20px;
    border-radius: 8px;
    overflow: hidden;
    height: 160px;
    width: 100%;
}

    .imgBox img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }

.courseCard:hover .imgBox img {
    transform: scale(1.1);
}

.detailSec ul {
    padding: 0;
    list-style: none;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .detailSec ul li a {
        background: #eef4ff;
        color: var(--primary-color);
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 0.75rem;
        text-decoration: none;
        font-weight: 500;
        display: inline-block;
    }

        .detailSec ul li a:hover {
            background: var(--primary-color);
            color: #fff;
        }

.learmore {
    display: block;
    text-align: center;
    background: transparent;
    color: var(--primary-color);
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--primary-color);
    transition: all 0.3s;
    margin-top: auto;
}

    .learmore:hover {
        background: var(--primary-color);
        color: #fff;
    }

/* --- 9. Floating Widgets --- */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
    z-index: 9999;
}

.contact-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

    .contact-btn:hover {
        transform: scale(1.1);
        color: white;
        box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    }

    .contact-btn.whatsapp {
        background-color: #25D366;
    }

    .contact-btn.phone {
        background-color: #0066cc;
    }

    .contact-btn.chat {
        background-color: #1a1a1a;
    }

#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 100px;
    z-index: 99;
    border: none;
    background-color: var(--secondary-color);
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
}

    #scrollToTopBtn.showBtn {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

    #scrollToTopBtn:hover {
        background-color: var(--primary-color);
        transform: translateY(-5px);
    }

/* --- 10. Footer --- */
footer {
    background: #0B2048;
    color: #aaa;
    padding: 60px 0 20px;
}

    footer h4 {
        color: white;
        font-weight: 600;
        margin-bottom: 25px;
        font-size: 1.2rem;
    }

    footer ul {
        padding: 0;
        list-style: none;
    }

        footer ul li {
            margin-bottom: 10px;
        }

            footer ul li a {
                color: #aaa;
                text-decoration: none;
                transition: 0.3s;
            }

                footer ul li a:hover {
                    color: var(--primary-color);
                    padding-left: 5px;
                }

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.85rem;
}

/* --- 11. Mobile Responsive --- */
@media (max-width: 991px) {
    .mega-menu {
        min-width: 100%;
    }

    .top-bar .container {
        flex-direction: column;
        padding: 5px 0;
    }

    .top-bar div:first-child {
        margin-bottom: 5px;
        flex-direction: column;
        gap: 2px;
    }

    .top-bar-divider {
        display: none;
    }

    .top-bar {
        font-size: 0.75rem;
        text-align: center;
    }

    .stats-section {
        margin-top: 0;
        padding-bottom: 30px;
    }

    .stats-box {
        display: block;
        padding: 20px;
    }

    .stat-item {
        justify-content: flex-start;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

        .stat-item:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }

    .about-img-box {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-slider .carousel-item {
        height: 500px;
    }

    .hero-title {
        font-size: 2rem;
    }

    /* Ensure Floating Widgets are Visible on Mobile */
    .floating-contact {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .contact-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    #scrollToTopBtn {
        right: auto;
        left: 20px;
        bottom: 20px;
    }
}
/* --- PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 999999; /* Ensures it sits on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

/* The Spinner Container */
.line-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 102, 204, 0.1); /* Very faint blue track */
    border-top: 4px solid var(--primary-color); /* Primary Blue */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Inner Circle for a "Tech" look */
.inner-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 74, 153, 0.1);
    border-bottom: 4px solid var(--secondary-color); /* Darker Blue */
    border-radius: 50%;
    animation: spin-reverse 1.5s linear infinite; /* Spins opposite direction */
}

/* Animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

/* Class to hide the loader */
.loaded {
    opacity: 0;
    visibility: hidden;
}