* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #1a1f3a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent-cyan: #00d4ff;
    --accent-pink: #ff006e;
    --border-color: rgba(0, 212, 255, 0.3);
}

body.light-mode {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --accent-cyan: #0099cc;
    --accent-pink: #cc0052;
    --border-color: rgba(0, 153, 204, 0.3);
}

body {
    font-family: 'Orbitron', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Animated Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, var(--accent-cyan), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 60px 70px, var(--text-primary), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50px 50px, var(--text-primary), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 130px 80px, var(--text-primary), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 10px, var(--text-primary), rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 5s infinite;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

body.light-mode .stars {
    opacity: 0.1;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.8);
}

/* Modal (Login) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    visibility: hidden;
}

.modal-content {
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-container {
    background: linear-gradient(135deg, var(--bg-secondary), rgba(0, 212, 255, 0.1));
    padding: 3rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.login-title {
    color: var(--accent-cyan);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.login-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.login-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-cyan);
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.btn-login {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
    color: #000;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.8);
}

.divider {
    position: relative;
    margin: 2rem 0;
    color: var(--text-secondary);
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    background: var(--bg-secondary);
    padding: 0 1rem;
    position: relative;
}

.btn-guest {
    width: 100%;
    padding: 1rem;
    background: transparent;
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-guest:hover {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.login-footer {
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.login-footer a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Floating Particles */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Glitch Effect */
.glitch {
    position: relative;
    color: var(--accent-cyan);
    font-weight: bold;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.3s infinite;
    color: var(--accent-pink);
    z-index: -1;
    text-shadow: -2px 0 var(--accent-pink);
}

.glitch::after {
    animation: glitch-2 0.3s infinite;
    color: #00ff00;
    z-index: -2;
    text-shadow: 2px 0 #00ff00;
}

@keyframes glitch-1 {
    0% { clip-path: rect(0, 900px, 0, 0); }
    5% { clip-path: rect(10px, 9999px, 20px, 0); }
    100% { clip-path: rect(0, 0, 0, 0); }
}

@keyframes glitch-2 {
    0% { clip-path: rect(0, 0, 0, 0); }
    5% { clip-path: rect(5px, 0, 10px, 9999px); }
    100% { clip-path: rect(0, 0, 0, 0); }
}

.glitch-title {
    font-size: 4rem;
    color: var(--accent-cyan);
    text-shadow: 
        0 0 10px var(--accent-cyan),
        0 0 20px var(--accent-cyan),
        0 0 30px var(--accent-pink),
        0 0 40px var(--accent-pink);
    font-weight: bold;
    letter-spacing: 5px;
}

.glow-text {
    color: var(--accent-cyan);
    text-shadow: 
        0 0 10px var(--accent-cyan),
        0 0 20px var(--accent-cyan),
        0 0 30px rgba(0, 153, 204, 0.5);
    letter-spacing: 2px;
}

.neon-text {
    color: var(--accent-pink);
    text-shadow: 
        0 0 10px var(--accent-pink),
        0 0 20px var(--accent-pink),
        0 0 30px var(--accent-pink);
    font-weight: bold;
    animation: neon-flicker 3s infinite;
}

@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 
            0 0 10px var(--accent-pink),
            0 0 20px var(--accent-pink),
            0 0 30px var(--accent-pink);
        color: var(--accent-pink);
    }
    20%, 24%, 55% {
        text-shadow: none;
        color: var(--accent-pink);
    }
}

/* Navbar */
.navbar {
    background-color: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    transition: all 0.3s ease;
}

body.light-mode .navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 20px rgba(0, 153, 204, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.7);
}

.nav-links a:hover {
    color: var(--accent-pink);
    text-shadow: 0 0 20px rgba(255, 0, 110, 0.7);
    transform: scale(1.1);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    color: var(--accent-cyan);
    font-weight: bold;
}

.btn-logout {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.5);
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
    padding: 8rem 2rem;
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.2), rgba(255, 0, 110, 0.2), rgba(0, 212, 255, 0.2));
    animation: gradient-shift 8s ease infinite;
    z-index: -1;
}

body.light-mode .animated-background {
    background: linear-gradient(45deg, rgba(0, 153, 204, 0.1), rgba(204, 0, 82, 0.1), rgba(0, 153, 204, 0.1));
}

@keyframes gradient-shift {
    0%, 100% { background: linear-gradient(45deg, rgba(0, 212, 255, 0.2), rgba(255, 0, 110, 0.2), rgba(0, 212, 255, 0.2)); }
    50% { background: linear-gradient(225deg, rgba(255, 0, 110, 0.2), rgba(0, 212, 255, 0.2), rgba(255, 0, 110, 0.2)); }
}

.hero-content {
    position: relative;
    z-index: 5;
}

.hero-content h2 {
    font-size: 5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.3rem;
    margin: 2rem 0 2rem 0;
}

/* Pulse Button */
.cta-btn {
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-pink));
    color: #000;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
}

.cta-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.8);
}

.cta-btn.pulse {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.8); }
    50% { box-shadow: 0 0 40px rgba(255, 0, 110, 0.8); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 5;
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    margin-bottom: 3rem;
    letter-spacing: 2px;
}

/* About Section */
.about {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(255, 0, 110, 0.05));
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 5;
    transition: all 0.3s ease;
}

.about h2 {
    text-align: center;
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    background-color: var(--bg-secondary);
    position: relative;
    z-index: 5;
    transition: all 0.3s ease;
}

.features h2 {
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(255, 0, 110, 0.1));
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    border: 2px solid var(--border-color);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 40px rgba(255, 0, 110, 0.6);
    border-color: var(--accent-pink);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(255, 0, 110, 0.1));
    padding: 4rem 2rem;
    text-align: center;
    border-top: 2px solid var(--accent-cyan);
    border-bottom: 2px solid var(--accent-pink);
    position: relative;
    z-index: 5;
    transition: all 0.3s ease;
}

.contact h2 {
    margin-bottom: 1rem;
}

.contact p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    border-top: 2px solid var(--accent-cyan);
    padding: 3rem 0 1rem;
    position: relative;
    z-index: 5;
    transition: all 0.3s ease;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    text-align: left;
}

.footer-section h3 {
    color: var(--accent-cyan);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.footer-section h4 {
    color: var(--accent-cyan);
    margin-bottom: 0.8rem;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-pink);
    text-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .glitch-title {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .login-container {
        width: 95%;
        padding: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}
