:root {
    --primary-color: #0066ff;
    --secondary-color: #00ccff;
    --accent-color: #ffd700;
    --dark-color: #001a33;
    --light-color: #ffffff;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 12px 40px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-color);
    color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 204, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(5px) translateY(-5px); }
    50% { transform: translateX(-5px) translateY(5px); }
    75% { transform: translateX(5px) translateY(5px); }
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 26, 51, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.loading-spinner::before {
    content: '';
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 204, 255, 0.3);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner::after {
    content: 'Loading...';
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--light-color);
    font-size: 1.2rem;
    font-weight: 500;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Glassmorphism Effect */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Modern Animation Keyframes */
@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 glow {
    0% { text-shadow: 0 0 10px var(--secondary-color); }
    50% { text-shadow: 0 0 20px var(--secondary-color), 0 0 30px var(--primary-color); }
    100% { text-shadow: 0 0 10px var(--secondary-color); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

@keyframes fadeInScale {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes rotateIn {
    from { transform: rotate(-180deg) scale(0.5); opacity: 0; }
    to { transform: rotate(0deg) scale(1); opacity: 1; }
}

@keyframes slideInDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

@keyframes neonGlow {
    0%, 100% { text-shadow: 0 0 5px var(--secondary-color), 0 0 10px var(--secondary-color), 0 0 15px var(--secondary-color); }
    50% { text-shadow: 0 0 10px var(--secondary-color), 0 0 20px var(--secondary-color), 0 0 30px var(--secondary-color), 0 0 40px var(--secondary-color); }
}

@keyframes ripple {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.4); opacity: 0; }
}

@keyframes wave {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes lightning {
    0%, 90%, 92%, 94%, 96%, 98%, 100% {
        text-shadow: 
            0 0 10px var(--secondary-color),
            0 0 20px var(--secondary-color),
            0 0 30px var(--secondary-color),
            0 0 40px var(--secondary-color);
    }
    91%, 93%, 95%, 97%, 99% {
        text-shadow: 
            0 0 5px #fff,
            0 0 10px #fff,
            0 0 15px #fff,
            0 0 20px #00ccff,
            0 0 30px #00ccff,
            0 0 40px #00ccff,
            0 0 50px #00ccff,
            0 0 60px #00ccff;
    }
}

@keyframes electricSpark {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

@keyframes thunderFlash {
    0%, 80%, 100% { opacity: 1; }
    85%, 95% { opacity: 0.3; }
    90% { opacity: 1; }
}

@keyframes lightningStrike {
    0%, 70%, 100% {
        text-shadow: 
            0 0 10px var(--secondary-color),
            0 0 20px var(--secondary-color),
            0 0 30px var(--secondary-color);
        color: var(--light-color);
    }
    75%, 85% {
        text-shadow: 
            0 0 5px #fff,
            0 0 10px #fff,
            0 0 15px #fff,
            0 0 20px #00ccff,
            0 0 30px #00ccff,
            0 0 40px #00ccff,
            0 0 50px #00ccff,
            0 0 60px #00ccff,
            0 0 70px #00ccff;
        color: #fff;
    }
}

/* Header Styles */
.header {
    background: linear-gradient(to right, var(--dark-color), var(--primary-color));
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 102, 255, 0.3);
    animation: slideIn 0.5s ease-out;
}

.navbar-brand img.logo {
    height: 50px;
    animation: pulse 2s infinite;
}

.nav-link {
    color: var(--light-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Notice Link Special Styling */
.nav-link[href="#notice"] {
    color: var(--secondary-color) !important;
    font-weight: 600;
}

.nav-link[href="#notice"]::after {
    background: var(--accent-color);
}

.nav-link[href="#notice"]:hover {
    text-shadow: 0 0 10px var(--secondary-color);
}

/* Dropdown Styles */
.dropdown-menu {
    background: rgba(0, 26, 51, 0.95);
    border: 1px solid rgba(0, 204, 255, 0.2);
    border-radius: 10px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.3s ease-out;
}

/* Notice Menu Special Styling */
.nav-item:nth-child(4) .dropdown-menu {
    border-top: 3px solid var(--secondary-color);
}

.nav-item:nth-child(4) .dropdown-item {
    position: relative;
    padding-left: 2rem;
}

.nav-item:nth-child(4) .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary-color);
    transition: all 0.3s ease;
}

.nav-item:nth-child(4) .dropdown-item:hover::before {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.nav-item:nth-child(4) .dropdown-item[href="#maintenance"]::before {
    background: #ff4444;
}

.nav-item:nth-child(4) .dropdown-item[href="#events"]::before {
    background: #ffd700;
}

.nav-item:nth-child(4) .dropdown-item[href="#updates"]::before {
    background: #00ccff;
}

.nav-item:nth-child(4) .dropdown-item[href="#announcements"]::before {
    background: #33ff33;
}

.dropdown-item {
    color: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: rgba(0, 102, 255, 0.2);
    color: var(--secondary-color);
    transform: translateX(5px);
}

.dropdown-toggle::after {
    border-top-color: var(--light-color);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    border-top-color: var(--secondary-color);
}

.btn-register {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 25px;
    padding: 0.5rem 1.5rem !important;
    margin-left: 1rem;
    font-weight: 600;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.4);
}

/* Mobile Navigation */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(0, 26, 51, 0.95);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
        backdrop-filter: blur(10px);
    }

    .dropdown-menu {
        background: transparent;
        border: none;
        padding-left: 1rem;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
    }

    .btn-register {
        margin: 1rem 0 0 0;
        text-align: center;
    }
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/lightning-bg.png') no-repeat center center;
    opacity: 0.1;
    animation: lightning 2s infinite;
}

