/* Importing Custom Font */
@font-face {
    font-family: 'PixelifySans';
    src: url('/static/fonts/PixelifySans-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* General Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0a0f1a;
    color: #e0e8f0;
    font-family: 'PixelifySans', 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><defs><filter id="glow"><feGaussianBlur stdDeviation="1.5" result="blur"/><feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><g opacity="0.8"><circle cx="10%" cy="20%" r="2" fill="#fff" filter="url(#glow)"/><circle cx="80%" cy="10%" r="1" fill="#fff" filter="url(#glow)"/><circle cx="50%" cy="70%" r="3" fill="#fff" filter="url(#glow)"/><circle cx="30%" cy="40%" r="1.5" fill="#fff" filter="url(#glow)"/><circle cx="90%" cy="60%" r="2" fill="#fff" filter="url(#glow)"/></g></svg>'),
                linear-gradient(180deg, #0a0f1a 0%, #1a2333 100%);
    z-index: -1;
    animation: twinkle 10s infinite ease-in-out;
}

/* Main Content */
main {
    flex: 1;
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
    font-family: 'PixelifySans', sans-serif;
}

/* Header Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(10, 15, 26, 0.9);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

.top-nav:hover {
    background: rgba(10, 15, 26, 1);
}

.logo a {
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
    color: #00d4ff;
    text-shadow: 0 2px 6px rgba(0, 212, 255, 0.5);
}

.logo a:hover {
    color: #9370db;
}

/* Desktop Navigation Links */
.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    color: #e0e8f0;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-links a img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 212, 255, 0.4));
}

.nav-links a:hover {
    background: rgba(147, 112, 219, 0.3);
    transform: translateY(-3px) translateZ(10px);
    box-shadow: 0 4px 12px rgba(147, 112, 219, 0.6);
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 20px;
    cursor: pointer;
    z-index: 1100;
}

.burger span {
    width: 100%;
    height: 3px;
    background: #00d4ff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: absolute;
    top: 60px;
    right: 10px;
    background: rgba(10, 15, 26, 0.95);
    padding: 15px 25px;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    z-index: 999;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(0.95);
    opacity: 0;
}

.mobile-nav.active {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 6px 15px rgba(0, 212, 255, 0.3);
}

.mobile-nav a img {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 6px rgba(0, 212, 255, 0.5));
    transition: transform 0.3s ease;
}

.mobile-nav a img:hover {
    transform: scale(1.2);
}

/* Tempest Footer */
.tempest-footer {
    width: 100%;
    padding: 30px 20px;
    background: linear-gradient(145deg, #0a1a2f, #1e3246);
    box-shadow: 0 -6px 15px rgba(0, 212, 255, 0.15);
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(147, 112, 219, 0.2);
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e0e8f0;
}

.footer-content p {
    font-size: 14px;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 212, 255, 0.3);
    transition: color 0.3s ease;
}

.footer-content p:hover {
    color: #00d4ff;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-link {
    display: inline-block;
    text-decoration: none;
    perspective: 1000px;
}

.social-icon {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.social-link:hover .social-icon {
    transform: translateZ(15px) scale(1.15);
    filter: drop-shadow(0 5px 10px rgba(0, 212, 255, 0.7));
}

/* Authentication Container */
.auth-container {
    max-width: 500px;
    margin: 80px auto;
    padding: 30px;
    background: linear-gradient(135deg, rgba(20, 25, 40, 0.9), rgba(30, 35, 50, 0.8));
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 212, 255, 0.3);
    text-align: center;
    transform: perspective(1000px) rotateX(0deg);
    animation: slideIn 1s ease-out, floatEffect 6s infinite ease-in-out;
}

.auth-container h1 {
    margin-bottom: 25px;
    color: #00d4ff;
    font-size: 28px;
    text-shadow: 0 2px 6px rgba(0, 212, 255, 0.5);
}

