/*===========================================
=            Uganda Martyrs University      =
=            Masaka Campus Styles           =
=============================================*/

/*--------------------------------------------
  1. CSS Variables & Root Settings
--------------------------------------------*/
:root {
    /* University Primary Colors */
    --umu-maroon: #800000;
    --umu-dark-maroon: #660000;
    --umu-light-maroon: #a52a2a;
    
    /* Core Color Scheme */
    --primary-white: #ffffff;
    --pure-black: #000000;
    --accent-yellow: #ffd700;
    --accent-red: #dc143c;
    --soft-black: #1a1a1a;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #333333;
    
    /* Overlay Colors */
    --overlay-dark: rgba(0, 0, 0, 0.7);
    --overlay-darker: rgba(0, 0, 0, 0.85);
    --overlay-maroon: rgba(128, 0, 0, 0.8);
    
    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    --spacing-xxl: 40px;
    --spacing-xxxl: 60px;
    
    /* Border Radius */
    --radius-sm: 3px;
    --radius-md: 5px;
    --radius-lg: 8px;
    --radius-xl: 10px;
    
    /* Shadows */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 15px 35px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-normal: 0.4s ease;
    --transition-slow: 0.6s ease;
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/*--------------------------------------------
  2. Global Styles & Reset
--------------------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-white);
    color: var(--soft-black);
    line-height: 1.6;
    overflow-x: hidden;
}

/*--------------------------------------------
  3. Animation Keyframes
--------------------------------------------*/
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    20%, 100% {
        transform: translateX(100%) rotate(45deg);
    }
}

@keyframes cardHover {
    0% {
        transform: translateY(0) scale(1);
    }
    100% {
        transform: translateY(-10px) scale(1.02);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes validPulse {
    0% { box-shadow: 0 0 0 0 var(--accent-yellow); }
    70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

@keyframes pageLoad {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/*--------------------------------------------
  4. Header Styles
-

/*--------------------------------------------
  5. Navigation Bar
--------------------------------------------*/
.navbar {
    background-color: var(--pure-black);
    border-bottom: 3px solid var(--accent-yellow);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 1.4s ease-out;
}

.navbar ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: space-between;
}

.navbar ul li a {
    color: var(--primary-white);
    text-decoration: none;
    padding: 15px 10px;
    display: block;
    position: relative;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    height: 2px;
    background-color: var(--accent-yellow);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar ul li a:hover::after {
    transform: scaleX(1);
}

.navbar ul li a:hover {
    background-color: var(--umu-maroon);
    color: var(--accent-yellow) !important;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown:hover .dropdown-content {
    display: block !important;
    animation: fadeInUp 0.3s ease;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--pure-black);
    min-width: 200px;
    box-shadow: var(--shadow-md);
    z-index: 1;
    border-top: 3px solid var(--accent-yellow);
    border-radius: 0 0 4px 4px;
}

.dropdown-content a {
    color: var(--primary-white);
    padding: 12px 15px;
    display: block;
    text-decoration: none;
    border-bottom: 1px solid #333 !important;
    transition: var(--transition-fast);
}

.dropdown-content a:last-child {
    border-bottom: none !important;
}

.dropdown-content a:hover {
    background-color: var(--umu-maroon) !important;
    color: var(--accent-yellow) !important;
    padding-left: 20px !important;
}

/*--------------------------------------------
  6. Main Content Area
--------------------------------------------*/
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 500px;
    animation: pageLoad 0.8s ease-out;
}

/*--------------------------------------------
  7. Hero Section
--------------------------------------------*/
.hero-section {
    background-size: cover;
    background-position: center;
    color: var(--primary-white);
    padding: 100px 20px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: var(--radius-lg);
    border-left: 5px solid var(--accent-yellow);
    position: relative;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.5), rgba(220,20,60,0.3));
    z-index: 1;
}

.hero-section * {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--accent-yellow);
    animation: slideInLeft 1s ease-out;
}

.hero-section p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto;
    animation: slideInRight 1s ease-out;
}

