@font-face {
    font-family: 'Cinzel Decorative';
    src: url('AlimamaShuHeiTi-Bold.otf') format('opentype');
    font-weight: bold;
}

@font-face {
    font-family: 'Roboto';
    src: url('NotoSansHans-Regular.otf') format('opentype');
}

@font-face {
    font-family: 'Roboto-Bold';
    src: url('NotoSansHans-Bold.otf') format('opentype');
}

:root {
    --primary-gold: #20d4f8;
    --primary-gold-hover: #7befff;
    --secondary-blue: #20d4f8;
    --bg-dark: #0a0a0e;
    --text-light: #ffffff;
    --text-dim: #a0a0a0;
    --card-bg: rgba(15, 15, 20, 0.85);
    --border-gold: rgba(32, 212, 248, 0.4);
    --accent-rgb: 32, 212, 248;
    --accent-deep: #0b8ea7;
    --accent-dark: #076b80;
    --accent-text-dark: #03141a;
}

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

html {
    min-height: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Setup */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.6) contrast(1.1);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 14, 0.9) 0%,
        rgba(10, 10, 14, 0.4) 30%,
        rgba(10, 10, 14, 0.6) 70%,
        rgba(10, 10, 14, 0.95) 100%
    );
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: radial-gradient(circle at 50% 50%, rgba(var(--accent-rgb), 0.12) 0%, transparent 60%);
    opacity: 0.6;
    mix-blend-mode: screen;
}

/* Layout */
.container {
    width: min(100%, 1440px);
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 40px 48px 48px;
}

/* Header */
header {
    display: grid;
    grid-template-columns: minmax(0, 250px) minmax(0, 1fr) minmax(0, 250px);
    align-items: center;
    gap: 24px;
    width: 100%;
    min-height: 120px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

.logo-placeholder {
    width: 100%;
    max-width: 250px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    text-align: center;
}

.logo-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 42px;
    letter-spacing: 6px;
    color: var(--text-light);
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.75), 0 0 20px rgba(var(--accent-rgb), 0.55);
    background: linear-gradient(to bottom, #ffffff, var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.logo-subtitle {
    font-family: 'Roboto-Bold', sans-serif;
    font-size: 16px;
    letter-spacing: 12px;
    color: var(--primary-gold);
    text-transform: uppercase;
    line-height: 1.2;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    max-width: 250px;
    justify-content: flex-end;
    justify-self: end;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(var(--accent-rgb), 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
    pointer-events: none;
}

.social-icon:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.3);
    transform: translateY(-3px);
}

.social-icon:hover::before {
    transform: translateX(100%);
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 40px 0 24px;
}

.page-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 28px;
    letter-spacing: 4px;
    color: var(--text-light);
    margin-bottom: 48px;
    padding: 0 120px;
    text-align: center;
    position: relative;
    line-height: 1.2;
}

.page-title::before,
.page-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.45), transparent);
}

.page-title::before {
    right: 100%;
    margin-right: 20px;
}

.page-title::after {
    left: 100%;
    margin-left: 20px;
}

/* Server Cards Container */
.servers-container {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    align-items: stretch;
    width: 100%;
}

/* Server Card Base */
.server-card {
    width: min(100%, 420px);
    max-width: 420px;
    min-height: 580px;
    background: var(--card-bg);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    display: flex;
    flex: 1 1 320px;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
    z-index: 1;
    pointer-events: none;
}

/* Card Image Area */
.card-image-container {
    height: 300px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Create images using CSS background from the main image and positioning */
.card-image {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: transform 0.7s ease;
}

.card-left .card-image {
    background-image: url('ot.jpg');
    filter: grayscale(0.5) brightness(0.7);
}

.card-right .card-image {
    background-image: url('reborn.jpg');
}

.server-card:hover .card-image {
    transform: scale(1.08);
}

/* Card Content Area */
.card-content {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex: 1;
    position: relative;
    z-index: 2;
}

.server-name {
    font-family: 'Cinzel Decorative', serif;
    font-size: 32px;
    letter-spacing: 4px;
    margin-bottom: 0;
    text-align: center;
    line-height: 1.15;
    text-transform: uppercase;
}

.card-left .server-name {
    color: var(--text-dim);
}

.card-right .server-name {
    color: var(--text-light);
    text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5);
}

