/* ✅ ROOT COLORS */
:root {
    /* Light Mode */
    --bg-color: #E5DACE;
    --text-color: #302B36;
    --primary-color: #91262B;
    --secondary-color: #E53030;
    --card-bg: #CFC8BD;
    --navbar-bg: rgba(229, 218, 206, 0.9);


    /* Dark Mode */
    --bg-dark: #282F32;
    --text-dark: #E5DACE;
    --primary-dark: #C0191F;
    --secondary-dark: #E51E1B;
    --card-dark: #4D474F;
    --navbar-dark: rgba(40, 47, 50, 0.9);
}

.form-control:focus {
    outline: none; /* Remove the default outline */
    border-color: var(--primary-color); /* Change the border color */
    box-shadow: 0 0 0 0.2rem rgba(145, 38, 43, 0.5); /* Adjust the glow effect */
}

.form-control {
    background-color: var(--bg-color) !important;
    color: var(--text-color);
  }

.darkmode .form-control {
    background-color: var(--bg-dark) !important;
    color: var(--text-dark);
  }

.darkmode .form-control::placeholder {
    color: var(--primary-color);
}
  


/* ✅ DARK MODE */
.darkmode {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

.darkmode .navbar {
    background-color: var(--navbar-dark);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='red' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  }

.darkmode .game-card {
    background: var(--card-dark);
}

.contact-card {
    background: var(--card-bg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.darkmode .contact-card {
    background: var(--card-dark);
}

/* ✅ BASE STYLES */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    transition: background 0.4s, color 0.4s;
}

/* ✅ NAVBAR */
.navbar {
    position: relative; /* Create a stacking context */
    z-index: 10;        /* Higher than the video-wrapper's z-index */
    background-color: var(--navbar-bg);
    transition: background 0.3s;
}

.darkmode .navbar {
    background-color: var(--navbar-dark);
}

.navbar .navbar-brand {
    height: 80px;
    width: auto;
    max-width: none;
}

.darkmode .navbar .navbar-brand {
    color: var(--primary-dark);
}

.navbar .nav-link {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: var(--secondary-color);
}

.darkmode .navbar .nav-link {
    color: var(--text-dark);
}

.darkmode .navbar .nav-link:hover {
    color: var(--secondary-dark);
}

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

/* ✅ DARK MODE TOGGLE */
.btn-toggle-mode {
    background: none;
    border: none;
    cursor: pointer;
}

.btn-toggle-mode:hover {
    background-color: rgba(0, 0, 0, 0.1); 
    transform: scale(1.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-toggle-mode svg {
    fill: var(--text-color);
    transition: fill 0.3s;
}

.darkmode .btn-toggle-mode svg {
    fill: var(--text-dark);
}

.inline-icon:hover {
    transform: scale(1.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* ✅ HERO SECTION */
.hero {
    position: relative;  /* Create positioning context for the video */
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero h1 {
    font-size: 3rem;
    animation: fadeIn 1.5s ease-in-out;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    animation: fadeIn 2s ease-in-out;
    color: white;
}

.btn-light {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-light:hover {
    background-color: var(--secondary-color);
}

.btn-custom {
    background-color: var(--primary-color);
    border: none;
    transition: background-color 0.3s ease;
  }
  
  .btn-custom:hover {
    background-color: var(--secondary-color);
  }

.darkmode .btn-light {
    background-color: var(--primary-dark);
}

.darkmode .btn-light:hover {
    background-color: var(--secondary-dark);
}

/* ✅ GALLERY STYLES */
.gallery {
    padding: 80px 0;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease;
}

.darkmode .gallery {
    background-color: var(--bg-dark);
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.contact-label{
    color: var(--text-color);
}

.darkmode .contact-label{
    color: var(--text-dark);
}

.darkmode .section-title {
    color: var(--secondary-dark);
}

/* ✅ GALLERY GRID */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    opacity: 0.9;
}

/* ✅ FEATURED GAMES */
.featured-games {
    padding: 80px 0;
    text-align: center;
}

.game-card {
    background: var(--card-bg);
    
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.darkmode .game-card {
    background: var(--card-dark);
}

.game-card:hover {
    transform: translateY(-10px);
}

.game-image img {
    width: 100%;
    border-radius: 10px;
}

/* ✅ NEWS SECTION */
.news {
    background: var(--primary-color);
    color: white;
    padding: 20px 0;
    text-align: center;
}

.darkmode .news {
    background: var(--primary-dark);
}

/* ✅ CONTACT SECTION */
.contact {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-color ) 40%, var(--secondary-color) 200%);
}

.darkmode .contact {
    background: linear-gradient(180deg, var(--bg-dark) 40%, var(--secondary-color) 200%);
}

.contact .btn-light {
    background: var(--primary-color);
}

.darkmode .contact .btn-light {
    background: var(--primary-dark);
}

/* ✅ FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: var(--primary-color);
    color: white;
}

.darkmode footer {
    background: var(--primary-dark);
}

/* ✅ CURSOR EFFECTS */
.cursor {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    transition: transform 0.1s ease;
}

.outer {
    width: 30px;
    height: 30px;
    border: 2px solid var(--secondary-color);
    transform: translate(-50%, -50%);
}

.inner {
    width: 10px;
    height: 10px;
    background: var(--secondary-color);
    transform: translate(-50%, -50%);
}

/* ✅ ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ✅ VIDEO CONTAINER */
.hero .video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;  /* Place it behind hero content */
    overflow: hidden;
  }

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px);
    opacity: 0.8;
    transition: filter 0.3s ease;
  }

.video-wrapper {
    position: fixed;       /* Fix it relative to the viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 60vh;          /* Same as before, adjust if needed */
    overflow: hidden;
    z-index: 0;            /* Base layer for the video */
  }

/* Dark mode */
.darkmode .video-container video {
    filter: blur(8px); /* Keep blur in dark mode */
}

.hero .hero-content {
    position: relative;
    z-index: 1;
}
