/* Custom CSS for Legend Games Studio
   Premium Dark Gaming Theme
*/

:root {
    --bg-color: #0b0c10;
    --bg-secondary: #1f2833;
    --primary: #45f3ff;
    --primary-glow: rgba(69, 243, 255, 0.4);
    --secondary: #c5c6c7;
    --text-main: #ffffff;
    --text-muted: #8e949e;
    --glass-bg: rgba(31, 40, 51, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
}

body {
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-line {
    height: 4px;
    width: 80px;
    background: var(--primary);
    margin: 0 auto 20px;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-glow);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 0 30px var(--primary);
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(11, 12, 16, 0.9);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-btn {
    padding: 8px 20px;
    border: 1px solid var(--primary);
    border-radius: 20px;
    color: var(--primary) !important;
}

.nav-btn:hover {
    background: var(--primary);
    color: var(--bg-color) !important;
    box-shadow: 0 0 15px var(--primary-glow);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1f2833 0%, #0b0c10 100%);
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.05"><rect width="100" height="100" fill="none" stroke="%23ffffff" stroke-width="1"/></svg>') repeat;
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
    animation: fadeInUp 1.2s ease;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeInUp 1.4s ease;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--primary);
    animation: bounce 2s infinite;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--secondary);
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Games Section */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.game-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(69, 243, 255, 0.2);
}

.game-img-wrapper {
    height: 200px;
    position: relative;
    background-color: #2a3644;
}

.game-img-wrapper.game-1 { background: linear-gradient(45deg, #11998e, #38ef7d); }
.game-img-wrapper.game-2 { background: linear-gradient(45deg, #f12711, #f5af19); }
.game-img-wrapper.game-3 { background: linear-gradient(45deg, #ee0979, #ff6a00); }
.game-img-wrapper.game-4 { background: linear-gradient(45deg, #2b5876, #4e4376); }
.game-img-wrapper.game-5 { background: linear-gradient(45deg, #8E2DE2, #4A00E0); }

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-btn {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--bg-color);
    font-size: 1.5rem;
    transform: scale(0.8);
    transition: var(--transition);
}

.game-card:hover .play-btn {
    transform: scale(1);
}

.game-info {
    padding: 25px;
}

.game-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.game-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-link {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-link:hover {
    text-decoration: underline;
}

.view-all-container {
    text-align: center;
}

/* Contact Section */
.contact-card {
    background: linear-gradient(135deg, rgba(31, 40, 51, 0.8), rgba(11, 12, 16, 0.9));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.contact-info p {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    background: rgba(0,0,0,0.3);
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid rgba(69, 243, 255, 0.2);
}

.contact-item i {
    color: var(--primary);
}

/* Footer */
footer {
    background: #050507;
    padding: 50px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 20px;
}

/* Privacy Policy Page */
.page-header {
    padding: 150px 0 50px;
    background: radial-gradient(circle at center, #1f2833 0%, #0b0c10 100%);
    text-align: center;
}

.policy-content {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 40px;
    margin-top: -30px;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.policy-content h3 {
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.policy-content p {
    color: var(--secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.policy-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--secondary);
    line-height: 1.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(11, 12, 16, 0.95);
        backdrop-filter: blur(15px);
        padding: 20px;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 40px 20px;
    }
}
