/* Base styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0a; /* bg-brand-dark */
    color: #fafafa; /* text-brand-text-light */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #18181b; /* brand-primary */
}
::-webkit-scrollbar-thumb {
    background: #3f3f46; /* brand-border */
    border-radius: 5px;
    border: 2px solid #18181b; /* Add border to match track */
}
::-webkit-scrollbar-thumb:hover {
    background: #a1a1aa; /* brand-text-dim */
}

.font-anton {
    font-family: 'Anton', sans-serif;
    letter-spacing: -0.02em; 
}

/* --- Header --- */
#main-header {
    background-color: rgba(10, 10, 10, 0.8); /* Deep Black base */
    backdrop-filter: blur(20px); /* Increased blur */
    border-bottom: 1px solid #3f3f46; /* border-brand-border */
}

#main-header nav a {
    position: relative;
    color: #a1a1aa; /* text-brand-text-dim */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 0;
    transition: color 0.3s ease;
}
#main-header nav a:hover {
    color: #fafafa; /* text-brand-text-light */
}
/* Removed the "moving" underline animation per your request */

/* Login Button Style */
.btn-header-login {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em; /* Reduced letter spacing to prevent overflow */
    border: 2px solid #a1a1aa; /* text-brand-text-dim */
    color: #a1a1aa; /* text-brand-text-dim */
    padding: 0.5rem 1.5rem;
    white-space: nowrap;
    border-radius: 9999px; /* Rounded button */
    transition: all 0.3s ease;
}
.btn-header-login:hover {
    border-color: #fafafa;
    color: #fafafa; /* Light text on hover */
    background-color: transparent; /* Removed solid fill on hover */
}

/* --- Hero Carousel (Riot Style) --- */
.hero-carousel-wrapper {
    width: 100%;
    height: 85vh;
    min-height: 700px;
    position: relative;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}
.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Background video/image styling */
.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: kenburns-effect 25s ease-out infinite alternate;
}