@keyframes lightning {
    0% { opacity: 0.1; }
    50% { opacity: 0.2; }
    100% { opacity: 0.1; }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--light-color);
    position: relative;
    animation: lightningStrike 4s ease-in-out infinite;
    text-shadow: 
        0 0 10px var(--secondary-color),
        0 0 20px var(--secondary-color),
        0 0 30px var(--secondary-color);
    transition: all 0.3s ease;
}

.hero-title::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(0, 204, 255, 0.1), transparent);
    animation: electricSpark 2s ease-in-out infinite;
    z-index: -1;
    border-radius: 50%;
}

.hero-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    opacity: 0;
    animation: thunderFlash 6s ease-in-out infinite;
    z-index: 1;
    mix-blend-mode: overlay;
}

.hero-title:hover {
    animation: lightning 0.5s ease-in-out;
    transform: scale(1.05);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--light-color);
    animation: fadeInUp 0.8s ease-out;
}

.hero-image {
    animation: float 3s ease-in-out infinite;
}

.hero-buttons .btn {
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    margin-right: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    background-size: 200% 200%;
    border: none;
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.3);
    animation: gradientShift 3s ease infinite;
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
    transition: all 0.1s ease;
}

/* Interactive Button Variants */
.btn-gradient {
    background: var(--gradient-1);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient::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.5s ease;
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-neon {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-neon:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
    box-shadow: 0 0 20px var(--secondary-color);
    text-shadow: none;
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-neon:hover::before {
    left: 0;
}

.btn-outline {
    border: 2px solid var(--secondary-color);
    color: var(--light-color);
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--dark-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--light-color);
    text-shadow: 0 0 10px var(--secondary-color);
}

.feature-card {
    background: rgba(0, 102, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 204, 255, 0.2);
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 102, 255, 0.3);
    border-color: var(--secondary-color);
    background: rgba(0, 102, 255, 0.15);
}

.feature-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

/* Download Section */
.download {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
}

.download-content {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.download-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    min-width: 300px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.5s ease-out;
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.2);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    padding: 80px 0 20px;
    border-top: 1px solid rgba(0, 204, 255, 0.2);
}

