/* General Reset */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #13171F !important;
    color: #f5f5f5;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    background-image:
        linear-gradient(to bottom, rgba(19, 23, 31, 0.7) 0%, rgba(19, 23, 31, 0.3) 70%, rgba(19, 23, 31, 0) 100%),
        url('images/pageArt/bgimage.png');
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 20px;
    color: white;
    margin-top: 120px !important;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    opacity: 0;
    animation: fade-in 1.5s ease-out forwards;
}

.hero-content h2 {
    font-size: 28px;
    font-weight: 500;
    margin-top: 10px;
    color: #ffcc33;
    opacity: 0;
    animation: fade-in 1.5s ease-out forwards;
    animation-delay: 0.2s;
}

.hero-content h3 {
    font-size: 18px;
    margin-top: 10px;
    line-height: 1.5;
    color: #ddd;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fade-in 1.5s ease-out forwards;
    animation-delay: 0.4s;
}

/* Button Row */
.button-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 20px;
    margin: 20px 0;
}

.button-row .button1 { background-color: #2a2a3a; }
.button-row .button1:hover { background-color: #3a3a4a; opacity: 0.8; }

.button-row .button2 { background-color: #3a1c1c; }
.button-row .button2:hover { background-color: #4a2c2c; opacity: 0.8; }

.button-row .button3 { background-color: #1c2525; }
.button-row .button3:hover { background-color: #2c3535; opacity: 0.8; }

/* Game Selection */
.ls-new-section-top {
    margin-top: -100px !important;
    background-color: rgba(25, 25, 34, 0.8) !important;
    text-align: center;
    padding: 40px 20px;
}

.ls-new-section-top h2 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 204, 255, 0.5);
    margin-bottom: 30px;
    opacity: 0;
    animation: fade-in 1.5s ease-out forwards;
}

.game-selection {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Card container gets the entrance animation */
.game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    padding: 15px;
    background: linear-gradient(45deg, #222, #333);
    border: 2px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, filter 0.3s ease;
    opacity: 0;
    animation: slide-in 1s ease-out forwards; /* entrance stays on container */
}

/* Inner wrapper lets us shake/scale without touching slide-in */
.gc-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: scale 0.3s ease, filter 0.3s ease; /* using individual transform property */
}

/* Hover: glow + border on container, scale on inner (no animations set here) */
#lol-card {
    animation-delay: 0.6s;
    background: linear-gradient(45deg, #005555, #00ccff);
    border-color: #00ccff;
}
#lol-card:hover {
    box-shadow: 0 0 15px rgba(0, 204, 255, 0.8), 0 0 25px rgba(0, 204, 255, 0.5) !important;
    border-color: #33eeff !important;
    filter: brightness(1.2) !important;
}
#lol-card:hover .gc-inner { scale: 1.08; }

#valorant-card {
    animation-delay: 0.8s;
    background: linear-gradient(45deg, #550000, #ff3333);
    border-color: #ff3333;
}
#valorant-card:hover {
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.8), 0 0 25px rgba(255, 51, 51, 0.5) !important;
    border-color: #ff6666 !important;
    filter: brightness(1.2) !important;
}
#valorant-card:hover .gc-inner { scale: 1.08; }

#apply-card {
    animation-delay: 1.0s;
    background: linear-gradient(45deg, #333, #555);
    border-color: #ffffff;
}
#apply-card:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 25px rgba(255, 255, 255, 0.5) !important;
    border-color: #cccccc !important;
    filter: brightness(1.2) !important;
}
#apply-card:hover .gc-inner { scale: 1.08; }

/* Media inside the cards */
.game-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}
.game-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(0, 204, 255, 0.3);
}

/* Panels */
.panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(25, 25, 34, 0.9);
    border-radius: 12px;
    margin: 30px auto;
    max-width: 1100px;
    min-height: 280px;
    padding: 20px;
    gap: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.panel:nth-child(2n) { flex-direction: row-reverse; }
.panel img {
    width: 300px;
    border-radius: 12px;
    object-fit: cover;
    opacity: 0.55;
    filter: brightness(1.05) contrast(1.1);
    box-shadow: 0 6px 20px #00000071;
}
.panel-text {
    background-color: rgba(40, 40, 55, 0.9);
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.4);
    flex: 1;
    transition: transform 0.2s ease;
}
.panel-text:hover { transform: scale(1.015); }
.panel-text h3 {
    margin-top: 0;
    font-size: 26px;
    color: #ffcc33;
    font-weight: 600;
    text-shadow: 1px 1px 2px black;
}
.panel-text p {
    font-size: 17px;
    line-height: 1.7;
    color: #ddd;
    text-shadow: 1px 1px 2px black;
}

/* Testimonials */
.testimonial-marquee { overflow: hidden; position: relative; width: 100%; padding: 10px 0; }
.testimonial-track { display: flex; gap: 20px; animation: scroll-testimonials 100s linear infinite; width: max-content; }
.ls-testimonial-card {
    flex: 0 0 auto; min-width: 280px; background: rgba(0, 0, 0, 0.5);
    padding: 20px; border-radius: 10px; margin: 0; transition: transform 0.3s ease;
    scroll-snap-align: start; box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

/* Service Panels */
.league-services .service-card img {
    width: 100%; height: auto; max-height: 280px; object-fit: contain; margin-bottom: 10px;
}
.service-panels { flex-wrap: nowrap; justify-content: space-between; gap: 20px; }
.service-card { flex: 1 1 30%; max-width: 33%; box-sizing: border-box; }
.service-card.text-panel { display: flex; justify-content: center; align-items: center; padding: 15px; }
.service-card.text-panel .ls-guarantees { text-align: center; }
.service-card.text-panel { background: transparent; box-shadow: none; padding: 0; }
.service-card.text-panel .ls-guarantees { background: none; box-shadow: none; padding: 0; }

/* Booster Select */
.booster-select {
    outline: none !important; background: #33323a !important; color: #fff !important;
    padding: 5px 10px !important; border: 1px solid #ffff !important; border-radius: 4px !important;
}

/* Animations */
@keyframes scroll-testimonials {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}
@keyframes fade-in {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes slide-in {
    0% { opacity: 0; transform: translateY(100px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* IMPORTANT: shake uses individual transform properties (translate/rotate)
   so it won't override the hover scale. */
@keyframes shake {
    0%   { translate: 0 0;    rotate: 0deg; }
    20%  { translate: -4px 0; rotate: -2deg; }
    40%  { translate: 4px 0;  rotate: 2deg; }
    60%  { translate: -2px 0; rotate: -1deg; }
    80%  { translate: 2px 0;  rotate: 1deg; }
    100% { translate: 0 0;    rotate: 0deg; }
}

/* Shake class applied to the inner wrapper only */
.gc-inner.shake {
    animation: shake 0.5s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section { min-height: 300px; background-size: contain; }
    .hero-content h1 { font-size: 28px; }
    .hero-content p { font-size: 16px; }

    .button-row { flex-direction: column; gap: 15px; }
    .game-selection { flex-direction: column; align-items: center; }

    .game-card { width: 80%; max-width: 250px; }
    .game-card img { width: 80px; height: 80px; }
    .game-card h3 { font-size: 16px; }
}