.server-status-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: auto;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-text {
    font-family: 'Roboto-Bold', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.status-offline .status-dot {
    background-color: #ff3333;
    box-shadow: 0 0 8px rgba(255, 51, 51, 0.6);
}

.status-offline .status-text {
    color: #ff3333;
}

.status-online .status-dot {
    background-color: #33ff77;
    box-shadow: 0 0 12px rgba(51, 255, 119, 0.8);
    animation: pulse 2s infinite;
}

.status-online .status-text {
    color: #33ff77;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(51, 255, 119, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(51, 255, 119, 0); }
    100% { box-shadow: 0 0 0 0 rgba(51, 255, 119, 0); }
}

/* Buttons */
.btn {
    width: 100%;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto-Bold', sans-serif;
    font-size: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-disabled {
    background: rgba(30, 30, 35, 0.8);
    color: #666;
    cursor: not-allowed;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-active {
    background: linear-gradient(to right, var(--accent-dark), var(--primary-gold), var(--accent-deep));
    background-size: 200% auto;
    color: var(--accent-text-dark);
    font-weight: bold;
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.4);
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.btn-active:hover {
    box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.6);
    transform: translateY(-2px);
}

.btn-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    transition: left 0.5s ease;
}

.server-card:hover .btn-active::before {
    left: 200%;
    transition: left 0.7s ease;
}

/* Hover states for right card */
.card-right:hover {
    border-color: var(--border-gold);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(var(--accent-rgb), 0.25);
}

.card-right:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--primary-gold);
    opacity: 0.5;
    pointer-events: none;
    clip-path: polygon(0 0, 20% 0, 20% 2px, 80% 2px, 80% 0, 100% 0, 100% 20%, calc(100% - 2px) 20%, calc(100% - 2px) 80%, 100% 80%, 100% 100%, 80% 100%, 80% calc(100% - 2px), 20% calc(100% - 2px), 20% 100%, 0 100%, 0 80%, 2px 80%, 2px 20%, 0 20%);
}

/* Neon accents */
.neon-line-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-blue), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-right:hover .neon-line-bottom {
    opacity: 0.8;
    box-shadow: 0 0 10px var(--secondary-blue);
}

@media (max-width: 1100px) {
    .container {
        padding: 32px 24px 40px;
    }

    header {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 18px;
        min-height: auto;
    }

    .logo-placeholder {
        display: none;
    }

    .social-icons {
        width: auto;
        max-width: none;
        justify-content: center;
        justify-self: center;
    }

    main {
        justify-content: flex-start;
        padding-top: 32px;
    }
}

@media (max-width: 900px) {
    .page-title {
        font-size: 24px;
        margin-bottom: 32px;
        padding: 0 80px;
    }

    .page-title::before,
    .page-title::after {
        width: 60px;
    }

    .server-card {
        max-width: 520px;
        min-height: 0;
        flex-basis: 100%;
    }

    .card-image-container {
        height: 280px;
    }

    .card-content {
        padding: 32px 24px;
    }

    .server-name {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 20px 16px 32px;
    }

    header {
        padding-bottom: 16px;
    }

    .logo-title {
        font-size: 30px;
        letter-spacing: 4px;
    }

    .logo-subtitle {
        font-size: 14px;
        letter-spacing: 6px;
    }

    .social-icons {
        gap: 12px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    main {
        padding-top: 24px;
    }

    .page-title {
        font-size: 22px;
        letter-spacing: 2px;
        margin-bottom: 24px;
        padding: 0;
    }

    .page-title::before,
    .page-title::after {
        display: none;
    }

    .servers-container {
        gap: 20px;
    }

    .server-card {
        width: 100%;
        max-width: none;
    }

    .card-image-container {
        height: 240px;
    }

    .card-content {
        padding: 24px 18px;
    }

    .server-name {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .status-text {
        font-size: 13px;
        letter-spacing: 1px;
    }

    .btn {
        padding: 16px 0;
        font-size: 14px;
        letter-spacing: 2px;
    }
}

@media (max-width: 420px) {
    .container {
        padding-inline: 12px;
    }

    .logo-title {
        font-size: 26px;
        letter-spacing: 3px;
    }

    .logo-subtitle {
        font-size: 12px;
        letter-spacing: 4px;
    }

    .page-title {
        font-size: 20px;
    }

    .card-image-container {
        height: 200px;
    }

    .card-content {
        padding: 20px 16px;
    }

    .server-name {
        font-size: 20px;
    }

    .server-status-container {
        padding: 6px 12px;
    }
}

@media (hover: none) {
    .server-card:hover .card-image,
    .btn-active:hover,
    .card-right:hover {
        transform: none;
    }
}
