/* ========================================
   BKUC Custom Styles
   ======================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Glassmorphism Variables */
:root {
    --primary: #166534;
    --secondary: #14532d;
    --accent: #22c55e;
    --gold: #fbbf24;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --accent-glow: #00d4ff;
    /* Logo-inspired colors */
    --bkuc-red: #da251c;
    --bkuc-gold: #a03609;
    --bkuc-white: #ffffff;
    --bkuc-dark: #1f2937;
    --bkuc-green: #455e48;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Glassmorphism Effects */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    /* border: 1px solid var(--glass-border); */
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); */
}

.glass-dark {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Enhanced Background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.overlay-gradient {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4),
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0.4)
    );
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-title {
    line-height: 1.2;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }

    100% {
        text-shadow:
            2px 2px 4px rgba(0, 0, 0, 0.7),
            0 0 20px rgba(255, 255, 255, 0.3);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slide-up {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Anti-gravity floating effect */
.anti-gravity {
    animation: antigravity 6s ease-in-out infinite;
}

@keyframes antigravity {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.animate-fade-in {
    animation: fade-in 1.5s ease-in-out forwards;
}

.animate-slide-up {
    animation: slide-up 1s ease-in-out forwards;
}

/* Enhanced Hover Effects */
.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

/* Pulse Animation */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
    }

    100% {
        box-shadow:
            0 0 20px rgba(0, 212, 255, 0.8),
            0 0 30px rgba(0, 212, 255, 0.4);
    }
}

/* ========================================
   HEADER STYLES
   ======================================== */

#header {
    background: transparent;
}

#header.scrolled {
    /* background: rgba(62, 62, 64, 0.17); */
    backdrop-filter: blur(10px);
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
}

.nav-link {
    position: relative;
    transition: var(--transition);
}

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

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

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-background {
    animation: kenburns 20s infinite alternate;
}

@keyframes kenburns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-up-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.animate-fade-in-up-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* ========================================
   FEATURE CARDS
   ======================================== */

.feature-card {
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    transition: var(--transition);
}

.feature-card:hover i {
    transform: scale(1.2);
}

/* ========================================
   MISSION & VISION CARDS
   ======================================== */

.mission-card,
.vision-card {
    transition: var(--transition);
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-5px);
}

/* ========================================
   DEPARTMENT CARDS
   ======================================== */

.department-card {
    transition: var(--transition);
}

.department-card img {
    transition: transform 0.5s ease;
}

.department-card:hover img {
    transform: scale(1.1);
}

/* ========================================
   NEWS SLIDER
   ======================================== */

#news-slider {
    position: relative;
}

.news-item {
    transition: var(--transition);
}

.news-item img {
    transition: transform 0.5s ease;
}

.news-item:hover img {
    transform: scale(1.1);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before,
.btn-secondary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    width: 100%;
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

#back-to-top {
    transition: var(--transition);
}

#back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

#back-to-top:hover {
    transform: translateY(-5px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   TABLE STYLES
   ======================================== */

table {
    border-collapse: collapse;
}

table tbody tr {
    transition: background-color 0.3s ease;
}

table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    /* background: var(--bkuc-red); */
    background: linear-gradient(135deg, var(--bkuc-red), var(--bkuc-gold));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    /* background: var(--bkuc-gold); */
    background: linear-gradient(135deg, var(--bkuc-red), var(--bkuc-gold));
}

/* ========================================
   LOADING STATES
   ======================================== */

.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus states for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(48, 43, 43, 0.3);
}

/* ========================================
   HOVER EFFECTS
   ======================================== */

