:root {
    --primary: #6366f1;
    --secondary: #a855f7;
    --dark: #0f172a;
    --glass: rgba(255, 255, 255, 0.85);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body { font-family: 'Poppins', sans-serif; scroll-behavior: smooth; }

.hero-wrapper { position: relative; overflow: hidden; background: #fff; }
.aura { position: absolute; width: 500px; height: 500px; background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%); filter: blur(80px); z-index: 0; }

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.btn-main {
    background: var(--dark);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-main:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.modern-card {
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition);
}

.modern-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.about-img-stack {
    padding: 20px;
}

.experience-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    text-align: center;
    min-width: 150px;
    border: 5px solid white;
    z-index: 2;
}

#about i {
    opacity: 0.8;
}

@media (max-width: 991px) {
    .experience-badge {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 20px;
        border: none;
    }
}

/* Hero with Professional Background */
.hero-section {
    position: relative;
    padding: 180px 0 120px;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), 
                url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax Effect */
    color: white;
}

/* Service Card with Image Background */
.service-card-premium {
    position: relative;
    overflow: hidden;
    height: 350px;
    border-radius: 24px;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    border: none;
    transition: var(--transition);
}

.service-card-premium .bg-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s ease;
}

.service-card-premium .content {
    position: relative;
    z-index: 2;
    color: white;
}

.service-card-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    z-index: 2;
}

.service-card-premium:hover .bg-img {
    transform: scale(1.1);
}

/* Premium Glass Navbar */
.navbar {
    transition: all 0.4s ease-in-out;
    backdrop-filter: blur(0px); /* Clear at the top */
    padding: 20px 0;
}

/* Navbar links style */
.nav-link {
    color: #ffffff !important; /* White text for the hero background */
    font-weight: 500;
    margin: 0 12px;
    position: relative;
    transition: color 0.3s ease;
}

/* Animated Underline Effect */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Floating Glass effect when scrolled */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Change link colors when navbar turns white on scroll */
.navbar.scrolled .nav-link {
    color: var(--dark) !important;
}

.navbar.scrolled .navbar-brand {
    color: var(--dark) !important;
}

/* Brand Logo Styling */
.navbar-brand {
    color: #ffffff !important;
    font-size: 1.8rem;
    letter-spacing: -1px;
}

.brand-logo {
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
    /* Remove any filter line here to show original colors */
    filter: none !important; 
}

/* If the logo is too dark to see on the hero image, 
   add a subtle drop shadow to make it pop instead of turning it white */
.navbar:not(.scrolled) .brand-logo {
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.5));
}

.navbar.scrolled .brand-logo {
    height: 40px;
    filter: none;
}
/* Optional: If your logo is dark and needs to turn white on the hero section */
/* You can use a CSS filter if you don't have a separate white logo file */
.navbar:not(.scrolled) .brand-logo {
    filter: brightness(0) invert(1); /* Turns a black logo into white */
}

.navbar.scrolled .brand-logo {
    height: 40px; /* Shrinks slightly on scroll for a premium feel */
    filter: none; /* Returns to original colors when background turns white */
}

/* Ensures the text stays aligned with the logo */
.logo-text {
    transition: color 0.3s ease;
}

.brand-logo {
    height: 45px;
    width: auto;
    /* This makes the white parts of the image transparent */
   
    
    /* Ensures the logo is crisp */
    image-rendering: -webkit-optimize-contrast; 
    
    transition: all 0.3s ease;
    border-radius: 30px;
}

/* If you are on a dark background (Hero section), use 'screen' instead of 'multiply' */
.navbar:not(.scrolled) .brand-logo {
    mix-blend-mode: screen;
}

.navbar-brand {
    background: rgba(255, 255, 255, 0.1); /* Very light glass */
    padding: 8px 15px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand {
    background: transparent; /* Remove capsule on scroll */
    border-color: transparent;
}

/* Contact Section Styling */
#contact {
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.05), #ffffff);
    position: relative;
}

.contact-container {
    background: #ffffff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.contact-info-side {
    background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%);
    color: white;
    padding: 3rem;
    height: 100%;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    margin-right: 1.2rem;
}

/* Modern Form Inputs */
.modern-input {
    border: 2px solid #f1f5f9;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.modern-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
}

.floating-label-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.service-card-premium {
    position: relative;
    overflow: hidden;
    height: 350px;
    border-radius: 24px;
    background-color: #1e293b; /* Dark placeholder color */
    display: flex;
    align-items: flex-end;
    padding: 30px;
    transition: var(--transition);
}

/* Ensure the image covers the area properly */
.bg-img {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1);
}

/* Pulsing effect to grab attention */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.7;
    animation: pulse-whatsapp 2s infinite;
    z-index: -1;
}

@keyframes pulse-whatsapp {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Tooltip text */
.whatsapp-float .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    right: 110%;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}

.whatsapp-float:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Add a subtle gap and hover lift to the cards */
.service-card-premium {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-card-premium:hover {
    transform: translateY(-10px);
}

/* Gradient text for the section heading */
.gradient-text {
    background: linear-gradient(90deg, #6366f1, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Real-Time Visuals for Internship */
.internship-image-container {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 500px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.internship-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255,255,255,0.3);
}

.intern-feature-list {
    list-style: none;
    padding: 0;
}

.intern-feature-list li {
    padding: 15px;
    margin-bottom: 15px;
    background: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    border-left: 4px solid var(--primary);
    transition: 0.3s;
}

.intern-feature-list li:hover {
    transform: translateX(10px);
    background: #f8fafc;
}

/* Color coding the different domains slightly for better UX */
.fa-microchip { color: #6366f1 !important; } /* DS - Indigo */
.fa-chart-line { color: #0ea5e9 !important; } /* Analytics - Sky Blue */
.fa-user-graduate { color: #10b981 !important; } /* Placement - Emerald */

.feature-item i {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--bs-primary-rgb), 0.1);
    border-radius: 10px;
    transition: 0.3s ease;
}

.feature-item:hover i {
    background: var(--primary);
    color: white !important;
    transform: scale(1.1);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    transition: 0.3s ease;
}

.service-card-premium:hover .icon-circle {
    transform: rotateY(360deg);
    background: white;
    color: var(--primary);
}

.service-card-premium {
    position: relative;
    overflow: hidden;
    height: 380px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* This color shows up if the image is missing */
    background: #1e293b; 
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    /* Makes sure the image starts invisible and fades in when ready */
    transition: opacity 0.5s ease-in-out;
}

.navbar-brand img {
    /* Adjust the shadow color (white/rgba) to match your logo's vibe */
    filter: drop-shadow(0px 0px 8px rgba(255, 255, 255, 0.6)) 
            drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

/* Optional: Change shadow when scrolling if navbar becomes light */
.navbar.scrolled .navbar-brand img {
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.1));
}