* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background: #0b0b0f;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 20%, rgba(138, 43, 226, 0.18), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(0, 136, 255, 0.15), transparent 45%),
        linear-gradient(180deg, #0b0b0f 0%, #0f0f18 100%);
}

.dashboard-container {
    flex: 1;
    padding: 30px;
}

.home-hero {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 80px 20px;
}

.home-hero-text {
    max-width: 600px;
}

.home-hero-text h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.home-hero-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #cccccc;
}

.home-hero-logo img {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    background: radial-gradient(circle at center, rgba(138, 43, 226, 0.35), rgba(0, 136, 255, 0.25));
    padding: 12px;
    box-shadow: 0 0 35px rgba(138, 43, 226, 0.45), 0 0 70px rgba(0, 136, 255, 0.25);
}

.home-divider {
    max-width: 1000px;
    height: 1px;
    margin: 40px auto;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.6), rgba(0, 136, 255, 0.6), transparent);
}

.services-split {
    max-width: 1300px;
    margin: 100px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 80px;
    align-items: center;
}

.services-carousel-big {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 50px;
    width: max-content;
    animation: carousel-move 14s linear infinite;
}

.services-carousel-big:hover .carousel-track {
    animation-play-state: paused;
}

.carousel-item {
    position: relative;
    min-width: 360px;
    height: 420px;
    background: linear-gradient(180deg, rgba(20, 20, 32, 0.88), rgba(15, 15, 25, 0.88));
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    gap: 18px;
    transition: transform 0.35s ease;
}

.carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 32px;
    opacity: 0.35;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.carousel-item img {
    width: 260px;
    height: 260px;
    object-fit: contain;
    z-index: 1;
}

.carousel-item span {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: #ffffff;
    z-index: 1;
}

.carousel-item:hover {
    transform: translateY(-10px);
}

.carousel-item:hover::after {
    opacity: 0.6;
}

.carousel-item[data-service="minecraft"]::after {
    background: radial-gradient(circle at center, rgba(76, 175, 80, 0.35), transparent 65%);
}

.carousel-item[data-service="node"]::after {
    background: radial-gradient(circle at center, rgba(140, 200, 75, 0.35), transparent 65%);
}

.carousel-item[data-service="python"]::after {
    background: radial-gradient(circle at center, rgba(255, 212, 59, 0.35), transparent 65%);
}

.carousel-item[data-service="discord"]::after {
    background: radial-gradient(circle at center, rgba(88, 101, 242, 0.4), transparent 65%);
}

.carousel-item[data-service="nginx"]::after {
    background: radial-gradient(circle at center, rgba(0, 193, 134, 0.35), transparent 65%);
}

.carousel-item[data-service="hytale"]::after {
    background: radial-gradient(circle at center, rgba(156, 39, 176, 0.4), transparent 65%);
}

.plans-section,
.nodes-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}

.plans-title {
    font-size: 2.6rem;
    font-weight: 600;
    margin-bottom: 50px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.plan-card {
    position: relative;
    background: linear-gradient(180deg, rgba(20, 20, 32, 0.9), rgba(15, 15, 25, 0.9));
    border-radius: 26px;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.35s ease;
}

.plan-card:hover {
    transform: translateY(-12px);
}

.plan-card h3 {
    font-size: 1.2rem;
    letter-spacing: 0.6px;
    opacity: 0.85;
}

.plan-card h4 {
    font-size: 1.6rem;
    font-weight: 600;
}

.plan-card p {
    font-size: 0.95rem;
    color: #cccccc;
}

.plan-price {
    margin-top: 18px;
    font-size: 1.7rem;
    font-weight: 600;
}

.plan-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 26px;
    opacity: 0.35;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.plan-card:hover::after {
    opacity: 0.6;
}

.plans-section .plan-card:nth-child(1)::after {
    background: radial-gradient(circle at center, rgba(76, 175, 80, 0.45), transparent 65%);
}

.plans-section .plan-card:nth-child(2)::after {
    background: radial-gradient(circle at center, rgba(140, 200, 75, 0.45), transparent 65%);
}

.plans-section .plan-card:nth-child(3)::after {
    background: radial-gradient(circle at center, rgba(255, 212, 59, 0.45), transparent 65%);
}

.plans-section .plan-card:nth-child(4)::after {
    background: radial-gradient(circle at center, rgba(156, 39, 176, 0.45), transparent 65%);
}

.plans-section .plan-card:nth-child(1) .plan-price,
.plans-section .plan-card:nth-child(4) .plan-price {
    color: #76ff03;
}

.plans-section .plan-card:nth-child(2) .plan-price,
.plans-section .plan-card:nth-child(3) .plan-price {
    color: #ffcc00;
}

.nodes-section .plan-card::after {
    background: radial-gradient(circle at center, rgba(0, 255, 200, 0.45), transparent 65%);
}

.nodes-section .plan-card h4 {
    color: #00ffd5;
}

.nodes-section .plan-card p {
    color: #bffdf3;
}

@keyframes carousel-move {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 900px) {
    .home-hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 60px 15px;
    }

    .home-hero-logo img {
        max-width: 220px;
    }

    .home-hero-text h1 {
        font-size: 2.4rem;
    }

    .services-split {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .carousel-item {
        min-width: 280px;
        height: 340px;
    }

    .carousel-item img {
        width: 200px;
        height: 200px;
    }

    .plans-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 1000px) {

    .dashboard-container {
        padding: 40px 6%;
    }

    .home-hero {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
        padding: 60px 0;
    }

    .home-hero-text {
        max-width: 100%;
    }

    .services-split {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .carousel-item {
        min-width: 300px;
        height: 360px;
    }

    .carousel-item img {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 700px) {

    .dashboard-container {
        padding: 20px;
    }

    .home-hero {
        padding: 40px 0;
    }

    .home-hero-text h1 {
        font-size: 2.2rem;
    }

    .home-hero-text p {
        font-size: 0.95rem;
    }

    .home-hero-logo img {
        max-width: 200px;
    }

    .carousel-track {
        gap: 30px;
    }

    .carousel-item {
        min-width: 260px;
        height: 320px;
    }

    .carousel-item img {
        width: 180px;
        height: 180px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .plans-title {
        font-size: 2.1rem;
    }
}

@media (max-width: 420px) {

    .home-hero-text h1 {
        font-size: 1.9rem;
    }

    .home-hero-text p {
        font-size: 0.9rem;
    }

    .carousel-item {
        min-width: 230px;
        height: 300px;
    }

    .carousel-item img {
        width: 160px;
        height: 160px;
    }

    .plan-card {
        padding: 30px 22px;
    }

    .plan-price {
        font-size: 1.5rem;
    }
}