.auth-container label {
    display: block;
    margin: 12px 0 8px;
    color: #e0e8f0;
    font-weight: bold;
    text-align: left;
    font-size: 16px;
}

.auth-container input {
    width: 100%;
    padding: 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(147, 112, 219, 0.3);
    border-radius: 6px;
    background: rgba(10, 15, 26, 0.8);
    color: #e0e8f0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-container input:focus {
    outline: none;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.5);
}

.auth-container button.auth-btn {
    background: linear-gradient(135deg, #9370db, #00d4ff);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.auth-container button.auth-btn:hover {
    background: linear-gradient(135deg, #a68eff, #00e6ff);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.6);
}

.auth-container p {
    margin-top: 15px;
    color: #b0b8d0;
    font-size: 14px;
}

.auth-container p a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.auth-container p a:hover {
    color: #9370db;
    text-decoration: underline;
}

.oauth-buttons {
    margin-top: 20px;
}

.oauth-btn {
    display: block;
    padding: 10px;
    margin: 10px 0;
    text-align: center;
    text-decoration: none;
    color: white;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    width: 100%;
}

.discord {
    background-color: #7289DA;
}

/* Dashboard Container */
.dashboard-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    background: rgba(20, 25, 40, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.welcome-banner {
    text-align: center;
    margin-bottom: 20px;
    color: #00d4ff;
    text-shadow: 0 2px 6px rgba(0, 212, 255, 0.5);
}

.dashboard-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.user-panel,
.token-panel {
    flex: 1;
    background: rgba(30, 35, 50, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    text-align: left;
}

.user-panel h2,
.token-panel h2 {
    margin-bottom: 15px;
    color: #00d4ff;
    text-shadow: 0 2px 4px rgba(0, 212, 255, 0.4);
}

.user-panel p,
.token-panel p {
    margin: 10px 0;
    color: #d8e0f0;
    font-weight: 500;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 150px 20px;
    text-align: center;
    color: #fff;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 26, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 48px;
    text-shadow: 0 4px 8px rgba(0, 212, 255, 0.8);
}

.hero-section p {
    font-size: 24px;
    margin-bottom: 30px;
}

.invite-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(90deg, #9370db, #00d4ff);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.invite-button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 212, 255, 0.8);
}

/* Stats Section */
.stats-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, #0a0f1a, #1a2333);
    text-align: center;
}

.stats-section h2 {
    font-size: 36px;
    color: #00d4ff;
    margin-bottom: 50px;
    text-shadow: 0 4px 8px rgba(0, 212, 255, 0.6);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    perspective: 1500px;
}

.stat-card {
    background: linear-gradient(145deg, rgba(20, 25, 40, 0.9), rgba(30, 35, 50, 0.8));
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(147, 112, 219, 0.3);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.stat-card:hover {
    transform: translateZ(30px) rotateX(10deg) rotateY(10deg);
}

.stat-card h3 {
    font-size: 24px;
    color: #ff8c00;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(255, 140, 0, 0.5);
}

.stat-card .stat-value {
    font-size: 48px;
    color: #00d4ff;
    transform: translateZ(20px);
}

.status-card .stat-value {
    font-size: 24px;
    text-transform: uppercase;
}

.status-card.online .stat-value {
    color: #00ff00; /* Green for Online */
}

.status-card.offline .stat-value {
    color: #ff3333; /* Red for Offline */
}

.status-card.maintenance .stat-value {
    color: #ffcc00; /* Yellow for Maintenance */
}

/* Features Section */
.features-section {
    padding: 80px 20px;
    background: #0a0f1a;
    text-align: center;
}

.features-section h2 {
    font-size: 36px;
    color: #00d4ff;
    margin-bottom: 50px;
    text-shadow: 0 4px 8px rgba(0, 212, 255, 0.6);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    background: rgba(20, 25, 40, 0.9);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(147, 112, 219, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item h3 {
    font-size: 24px;
    color: #00d4ff;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 16px;
    color: #d8e0f0;
}

/* Supported Blockchains Section */
.blockchains-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, #0a0f1a, #1a2333);
    text-align: center;
}

.blockchains-section h2 {
    font-size: 36px;
    color: #00d4ff;
    margin-bottom: 50px;
    text-shadow: 0 4px 8px rgba(0, 212, 255, 0.6);
}

.blockchains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    perspective: 2000px;
}

.blockchain-item {
    background: rgba(20, 25, 40, 0.9);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(147, 112, 219, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    transition: transform 0.5s ease, box-shadow 0.5s ease, filter 0.5s ease;
    animation: floatBlockchains 5s infinite ease-in-out;
}

.blockchain-item:hover {
    transform: translateZ(40px) rotateX(15deg) rotateY(15deg);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.8);
    filter: brightness(1.2);
}

.blockchain-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blockchain-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 15px;
    filter: drop-shadow(0 4px 8px rgba(0, 212, 255, 0.6)) brightness(1);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.blockchain-item:hover .blockchain-logo {
    transform: translateZ(30px) scale(1.15);
    filter: drop-shadow(0 6px 12px rgba(0, 212, 255, 0.8)) brightness(1.3);
}

.blockchain-item p {
    font-size: 18px;
    color: #d8e0f0;
    font-weight: 500;
}

/* Call to Action Section */
.cta-section {
    padding: 60px 20px;
    background: linear-gradient(90deg, #9370db, #00d4ff);
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.cta-section p {
    font-size: 18px;
    color: #fff;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #fff;
    color: #0a0f1a;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

/* Animations */
@keyframes twinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.5; }
}

@keyframes slideIn {
    from { opacity: 0; transform: perspective(1000px) rotateX(20deg) translateY(-50px); }
    to { opacity: 1; transform: perspective(1000px) rotateX(0deg) translateY(0); }
}

@keyframes floatEffect {
    0%, 100% { transform: perspective(1000px) rotateX(0deg) translateY(0); }
    50% { transform: perspective(1000px) rotateX(5deg) translateY(-10px); }
}

@keyframes floatBlockchains {
    0%, 100% { transform: perspective(2000px) translateY(0); }
    50% { transform: perspective(2000px) translateY(-15px); }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .burger {
        display: flex;
    }

    .mobile-nav {
        display: none;
    }

    .mobile-nav.active {
        display: flex;
    }

    .tempest-footer {
        padding: 20px 15px;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-content p {
        font-size: 12px;
        margin-bottom: 0;
    }

    .social-icons {
        gap: 15px;
    }

    .social-icon {
        width: 32px;
        height: 32px;
    }

    .auth-container {
        margin: 60px auto;
        padding: 20px;
    }

    .dashboard-container {
        margin: 30px auto;
        padding: 15px;
    }

    .dashboard-content {
        flex-direction: column;
        gap: 15px;
    }

    .hero-section {
        padding: 100px 20px;
        min-height: 80vh;
    }

    .hero-section h1 {
        font-size: 36px;
    }

    .hero-section p {
        font-size: 18px;
    }

    .stats-section h2,
    .features-section h2,
    .blockchains-section h2,
    .cta-section h2 {
        font-size: 28px;
    }

    .stat-card h3,
    .feature-item h3,
    .blockchain-item p {
        font-size: 18px;
    }

    .stat-card .stat-value {
        font-size: 36px;
    }

    .status-card .stat-value {
        font-size: 20px;
    }

    .blockchain-logo {
        width: 80px;
        height: 80px;
    }
}

@media screen and (max-width: 480px) {
    .hero-section h1 {
        font-size: 28px;
    }

    .hero-section p {
        font-size: 16px;
    }

    .invite-button,
    .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    .stats-grid,
    .features-grid,
    .blockchains-grid {
        grid-template-columns: 1fr;
    }

    .blockchain-logo {
        width: 60px;
        height: 60px;
    }
}