/********** Vision IT 2026 Modernized CSS **********/
:root {
    /* Updated to a more vibrant, modern palette */
    --primary: #0a58ca; 
    --light: #f0f4f8; /* CHANGE 1: Soft background to make the white glass navbar visible */
    --dark: #0f172a; 
    --glass: rgba(255, 255, 255, 0.65); /* CHANGE 2: Modern Crystal Transparency */
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Eye-Friendly Global Background */
body {
    background-color: var(--light) !important;
    font-family: 'Nunito', sans-serif;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
    border-radius: 12px; /* Modernized corner */
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Modernized Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    transition: .5s;
    border-radius: 10px; /* Modern soft corners */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(10, 88, 202, 0.2);
}

.btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 88, 202, 0.3);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 8px; /* Slightly rounded */
}



/*** 2026 Crystal Navbar Style ***/
.navbar-light {
    background: var(--glass) !important;
    backdrop-filter: blur(20px) saturate(180%); /* CHANGE 3: Stronger modern frosted glass effect */
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    outline: none;
    transition: 0.3s;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
    background: var(--glass) !important;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
        border: none;
        box-shadow: var(--shadow-md);
        border-radius: 0 0 15px 15px;
    }

    .navbar .dropdown-menu.fade-down {
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header carousel ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
       min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
       height: 100%;
        object-fit: cover;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 50%; /* Modern circular nav */
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(15, 23, 43, .7), rgba(15, 23, 43, .7)), url(../img/carousel-1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: rgba(15, 23, 43, .7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}


/*** Modernized Service & Cards ***/
.service-item, .course-item, .team-item {
    background: #FFFFFF;
    border-radius: 20px; /* Extra soft corners */
    box-shadow: var(--shadow-sm);
    transition: .5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-item:hover {
    transform: translateY(-10px);
    background: var(--primary);
    box-shadow: 0 15px 35px rgba(10, 88, 202, 0.2);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}


/*** Categories & Courses ***/
.category img,
.course-item img {
    transition: .7s cubic-bezier(0.4, 0, 0.2, 1);
}

.category a:hover img,
.course-item:hover img {
    transform: scale(1.15) rotate(1deg);
}


/*** Team ***/
.team-item {
    overflow: hidden;
}

.team-item img {
    transition: .7s;
}

.team-item:hover img {
    transform: scale(1.1);
}

 
/*** Testimonial ***/
.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}


/*** 2026 Footer Style ***/
.footer {
    background: var(--dark) !important;
    padding-top: 80px;
    border-top-left-radius: 40px; /* Modern curved footer */
    border-top-right-radius: 40px;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* Floating WhatsApp Modernized */
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1) rotate(10deg);
}

.whatsapp-icon {
    margin-top: 5px;
}

/*** Fix Image Alignment & Wider Aspect Ratio ***/
.team-item .overflow-hidden img {
    width: 100%;
    height: 310px; /* Reduced height to make it look "wider" */
    object-fit: cover;
    object-position: center top;
}

.course-item img, .category img {
    width: 100%;
    height: 230px; /* Adjusted for wider look */
    object-fit: cover;
}

/* Added extra padding for a wider, cleaner card feel */
.team-item .text-center, .course-item .p-4 {
    padding: 30px !important;
}