.hero-section .btn {
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-section .btn:first-child:hover {
    background-color: var(--pure-black) !important;
    border-color: var(--pure-black) !important;
}

/*--------------------------------------------
  8. Campus Background Images
--------------------------------------------*/
.campus-bg-1 {
    background: linear-gradient(var(--overlay-dark), var(--overlay-dark)), 
                url('../images/campus-main.jpg') center/cover fixed;
}

.campus-bg-2 {
    background: linear-gradient(var(--overlay-darker), var(--overlay-darker)), 
                url('../images/campus-library.jpg') center/cover fixed;
}

.campus-bg-3 {
    background: linear-gradient(135deg, var(--overlay-dark), var(--overlay-darker)), 
                url('../images/campus-students.jpg') center/cover fixed;
}

.campus-bg-4 {
    background: linear-gradient(45deg, rgba(0,0,0,0.8), rgba(220,20,60,0.7)), 
                url('../images/campus-graduation.jpg') center/cover fixed;
}

/* Parallax Sections */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    transition: var(--transition-slow);
}

.parallax:hover {
    transform: scale(1.02);
}

/* Animated Background for Sections */
.bg-animate {
    position: relative;
    overflow: hidden;
}

.bg-animate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: 1;
    pointer-events: none;
}

.bg-animate:hover::before {
    left: 100%;
}

