/* Core Layout & Gaming Theme Configuration */
:root {
    --bg-dark: #0b0c10;
    --bg-panel: #1f2833;
    --accent-neon: #00f2fe;
    --text-main: #c5c6c7;
    --text-bright: #ffffff;
    --error-color: #ff4d4d;
    --success-color: #2ecc71;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
}

/*  Custom Responsive Navigation */
.navbar-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #11141a;
    padding: 1.2rem 2rem;
    border-bottom: px solid var(--accent-neon);
    position: relative;
    z-index: 1000;
}
.mobile-controls {
    display: flex;
    justify-content: space-between; /* Pins buttons to opposite sides */
    align-items: center;
    width: 100%;
    max-width: 560px;
    margin-top: 15px;
    padding: 0 10px;
    box-sizing: border-box;
}

.movement-group {
    display: flex;
    gap: 15px; /* Space between left and right arrows */
}

.control-btn {
    
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 242, 254, 0.2);
    border: 2px solid #00f2fe;
    color: white;
    font-weight: bold;
    user-select: none;
    touch-action: manipulation;
}

.fire-btn { 
    border-color: #ff007f; 
    color: #ff007f; 
    background: rgba(255, 0, 127, 0.2);
}

/* Horizontal alignment for logo elements */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px; 
}

.logo-wrapper a {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 42px; 
    width: auto;  
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px var(--accent-neon));
}

/* Formatting for h3 component adjacent to image */
.logo-info h3.logo-title {
    font-size: 1rem;
    color: var(--text-bright);
    margin: 0; 
    font-weight: normal;
}

.logo-info h3.logo-title strong {
    color: var(--accent-neon);
    letter-spacing: 1px;
}

/* Navigation Links Container */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.nav-links li a {
    color: var(--text-main);
    text-decoration: none;
    padding: 0.6rem 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links li a:hover {
    color: var(--bg-dark);
    background-color: var(--accent-neon);
    box-shadow: 0 0 10px var(--accent-neon);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent-neon);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Main Components */
.hero-card {
    background: linear-gradient(135deg, #1f2833 0%, #11141a 100%);
    padding: 3rem 2rem;
    border-radius: 12px;
    border-left: 5px solid var(--accent-neon);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.hero-card h1 {
    color: var(--text-bright);
    font-size: 2.2rem;
}

.hero-card p strong {
    color: var(--accent-neon);
}

/* Form Panel Architecture overrides Bootstrap */
.form-container {
    background-color: var(--bg-panel);
    max-width: 420px;
    width: 100%;
    margin: 50px auto;
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.form-container h2 {
    color: var(--text-bright);
    border-bottom: 2px solid var(--accent-neon);
    padding-bottom: 0.5rem;
    font-size: 1.7rem;
}

.form-label {
    font-weight: bold;
    color: var(--text-bright);
    font-size: 0.9rem;
}

/* Custom Bootstrap Input Controls overrides */
.custom-input {
    background-color: #11141a !important;
    border: 1px solid #455a64 !important;
    color: var(--text-bright) !important;
    padding: 0.9rem;
    font-size: 0.9rem;
}

.custom-input:focus {
    outline: none !important;
    border-color: var(--accent-neon) !important;
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.3) !important;
    padding: 0.6rem;
    font-size: 0.95rem;
}

/* Interactive Gaming Button Styling */
.btn-neon {
    background-color: var(--accent-neon);
    color: var(--bg-dark);
    font-weight: bold;
    font-size: 1rem;
    padding: 0.55rem;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-neon:hover {
    background-color: var(--accent-neon);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.4);
}

/* Custom Validation States */
.error-msg {
    color: var(--error-color);
    font-size: 0.85rem;
    display: block;
    margin-top: 0.35rem;
    font-weight: 500;
}

.success-msg {
    color: var(--bg-dark);
    background-color: var(--success-color);
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
}

/* Footer Layout */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #11141a;
    border-top: 1px solid #1f2833;
    font-size: 0.9rem;
}
.game-link {
    color: var(--accent-neon);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.game-link:hover {
    color: var(--text-bright);
    text-shadow: 0 0 8px var(--accent-neon);
}

/* Flex helper for Newsletter Input */
.form-container form.d-flex .custom-input {
    flex: 1;
}
/* For 3d of Video Game title */
.text-3d {
  color: #dadada;
  display: inline-block;
  font-weight: bold;
  cursor: pointer;
  
  /* Standard 3D neon depth */
  text-shadow: 
    0.1px 0.1px 0px #00e5ff, 
    0px 0px 0.1px #00ccff, 
    0.1px 0.1px 0.1px #00ffff, 
    1px 1px 0.1px rgba(0, 126, 155, 0.5), 
    0px 0px 4px rgba(0, 255, 255, 0.5);
    
  transition: all 0.3s ease;
}

/* 1. Neon light-up effect on hover */
.text-3d:hover {
  color: #ffffff;
  /* Intense neon flare up effect */
  text-shadow: 
    0 0 5px #00f2fe,
    0 0 10px #00f2fe,
    0 0 20px #00f2fe,
    0 0 40px #00f2fe;
}

/* 2. Setup the controller emoji anchor */
.controller-icon {
  display: inline-block;
  transition: transform 0.4s ease;
}

/* 3. Trigger the Spin and Jump animation on hover */
.text-3d:hover .controller-icon {
  animation: spinAndJump 0.6s ease-out forwards;
}

/* 4. The actual animation choreography */
@keyframes spinAndJump {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  30% {
    transform: translateY(-6px) rotate(-20deg); /* Jump up & tilt back slightly */
  }
  60% {
    transform: translateY(-8px) rotate(360deg); /* Complete the spin mid-air */
  }
  100% {
    transform: translateY(0) rotate(360deg); /* Land cleanly */
  }
}

/* Mobile Responsive Media Query Overrides */
@media (max-width: 991px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #11141a;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem 0;
        border-bottom: 2px solid var(--accent-neon);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        padding: 1rem;
        border-radius: 0;
    }

    .nav-links.active {
        display: flex;
    }
}