:root {
    /* Vibrant Color Palette */
    --primary: #6366f1; /* Indigo */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --secondary: #0f172a;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    
    /* Neutral Colors */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --primary-light: rgba(99, 102, 241, 0.1);
    
    /* Design Tokens */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.15);
    --shadow-vibrant: 0 20px 25px -5px rgba(99, 102, 241, 0.3);
    --shadow-premium: 0 40px 80px -15px rgba(0,0,0,0.1);
    --radius-md: 16px;
    --radius-lg: 32px;
    --radius-full: 9999px;
    --transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-fast: all 0.3s ease;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-dark: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --bg-alt: #f1f5f9;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; border: 3px solid var(--bg-light); }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { 
    font-family: var(--font-body); 
    color: var(--text-main); 
    background: var(--bg-light); 
    line-height: 1.6; 
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    scroll-padding-top: 100px;
}

h1, h2, h3, h4, h5, h6 { 
    font-family: var(--font-heading); 
    font-weight: 800; 
    color: var(--secondary); 
    line-height: 1.2; 
}

/* Structural Layout for Sticky Footer */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content-area {
    flex: 1;
}

/* Modern Glassmorphism Table */
.glass-table-container {
    background: rgba(30, 41, 59, 0.2);
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.glass-table {
    width: 100%;
    border-collapse: collapse;
    color: #cbd5e1;
}

.glass-table th {
    background: rgba(255, 255, 255, 0.03);
    text-align: left;
    padding: 18px 25px;
    color: #94a3b8;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

.glass-table td {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.95rem;
}

.glass-table tr:last-child td {
    border-bottom: none;
}

.glass-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-up { animation: fadeInUp 0.8s ease forwards; }

/* Premium Top Bar */
.top-bar {
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 12px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1001;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-weight: 500;
    letter-spacing: 0.5px;
}
.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 25px;
}
.top-bar a { 
    color: #cbd5e1; 
    text-decoration: none; 
    transition: var(--transition); 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
.top-bar a i { color: var(--primary); font-size: 0.9rem; }
.top-bar a:hover { color: #fff; transform: translateY(-1px); }

.btn-register {
    background: var(--primary-gradient);
    color: #fff !important;
    padding: 6px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.75rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-register:hover { 
    transform: scale(1.05); 
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

/* Unified Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.logo-container { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo { height: 45px; transition: var(--transition); }
.institute-name { 
    font-size: 1.5rem; 
    font-weight: 900; 
    color: var(--secondary); 
    letter-spacing: -0.5px;
    font-family: var(--font-heading);
}
.institute-name span { color: var(--primary); }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-links a i { display: none; }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    transition: var(--transition);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.mobile-menu-btn { 
    display: none; 
    background: var(--primary-light); 
    color: var(--primary);
    border: none; 
    padding: 10px;
    border-radius: var(--radius-md);
    cursor: pointer; 
    font-size: 1.4rem;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
}



/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    color: #fff !important;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: var(--shadow-vibrant);
    border: none;
    cursor: pointer;
}
.btn-primary:hover { 
    transform: translateY(-4px) scale(1.02); 
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.4); 
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 30px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}
.btn-outline:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
}

/* Hero Section */
.hero-slider {
    position: relative;
    height: 85vh;
    width: 100%;
    overflow: hidden;
    background: #000;
}
.slides-container {
    height: 100%;
    width: 100%;
}
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-out;
    display: flex;
    align-items: center;
    visibility: hidden;
}
.slide.active-slide { 
    opacity: 1; 
    z-index: 1; 
    visibility: visible;
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}
.dot.active-dot {
    background: #fff;
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255,255,255,0.5);
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transform: scale(1.1);
    transition: transform 10s linear;
}
.active-slide .hero-bg-image { transform: scale(1); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15,23,42,0.9) 20%, rgba(15,23,42,0.4) 60%, transparent 100%);
    z-index: -1;
}

.hero-content {
    padding-left: 8%;
    max-width: 650px;
    color: #fff;
}
.hero-content h1 {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.hero-content p {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 35px;
    opacity: 0.9;
}

/* Premium Section Titles */
.section-title {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 70px;
    position: relative;
}
.section-title h2 { 
    font-size: 2.2rem; 
    margin-bottom: 15px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.5px;
}
/* The decorative heading line */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}
.section-title::before {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 1px;
    background: rgba(99, 102, 241, 0.2);
}
.section-title p { 
    font-size: 1.15rem; 
    color: var(--text-muted); 
    margin-top: 35px;
    line-height: 1.6;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    text-align: center;
}
.feature-card:hover { 
    transform: translateY(-10px); 
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.feature-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    display: inline-block;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Infrastructure */
.infra-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.infra-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}
.infra-image-wrap img { width: 100%; display: block; }

/* Pathway Section */
.pathway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}
.pathway-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border-top: 5px solid var(--primary);
    box-shadow: var(--shadow-sm);
}
.pathway-card:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); }