/*--------------------------------------------
  9. Card Styles
--------------------------------------------*/
.card {
    background: var(--primary-white);
    border: 1px solid #ddd;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-sm);
    position: relative;
    animation: fadeInUp 1s ease-out;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

.card:hover {
    animation: cardHover 0.4s ease forwards;
    box-shadow: var(--shadow-xl);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.card:hover::before {
    left: 100%;
}

.card-header {
    background-color: var(--pure-black);
    color: var(--primary-white);
    padding: var(--spacing-md);
    border-bottom: 3px solid var(--accent-yellow);
    transition: var(--transition-fast);
}

.card:hover .card-header {
    background-color: var(--accent-red);
    border-bottom-color: var(--pure-black);
}

.card:hover .card-header h3 {
    color: var(--primary-white) !important;
}

.card-body {
    padding: var(--spacing-lg);
}

.card-footer {
    background-color: var(--light-gray);
    padding: var(--spacing-md);
    border-top: 1px solid #ddd;
}

.card .btn-link {
    transition: var(--transition-fast);
}

.card:hover .btn-link {
    color: var(--pure-black) !important;
    transform: translateX(5px);
}

/* Program Cards Specific */
.program-badge {
    transition: var(--transition-fast);
    cursor: default;
    display: inline-block;
    background-color: var(--accent-red);
    color: white;
    padding: 5px 15px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.program-badge:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.program-badge.dark {
    background-color: var(--pure-black);
    color: white;
}

/*--------------------------------------------
  10. Button Styles
--------------------------------------------*/
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--pure-black);
    color: var(--primary-white);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    border: 2px solid var(--pure-black);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background-color: var(--accent-yellow);
    color: var(--pure-black);
    border-color: var(--accent-yellow);
    animation: pulse 1s infinite;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.btn-red {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
}

.btn-red:hover {
    background-color: var(--pure-black);
    color: var(--accent-yellow);
    border-color: var(--pure-black);
}

/*--------------------------------------------
  11. Statistics Section
--------------------------------------------*/
.stat-item {
    transition: var(--transition-fast);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item div:first-child {
    transition: var(--transition-fast);
    font-size: 48px;
    font-weight: bold;
    color: var(--accent-yellow);
    animation: countUp 1s ease-out;
}

.stat-item:hover div:first-child {
    color: var(--accent-red) !important;
    transform: scale(1.1);
}

.stat-item div:last-child {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/*--------------------------------------------
  12. Gallery Styles
--------------------------------------------*/
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 3px solid var(--pure-black);
    animation: zoomIn 0.6s ease-out;
    animation-fill-mode: both;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover img {
    transform: scale(1.2) rotate(2deg);
}

.gallery-caption {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.9);
    color: var(--primary-white);
    padding: 10px;
    text-align: center;
    border-top: 2px solid var(--accent-yellow);
    transition: bottom 0.4s ease;
}

.gallery-item:hover .gallery-caption {
    bottom: 0;
}

/*--------------------------------------------
  13. News & Events
--------------------------------------------*/
.news-item {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    background: var(--primary-white);
    border-left: 5px solid var(--accent-yellow);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    animation: slideInRight 0.5s ease-out;
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.news-item:hover::before {
    left: 100%;
}

.news-item:hover {
    border-left-color: var(--accent-red);
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.news-date {
    background-color: var(--accent-red);
    color: var(--primary-white);
    padding: 5px 10px;
    display: inline-block;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 10px;
    transition: var(--transition-fast);
}

.news-item:hover .news-date {
    background-color: var(--pure-black);
    color: var(--accent-yellow);
    transform: rotate(-2deg);
}

/*--------------------------------------------
  14. Table Styles
--------------------------------------------*/
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.data-table th {
    background-color: var(--pure-black);
    color: var(--primary-white);
    padding: 12px;
    border-bottom: 3px solid var(--accent-yellow);
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.data-table tbody tr {
    transition: var(--transition-fast);
    animation: slideInLeft 0.5s ease-out;
    animation-fill-mode: both;
}

.data-table tbody tr:nth-child(1) { animation-delay: 0.1s; }
.data-table tbody tr:nth-child(2) { animation-delay: 0.2s; }
.data-table tbody tr:nth-child(3) { animation-delay: 0.3s; }
.data-table tbody tr:nth-child(4) { animation-delay: 0.4s; }
.data-table tbody tr:nth-child(5) { animation-delay: 0.5s; }
.data-table tbody tr:nth-child(6) { animation-delay: 0.6s; }
.data-table tbody tr:nth-child(7) { animation-delay: 0.7s; }
.data-table tbody tr:nth-child(8) { animation-delay: 0.8s; }

.data-table tbody tr:hover {
    background-color: var(--accent-yellow) !important;
    color: var(--pure-black);
    transform: scale(1.01);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.data-table tbody tr:nth-child(even) {
    background-color: rgba(255, 215, 0, 0.05);
}

/*--------------------------------------------
  15. Form Styles
--------------------------------------------*/
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--primary-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--accent-red);
    animation: slideInUp 0.8s ease-out;
    transition: var(--transition-fast);
}

.form-container:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.form-group {
    margin-bottom: var(--spacing-lg);
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--pure-black);
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.form-control:hover {
    border-color: var(--accent-red);
}

/* Shake Animation for Form Validation */
.shake {
    animation: shake 0.5s ease-in-out;
}

.valid-pulse {
    animation: validPulse 0.5s ease-out;
}

/*--------------------------------------------
  16. Alert Styles
--------------------------------------------*/
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    border-left: 5px solid;
    animation: slideInDown 0.5s ease-out;
}

.alert-success {
    background-color: #d4edda;
    border-left-color: #28a745;
}

.alert-warning {
    background-color: #fff3cd;
    border-left-color: var(--accent-yellow);
}

.alert-danger {
    background-color: #f8d7da;
    border-left-color: var(--accent-red);
}

.animated-alert {
    animation: slideInDown 0.5s ease-out, fadeOut 0.5s ease-out 2.5s forwards;
}

/*--------------------------------------------
  17. Footer Styles
--------------------------------------------*/
.footer {
    background-color: var(--pure-black);
    color: var(--primary-white);
    padding: 50px 0 20px;
    border-top: 5px solid var(--accent-red);
    animation: slideInUp 1s ease-out;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section {
    animation: fadeIn 0.8s ease-out;
    animation-fill-mode: both;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

.footer-section h3 {
    color: var(--accent-yellow);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-red);
    padding-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
    transition: var(--transition-fast);
    transform: translateX(0);
}

.footer-section ul li:hover {
    transform: translateX(10px);
}

.footer-section ul li:hover a {
    color: var(--accent-yellow);
}

.footer-section a {
    color: var(--primary-white);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/*--------------------------------------------
  18. Back to Top Button
--------------------------------------------*/
.back-to-top {
    transition: var(--transition-fast);
    color: var(--accent-red);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
}

.back-to-top span {
    transition: var(--transition-fast);
    border: 2px solid var(--accent-red);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    color: var(--pure-black) !important;
}

.back-to-top:hover span {
    background-color: var(--pure-black);
    color: var(--accent-yellow);
    transform: translateY(-5px);
}

/*--------------------------------------------
  19. Section Titles
--------------------------------------------*/
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
    font-size: 36px;
    color: var(--pure-black);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-yellow);
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 100px;
}

.section-title.red-border::after {
    background-color: var(--accent-red);
}

/*--------------------------------------------
  20. Timeline Styles
--------------------------------------------*/
.timeline-item {
    position: relative;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 3px solid var(--accent-yellow);
    animation: slideInLeft 0.6s ease-out;
    transition: var(--transition-fast);
}

.timeline-item:hover {
    border-left-width: 5px;
    border-left-color: var(--accent-red);
    background-color: rgba(255, 215, 0, 0.05);
    transform: translateX(10px);
}

/*--------------------------------------------
  21. Director Section
--------------------------------------------*/
.director-image {
    transition: var(--transition-fast);
    border: 3px solid transparent;
}

.director-image:hover {
    border-color: var(--accent-yellow);
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Director Image Placeholder */
.director-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--pure-black) 0%, var(--accent-red) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    position: relative;
    overflow: hidden;
}

.director-placeholder::before {
    content: 'Director\'s Photo';
    position: relative;
    z-index: 1;
}

.director-placeholder::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

/*--------------------------------------------
  22. Quote Styling
--------------------------------------------*/
.quote-mark {
    font-size: 48px;
    line-height: 0;
    display: inline-block;
    vertical-align: middle;
    transition: var(--transition-fast);
}

.quote-mark:hover {
    transform: rotate(10deg) scale(1.2);
    color: var(--accent-yellow);
}

/*--------------------------------------------
  23. Floating Shapes Background
--------------------------------------------*/
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-red));
    opacity: 0.1;
    border-radius: 50%;
    animation: float 20s infinite;
}

