/* Trusted Entertainment - Gaming Division Styles
   Main CSS file with enhanced animations */

:root {
    --neon-green: #39FF14;
    --dark-bg: #121212;
    --light-text: #f8f9fa;
    --dark-accent: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.05);
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    overflow-x: hidden;
}

/* Animation Keyframes */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px var(--neon-green);
    }

    50% {
        box-shadow: 0 0 20px var(--neon-green), 0 0 30px var(--neon-green);
    }

    100% {
        box-shadow: 0 0 5px var(--neon-green);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes wave {
    0% {
        transform: translateY(0) scaleX(0);
    }

    50% {
        transform: translateY(100vh) scaleX(1);
    }

    100% {
        transform: translateY(0) scaleX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation */
.navbar {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.95);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar-brand span {
    color: var(--neon-green);
    transition: all 0.3s ease;
}

.navbar-brand:hover span {
    text-shadow: 0 0 10px var(--neon-green);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--neon-green);
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at center, #2a2a2a 0%, var(--dark-bg) 100%);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeIn 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.wave-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.2;
}

.wave {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
    width: 100%;
    height: 2px;
    animation: wave 8s linear infinite;
    opacity: 0.6;
}

.wave:nth-child(1) {
    animation-delay: 0s;
    left: 20%;
}

.wave:nth-child(2) {
    animation-delay: 2s;
    left: 40%;
}

.wave:nth-child(3) {
    animation-delay: 4s;
    left: 60%;
}

.wave:nth-child(4) {
    animation-delay: 6s;
    left: 80%;
}

.green-highlight {
    color: var(--neon-green);
    animation: pulse 2s infinite;
}

.btn-outline-neon {
    color: var(--neon-green);
    border-color: var(--neon-green);
    border-width: 2px;
    border-radius: 0;
    padding: 10px 30px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-outline-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(57, 255, 20, 0.2);
    transition: all 0.4s ease;
}

.btn-outline-neon:hover {
    background-color: var(--neon-green);
    color: var(--dark-bg);
    box-shadow: 0 0 15px var(--neon-green);
    transform: translateY(-3px);
}

.btn-outline-neon:hover::before {
    left: 100%;
}

/* Games Section */
.games-section {
    padding: 100px 0;
    background-color: #1a1a1a;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

.game-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(57, 255, 20, 0.05));
    transition: all 0.5s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(57, 255, 20, 0.1);
    border-color: var(--neon-green);
}

.game-card:hover::before {
    top: 0;
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--neon-green);
    transition: all 0.5s ease;
}

.game-card:hover .game-icon {
    transform: scale(1.2);
    animation: float 2s infinite;
}

.game-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.game-card:hover .game-title {
    color: var(--neon-green);
}

.coming-soon-badge {
    background-color: var(--neon-green);
    color: var(--dark-bg);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
    transition: all 0.3s ease;
}

.game-card:hover .coming-soon-badge {
    animation: glow 1.5s infinite;
}

/* About Section */
.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 30%, rgba(57, 255, 20, 0.3));
    opacity: 0;
    transition: all 0.5s ease;
}

.about-image:hover {
    transform: scale(1.02);
}

.about-image:hover::after {
    opacity: 1;
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background-color: var(--dark-accent);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--dark-accent) 70%);
    z-index: 0;
}

.input-group {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light-text);
    padding: 12px 15px;
    height: auto;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--neon-green);
    color: var(--light-text);
    box-shadow: 0 0 0 0.25rem rgba(57, 255, 20, 0.25);
}

.social-links {
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    margin: 0 10px;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--neon-green);
    top: 100%;
    left: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.social-icon:hover {
    color: var(--dark-bg);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(57, 255, 20, 0.4);
}

.social-icon:hover::before {
    top: 0;
}

/* Footer */
footer {
    background-color: #000;
    padding: 30px 0;
    text-align: center;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--light-text);
    margin: 0 15px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--neon-green);
    transition: all 0.3s ease;
}

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

.footer-links a:hover::after {
    width: 100%;
}

.copyright {
    margin-top: 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .game-card {
        padding: 20px;
    }

    .footer-links a {
        margin: 0 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-outline-neon {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .game-icon {
        font-size: 2.5rem;
    }

    .game-title {
        font-size: 1.3rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin: 0 5px;
    }

    .footer-links a {
        margin: 0 5px;
        display: inline-block;
        padding: 5px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .coming-soon-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* Additional Animation for Page Elements */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background-color: rgba(57, 255, 20, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(57, 255, 20, 0.5);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: var(--neon-green);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}