@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   ULTRA PREMIUM UI - DYNAMIC AESTHETICS
   ========================================================================== */

/* Smooth Scrolling & Custom Scrollbar */
html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #64e1b0, #5577a7);
    border-radius: 10px;
}

.dark-mode-active ::-webkit-scrollbar-track {
    background: #0e0e0f;
}

.dark-mode-active ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff007f, #7928ca);
}

/* Typography Upgrade */
body, h1, h2, h3, h4, h5, h6, p, a, span, div {
    font-family: 'Outfit', sans-serif !important;
}

/* Dynamic Animated Background for Body (Subtle) */
body::before {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(100, 225, 176, 0.05) 0%, transparent 40%),
                radial-gradient(circle, rgba(85, 119, 167, 0.05) 0%, transparent 40%);
    background-position: 0 0, 50px 50px;
    z-index: -1;
    animation: drift 20s linear infinite alternate;
}

.dark-mode-active body::before {
    background: radial-gradient(circle, rgba(255, 0, 127, 0.05) 0%, transparent 40%),
                radial-gradient(circle, rgba(121, 40, 202, 0.05) 0%, transparent 40%);
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Next-Gen Glassmorphism Navbar */
.navbar {
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
    transition: all 0.4s ease;
}

.dark-mode-active .navbar {
    background: transparent !important;
    border-bottom: none;
    box-shadow: none;
}

/* Menu Pill Background */
.navbar-nav {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    padding: 0 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.dark-mode-active .navbar-nav {
    background: rgba(14, 14, 15, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Navbar Logo Drop Shadow */
header .navbar-brand {
    overflow: visible !important;
    display: inline-block !important;
}
header img[src*="dr-alagar-lab.png"],
.navbar-brand img {
    -webkit-filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.4)) !important;
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.4)) !important;
    transition: all 0.3s ease !important;
    padding: 5px !important;
}

header a:hover img[src*="dr-alagar-lab.png"],
.navbar-brand:hover img {
    -webkit-filter: drop-shadow(3px 3px 5px rgba(0, 0, 0, 0.5)) !important;
    filter: drop-shadow(3px 3px 5px rgba(0, 0, 0, 0.5)) !important;
    transform: translateY(-2px) !important;
}

.dark-mode-active header img[src*="dr-alagar-lab.png"],
.dark-mode-active .navbar-brand img {
    -webkit-filter: drop-shadow(2px 2px 3px rgba(255, 255, 255, 0.3)) !important;
    filter: drop-shadow(2px 2px 3px rgba(255, 255, 255, 0.3)) !important;
}

.dark-mode-active header a:hover img[src*="dr-alagar-lab.png"],
.dark-mode-active .navbar-brand:hover img {
    -webkit-filter: drop-shadow(3px 3px 5px rgba(255, 255, 255, 0.4)) !important;
    filter: drop-shadow(3px 3px 5px rgba(255, 255, 255, 0.4)) !important;
}

