/* ===== KEC Institute Shared Styles ===== */

:root {
    --primary: #0284c7;
    --secondary: #4f46e5;
    --dark-navy: #f0f9ff;
    --darkest: #f8fafc;
    --light-navy: #ffffff;
    --slate: #475569;
    --light-slate: #64748b;
    --white: #0f172a;
    --glass: rgba(2, 132, 199, 0.05);
    --glass-border: rgba(2, 132, 199, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--darkest);
    color: var(--slate);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--white);
    font-weight: 700;
}

.glow-1 {
    position: absolute;
    top: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(2, 132, 199, 0.15);
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
}

.glow-2 {
    position: absolute;
    bottom: 10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: rgba(79, 70, 229, 0.15);
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
}

/* Navbar */
.navbar {
    background: rgba(248, 250, 252, 0.82);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(to top right, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.nav-link {
    color: var(--slate) !important;
    font-weight: 600;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

.btn-apply {
    background: var(--primary);
    border: none;
    color: white !important;
    padding: 8px 24px;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.2);
    font-size: 0.875rem;
}

.btn-apply:hover {
    transform: translateY(-2px);
    background: #0369a1;
    box-shadow: 0 15px 30px rgba(2, 132, 199, 0.3);
}

.navbar-toggler {
    border-color: rgba(15, 23, 42, 0.1);
    padding: 4px 8px;
}

.navbar-toggler-icon {
    filter: none;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--light-navy);
        margin-top: 1rem;
        padding: 1.5rem;
        border-radius: 1.5rem;
        border: 1px solid var(--glass-border);
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    }
    .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    }
    .nav-link:last-child {
        border-bottom: none;
    }
}

/* Sections */
.section-tag {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    display: block;
    margin-bottom: 1rem;
}

section {
    padding: 100px 0;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

/* Cards */
.glass-card {
    background: var(--light-navy);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.icon-circle {
    width: 56px;
    height: 56px;
    background: rgba(2, 132, 199, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 2rem;
}

.stat-card {
    background: var(--light-navy);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.02);
}

.stat-card span:nth-child(1) {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stat-card span:nth-child(2) {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--light-slate);
}

/* Buttons */
.btn-white {
    background: var(--white);
    color: white;
    font-weight: 700;
    border-radius: 12px;
    padding: 1rem 2rem;
    transition: all 0.3s;
}

.btn-white:hover {
    background: #0c0a09;
    transform: translateY(-2px);
}

.btn-outline-glass {
    border: 1px solid var(--glass-border);
    color: var(--white);
    font-weight: 700;
    border-radius: 12px;
    padding: 1rem 2rem;
    transition: all 0.3s;
}

.btn-outline-glass:hover {
    background: rgba(2, 132, 199, 0.05);
    color: var(--primary);
    border-color: var(--primary);
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    right: 32px;
    bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1000;
}

.chat-bubble-tip {
    background: var(--light-navy);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    border-radius: 100px;
    animation: bounce 2s infinite;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.tip-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.chat-btn {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
}

.chat-box {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 360px;
    background: var(--light-navy);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 32px 64px rgba(15, 23, 42, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
}

.chat-header {
    background: var(--dark-navy);
    border-bottom: 1px solid var(--glass-border);
}

.chat-bubble {
    max-width: 85%;
    margin-bottom: 0.75rem;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.875rem;
}

.bot-bubble {
    background: var(--dark-navy);
    color: var(--white);
    border-bottom-left-radius: 4px;
}

.user-bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
    margin-left: auto;
}

.chat-input-wrapper {
    padding: 16px;
    background: white;
    border-top: 1px solid var(--glass-border);
}

/* Faculty */
.faculty-card {
    border-radius: 24px;
    overflow: hidden;
    background: var(--light-navy);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.02);
}

.faculty-card:hover {
    transform: scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.faculty-img {
    height: 300px;
    width: 100%;
    object-fit: cover;
}

.faculty-info {
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

/* Page Header */
.page-header {
    padding: 160px 0 80px;
    position: relative;
}

#auth-links .btn-apply {
    margin-left: 10px;
}

.user-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Footer */
footer {
    background: var(--darkest);
    border-top: 1px solid var(--glass-border);
    padding: 5rem 0 2rem;
    color: var(--slate);
}

.footer-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: var(--slate);
    text-decoration: none;
    transition: all 0.3s;
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-heading {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--light-navy);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate);
    transition: all 0.3s;
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    border-color: var(--primary);
}

.footer-bottom {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-status {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--light-slate);
}

.footer-status span {
    margin-right: 24px;
}