.hover-lift {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ========================================
   EXTRACTED INLINE STYLES
   ======================================== */

/* Header Styles */
.header-fixed {
    position: fixed !important;
}

.nav-glass {
    margin: 0;
    padding: 15px 30px;
    background: linear-gradient(135deg, rgb(6 6 6 / 20%), rgb(8 8 7 / 20%));
}

.logo-title {
    color: var(--bkuc-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.logo-subtitle {
    color: var(--bkuc-gold);
    opacity: 1;
    font-weight: 500;
}

.nav-link-white {
    color: var(--bkuc-white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.mobile-menu-bg {
    background: linear-gradient(
        135deg,
        rgba(218, 37, 28, 0.3),
        rgba(189, 167, 81, 0.2)
    );
    border-radius: 0 0 20px 20px;
}

.menu-button {
    color: var(--bkuc-white);
}

/* Hero Section Styles */
.hero-stats-card {
    border-radius: 20px;
    /* background: linear-gradient(
        135deg,
        rgba(218, 37, 28, 0.2),
        rgba(189, 167, 81, 0.2)
    ); */
    background: linear-gradient(
        135deg,
        rgb(218 37 28 / 5%),
        rgb(189 167 81 / 1%)
    );
}

.hero-stats-number {
    /* color: var(--bkuc-gold); */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-stats-label {
    color: var(--bkuc-white);
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Section Headers */
.section-title {
    color: var(--bkuc-dark);
}

.section-title-shadow {
    color: var(--bkuc-dark);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.section-divider {
    background: linear-gradient(135deg, var(--bkuc-red), var(--bkuc-gold));
}

.section-description {
    color: var(--bkuc-dark);
    opacity: 0.8;
}

/* Feature Cards */
.feature-card-bg-1 {
    background: linear-gradient(
        135deg,
        rgba(218, 37, 28, 0.15),
        rgba(189, 167, 81, 0.15)
    );
    border: 1px solid rgba(218, 37, 28, 0.2);
}

.feature-card-bg-2 {
    background: linear-gradient(
        135deg,
        rgba(218, 37, 28, 0.15),
        rgba(189, 167, 81, 0.15)
    );
    border: 1px solid rgba(189, 167, 81, 0.3);
    animation-delay: 1s;
}

.feature-card-bg-3 {
    background: linear-gradient(
        135deg,
        rgba(218, 37, 28, 0.15),
        rgba(189, 167, 81, 0.15)
    );
    border: 1px solid rgba(218, 37, 28, 0.2);
    animation-delay: 2s;
}

.feature-card-bg-4 {
    background: linear-gradient(
        135deg,
        rgba(218, 37, 28, 0.15),
        rgba(189, 167, 81, 0.15)
    );
    border: 1px solid rgba(189, 167, 81, 0.3);
    animation-delay: 3s;
}

/* .feature-icon-red {
    background: linear-gradient(135deg, var(--bkuc-red), var(--bkuc-red));
} */

.feature-icon-red,
.feature-icon-gold,
.feature-icon-mixed-1,
.feature-icon-mixed-2 {
    /* background: linear-gradient(135deg, var(--bkuc-gold)); */
    background: linear-gradient(135deg, var(--bkuc-red), var(--bkuc-gold));
}

/* .feature-icon-mixed-1 {
    background: linear-gradient(135deg, var(--bkuc-red), var(--bkuc-gold));
}

.feature-icon-mixed-2 {
    background: linear-gradient(135deg, var(--bkuc-gold), var(--bkuc-red));
} */

.feature-title {
    color: var(--bkuc-dark);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.feature-description {
    color: var(--bkuc-dark);
    opacity: 0.8;
}

/* About Section */
.about-text {
    color: var(--bkuc-dark);
    opacity: 0.8;
}

.vc-name-highlight {
    color: var(--bkuc-red);
}

.check-icon {
    color: var(--bkuc-gold);
}

.vc-card-bg {
    background: linear-gradient(135deg, var(--bkuc-red), var(--bkuc-gold));
}

.vc-title {
    color: var(--bkuc-white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Research Section */
.research-icon-bg-1 {
    background: linear-gradient(
        135deg,
        rgba(218, 37, 28, 0.1),
        rgba(189, 167, 81, 0.1)
    );
    border: 1px solid rgba(218, 37, 28, 0.2);
}

.research-icon-bg-2 {
    background: linear-gradient(
        135deg,
        rgba(189, 167, 81, 0.1),
        rgba(218, 37, 28, 0.1)
    );
    border: 1px solid rgba(189, 167, 81, 0.2);
}

.research-icon-red {
    color: var(--bkuc-red);
}

.research-icon-gold {
    color: var(--bkuc-gold);
}

.research-title {
    color: var(--bkuc-dark);
}

.research-description {
    color: var(--bkuc-dark);
    opacity: 0.7;
}

.research-button {
    background: linear-gradient(135deg, var(--bkuc-red), var(--bkuc-gold));
    color: var(--bkuc-white);
    text-decoration: none;
}

.research-stats-card-1 {
    background: linear-gradient(
        135deg,
        rgba(218, 37, 28, 0.05),
        rgba(189, 167, 81, 0.05)
    );
    border: 1px solid rgba(218, 37, 28, 0.1);
}

.research-stats-card-2 {
    background: linear-gradient(
        135deg,
        rgba(189, 167, 81, 0.05),
        rgba(218, 37, 28, 0.05)
    );
    border: 1px solid rgba(189, 167, 81, 0.1);
    animation-delay: 0.5s;
}

.research-stats-card-3 {
    background: linear-gradient(
        135deg,
        rgba(218, 37, 28, 0.05),
        rgba(189, 167, 81, 0.05)
    );
    border: 1px solid rgba(218, 37, 28, 0.1);
    animation-delay: 1s;
}

.research-stats-card-4 {
    background: linear-gradient(
        135deg,
        rgba(189, 167, 81, 0.05),
        rgba(218, 37, 28, 0.05)
    );
    border: 1px solid rgba(189, 167, 81, 0.1);
    animation-delay: 1.5s;
}

/* Admissions Section */
.admissions-bg {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.step-card-1 {
    background: linear-gradient(
        135deg,
        rgba(218, 37, 28, 0.1),
        rgba(189, 167, 81, 0.1)
    );
    border: 1px solid rgba(218, 37, 28, 0.2);
}

.step-card-2 {
    background: linear-gradient(
        135deg,
        rgba(218, 37, 28, 0.1),
        rgba(189, 167, 81, 0.1)
    );
    border: 1px solid rgba(189, 167, 81, 0.3);
    animation-delay: 0.5s;
}

.step-card-3 {
    background: linear-gradient(
        135deg,
        rgba(218, 37, 28, 0.1),
        rgba(189, 167, 81, 0.1)
    );
    border: 1px solid rgba(218, 37, 28, 0.2);
    animation-delay: 1s;
}

.step-card-4 {
    background: linear-gradient(
        135deg,
        rgba(218, 37, 28, 0.1),
        rgba(189, 167, 81, 0.1)
    );
    border: 1px solid rgba(189, 167, 81, 0.3);
    animation-delay: 1.5s;
}

.step-number-red {
    background: linear-gradient(135deg, var(--bkuc-red), var(--bkuc-gold));
}

.step-number-gold {
    background: linear-gradient(135deg, var(--bkuc-gold), var(--bkuc-red));
}

.dates-card-bg {
    background: linear-gradient(
        135deg,
        rgba(218, 37, 28, 0.05),
        rgba(189, 167, 81, 0.05)
    );
    border: 1px solid rgba(218, 37, 28, 0.1);
}

.date-item-bg {
    background: rgba(255, 255, 255, 0.5);
}

.apply-button {
    background: linear-gradient(135deg, var(--bkuc-red), var(--bkuc-gold));
    color: var(--bkuc-white);
    text-decoration: none;
}

.download-button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--bkuc-red);
    border-color: var(--bkuc-red);
    text-decoration: none;
}

/* News Section */
.news-date-badge {
    background: linear-gradient(135deg, var(--bkuc-red), var(--bkuc-gold));
    color: var(--bkuc-white);
    backdrop-filter: blur(10px);
}

.news-link {
    color: var(--bkuc-red);
    text-decoration: none;
}

.news-arrow {
    color: var(--bkuc-gold);
}

/* Footer */
.back-to-top-btn {
    background: linear-gradient(135deg, var(--bkuc-red), var(--bkuc-gold));
    color: var(--bkuc-white);
}

/* Additional missing classes */
.news-date-badge-alt {
    background: linear-gradient(135deg, var(--bkuc-gold), var(--bkuc-red));
    color: var(--bkuc-white);
    backdrop-filter: blur(10px);
}

.admission-info-text {
    color: var(--bkuc-dark);
    opacity: 0.6;
}

.footer-logo-title {
    color: var(--bkuc-white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.footer-logo-subtitle {
    color: var(--bkuc-gold);
    font-weight: 500;
}

.footer-description {
    color: var(--bkuc-white);
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.footer-social-icon {
    background: linear-gradient(
        135deg,
        rgba(218, 37, 28, 0.3),
        rgba(189, 167, 81, 0.3)
    );
    color: var(--bkuc-white);
}

.footer-section-title {
    color: var(--bkuc-gold);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.footer-link-text {
    color: var(--bkuc-white);
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.footer-chevron {
    color: var(--bkuc-red);
}

.footer-icon {
    color: var(--bkuc-red);
}

.footer-copyright {
    border-color: rgba(189, 167, 81, 0.3);
    color: var(--bkuc-white);
    opacity: 0.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* News Section Styles */
.news-date {
    background: linear-gradient(135deg, var(--bkuc-red), var(--bkuc-gold));
    color: var(--bkuc-white);
    backdrop-filter: blur(10px);
}

.news-date-alt {
    background: linear-gradient(135deg, var(--bkuc-gold), var(--bkuc-red));
    color: var(--bkuc-white);
    backdrop-filter: blur(10px);
}

.news-title-link {
    color: var(--bkuc-red);
    text-decoration: none;
}

.news-arrow-icon {
    color: var(--bkuc-gold);
}

.footer-column {
    background: linear-gradient(
        135deg,
        rgba(220, 38, 38, 0.3),
        rgba(251, 191, 36, 0.3)
    );
    color: var(--bkuc-white);
}

.footer-link {
    color: var(--bkuc-white);
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.footer-chevron {
    color: var(--bkuc-red);
}

/* Important Dates Section Additional Classes */
.dates-icon-gold {
    background: linear-gradient(135deg, var(--bkuc-gold), var(--bkuc-red));
}

.dates-icon-red {
    background: linear-gradient(135deg, var(--bkuc-red), var(--bkuc-gold));
}

.red-text {
    color: var(--bkuc-red);
}

.status-open {
    background: linear-gradient(135deg, #10b981, #059669);
}

.status-upcoming {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Footer Styles */
.footer-social-link {
    background: linear-gradient(
        135deg,
        rgba(220, 38, 38, 0.3),
        rgba(251, 191, 36, 0.3)
    );
    color: var(--bkuc-white);
}

.footer-title {
    color: var(--bkuc-gold);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.footer-white-text {
    color: var(--bkuc-white);
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.footer-subtitle {
    color: var(--bkuc-gold);
    font-weight: 500;
}

.footer-link-icon {
    color: var(--bkuc-red);
}

.footer-border {
    border-color: rgba(251, 191, 36, 0.3);
    color: var(--bkuc-white);
    opacity: 0.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    header,
    footer,
    #back-to-top {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