/* Ultra Premium Cards with Floating Effect & Animated Borders */
.card, .services-box, .team-member, .post-item, .box-item {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.dark-mode-active .card, 
.dark-mode-active .services-box, 
.dark-mode-active .team-member, 
.dark-mode-active .post-item,
.dark-mode-active .box-item {
    background: rgba(25, 25, 30, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Card Hover - Neon Glows in Dark Mode, Vibrant Shadows in Light Mode */
.card:hover, .services-box:hover, .team-member:hover, .post-item:hover, .box-item:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 50px rgba(100, 225, 176, 0.15);
    border-color: rgba(100, 225, 176, 0.8) !important;
}

.dark-mode-active .card:hover, 
.dark-mode-active .services-box:hover, 
.dark-mode-active .team-member:hover, 
.dark-mode-active .post-item:hover,
.dark-mode-active .box-item:hover {
    box-shadow: 0 0 30px rgba(255, 0, 127, 0.3), 0 25px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 0, 127, 0.6) !important;
}

/* Button Upgrades - Shimmer & Glow */
.btn {
    position: relative;
    overflow: hidden;
    border-radius: 12px !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-size: 200% auto;
    z-index: 1;
}

.btn:hover {
    transform: translateY(-4px);
    background-position: right center;
}

.btn-premium {
    background: linear-gradient(45deg, #ff007f, #7928ca);
    color: #ffffff !important;
    border: none;
    padding: 12px 30px;
    box-shadow: 0 10px 20px rgba(255, 0, 127, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-active .btn-premium {
    background: linear-gradient(45deg, #64e1b0, #5577a7);
    box-shadow: 0 10px 20px rgba(100, 225, 176, 0.2);
}

.btn-premium:hover {
    background: linear-gradient(45deg, #7928ca, #ff007f);
}

.dark-mode-active .btn-premium:hover {
    background: linear-gradient(45deg, #5577a7, #64e1b0);
}

/* Dynamic Gradient Text - Animated */
h1.gradient, h2.gradient, .gradient-text {
    background: linear-gradient(-45deg, #2b5876, #4e4376, #ff007f, #7928ca);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 6s ease infinite;
    font-weight: 800;
}

.dark-mode-active h1.gradient, 
.dark-mode-active h2.gradient, 
.dark-mode-active .gradient-text {
    background: linear-gradient(-45deg, #64e1b0, #5577a7, #ff007f, #00f2fe);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 6s ease infinite;
}

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Micro-Animations for Images */
img {
    transition: filter 0.5s ease, transform 0.5s ease;
}

.img-hover-zoom {
    border-radius: 16px;
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.img-hover-zoom:hover img {
    transform: scale(1.08) rotate(1deg);
}

/* Active Link Indicators */
.nav-link.active {
    font-weight: 700;
    color: #4e4376 !important;
}

.dark-mode-active .nav-link.active {
    color: #ff007f !important;
}

.nav-link.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff007f, transparent);
    margin: 6px auto 0;
    border-radius: 3px;
    animation: pulseLink 2.5s infinite;
}

@keyframes pulseLink {
    0% { opacity: 0.4; transform: scaleX(0.6); }
    50% { opacity: 1; transform: scaleX(1); }
    100% { opacity: 0.4; transform: scaleX(0.6); }
}

/* Elegant Preloader */
#preloader {
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    background-color: rgba(255,255,255,0.9) !important;
    z-index: 99999;
}
.dark-mode-active #preloader {
    background-color: rgba(10,10,12,0.95) !important;
}

.loader-icon img {
    animation: bounceLogo 2s infinite cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes bounceLogo {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

/* Sections padding and modern spacing */
section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Decorative Blobs */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    border-radius: 50%;
    animation: floatBlob 10s ease-in-out infinite alternate;
}

.blob-1 {
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: #ff007f;
}

.blob-2 {
    bottom: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: #00f2fe;
}

.dark-mode-active .blob {
    opacity: 0.2;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -50px) scale(1.1); }
}

/* Insta Slider Adjustments */
.swiper-insta .picture-insta,
.swiper-insta .picture-insta .hover-effect-1,
.swiper-insta .picture-insta a,
.swiper-insta .picture-insta .image {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Funding Section Adjustments */
#funding-container .picture-insta .image {
    object-fit: contain !important;
    object-position: center !important;
    height: 120px !important;
    padding: 10px 20px;
    background-color: transparent !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
    cursor: pointer;
}

#funding-container .picture-insta .image:hover {
    background-color: rgba(0, 0, 0, 0.03) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.dark-mode-active #funding-container .picture-insta .image:hover {
    background-color: rgba(255, 255, 255, 0.03) !important;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.05);
}
.swiper-insta-prev, .swiper-insta-next {
    color: #111;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.swiper-insta-prev:after, .swiper-insta-next:after {
    font-size: 18px;
    font-weight: bold;
}



/* Hide mobile menu arrow/select option */
.sidebar-left .sidebar-nav .nav-item .nav-link::after {
    display: none !important;
}

/* Fix for Education & Experience layout size matching */
@media (min-width: 768px) {
    .article.card-11.flex-md-row .card-img-top {
        flex: 0 0 320px;
        max-width: 320px;
    }
    .article.card-11.flex-md-row .card-body {
        flex: 1;
        width: 100%;
    }
}

/* Fix for Meet the Team images matching size and add hover zoom */
.author-image-avator {
    width: 100% !important;
    height: 400px !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

.author-image-avator:hover {
    transform: scale(1.03) !important;
}

/* Fix for Our Gallery images matching size */
.block-insta .picture-insta .image {
    width: 100% !important;
    height: 300px !important;
    object-fit: cover !important;
}

/* Hover effect for education and experience titles */
.hover-underline h4 {
    display: inline;
    background-image: linear-gradient(90deg, #ff007f, #00f2fe, #64e1b0, #7928ca);
    background-size: 0% 3px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.4s ease;
    text-decoration: none !important;
}

    border-radius: 16px;
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.img-hover-zoom:hover img {
    transform: scale(1.08) rotate(1deg);
}

/* Active Link Indicators */
.nav-link.active {
    font-weight: 700;
    color: #4e4376 !important;
}

.dark-mode-active .nav-link.active {
    color: #ff007f !important;
}

.nav-link.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff007f, transparent);
    margin: 6px auto 0;
    border-radius: 3px;
    animation: pulseLink 2.5s infinite;
}

@keyframes pulseLink {
    0% { opacity: 0.4; transform: scaleX(0.6); }
    50% { opacity: 1; transform: scaleX(1); }
    100% { opacity: 0.4; transform: scaleX(0.6); }
}

/* Elegant Preloader */
#preloader {
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    background-color: rgba(255,255,255,0.9) !important;
    z-index: 99999;
}
.dark-mode-active #preloader {
    background-color: rgba(10,10,12,0.95) !important;
}

.loader-icon img {
    animation: bounceLogo 2s infinite cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes bounceLogo {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

/* Sections padding and modern spacing */
section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Decorative Blobs */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    border-radius: 50%;
    animation: floatBlob 10s ease-in-out infinite alternate;
}

.blob-1 {
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: #ff007f;
}

.blob-2 {
    bottom: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: #00f2fe;
}

.dark-mode-active .blob {
    opacity: 0.2;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -50px) scale(1.1); }
}

