html {
    scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden !important;
}

[data-aos^="fade"] {
  will-change: transform;
  backface-visibility: hidden;
}


body {
    font-family: sans-serif;
    color: #212529;
}

h1,
h2 {
    font-weight: 600;
}


/* Navbar */

.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1100;
    border-radius: 40px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.747) 10%, #f0821773);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 2;
    border: 1px solid #ffffff33;
}


.nav-item {
    padding: 12px;
    font-size: 17px;
}

.nav-link {
    position: relative;
}

.nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2.1px;
    background-color: #CA502E;
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 100%;
}

.navbar-nav .nav-link.active {
    color: #ff5e00 !important;
    font-weight: 600 !important;
}

.dropdown-menu a:hover {
    color: #ffffff !important;
    background-color: rgb(0, 140, 255) !important;
}

.dropdown-menu {
    margin-top: 0 !important;
    width: auto !important;
    animation: fade-in 0.5s ease;
}

@keyframes fade-in {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dropdown-item {
    margin: 0 5px 0 4px !important;
    padding: 6px 0 6px 9px !important;
    width: auto !important;
}

.dropdown-toggle::after {
    transition: transform .7s ease;
}

.dropdown-toggle:hover::after {
    transform: rotate(360deg)
}



/* HERO SECTION */
.hero-section img {
    height: 85vh;
    object-fit: cover;
    filter: brightness(75%);
}

.carousel-item {
    position: relative;
}

.carousel-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 0, 0, 0) , white );
}

.carousel-caption {
    animation: fadeIn 1.5s ease;
    bottom: 20%;
}

.carousel-caption h1 {
    font-size: clamp(28px, 5vw, 70px);
    font-weight: 800;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
}

.carousel-caption p {
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 600;
    color: #f1f1f1;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInDown {
    animation: fadeInDown 1s ease forwards;
}