.shape1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.shape2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.shape3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    animation-delay: -10s;
}

.shape4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 10%;
    animation-delay: -15s;
}

/*--------------------------------------------
  24. Scroll Reveal Animations
--------------------------------------------*/
.reveal {
    position: relative;
    opacity: 0;
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(-100px);
}

.reveal-right {
    transform: translateX(100px);
}

.reveal-up {
    transform: translateY(100px);
}

.reveal-left.active, 
.reveal-right.active, 
.reveal-up.active {
    transform: translateX(0) translateY(0);
}

/*--------------------------------------------
  25. Grid Layouts
--------------------------------------------*/
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.director-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/*--------------------------------------------
  26. Responsive Design
--------------------------------------------*/
@media (max-width: 1200px) {
    .main-header h1 {
        font-size: 24px !important;
    }
    
    .hero-section h1 {
        font-size: 42px;
    }
}

@media (max-width: 992px) {
    .navbar ul {
        flex-wrap: wrap;
    }
    
    .navbar ul li {
        flex: 1 1 auto;
    }
    
    .navbar ul li a {
        padding: 12px 8px !important;
        font-size: 14px;
    }
    
    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-section h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .top-header > div {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .main-header > div {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .sidebar-toggle {
        display: block !important;
    }
    
    .navbar ul {
        display: none !important;
    }
    
    .navbar.active ul {
        display: flex !important;
        flex-direction: column;
    }
    
    .navbar ul li {
        width: 100%;
    }
    
    .dropdown-content {
        position: static !important;
        display: none !important;
        width: 100%;
    }
    
    .dropdown:hover .dropdown-content {
        display: block !important;
    }
    
    .hero-section h1 {
        font-size: 32px !important;
    }
    
    .hero-section p {
        font-size: 16px !important;
    }
    
    .hero-section .btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
    
    .statistics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    .director-grid {
        grid-template-columns: 1fr !important;
    }
    
    .programs-grid {
        grid-template-columns: 1fr !important;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .stat-item div:first-child {
        font-size: 36px !important;
    }
    
    .parallax {
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .statistics-grid {
        grid-template-columns: 1fr !important;
    }
    
    .hero-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero-section .btn:last-child {
        margin-bottom: 0;
    }
    
    .top-header > div > div:first-child {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .hero-section h1 {
        font-size: 28px !important;
    }
    
    .section-title {
        font-size: 28px;
    }
}

/*--------------------------------------------
  27. Utility Classes
--------------------------------------------*/
.text-center {
    text-align: center;
}

.text-yellow {
    color: var(--accent-yellow);
}

.text-red {
    color: var(--accent-red);
}

.text-white {
    color: var(--primary-white);
}

.text-black {
    color: var(--pure-black);
}

.bg-black {
    background-color: var(--pure-black);
}

.bg-maroon {
    background-color: var(--umu-maroon);
}

.bg-yellow {
    background-color: var(--accent-yellow);
}

.bg-red {
    background-color: var(--accent-red);
}

.bg-light {
    background-color: var(--light-gray);
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }
.p-4 { padding: 40px; }
.p-5 { padding: 50px; }

/* Page Transition */
.page-transition {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-loaded {
    opacity: 1;
}

/* Image Lazy Loading */
img.fade-in {
    animation: fadeIn 1s ease-out;
}
/* Navigation Bar Styles */
.navbar {
    background-color: var(--pure-black);
    border-bottom: 3px solid var(--accent-yellow);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: space-between;
}

.nav-item {
    position: relative;
}

.nav-item a {
    color: var(--primary-white);
    text-decoration: none;
    padding: 15px 15px;
    display: block;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 15px;
}

.nav-item a:hover {
    background-color: var(--umu-maroon);
    color: var(--accent-yellow);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--pure-black);
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-top: 3px solid var(--accent-yellow);
    border-radius: 0 0 5px 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    padding: 12px 20px;
    border-bottom: 1px solid #333;
    white-space: nowrap;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: var(--umu-maroon);
    color: var(--accent-yellow);
    padding-left: 25px;
}

/* Active link indicator */
.nav-item a.active {
    background-color: var(--umu-maroon);
    color: var(--accent-yellow);
    position: relative;
}

.nav-item a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--accent-yellow);
}

/* Mobile Responsive Styles */
@media (max-width: 992px) {
    .nav-menu {
        flex-wrap: wrap;
    }
    
    .nav-item {
        flex: 1 1 auto;
    }
    
    .nav-item a {
        padding: 12px 10px;
        font-size: 14px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: relative;
    }
    
    .nav-menu {
        flex-direction: column;
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-item a {
        padding: 15px;
        text-align: left;
        border-bottom: 1px solid #333;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        border-top: none;
        background-color: #222;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding-left: 30px;
    }
    
    .dropdown-toggle {
        justify-content: space-between;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
        color: white;
        font-size: 24px;
        cursor: pointer;
        z-index: 1002;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
}
/* Navigation Bar - Fixed */
.navbar {
    background-color: #000000;
    border-bottom: 3px solid #ffd700;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: space-between;
}

.nav-item {
    position: relative;
}

.nav-item a {
    color: white;
    text-decoration: none;
    padding: 15px 15px;
    display: block;
    font-weight: 500;
    font-size: 15px;
}

.nav-item a:hover {
    background-color: #800000;
    color: #ffd700;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle i {
    font-size: 12px;
    color: #ffd700;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000000;
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-top: 3px solid #ffd700;
    border-radius: 0 0 5px 5px;
    display: none;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    padding: 12px 20px;
    border-bottom: 1px solid #333;
    white-space: nowrap;
    color: white;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: #800000;
    color: #ffd700;
    padding-left: 25px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border-top: none;
        background-color: #222;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
}