/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Inter:wght@300;400;600&display=swap');

:root {
    --primary: #ff0040;
    /* Neon Red */
    --secondary: #ffbd00;
    /* Bright Gold/Yellow for contrast */
    --accent: #ff1744;
    /* Keep Red accent */
    --bg: #050b14;
    /* Deep dark blue/black */
    --card-bg: rgba(0, 0, 0, 0.6);
    /* Transparent black for visibility */
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.8);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

/* User Custom Background Animation */
#bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    /* Ensure canvas is block to avoid scrollbars if slightly off */
    display: block;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg);
    /* Background Image Updated */
    background: linear-gradient(rgba(5, 11, 20, 0.5), rgba(5, 11, 20, 0.5)), url('../img/background-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.nav-logo {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(5, 11, 20, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.hero-content {
    max-width: 900px;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
    animation: glow 3s infinite alternate;
}

.hero-logo {
    width: 600px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.3));
    margin-bottom: 20px;
    animation: glow 3s infinite alternate;
}

.hero-subtitle {
    margin-bottom: 40px;
    font-weight: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subtitle-line-1 {
    font-size: 1.8rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 189, 0, 0.4);
}

.subtitle-line-2 {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 600;
    font-style: italic;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 8px 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.subtitle-line-3 {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Response adjustments for subtitle */
@media (max-width: 768px) {
    .subtitle-line-1 {
        font-size: 1.2rem;
    }

    .subtitle-line-3 {
        font-size: 1rem;
    }
}

.cta-btn {
    padding: 15px 50px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    text-transform: uppercase;
    font-weight: 700;
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 40px rgba(255, 152, 0, 0.8);
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.4));
    }

    to {
        filter: drop-shadow(0 0 20px rgba(255, 152, 0, 0.4));
    }
}

/* Sections */
.section {
    padding: 100px 8%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--primary);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Cards Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    border-radius: 16px;
    padding: 30px;
    transition: transform 0.4s ease, border-color 0.4s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0, 229, 255, 0.3);
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    object-fit: cover;
    height: 250px;
}

.card h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card ul {
    list-style: none;
    padding: 0;
    color: var(--text-muted);
}

.card ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.card ul li::before {
    content: '>';
    color: var(--secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Event Rule Headers Styling */
.rule-header {
    font-weight: bold;
    text-decoration: underline;
    background-color: var(--secondary);
    color: var(--bg);
    padding: 2px 8px;
    border-radius: 4px;
    list-style: none !important;
    margin-top: 15px;
    margin-bottom: 5px;
    width: fit-content;
    /* Ensure no bullet */
    padding-left: 0 !important;
}

.card ul li.rule-header::before {
    content: none !important;
}


/* Footer */
footer {
    background: #02060c;
    padding: 50px 8% 20px;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    /* Changed from space-around for better spacing */
    flex-wrap: wrap;
    /* Allows wrapping on smaller screens */
    gap: 40px;
    /* Adds consistent spacing between columns */
    margin-bottom: 40px;
    text-align: left;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary);
}

.copyright {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .navbar {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Register Button Styles */
.nav-register-btn {
    background: var(--primary);
    padding: 8px 20px;
    border-radius: 5px;
    color: white !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-register-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 0, 64, 0.6);
}

.nav-register-btn::after {
    display: none;
    /* SQL-style underline removal */
}

/* Floating Hero Register Button */
.register-floating-btn {
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    z-index: 1000;

    padding: 15px 50px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    background: rgba(5, 11, 20, 0.9);
    /* Dark background for readability */
    border: 2px solid var(--primary);
    border-radius: 50px;
    backdrop-filter: blur(5px);
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 0, 64, 0.5);
    text-transform: uppercase;
    font-weight: 700;
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.register-floating-btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 40px rgba(255, 0, 64, 0.8);
    animation-play-state: paused;
    transform: scale(1.05);
    /* Add subtle scale on hover */
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Student Coordinators Section - Added for Update */
.coordinator-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.coordinator-card {
    background: #000000;
    /* Black background */
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px 40px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
    min-width: 280px;
    position: relative;
    overflow: hidden;
}

.coordinator-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 10px 25px rgba(255, 189, 0, 0.2);
}

.coordinator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--secondary);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.coordinator-card:hover::before {
    opacity: 1;
}

.coordinator-name {
    color: var(--text-main);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.coordinator-number {
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.coordinator-number:hover {
    text-decoration: underline;
    color: #fff;
}