@font-face {
    font-family: "Font Awesome 6 Brands Regular";
    src: url("https://db.onlinewebfonts.com/t/840c587995af767e3b9cd09ab83f946d.eot");
    src: url("https://db.onlinewebfonts.com/t/840c587995af767e3b9cd09ab83f946d.eot?#iefix")format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/840c587995af767e3b9cd09ab83f946d.woff2")format("woff2"),
    url("https://db.onlinewebfonts.com/t/840c587995af767e3b9cd09ab83f946d.woff")format("woff"),
    url("https://db.onlinewebfonts.com/t/840c587995af767e3b9cd09ab83f946d.ttf")format("truetype"),
    url("https://db.onlinewebfonts.com/t/840c587995af767e3b9cd09ab83f946d.svg#Font Awesome 6 Brands Regular")format("svg");
}

:root {
    --primary-bg: linear-gradient(180deg, #000000 0%, #00474F 100%);
    --secondary-bg: #00474F;
    --accent-color: #2FEAFF;
    --button-gradient: radial-gradient(50% 50% at 50% 50%, #00535C 0%, #003035 100%);
    --border-color: #005F69;
    --glow-color: rgba(47, 234, 255, 0.3);
}

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

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

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@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); }
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-bg);
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
    padding-top: 80px; /* Add padding to account for fixed navbar */
    scroll-behavior: smooth;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(125deg, #000000 0%, #00474F 50%, #003035 100%);
    background-size: 400% 400%;
    animation: backgroundAnimation 15s ease infinite;
    z-index: -1;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 0.5px solid var(--border-color);
    height: 80px;
}

.nav-logo {
    font-family: "Font Awesome 6 Brands Regular", sans-serif;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.discord-link {
    text-align: center;
    margin: 4rem 0 2rem 0;
}

.discord-link a {
    display: inline-block;
    color: black;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    background: var(--accent-color);
    padding: 1rem 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(47, 234, 255, 0.3);
}

.discord-link a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(47, 234, 255, 0.5);
    background: #5EECFF;
}

.discord-link a:active {
    transform: translateY(1px);
}

.container {
    width: 90%;
    max-width: 1093px;
    margin: 2rem auto;
    padding: 2rem;
    position: relative;
}

.section {
    margin: 4rem 0;
    opacity: 1; /* Changed from 0 to 1 to ensure visibility */
    transform: none; /* Removed transform to ensure visibility */
}

.title {
    color: #FFFFFF;
    text-align: center;
    font-weight: 600;
    font-size: 3.5rem;
    letter-spacing: 0.08em;
    margin-bottom: 3rem;
    text-transform: uppercase;
    position: relative;
    font-family: "Font Awesome 6 Brands Regular", sans-serif;
}

.title.glitch:hover {
    animation: glitch 0.3s linear infinite;
}

.title.glitch::before,
.title.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.title.glitch::before {
    color: #ff00ff;
    z-index: -2;
}

.title.glitch::after {
    color: #00ffff;
    z-index: -1;
}

.main-content {
    background: rgba(0, 71, 79, 0.3);
    backdrop-filter: blur(10px);
    border: 0.5px solid var(--accent-color);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 71, 79, 0.37);
}

.input-group {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 800px;
    justify-content: center;
}

.ping-input {
    background: rgba(217, 217, 217, 0.1);
    border: 0.5px solid var(--border-color);
    border-radius: 18.25px 0 0 18.25px;
    padding: 0.8rem 1.5rem;
    font-size: 1.2rem;
    width: 250px;
    color: white;
    transition: all 0.3s;
}

.ping-input:focus {
    outline: none;
    background: rgba(217, 217, 217, 0.2);
}

.btn {
    background: var(--button-gradient);
    border: 0.5px solid var(--border-color);
    color: white;
    padding: 0.8rem 1.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    height: 50px;
    min-width: 140px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.generate-btn {
    border-radius: 0;
    border-left: none;
}

.download-btn {
    border-radius: 0;
    border-left: none;
}

.show-pred-btn {
    border-radius: 0 18.25px 18.25px 0;
    border-left: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--glow-color);
    background: radial-gradient(50% 50% at 50% 50%, #006B75 0%, #004A50 100%);
}

.pred-display {
    background: var(--button-gradient);
    border: 0.5px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.pred-display h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.pred-display p {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.features-section {
    width: 100%;
    margin-top: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.feature-card {
    background: var(--button-gradient);
    border: 0.5px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(47, 234, 255, 0.2);
}

.feature-card h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 1rem;
    opacity: 0.9;
}

.analytics-section {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    width: 100%;
}

.stat-card {
    background: var(--button-gradient);
    border: 0.5px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    min-width: 200px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: white;
    opacity: 0.9;
}

.notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.notification {
    background: var(--button-gradient);
    border: 0.5px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 10px;
    color: white;
    transition: opacity 0.3s;
}

.notification.success {
    border-color: #4CAF50;
}

.notification.error {
    border-color: #f44336;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 71, 79, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
    border: 2px solid rgba(0, 71, 79, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: #00ffff;
}

@media screen and (max-width: 768px) {
    body {
        padding-top: 60px; /* Reduced padding for mobile */
    }

    .navbar {
        height: 60px;
        padding: 0.5rem 1rem;
    }

    .container {
        width: 95%;
        padding: 1rem;
    }

    .title {
        font-size: 2rem;
    }

    .input-group {
        flex-direction: column;
        gap: 1rem;
    }

    .ping-input, .btn {
        width: 100%;
        border-radius: 18.25px;
        border: 0.5px solid var(--border-color);
    }

    .analytics-section {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .stat-card {
        width: 100%;
        max-width: 300px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .container {
        width: 85%;
    }
}

@media screen and (min-width: 1025px) {
    .container {
        width: 80%;
    }
}
