﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #003366, #004080, #0055a5);
    background-size: 300% 300%;
    animation: gradientShift 12s ease infinite;
    color: #fff;
    margin: 0;
    overflow-x: hidden;
    transition: background 0.6s, color 0.6s;
}

/* 🔷 CWG Brand Colors */
:root {
    --cwg-blue: #004080;
    --cwg-gold: #ffcc00;
}

/* 🔹 Gradient Movement */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 💠 CWG Logo Watermark (Continuous Rotation) */
.watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 260px;
    height: 260px;
    background: url('/images/cwg-logo.png') center center no-repeat;
    background-size: contain;
    opacity: 0.05;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: watermarkRotate 180s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes watermarkRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
        opacity: 0.04;
    }

    50% {
        opacity: 0.08;
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
        opacity: 0.04;
    }
}

/* 🌌 Particle Layer */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* 🌟 Hero Section */
.hero {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    text-align: center;
    padding: 3rem 1rem;
}

/* 🧊 Frosted Card Design */
.card {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    transition: all 0.4s ease;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.25);
    }

/* 🎓 Buttons */
.btn-custom {
    font-weight: 500;
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    transition: 0.3s ease;
}

.btn-student {
    background-color: var(--cwg-gold);
    color: #000;
}

    .btn-student:hover {
        background-color: #ffd633;
        transform: translateY(-2px);
    }

.btn-admin {
    background-color: #ffffff;
    color: var(--cwg-blue);
}

    .btn-admin:hover {
        background-color: #e6e6e6;
        transform: translateY(-2px);
    }

/* 🌙 Dark Mode */
body.dark-mode {
    background: #0b0c10 !important;
    color: #f8f9fa;
}

    body.dark-mode .card {
        background: rgba(255, 255, 255, 0.05);
        color: #f8f9fa;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    }

    body.dark-mode .btn-admin {
        background-color: #0d6efd;
        color: #fff;
    }

    body.dark-mode .btn-student {
        background-color: #ffc107;
        color: #212529;
    }

/* ✨ Fade-in Text Animation */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.fade-in-delay {
    animation: fadeIn 1s 0.3s forwards;
    opacity: 0;
}

.fade-in-delay2 {
    animation: fadeIn 1s 0.6s forwards;
    opacity: 0;
}

.fade-in-delay3 {
    animation: fadeIn 1s 0.9s forwards;
    opacity: 0;
}

.fade-in-delay4 {
    animation: fadeIn 1s 1.2s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ⚙️ Footer */
footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    background-color: rgba(0, 0, 0, 0.15);
    color: #e0e0e0;
    position: relative;
    z-index: 2;
}