.animate-fadeInUp {
    animation: fadeInUp 1.3s ease forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.line{
    height: 5px;
    width: 10%;
    background-color: #ff001aa8;
    margin: 30px auto;
}

/* Button glow effect */
.btn-glow {
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.btn-glow::after {
    content: "";
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: all 0.6s ease;
}

.btn-glow:hover::after {
    left: 100%;
}

.hero-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.product-card {
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    overflow: hidden;
}

.products-preview .card-body h3{
    color: #ff001aa8;
}

.product-card:hover {
    transform: translateY(-8px);
}

.zoom-img {
    transition: transform 0.5s ease;
}

.product-card:hover .zoom-img {
    transform: scale(1.1);
}

/* CONTACT CTA SECTION */
.contact-cta {
    background: linear-gradient(135deg, rgba(0, 140, 255, 0.15), rgba(255, 255, 255, 0.8));
    border-top: 2px solid rgba(0, 140, 255, 0.3);
    border-bottom: 2px solid rgba(0, 140, 255, 0.3);
    backdrop-filter: blur(5px);
}

.contact-cta h2 {
    color: #0078ff;
    animation: pulseText 2s infinite alternate;
}

@keyframes pulseText {
    from {
        text-shadow: 0 0 10px rgba(0, 140, 255, 0.4);
    }

    to {
        text-shadow: 0 0 25px rgba(0, 140, 255, 0.8);
    }
}



/*About-Us*/

.about-us img{
    border-radius: 30px;
    width: 100%;
    height: 100%;
}

.about-section img{
    border-radius: 30px 30px 0 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-section{
    display: flex;
    gap: 1rem;
    position: relative;
    overflow: hidden !important;
}

.about-section .card{
    transition: .3s;
    height: 300px;
    width: 430px;   /* desktop width */
}

.about-section .card .card-body{
    background: linear-gradient(150deg, #add4f5, white, white, #add4f5);
}

/* Desktop overlap */
.about-section .card:not(:first-child){
    margin-left: -130px;
}

.about-section .card:hover{
    transform: translateY(-1rem) rotate(3deg);
}

.about-section .card:first-child:hover {
    transform: translateY(-1rem) rotate(3deg);
}

.about-section .card:hover + .card{
    margin-left: 0;
}


/* Products */

.col-12 .card ,
.col-md-4 .card {
    border-radius: 15px;
    border: 0;
    overflow: hidden;;
    box-shadow: 1px 5px 20px rgba(0, 0, 0, 20%);
    transition: transform 0.3s ease;
}

.col-12 .card:hover ,
.col-md-4 .card:hover {
    transform: translateY(-10px);
}

.col-12 .card-img-top img ,
.col-md-4 .card-img-top img {
    height: 300px;
    width: 100%;
    border: 1px solid rgba(95, 92, 92, 0.32);
    border-radius: 15px 15px 0 0;
}

.col-12 .card-body ,
.col-md-4 .card-body {
    background: linear-gradient(150deg, #add4f5, white, white, #add4f5);
    border: 1px solid rgba(95, 92, 92, 0.22);
    border-top: 0;
    border-radius: 0 0 15px 15px;
}



/*Gallery*/

/*  WRAPPER  */
.wrapper {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    justify-content: center;

    background: #01579B;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16),
                0 3px 6px rgba(0, 0, 0, 0.23);
    margin: 20px auto;
    border-radius: 8px;
    max-width: 100%;
    overflow: hidden;
}

/*  FLIP CONTAINER  */
.flip-container {
    display: inline-block;
    perspective: 1000px;
}

/*  PANELS SIZE  */
.flip-container,
.front,
.back {
    width: clamp(180px, 18vw, 204px);
    height: clamp(260px, 28vw, 300px);
}

/*  FLIP ANIMATION  */
.flip {
    transition: 0.6s;
    transform-style: preserve-3d;
    position: relative;
}

/* Hover flip */
.wrapper:hover .flip-left { transform: rotateY(-180deg); }
.wrapper:hover .flip-right { transform: rotateY(180deg); }

/*  CARD SIDES  */
.front,
.back {
    position: absolute;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    overflow: hidden;
}

/*  FRONT  */
.front {
    z-index: 2;
    background: #2196F3;
    color: #fff;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.front-left .text {
    position: absolute;
    right: clamp(12px, 2%, 36px);
    top: 50%;
    transform: translateY(-50%);
}

.front-right .text {
    position: absolute;
    left: clamp(5px, 2%, 36px);
    top: 50%;
    transform: translateY(-50%);
}

/*  BACK  */
.back {
    transform: rotateY(180deg);
    background: #ddd;
    padding: 10px;
}

/*  SPLIT IMAGE  */
.back img {
    position: absolute;
    width: clamp(350px, 200%, 405px);
    height: 100%;
    object-fit: cover; /* maintain aspect ratio */
}

.back-left img { left: 0; }
.back-right img { right: 0; }


/*  RESPONSIVE FIXES  */
@media (max-width: 992px) {
    .flip-container,
    .front,
    .back {
        width: clamp(180px, 22vw, 204px);
        height: clamp(240px, 26vw, 280px);
    }
}

@media (max-width: 576px) {
    .wrapper { justify-content: center; }

    .flip-container,
    .front,
    .back {
        width: clamp(180px, 36vw, 204px);
        height: clamp(220px, 38vw, 260px);
    }

    .back img {
        width: 367px;
        height: 100%;
    }

}



/*.flip-gallery {*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    gap: 20px;*/
/*}*/

/*.flip-card {*/
/*    background-color: transparent;*/
/*    width: 300px;*/
/*    height: 350px;*/
/*    perspective: 1000px; */
/*}*/

/*.flip-card-inner {*/
/*    position: relative;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    transition: transform 0.6s;*/
/*    transform-style: preserve-3d;*/
/*    cursor: pointer;*/
    
/*}*/

/*.flip-card:hover .flip-card-inner {*/
/*    transform: rotateY(180deg);*/
/*}*/

/*.flip-card-front, .flip-card-back {*/
/*    position: absolute;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    backface-visibility: hidden;*/
/*    border-radius: 15px;*/
/*    box-shadow: 0 8px 20px rgba(0,0,0,0.2);*/
/*    border: 1px solid #0000004f;*/
/*}*/

/* Front */
/*.flip-card-front {*/
/*    color: #FF7829;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    background: linear-gradient( #add4f5 0%, #add4f5 30%, white 55%, #add4f5 65%, #add4f5 100%);*/

/*}*/

/*.flip-card-back img {*/
/*    width: 100%;*/
/*    height: auto;*/
/*    object-fit: cover;*/
/*    border-radius: 15px 15px 0 0;*/
/*}*/

/* Back */
/*.flip-card-back {*/
/*    background: linear-gradient(150deg, #add4f5, white, #add4f5);*/
/*    color: #333;*/
/*    transform: rotateY(180deg);*/
/*    padding: 20px;*/
/*    font-size: 0.9rem;*/
/*}*/


/*@media (max-width: 1024px) {*/
/*    .flip-card-back img {*/
/*        height: auto;*/
/*    }*/
/*}*/



/* Contact-Us */

.btn-dark {
    position: relative;
    overflow: hidden;
    z-index: 0;
    background-color: #F67F22;
}

.btn-dark:hover {
    color: #000000 !important;
}

.btn-dark::after {
    content: '';
    position: absolute;
    left: 0;
    top: 40px;
    width: 100%;
    height: 100%;
    background: #ffffff;
    transition: all 0.5s ease;
    border-radius: 100%;
    z-index: -1;
}

.btn-dark:hover:after {
    top: 0;
    border-radius: 0;
}

.form-floating input {
    border: 1px solid #00000062;
}

.nurse img {
    width: 100%;
    margin-bottom: 30px;
    animation: cont 2s linear infinite;
    transform-origin: bottom center;
}

@keyframes cont {
    0% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(2deg);
    }

    100% {
        transform: rotate(-4deg);
    }
}

@media only screen and (max-width: 767px) {
    .nurse img {
        display: none;
    }

    .navbar {
        position: absolute;
    }
    
    .about-section{
        display: none;
    }
}

.contact-card a{
    text-decoration: none;
    color: #212529;
}


/* Footer */

.footer {
    background-color: #0d0d0d;
}

.footer span{
    color: #F67F22;
}

.footer-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.pulse {
    font-size: 1.5rem;
    transform: scaleX(3);
    display: inline-block;
    margin-left: 30px;
}

.footer p,
.footer li,
.footer .links li {
    line-height: 2;
    letter-spacing: 0.3px;
}

.footer a {
    color: #cccccc;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: rgb(35, 137, 253);
    text-decoration: underline;
    transform: translateX(5px);
}

.footer i {
    color: white;
    margin-right: 6px;
}


.college {
    position: relative;
    width: 100%;
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('../images/hero.png');
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.2);
    background-blend-mode: darken;
}

.college::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgb(255, 255, 255) 100%);
}

.college h1 {
    font-size: clamp(32px, 13vw, 80px);
    font-weight: 800;
    color: rgb(255, 255, 255);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}


@media only screen and (max-width: 991px) {
    .navbar {
        padding: 20px 10px;
        border-radius: 0;
    }

}

.whatsapp-float {
    position: fixed;
    z-index: 9999;
    bottom: 120px;
    right: 18px;
    height: 55px;
    width: 55px;
    border-radius: 50%;
    background-color: #25d366;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp-float a {
    color: white;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #27a555;
}


/*Top*/

.top-btn {
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, orange, #EB822E);
    color: white;
    font-size: 26px;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.top-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #EB822E, orange);
}


.focus-areas {
    background-color: #f9fbfd;
    padding-top: 50px;
    padding-bottom: 50px;
}

.container.d-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Card */
.go {
    position: relative;
    flex: 1;
    height: 380px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e6ed;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.6s ease;
    display: block;
    /* not flex, fixes image visibility */
}

.go:hover {
    flex: 2;
    transform: scale(1.02);
    border-color: #0077ff;
    box-shadow: 0 10px 25px rgba(0, 119, 255, 0.25);
}

/* Image container */
.go-img {
    width: 100%;
    height: 55%;
    background-size: cover;
    background-position: center;
}

/* Text overlay */
.overlay {
    padding: 1.2rem;
    background: linear-gradient(to bottom, #ffffff, #f3f7fa);
    border-top: 1px solid #d9e3ec;
    text-align: center;
}

.overlay h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #F67F22;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.overlay p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}


/* Responsive Layout */
@media (max-width: 992px) {
    .go {
        flex: 1 1 45%;
        height: 350px;
    }

    .go-img {
        height: 50%;
    }
    
    .flip-card-back img {
        height: auto;
    }
}

@media (max-width: 576px) {
    .go {
        flex: 1 1 100%;
        height: 300px;
    }

    .go-img {
        height: 45%;
    }

    .overlay h3 {
        font-size: 1.2rem;
    }

    .overlay p {
        font-size: 0.9rem;
    }
}














