/* ==========================================
   SYNIX DASHBOARD - PREMIUM HANDCRAFTED DESIGN
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Colors */
    --deep-black: #050505;
    --luxury-black: #0a0a0a;
    --pure-white: #ffffff;
    --silver-text: #b3b3b3;
    --vibrant-red: #ff3c3c;
    --soft-red: rgba(255, 60, 60, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Gradients */
    --premium-gradient: linear-gradient(135deg, #ff3c3c 0%, #9b0000 100%);
    --dark-gradient: radial-gradient(circle at top right, #151515 0%, #050505 100%);

    /* Dynamics */
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
    --soft-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --premium-glow: 0 8px 32px 0 rgba(255, 60, 60, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-gradient);
    color: var(--silver-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--pure-white);
}

a {
    text-decoration: none;
    color: var(--pure-white);
    transition: all 0.3s var(--transition);
}

a:hover {
    color: var(--vibrant-red);
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 5px rgba(255, 60, 60, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 60, 60, 0.4);
    }

    100% {
        box-shadow: 0 0 5px rgba(255, 60, 60, 0.2);
    }
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   NAVIGATION
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(20, 20, 20, 0.85);
    /* Slightly darker for better contrast */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.8rem 0;
    transition: all 0.4s var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-logo img {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    box-shadow: var(--premium-glow);
    animation: float 4s ease-in-out infinite;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--premium-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn-primary {
    background: var(--premium-gradient);
    color: white;
    padding: 0.8rem 2.2rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--transition);
    box-shadow: var(--premium-glow);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px 0 rgba(255, 60, 60, 0.35);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 0.8rem 2.2rem;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s var(--transition);
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

.btn-hero-primary {
    background: transparent;
    color: white;
    padding: 1rem 3rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.125rem;
    border: 2px solid var(--vibrant-red);
    box-shadow: var(--premium-glow);
    transition: all var(--transition);
    display: inline-block;
}

.btn-hero-primary:hover {
    background: var(--vibrant-red);
    transform: translateY(-3px);
    color: white;
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    padding: 1rem 3rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.125rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition);
    display: inline-block;
}

.btn-hero-secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    color: white;
}

.btn-cta {
    background: #ff0000;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
    background: #e60000;
    color: white;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    position: relative;
    height: 100vh;
    /* Full height again */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    /* Adjusted padding as requested */
}

.hero-banner {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    mask-image: linear-gradient(to bottom, black, transparent);
    top: 0;
    left: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    animation: reveal 1s ease-out;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
    color: var(--pure-white);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--silver-text);
    margin-bottom: 3.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   SECTIONS GENERAL
   ========================================== */

section {
    padding: 80px 20px;
    /* Global section padding */
}

.features,
.dashboard-content,
.stats,
.cta {
    position: relative;
}

/* ==========================================
   CARDS & GRIDS
   ========================================== */

.features-grid,
.dashboard-grid,
.servers-grid {
    display: grid;
    gap: 2rem;
    margin-top: 4rem;
    /* Responsive Grid */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.feature-card,
.dashboard-card,
.server-card {
    background: var(--glass-bg);
    /* rgba(255, 255, 255, 0.05) */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    /* rgba(255, 255, 255, 0.1) */
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s var(--transition);
    position: relative;
}

.feature-card:hover,
.dashboard-card:hover,
.server-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--vibrant-red);
    box-shadow: var(--premium-glow);
}

.feature-icon,
.card-icon {
    width: 65px;
    height: 65px;
    background: rgba(255, 60, 60, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vibrant-red);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 60, 60, 0.2);
}

.feature-title,
.card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--pure-white);
}

.feature-description,
.card-description {
    color: var(--silver-text);
    font-size: 1rem;
    line-height: 1.7;
}

.feature-tags {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 60, 60, 0.1);
    color: var(--vibrant-red);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==========================================
   STATS SECTION (Fixed)
   ========================================== */

.stats {
    background: rgba(20, 20, 20, 0.5);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 60px 0;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    text-align: center;
}

.stat-item {
    flex: 0 1 auto;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--pure-white);
    text-shadow: 0 0 15px rgba(255, 60, 60, 0.4);
    margin-bottom: 0.5rem;
    background: none;
    -webkit-text-fill-color: initial;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--silver-text);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================
   DASHBOARD SPECIFICS
   ========================================== */

.dashboard-header {
    padding: 120px 20px 60px;
    /* Adjusted padding */
    background: radial-gradient(circle at 50% -20%, rgba(255, 60, 60, 0.15) 0%, transparent 50%);
}

.user-avatar {
    width: 110px;
    height: 110px;
    border-radius: 30px;
    border: 3px solid var(--vibrant-red);
    padding: 5px;
    background: var(--luxury-black);
    box-shadow: var(--premium-glow);
    animation: float 6s ease-in-out infinite;
}

.user-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.user-info p {
    color: var(--silver-text);
    font-size: 1.1rem;
}

.server-card-empty {
    border: 2px dashed var(--glass-border);
    background: transparent;
    padding: 5rem 2rem;
    border-radius: 30px;
    text-align: center;
    color: var(--silver-text);
}

.server-card-empty:hover {
    border-color: var(--vibrant-red);
    background: rgba(255, 60, 60, 0.02);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.action-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    transition: all 0.3s var(--transition);
}

.action-card:hover {
    transform: translateX(8px);
    border-color: var(--vibrant-red);
    background: rgba(255, 255, 255, 0.08);
}

.action-content h4 {
    color: var(--pure-white);
    font-weight: 700;
}

.action-content p {
    color: var(--silver-text);
    font-size: 0.9rem;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    padding: 80px 20px 100px;
    /* Added padding-bottom: 100px */
    background: var(--luxury-black);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    flex: 1 1 300px;
    text-align: left;
}

.footer-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
    box-shadow: none;
    animation: none;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex: 2 1 auto;
    justify-content: flex-end;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h4 {
    color: var(--pure-white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column a {
    color: #b3b3b3;
    font-size: 0.95rem;
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #ff0000;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 968px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        gap: 30px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand {
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer-links {
        justify-content: center;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        text-align: center;
    }
}