.footer h4 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a {
    color: var(--light-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer ul li a:hover {
    color: var(--secondary-color);
}

.social-links a {
    color: var(--light-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--secondary-color);
    transform: translateY(-3px) scale(1.1);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 204, 255, 0.2);
    text-align: center;
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .download-content {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    .download-content {
        flex-direction: column;
    }
    
    .download-card {
        width: 100%;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .feature-card i {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .feature-card {
        padding: 0.8rem;
    }
    
    .feature-card i {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .download-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .features {
        padding: 80px 0;
    }
    
    .download {
        padding: 80px 0;
    }
}

/* Particle Effects */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: particleFloat 6s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Parallax Sections */
.parallax {
    transition: transform 0.1s ease-out;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleAnimation 0.6s linear;
}

@keyframes rippleAnimation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Interactive Cards */
.interactive-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.interactive-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--secondary-color);
    white-space: nowrap;
    animation: blink 1s infinite;
}

/* Form Error States */
.error {
    border-color: #ff4444 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 68, 68, 0.25) !important;
}

/* Modern Cards with Glassmorphism */
.modern-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.modern-card:hover::before {
    left: 100%;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Enhanced Typography */
.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300%;
    animation: gradientShift 3s ease infinite;
}

.neon-text {
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--secondary-color);
    animation: neonGlow 2s ease-in-out infinite;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--secondary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Notice Section Animations */
@keyframes noticeSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes noticeShine {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

@keyframes noticePulse {
    0% {
        transform: translateY(-5px) scale(1);
        box-shadow: 0 5px 15px rgba(0, 102, 255, 0.1);
    }
    50% {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 8px 25px rgba(0, 102, 255, 0.2);
    }
    100% {
        transform: translateY(-5px) scale(1);
        box-shadow: 0 5px 15px rgba(0, 102, 255, 0.1);
    }
}

@keyframes noticeIconFloat {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Notice Section Styles */
.notice-section {
    padding: 50px 0;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 204, 255, 0.1));
    position: relative;
    overflow: hidden;
}

.notice-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: noticeShine 3s infinite linear;
    pointer-events: none;
}

.section-title {
    opacity: 0;
    animation: noticeSlideIn 0.8s ease-out forwards;
}

.announcements-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    opacity: 0;
    animation: noticeSlideIn 0.8s ease-out 0.2s forwards;
}

.announcements-container::-webkit-scrollbar {
    display: none;
}

.notice-box {
    background: rgba(0, 26, 51, 0.9);
    border-radius: 15px;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(0, 204, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    animation: noticeSlideIn 0.8s ease-out forwards;
}

.notice-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
    border-color: rgba(0, 204, 255, 0.4);
}

.notice-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    animation: noticeIconFloat 3s ease-in-out infinite;
}

.notice-icon i {
    font-size: 1.2rem;
    color: var(--light-color);
}

.notice-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.notice-content h3 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(0, 204, 255, 0.3);
}

.notice-content p {
    color: var(--light-color);
    margin-bottom: 1rem;
    line-height: 1.4;
    font-size: 0.9rem;
}

.notice-timer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: auto;
}

.timer-item {
    background: rgba(0, 102, 255, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(0, 204, 255, 0.2);
    transition: all 0.3s ease;
}

.timer-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.2);
}

.timer-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(0, 204, 255, 0.3);
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.timer-item:hover .timer-number {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(0, 102, 255, 0.5);
}

/* Different styles for different announcement types */
.notice-box[data-type="maintenance"] {
    border-top: 4px solid #ff4444;
}

.notice-box[data-type="event"] {
    border-top: 4px solid #ffd700;
}

.notice-box[data-type="update"] {
    border-top: 4px solid #00ccff;
}

.notice-box[data-type="maintenance"] .notice-icon {
    background: linear-gradient(45deg, #ff4444, #ff6b6b);
}

.notice-box[data-type="event"] .notice-icon {
    background: linear-gradient(45deg, #ffd700, #ffeb3b);
}

.notice-box[data-type="update"] .notice-icon {
    background: linear-gradient(45deg, #00ccff, #33d6ff);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .announcements-container .col {
        flex: 0 0 calc(33.333% - 1rem);
    }
}

@media (max-width: 992px) {
    .announcements-container .col {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 576px) {
    .announcements-container .col {
        flex: 0 0 calc(100% - 1rem);
    }
    
    .notice-box {
        padding: 1rem;
    }
    
    .notice-content h3 {
        font-size: 1.1rem;
    }
    
    .notice-content p {
        font-size: 0.85rem;
    }
} 