:root {
    --primary: #0047AB;
    /* Cobalt Blue */
    --primary-dark: #002e70;
    --accent: #FF6B00;
    /* Vibrant Orange */
    --accent-hover: #e65100;
    --text-dark: #1A202C;
    --text-gray: #4A5568;
    --text-light: #718096;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
    --radius: 16px;
    --transition: all 0.3s ease;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Reset & Base */
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Utilities */
.section-padding {
    padding: 80px 0;
}

.text-primary {
    color: var(--primary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

.btn-custom {
    background: var(--accent);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    transition: var(--transition);
}

.btn-custom:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
    color: var(--white);
}

.btn-outline-custom {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Header & Navbar */
.top-bar {
    background: var(--primary);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    transition: var(--transition);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand span {
    color: var(--accent);
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    margin: 0 10px;
    padding: 8px 0 !important;
    position: relative;
    /* white-space: nowrap removed here, applied in media query below */
}

/* Desktop only styles */
@media (min-width: 992px) {
    .nav-link {
        white-space: nowrap;
        /* Fix for Contact Us wrapping on Desktop */
    }
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 46, 112, 0.85), rgba(0, 0, 0, 0.6)), url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 85vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.2s backwards;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-btns {
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* Nav Pills Customization */
.nav-pills .nav-link {
    color: var(--text-gray);
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
    padding: 12px 35px;
    margin: 0 10px;
    transition: var(--transition);
    white-space: nowrap;
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-pills .nav-link:hover {
    background: #eef2f6;
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-pills .nav-link.active {
    background: var(--primary);
    color: var(--white) !important;
    box-shadow: 0 5px 15px rgba(0, 71, 171, 0.3);
    border-color: transparent;
}

/* About Section */
.about-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--accent);
}

.section-subtitle {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

/* Vision & Mission Cards */
.vm-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.vm-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.vm-icon-box {
    width: 80px;
    height: 80px;
    background: rgba(0, 71, 171, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.vm-card:hover .vm-icon-box {
    background: var(--primary);
    color: var(--white);
}

/* Objectives List */
.objective-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.objective-list li::before {
    content: '\f26b';
    /* check-circle-fill */
    font-family: bootstrap-icons;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent);
    font-size: 1.2rem;
}

/* Equipment Section */
.equipment-wrapper {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    height: 100%;
    border-bottom: 4px solid var(--primary);
}

.eq-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.eq-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.eq-badge {
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Team Section */
.team-member {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: var(--white);
    transition: var(--transition);
    text-align: center;
    padding-bottom: 20px;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.team-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.team-member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover img {
    transform: scale(1.1);
}

.team-content {
    padding: 20px;
}

.team-role {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: block;
}

.tech-table thead {
    background: var(--primary);
    color: var(--white);
}

.tech-table th,
.tech-table td {
    padding: 15px;
    vertical-align: middle;
}

/* Footer */
.footer-section {
    background: #101828;
    color: #cfd8dc;
    padding-top: 80px;
    padding-bottom: 30px;
}

.footer-logo {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.footer-logo span {
    color: var(--accent);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a0aec0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    margin-right: 10px;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Construction / 404 */
.uc-box {
    padding: 50px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    display: inline-block;
}

.uc-icon {
    font-size: 60px;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}

@media (max-width: 576px) {

    /* Navbar brand spacing */
    .navbar-brand {
        gap: 6px !important;
    }

    /* RVR logo smaller */
    .navbar-brand img:first-child {
        height: 42px !important;
    }

    /* College name text smaller */
    .navbar-brand div>div:first-child {
        font-size: 1.1rem !important;
    }

    .navbar-brand div>div:last-child {
        font-size: 0.7rem !important;
    }

    /* Divider hidden on mobile */
    .navbar-brand div[style*="border-left"] {
        display: none !important;
    }

    /* AICTE logo smaller */
    .navbar-brand img[alt="AICTE Logo"] {
        height: 36px !important;
    }

    /* IDEA Lab text smaller */
    .navbar-brand div[style*="AICTE IDEA LAB"] {
        font-size: 0.75rem !important;
    }

    /* IDEA Lab logo smaller */
    .navbar-brand img[src*="aicteidealablogo"] {
        height: 38px !important;
        width: 60px !important;
    }

    /* Center navbar brand vertically */
    .navbar-brand {
        align-items: center;
    }
}

/* Remove dropdown arrow */
.no-arrow::after {
    display: none !important;
}

/* Professional Dropdown Styling */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    padding: 10px;
    margin-top: 15px;
    /* Offset from navbar */
    animation: fadeInUp 0.3s ease;
    display: block;
    /* For interaction visibility during transition logic if JS interferes, usually none needed for BS5 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-gray);
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(0, 71, 171, 0.05);
    /* very light primary */
    color: var(--primary);
    transform: translateX(5px);
}

/* Desktop Hover for Dropdown */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        display: block;
        /* Override BS default if needed */
    }
}

/* Mobile Dropdown Adjustments */
@media (max-width: 991px) {
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 20px;
        margin-top: 0;
        background: transparent;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
        /* Let Bootstrap toggler handle display */
        transition: none;
        /* Disable animation for responsiveness */
    }

    .dropdown-menu.show {
        display: block;
        animation: none;
    }

    .dropdown-item {
        color: var(--text-dark);
        padding: 5px 0;
    }

    .dropdown-item:hover {
        background: transparent;
        color: var(--primary);
        transform: translateX(5px);
    }

    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        border-radius: 0 0 var(--radius) var(--radius);
        box-shadow: var(--shadow-hover);
        margin-top: 15px;
    }

    .nav-link {
        margin: 5px 0;
        /* More spacing on mobile */
    }
}

@media (max-width: 480px) {

    /* Tighten gap */
    .navbar-brand {
        gap: 4px !important;
    }

    /* RVR Logo - Smaller */
    .navbar-brand img:first-child {
        height: 35px !important;
        width: auto !important;
    }

    /* College Name Wrapper */
    .navbar-brand>div:first-of-type {
        line-height: 1 !important;
    }

    /* RVR Text - Smaller */
    .navbar-brand>div:first-of-type>div:first-child {
        font-size: 0.9rem !important;
    }

    /* RVR Subtitle - Hide */
    .navbar-brand>div:first-of-type>div:last-child {
        display: none !important;
    }

    /* Divider - Hide */
    .navbar-brand>div:nth-of-type(2) {
        display: none !important;
    }

    /* AICTE Logo - Smaller */
    .navbar-brand img[alt="AICTE Logo"] {
        height: 30px !important;
        width: auto !important;
    }

    /* AICTE Text - Hide to save space */
    .navbar-brand img[alt="AICTE Logo"]+div {
        display: none !important;
    }

    /* IDEA Lab Logo - Smaller */
    .navbar-brand img[src*="aicteidealablogo"] {
        height: 30px !important;
        width: 48px !important;
    }

    /* Hero Text Adjustments */
    .hero-content h1 {
        font-size: 2rem !important;
        /* Reduce from 3.5rem */
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem !important;
        /* Reduce from 1.25rem */
        padding: 0 15px;
        /* Add padding to prevent edge touching */
    }
}