:root {
    --msu-maroon: #800000;
    --msu-gold: #FFC107;
    --msu-light: #f8f9fa;
    --msu-dark: #343a40;
    --msu-gradient: linear-gradient(135deg, #800000, #FFC107);
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--msu-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
}

.navbar {
    background: var(--msu-gradient) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white !important;
}

.navbar-brand i {
    font-size: 1.8rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    color: white !important;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: white;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 0.5rem;
    background: var(--msu-light);
}

.dropdown-item {
    padding: 0.7rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    color: var(--msu-dark);
}

.dropdown-item:hover {
    background: var(--msu-gradient);
    color: white;
    transform: translateX(5px);
}

.hero-section {
    background: linear-gradient(rgba(128, 0, 0, 0.85), rgba(255, 193, 7, 0.85)), url('/assets/img/hero-bg.jpg') center/cover no-repeat;
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    width: 100%;
    min-height: 400px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100px, -100px); }
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.hero-section p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.btn-msu {
    background: var(--msu-gradient);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn-msu:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    color: white;
}

.btn-outline-msu {
    border: 2px solid var(--msu-maroon);
    color: var(--msu-maroon);
    transition: all 0.3s ease;
}

.btn-outline-msu:hover {
    background: var(--msu-gradient);
    color: white;
    border-color: transparent;
}

.section-title {
    color: var(--msu-maroon);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 40px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--msu-gradient);
}

.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.sdg-card .card-img-top {
    height: 150px;
    object-fit: contain;
    padding: 20px;
}

.carousel-item {
    height: 550px;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.carousel-caption {
    background: rgba(0,0,0,0.7);
    border-radius: 15px;
    padding: 30px;
    bottom: 50px;
    backdrop-filter: blur(10px);
}

.stats-section {
    background: var(--msu-light);
    padding: 80px 0;
    position: relative;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--msu-maroon);
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--msu-dark);
    font-weight: 500;
}

footer {
    background: var(--msu-gradient);
    color: white;
    padding: 60px 0 20px;
    width: 100%;
}

footer h5 {
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 12px;
    margin-bottom: 20px;
    font-family: 'Cinzel', serif;
}

footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: white;
    text-decoration: underline;
    transform: translateX(5px);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 10px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: white;
    color: var(--msu-maroon);
    transform: translateY(-3px);
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--msu-gradient);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top.show {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-3px);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .carousel-item {
        height: 350px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
}