@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #3498db;
    /* Elegant Blue */
    --primary-glow: rgba(52, 152, 219, 0.4);
    --secondary: #f1c40f;
    /* Vibrant Yellow */
    --secondary-glow: rgba(241, 196, 15, 0.4);
    --accent: #2980b9;
    --bg-dark: #050b1a;
    /* Dark Blueish background */
    --bg-card: rgba(10, 20, 45, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --text-main: #f8f9fa;
    --text-dim: #8fa3cc;
    --border: rgba(52, 152, 219, 0.15);
    --transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes waddle {
    0% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg) translateY(-5px);
    }

    100% {
        transform: rotate(-5deg);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 20px var(--primary-glow);
    }

    100% {
        box-shadow: 0 0 5px var(--primary-glow);
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    background-image:
        radial-gradient(circle at 15% 15%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 85% 85%, rgba(241, 196, 15, 0.05) 0%, transparent 50%),
        url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    background-attachment: fixed;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navbar --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 15px var(--primary-glow);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* --- Cards --- */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 35px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out forwards;
}

.card-float {
    animation: float 5s ease-in-out infinite;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(46, 204, 113, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* --- Hero Section --- */
.server-status {
    text-align: center;
    padding: 100px 40px;
    margin: 40px 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(5, 11, 26, 0.95) 100%),
        url('https://images.unsplash.com/photo-1614850523296-d8c1afc3d42f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    border-radius: 35px;
    border: 1px solid var(--border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    animation: fadeIn 1s ease-out;
}

.server-status h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(to right, var(--text-main), var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.duck-mascot {
    width: 120px;
    margin-bottom: 20px;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
    animation: waddle 2s ease-in-out infinite, fadeIn 1.2s ease-out;
    cursor: pointer;
}

.server-ip {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 30px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--secondary);
    border: 1px solid rgba(241, 196, 15, 0.2);
    margin: 25px 0;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
}

.server-ip:hover {
    background: rgba(241, 196, 15, 0.15);
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--secondary-glow);
}

/* --- Buttons --- */
.btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #27ae60);
    color: #fff;
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(46, 204, 113, 0.3);
}

.btn-block {
    width: 100%;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* --- Forms --- */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dim);
}

input[type="text"],
input[type="password"],
input[type="email"],
select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(46, 204, 113, 0.05);
}

/* --- Ranks --- */
.rank-item {
    text-align: center;
}

.rank-item img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
}

.rank-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    margin: 15px 0;
}

.rank-benefits {
    list-style: none;
    margin: 25px 0;
    text-align: left;
}

.rank-benefits li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
    display: flex;
    align-items: center;
}

.rank-benefits li::before {
    content: '✓';
    color: var(--primary);
    margin-right: 12px;
    font-weight: bold;
}

/* --- Footer --- */
footer {
    margin-top: 100px;
    padding: 60px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dim);
}

/* --- Mobile Fixes --- */
@media (max-width: 768px) {
    .server-status h1 {
        font-size: 2.2rem;
    }

    .nav-links {
        display: none;
    }

    .logo {
        font-size: 1.3rem;
    }
}