/* Gradient overlays */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(10,10,10,1) 10%, rgba(10,10,10,0.8) 30%, transparent 60%);
}
.hero-slide.hero-gold::before {
        background: linear-gradient(to top, rgba(10,10,10,1) 10%, rgba(10,10,10,0.8) 30%, rgba(251, 191, 36, 0.15) 70%, transparent 100%);
}
.hero-slide.hero-green::before {
        background: linear-gradient(to top, rgba(10,10,10,1) 10%, rgba(10,10,10,0.8) 30%, rgba(52, 211, 153, 0.15) 70%, transparent 100%);
}
.hero-slide.hero-red::before {
        background: linear-gradient(to top, rgba(10,10,10,1) 10%, rgba(10,10,10,0.8) 30%, rgba(248, 113, 113, 0.15) 70%, transparent 100%);
}
.hero-slide.hero-blue::before {
        background: linear-gradient(to top, rgba(10,10,10,1) 10%, rgba(10,10,10,0.8) 30%, rgba(96, 165, 250, 0.15) 70%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 10vh;
}

/* Hero Carousel Indicators */
.hero-indicators {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}
.hero-indicator {
    width: 40px;
    height: 4px;
    background-color: rgba(250, 250, 250, 0.2);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}
.hero-indicator .progress {
    width: 0;
    height: 100%;
    background-color: #fafafa;
    transition: width 0.3s ease;
}
.hero-indicator.active .progress {
    width: 100%;
    transition: width 7.5s linear; /* 7.5s slide duration */
}

@keyframes kenburns-effect {
    0% { transform: scale(1.1); }
    100% { transform: scale(1.15); }
}

/* --- Base Button (Riot Style) --- */
.btn-base {
    display: inline-block;
    font-family: 'Anton', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.75rem 2rem;
    border-radius: 4px; /* Sharper edges */
    color: #0a0a0a;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    opacity: 0.1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}
.btn-base:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}
.btn-base:hover::before {
    transform: scaleX(1);
}

.btn-gold { background-color: #FBBF24; box-shadow: 0 4px 20px -5px rgba(251, 191, 36, 0.4); }
.btn-green { background-color: #34D399; box-shadow: 0 4px 20px -5px rgba(52, 211, 153, 0.4); }
.btn-red { background-color: #F87171; box-shadow: 0 4px 20px -5px rgba(248, 113, 113, 0.4); }
.btn-blue { background-color: #60A5FA; box-shadow: 0 4px 20px -5px rgba(96, 165, 250, 0.4); }

/* Solid "Zinc" Button Style */
.btn-solid {
    background-color: #fafafa; /* text-brand-text-light */
    color: #18181b; /* text-brand-dark */
    box-shadow: 0 4px 20px -5px rgba(250, 250, 250, 0.2);
}
.btn-solid:hover {
    filter: brightness(1.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #a1a1aa;
    color: #fafafa;
    padding: 0.625rem 2rem;
}
.btn-outline:hover {
    border-color: #fafafa;
    background-color: rgba(250, 250, 250, 0.05);
}

/* Gradient Text */
.gradient-text-gold {
    background: linear-gradient(to right, #FBBF24, #F59E0B);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.gradient-text-green {
    background: linear-gradient(to right, #34D399, #10B981);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.gradient-text-red {
    background: linear-gradient(to right, #F87171, #EF4444);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.gradient-text-blue {
    background: linear-gradient(to right, #60A5FA, #3B82F6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- "What's Happening" (News/Testimonials) Section --- */
.news-section {
    background-color: #0a0a0a; /* bg-brand-dark */
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-areas: "hero" "list";
    gap: 1.5rem; /* Reduced gap for mobile */
}
@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: 2fr 1fr;
        grid-template-areas: "hero list";
        gap: 2rem;
    }
}
.news-hero { grid-area: hero; }
.news-list { grid-area: list; }

.news-card-hero, .news-card-small {
    background-color: #27272a; /* bg-brand-surface */
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #3f3f46; /* border-brand-border */
    transition: all 0.3s ease;
}
.news-card-hero:hover, .news-card-small:hover {
    transform: translateY(-4px);
    border-color: #a1a1aa;
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.3);
}
.news-card-hero .news-img-wrapper {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #27272a;
}
.news-card-hero img, .news-card-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.news-card-hero:hover img, .news-card-small:hover img {
    transform: scale(1.05);
}
.news-card-small-img {
    width: 33.33%;
    flex-shrink: 0;
    height: 128px; /* Fixed height for small cards */
    background-color: #27272a;
}

/* --- "Services" (Games) Section --- */
.services-carousel-wrapper {
    position: relative;
}
.services-carousel {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 1rem 1.5rem 1rem; /* Padding for scrollbar and edge */
    margin: 0 -1rem; /* Counteract container padding */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE/Edge */
    scroll-snap-type: x mandatory;
}
.services-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
@media (min-width: 1024px) {
    .services-carousel {
        overflow-x: visible;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        padding: 1rem 0;
        margin: 0;
    }
}
.service-card {
    flex: 0 0 80%; /* Mobile card width */
    max-width: 300px;
    height: 450px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    border: 1px solid #3f3f46;
    transition: all 0.3s ease;
    scroll-snap-align: start;
}
@media (min-width: 1024px) {
    .service-card {
        flex-basis: auto; /* Reset flex basis on desktop */
        max-width: none;
    }
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: #a1a1aa;
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.3);
}
.service-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.service-card:hover .service-card-bg {
    transform: scale(1.05);
}
.service-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(24, 24, 27, 1) 20%, transparent 100%); /* Use charcoal */
    z-index: 2;
}
.service-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 3;
    text-align: center;
}
.service-card-logo {
    font-family: 'Anton', sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    color: #fafafa;
    margin-bottom: 1rem;
}

/* --- Service Details Section --- */
.service-detail-block {
    background-color: #27272a; /* bg-brand-surface */
    border-radius: 4px;
    border: 1px solid #3f3f46; /* border-brand-border */
    padding: 2rem;
    transition: all 0.3s ease;
}
.service-detail-block:hover {
    border-color: #a1a1aa; /* A neutral hover color */
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.3);
}

/* --- "About" (Hiring) Section --- */
.about-section {
    position: relative;
    overflow: hidden;
    border-top: 1px solid #3f3f46;
    border-bottom: 1px solid #3f3f46;
}
.about-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    filter: grayscale(80%);
}

/* --- Form --- */
.form-input {
    background-color: #27272a;
    border: 1px solid #3f3f46; /* border-brand-border */
    color: #e5e7eb;
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-input:focus {
    outline: none;
    border-color: #a1a1aa; /* accent-blue */
    box-shadow: 0 0 0 3px rgba(161, 161, 170, 0.2);
}
.form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}
.form-select option {
    background-color: #27272a;
    color: #e5e7eb;
}

/* --- Footer --- */
.footer {
    background-color: #0a0a0a;
    border-top: 1px solid #3f3f46;
}
.footer-socials a {
    color: #a1a1aa;
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer-socials a:hover {
    color: #fafafa;
    transform: translateY(-2px);
}

/* --- Mobile Nav --- */
#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.95); /* Deep Black base */
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#mobile-menu.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
#mobile-menu a {
    font-family: 'Anton', sans-serif;
    font-size: 2.5rem; /* 40px */
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 1rem;
    transition: color 0.3s ease;
}
#mobile-menu a:hover {
    color: #fafafa;
}
#mobile-menu .btn-header-login {
    margin-top: 2rem;
    font-size: 1.125rem; /* Reduced font size from 1.25rem */
    padding: 0.75rem 1.5rem;
    letter-spacing: 0.025em; /* Matched reduced letter spacing */
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0a0a0a; /* Deep Black base */
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.75s ease;
}
#preloader.hidden {
    opacity: 0;
    pointer-events: none;
}
.loader-logo {
    animation: pulse-fade 1.5s infinite ease-in-out;
}
@keyframes pulse-fade {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.95); }
}

/* --- Fade-in Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}