/* Footer */
footer {
    background: var(--secondary);
    color: #fff;
    padding: 80px 5% 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-col h4 { color: #fff; margin-bottom: 25px; font-size: 1.2rem; }
.footer-col a { display: block; color: #94a3b8; text-decoration: none; margin-bottom: 12px; transition: var(--transition); }
.footer-col a:hover { color: #fff; transform: translateX(5px); }

.stats-section {
    background: var(--white);
    padding: 40px 5%;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    position: relative;
    margin-top: -50px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius-md);
}
.stats-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}
.stat-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
}
.stat-item h2 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 5px;
}
.stat-item p {
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Responsive Design - Comprehensive Mobile Optimization */
@media (max-width: 1200px) {
    .stats-container, .top-bar, .navbar, section, footer { padding-left: 5%; padding-right: 5%; }
}

@media (max-width: 1024px) {
    .hero-content h1 { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .top-bar { padding: 10px 5%; }
    .infra-grid { gap: 40px; }
}

@media (max-width: 768px) {
    /* Top Bar Mobile Optimization */
    .top-bar { 
        padding: 12px 5%;
        font-size: 0.75rem;
    }
    .top-bar-left { 
        display: none; /* Hide contacts in top bar on mobile to save space, or just icons */
    }
    .top-bar-right {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }
    .btn-register { padding: 5px 15px; font-size: 0.7rem; }

    .navbar { padding: 0.8rem 5%; }
    .logo { height: 35px; }
    .institute-name { font-size: 1.1rem; }

    /* Compact Grid Mobile Menu */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 25px 5%;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        border-top: 1px solid rgba(0,0,0,0.05);
        z-index: 2000;
        display: grid; 
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: 80vh;
        overflow-y: auto;
    }
    .nav-links.show-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-links a { 
        padding: 12px 5px; 
        border-radius: 12px; 
        text-align: center;
        font-size: 0.8rem;
        background: var(--bg-light);
        font-weight: 700;
        color: var(--text-main);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }
    @media (max-width: 480px) {
        .nav-links { grid-template-columns: repeat(3, 1fr); gap: 10px; }
        .nav-links a { font-size: 0.7rem; padding: 10px 5px; }
    }
    .nav-links a::after { display: none; }
    .nav-links a:hover, .nav-links a.active { background: var(--primary-gradient); color: #fff; }
    .nav-links a i { 
        display: block; 
        font-size: 1.2rem; 
        margin-bottom: 2px;
        background: var(--primary-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .nav-links a:hover i, .nav-links a.active i {
        -webkit-text-fill-color: #fff;
    }

    .mobile-menu-btn { 
        display: flex !important; 
        align-items: center; 
        justify-content: center;
        background: var(--primary-light);
        color: var(--primary);
        width: 40px;
        height: 40px;
    }
    
    .hero-slider { height: 70vh; }
    .hero-content { max-width: 100%; text-align: center; padding: 0; }
    .hero-content h1 { font-size: 2.2rem; line-height: 1.1; margin-top: 15px; }
    .hero-content p { font-size: 1rem; margin-bottom: 25px; }
    
    .infra-grid { grid-template-columns: 1fr !important; text-align: center; gap: 40px; }
    .section-title h2 { font-size: 1.8rem; }
    .section-title p { font-size: 1rem; margin-top: 25px; }
    
    .footer-grid { grid-template-columns: 1fr !important; text-align: center; gap: 30px; }
    .footer-col { display: flex; flex-direction: column; align-items: center; }
    .footer-col p { text-align: center; }
    .footer-col a { text-align: center; }
    
    section { padding: 60px 5%; }
    .stats-section { 
        margin-top: -30px; 
        width: 95%; 
        padding: 30px 20px;
    }
    .stats-grid { gap: 20px; }
    .stat-item h2 { font-size: 2rem; }
    .pathway-grid, .features-grid { grid-template-columns: 1fr !important; gap: 20px; }
    
    .feature-card, .pathway-card { padding: 30px 20px; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.8rem; }
    .btn-primary { width: 100%; justify-content: center; padding: 12px 20px; font-size: 0.9rem; }
    .btn-outline { width: 100%; text-align: center; padding: 12px 20px; font-size: 0.9rem; }
    .logo-container img { height: 30px; }
    .institute-name { font-size: 1rem; }
    .top-bar-right { flex-direction: column; gap: 8px; }
    .top-bar-right a { font-size: 0.7rem; }
}