/* ==== Reset & Base ==== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Inter', sans-serif;
    color: white;
    overflow-x: hidden;
}

/* ==== Video Background ==== */
video {
    position: fixed;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
    filter: brightness(0.45);
}

.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.5), rgba(0,0,0,0.95));
    z-index: -2;
}

/* ==== Dots Animation ==== */
body::after {
    content: "";
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255,0,0,0.25) 1px, transparent 1px);
    background-size: 45px 45px;
    animation: moveDots 30s linear infinite;
    z-index: -1;
}

@keyframes moveDots {
    from { background-position: 0 0; }
    to { background-position: 1000px 1000px; }
}

/* ==== Center Content ==== */
.center {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 92%;
    max-width: 1000px;
    animation: fadeIn 1.5s ease forwards;
    z-index: 10;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

/* ==== Logo ==== */
.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(35px, 10vw, 75px);
    font-weight: 800;
    letter-spacing: 3px;
    background: linear-gradient(90deg, #ff0000, #ff4d4d, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 10px;
}

/* ==== Description ==== */
.description {
    margin-top: 15px;
    font-size: clamp(14px, 4vw, 19px);
    line-height: 1.6;
    opacity: 0.95;
    padding: 0 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ==== Server Box ==== */
.server-box {
    margin-top: 25px;
    padding: 16px 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    background: rgba(0,0,0,0.8);
    border: 1px solid rgba(255,0,0,0.4);
    box-shadow: 0 0 25px rgba(255,0,0,0.3);
    font-size: clamp(13px, 3.5vw, 15px);
    flex-wrap: wrap;
    justify-content: center;
    backdrop-filter: blur(5px);
    width: fit-content;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 15px #00ff00;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

.copy-btn {
    cursor: pointer;
    padding: 8px 16px;
    background: linear-gradient(45deg, #ff0000, #cc0000);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,0,0,0.5);
}

.copy-btn:active {
    transform: translateY(0);
}

/* ==== Buttons - CRUCIAL pentru responsive ==== */
.buttons {
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 20px;
    z-index: 20;
    width: 100%;
    margin: 0 auto;
}

.buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    color: white;
    background: linear-gradient(45deg, #800000, #ff0000, #b30000);
    background-size: 200% 200%;
    animation: gradientMove 6s ease infinite;
    box-shadow: 0 0 20px rgba(255,0,0,0.6);
    transition: all 0.3s ease;
    font-size: clamp(14px, 3.5vw, 16px);
    min-width: 180px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.buttons a:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 35px #ff0000;
}

.buttons a i {
    font-size: 18px;
}

/* ==== Footer ==== */
footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px 25px;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255,0,0,0.3);
    z-index: 15;
}

footer div:last-child {
    display: flex;
    gap: 15px;
}

footer i {
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0.8;
}

footer i:hover {
    color: #ff0000;
    opacity: 1;
    transform: translateY(-2px);
}

/* ==== RESPONSIVE PENTRU MOBIL ==== */
@media (max-width: 768px) {
    /* Ajustăm centrul pentru mobil */
    .center {
        top: 30%;
        width: 95%;
    }
    
    .logo {
        font-size: 40px;
        letter-spacing: 2px;
    }
    
    .description {
        font-size: 15px;
        margin-top: 10px;
        padding: 0 15px;
    }
    
    /* Server box mai compact pe mobil */
    .server-box {
        flex-direction: row;
        padding: 12px 15px;
        gap: 8px;
        font-size: 13px;
        width: 95%;
    }
    
    .status-dot {
        width: 10px;
        height: 10px;
    }
    
    .copy-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    /* Butoanele - STACKED VERTICAL pe mobil */
    .buttons {
        position: absolute;
        bottom: 120px;
        flex-direction: column;
        gap: 12px;
        padding: 0 25px;
    }
    
    .buttons a {
        width: 100%;
        max-width: 320px;
        padding: 14px 20px;
        font-size: 15px;
        justify-content: flex-start;
    }
    
    /* Footer pe mobil */
    footer {
        flex-direction: column;
        text-align: center;
        padding: 15px 20px;
    }
    
    footer div:last-child {
        justify-content: center;
    }
}

/* ==== Pentru telefoane foarte mici ==== */
@media (max-width: 380px) {
    .center {
        top: 28%;
    }
    
    .logo {
        font-size: 35px;
    }
    
    .description {
        font-size: 14px;
    }
    
    .server-box {
        font-size: 12px;
        padding: 10px;
    }
    
    .buttons {
        bottom: 140px;
        padding: 0 15px;
    }
    
    .buttons a {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ==== Landscape mode pe mobil ==== */
@media (max-height: 500px) and (orientation: landscape) {
    .center {
        top: 40%;
    }
    
    .logo {
        font-size: 35px;
    }
    
    .description {
        font-size: 13px;
        margin-top: 5px;
    }
    
    .server-box {
        margin-top: 10px;
        padding: 8px 12px;
    }
    
    .buttons {
        bottom: 70px;
    }
    
    .buttons a {
        padding: 8px 16px;
    }
}

/* ==== Tablete ==== */
@media (min-width: 769px) and (max-width: 1024px) {
    .center {
        top: 32%;
    }
    
    .buttons {
        bottom: 90px;
        gap: 20px;
    }
    
    .buttons a {
        min-width: 200px;
    }
}

/* ==== Copy message styling ==== */
.copy-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(255,0,0,0.5);
    z-index: 9999;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
    font-size: 14px;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { transform: translateX(100%); opacity: 0; }
}

/* Responsive pentru copy message pe mobil */
@media (max-width: 768px) {
    .copy-message {
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        text-align: center;
        animation: slideDown 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    }
    
    @keyframes slideDown {
        from { transform: translateY(-100%); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
}