/* Insta Slider Adjustments */
.swiper-insta .picture-insta .image {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    display: block !important;
}

/* Funding Section Adjustments */
#funding-container .picture-insta .image {
    object-fit: contain !important;
    object-position: center !important;
    height: 120px !important;
    padding: 10px 20px;
    background-color: transparent !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
    cursor: pointer;
}

#funding-container .picture-insta .image:hover {
    background-color: rgba(0, 0, 0, 0.03) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.dark-mode-active #funding-container .picture-insta .image:hover {
    background-color: rgba(255, 255, 255, 0.03) !important;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.05);
}
.swiper-insta-prev, .swiper-insta-next {
    color: #111;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.swiper-insta-prev:after, .swiper-insta-next:after {
    font-size: 18px;
    font-weight: bold;
}



/* Hide mobile menu arrow/select option */
.sidebar-left .sidebar-nav .nav-item .nav-link::after {
    display: none !important;
}

/* Fix for Education & Experience layout size matching */
@media (min-width: 768px) {
    .article.card-11.flex-md-row .card-img-top {
        flex: 0 0 320px;
        max-width: 320px;
    }
    .article.card-11.flex-md-row .card-body {
        flex: 1;
        width: 100%;
    }
}

/* Fix for Meet the Team images matching size and add hover zoom */
.author-image-avator {
    width: 100% !important;
    height: 400px !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

.author-image-avator:hover {
    transform: scale(1.03) !important;
}

/* Fix for Our Gallery images matching size */
.block-insta .picture-insta .image {
    width: 100% !important;
    height: 300px !important;
    object-fit: cover !important;
}

/* Hover effect for education and experience titles */
.hover-underline h4 {
    display: inline;
    background-image: linear-gradient(90deg, #ff007f, #00f2fe, #64e1b0, #7928ca);
    background-size: 0% 3px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.4s ease;
    text-decoration: none !important;
}

.hover-underline:hover h4 {
    background-size: 100% 3px;
}
 .sec-1-home-4 {  }

.quote-card { padding-top: 8px !important; padding-bottom: 8px !important; }

/* Gallery Hover CSS - PURE CSS APPROACH */
.gallery-card-hover .gallery-hover-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    pointer-events: none !important;
    z-index: 999 !important;
    transform: translate(-50%, -50%) scale(0.9) !important;
}

.gallery-card-hover:hover .gallery-hover-btn,
.picture-insta:hover .gallery-hover-btn,
.hover-effect-1:hover .gallery-hover-btn {
    opacity: 0.9 !important;
    visibility: visible !important;
    transform: translate(-50%, -50%) scale(1) !important;
}
/* Lab Facilities Popup Size Override */
.mfp-container {
    padding: 0 !important;
}
.mfp-content,
.mfp-figure,
.mfp-figure figure {
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
}
img.mfp-img {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: contain !important; 
    padding: 0 !important; 
    border-radius: 0 !important; 
    display: block !important;
    margin: 0 auto !important;
}

/* Allow thumbnails to take their natural full size */
#lab-facilities-container .card-img-top img,
#division-facilities-container .card-img-top img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
}


/* Fix for slider images to be full size */
.slider-1 .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}

.slider-1,
.slider-1 .swiper-wrapper,
.slider-1 .swiper-slide {
    border-radius: 0 !important;
}

.slider-1 .swiper-slide {
    overflow: hidden !important;
}

.slider-1 {
    -webkit-transform: translateZ(0);
    transform: translateZ(0); 
}

/* Define missing utility class used across HTML files */
.rounded-16 {
    border-radius: 16px !important;
}
 