/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    background: #111217;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* BANNER */
.banner {
    position: relative;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #2a2f55;
}

.banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("mc.jpg") center / cover no-repeat;
    transform: scale(1.1);
    z-index: 0;
    transition: transform 0.3s ease-out;
}

.banner:hover::before {
    transform: scale(1.15) translateY(-10px);
}

.banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(17,18,23,0.4), rgba(17,18,23,0.9));
    z-index: 0;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

h1 {
    font-size: clamp(2.6rem, 5vw, 3.6rem);
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.slogan {
    font-size: 1.15rem;
    color: #e6e6ff;
    font-style: italic;
}

/* Stars animation */
@keyframes twinkle {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.5; transform: translateY(-3px); }
}

.stars {
    font-size: 2.2rem;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.stars span {
    margin: 0 5px;
    display: inline-block;
    animation: twinkle 2s infinite ease-in-out;
}

.stars span:nth-child(1) { animation-delay: 0s; }
.stars span:nth-child(2) { animation-delay: 0.3s; }
.stars span:nth-child(3) { animation-delay: 0.6s; }
.stars span:nth-child(4) { animation-delay: 0.9s; }
.stars span:nth-child(5) { animation-delay: 1.2s; }

.star-filled { color: #fff; }
.star-empty { color: #5c64c5; }

/* Floating image inside banner */
.banner .floating-image {
    position: absolute;
    top: 155px; /* poziție optimă PC */
    left: -150px;
    width: 85px;   /* dimensiunea dorită */
    height: 55px;  /* dimensiunea dorită */
    z-index: 3;    /* peste stele și text */
    animation: floatRight 30s linear infinite;
}

.banner .floating-image img {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes floatRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(120vw); }
}

/* MAIN CONTENT */
.container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 80px 24px;
}

.buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 100px;
}

@keyframes bounce {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.button {
    background: linear-gradient(135deg,#5c64c5,#4e56a3);
    color:#fff;
    border:none;
    padding:14px 44px;
    font-size:1rem;
    font-weight:600;
    border-radius:999px;
    cursor:pointer;
    box-shadow:0 10px 25px rgba(92,100,197,0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.button:hover {
    animation: bounce 0.5s;
    box-shadow:0 16px 35px rgba(92,100,197,0.6);
}

/* SECTIONS */
section { margin-bottom:100px; }
section h2 { font-size:2.1rem; margin-bottom:20px; font-weight:600; }
section p { font-size:1.05rem; color:#d6d8ff; max-width:820px; line-height:1.7; }

/* CARDS */
.cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:30px; margin-top:40px; }
.card { background:#171a2e; border:1px solid #2a2f55; padding:32px; border-radius:16px; }
.card h3 { font-size:1.25rem; margin-bottom:12px; }
.card p { font-size:0.95rem; color:#cfd3ff; line-height:1.6; }

/* FOOTER */
footer { margin-top:auto; border-top:1px solid #2a2f55; padding:20px; text-align:center; font-size:0.85rem; color:#cfd3ff; }
footer a { color:#cfd3ff; text-decoration:none; }
footer a:hover { text-decoration:underline; }

/* MOBILE */
@media (max-width:768px) {
    .banner { height:220px; }
    .container { padding:60px 20px; }
    .banner .floating-image {
        top: 115px;    /* coborât pe mobil */
        width: 50px;   /* mai mic pe mobil */
        height: 32px;  /* păstrează proporțiile */
    }
}
