@font-face {
    font-family: 'PrehistoricCaveman';
    src: url("../fonts/PrehistoricCaveman.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* Offset anchor scrolling (adjust the value to match your fixed navbar height) */
:root {
    --scroll-offset: 70px !important; /* try 80–120 depending on your header height */
}

section[id] {
    scroll-margin-top: var(--scroll-offset);
}

html {
  scroll-behavior: smooth;
}


body.dark-theme {
    background: #000;
    color: #eee;
}

html, body {
    overflow-x: hidden;
}

h1, h2 {
    font-family: 'PrehistoricCaveman', sans-serif;
    font-size: 1rem;
    color: #ffd36a !important;
    text-shadow: 0 0 10px rgba(255, 200, 80, 0.3);
}


a { color: #fff; text-decoration: underlined; }

.fire-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* clicks go through */
    overflow: hidden;
    z-index: 0; /* behind your content */
}

/* Single flame/beam style */
.fire {
    position: absolute;
    bottom: 0;
    width: 8px;
    height: 40px;
    background: radial-gradient(circle at 50% 50%, #fff100, #ff6c00, transparent);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; /* gives flame shape */
    filter: blur(3px);
    opacity: 0.8;
    animation: floatFire 4s linear infinite, flicker 0.2s infinite alternate;
}

/* Animate the flames upward with sway and fade */
@keyframes floatFire {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateX(30px) translateY(-50vh) rotate(20deg) scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: translateX(-20px) translateY(-100vh) rotate(-10deg) scale(1);
        opacity: 0;
    }
}

/*header*/
.site-header {
    padding: 0;
    margin: 0;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center; /* vertical center */
    padding: 0 30px;      /* top/bottom padding optional */
    background: #050505;
    position: fixed;
    top: 0;
    width: 100%;
    min-height: 70px;     /* ensures a stable navbar height */
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.logo {
    display: flex;
    align-items: center;   /* vertical center */
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;             /* remove any top margin */
    padding: 0;
}


.nav-menu li a {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #ffd36a; /* brighter yellow when active or hovered */
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #ffd36a;
    border-radius: 2px;
}

/* Responsive menu for mobile */
@media (max-width: 768px) {
     .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;              /* ❗ no more pushing layout */
        top: 70px;
        right: 0;
        background: #111;
        flex-direction: column;

        width: 220px;
        height: calc(100vh - 70px);   /* full height under navbar */
        padding: 20px;
        gap: 15px;

        transform: translateX(100%);  /* slide off-screen */
        transition: transform 0.3s ease;

        border-radius: 8px 0 0 8px;
        z-index: 999;                 /* stays behind navbar */
    }

    .nav-menu.show {
        transform: translateX(0);     /* slide IN */
    }

    .nav-menu li a {
        font-size: 1rem;
    }
}

/* Font Awesome icons in menu - optional hover glow for game aesthetic */
.nav-menu li a i {
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-menu li a:hover i,
.nav-menu li a.active i {
    color: #fff100;
    text-shadow: 0 0 8px #ffd36a;
}

/*SUB-NAVBAR*/
/* ========== Submenu Under Design Brief ========== */
.has-submenu {
    position: relative;
}

.sub-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1f1f1f; /* dark dropdown to match your aesthetic */
    padding: 0 3px;
    margin: 0 2px;
    list-style: none;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    z-index: 1000;
    min-width: 10px;
}

.sub-nav-menu li a {
    display: block;
    padding: 8px 14px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: 0.2s ease;
}

.sub-nav-menu li a:hover {
    background: #ffd36a;
    color: #000;
}

/* Show submenu on hover (desktop) */
.has-submenu:hover > .sub-nav-menu {
    display: block;
}

/* ============================
   📱 MOBILE SCROLL BAR VERSION
   ============================ */
@media (max-width: 768px) {

    .sub-nav-menu {
        position: static;
        display: flex !important;
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        gap: 16px;

        background: #1f1f1f;
        padding: 10px 10px;
        margin-top: 10px;
        border-radius: 6px;

        scrollbar-width: thin;
        scrollbar-color: #ffd36a #333; /* Firefox */
    }

    /* For WebKit browsers (Chrome, Safari, Edge) */
    .sub-nav-menu::-webkit-scrollbar {
        height: 6px;
    }

    .sub-nav-menu::-webkit-scrollbar-track {
        background: #333;
        border-radius: 10px;
    }

    .sub-nav-menu::-webkit-scrollbar-thumb {
        background: #ffd36a;
        border-radius: 10px;
    }

    .sub-nav-menu li {
        display: inline-block;
    }

    .sub-nav-menu li a {
        padding: 6px 10px;
        background: #2a2a2a;
        border-radius: 4px;
        font-size: 13px;
        color: #ffd36a;
        white-space: nowrap;
    }
}

/* Highlight active submenu link */
.sub-nav-menu a.active {
    background: #ffd36a !important;
    color: #000 !important;
    font-weight: bold;
    border-radius: 4px;
}


/* HERO */
.hero {
  height: 120vh;
  background-image: url("../img/hero-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2; /* shows ABOVE overlay */
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #FFD36A;
}

/* optional dark overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55) !important; /* layer to make text more visible */
}

/* Container for buttons */
.hero-buttons {
    display: flex;
    gap: 20px; /* space between buttons */
    flex-wrap: wrap; /* wrap on very small screens */
    justify-content: center;
    color: #fff;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    border: 1px solid #fff;
    transition: 0.3s;
    
}

.btn:hover {
    background: #5a2a04bd;
    color: #fff;

}

/* SECTIONS */
section {
    position: relative;
    z-index: 1;
    background: transparent;
}
.content-section h2 {
    color: #ffd36a;
    text-shadow: 0 0 10px rgba(255, 200, 80, 0.3);
}

.content-section {
    opacity: 0;
    padding: 120px 20px;
    transform: translateY(40px);
    transition: 0.8s;
}
.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 900px;
    margin: auto;
}

/* Main video styling */

/* Main video area */
.main-video-wrapper {
    width: 100%;
    margin-bottom: 40px;
    background-color: #000 !important;
    padding: 10px;
    border-radius: 12px;
}

#mainVideo {
    width: 100%;
    border-radius: 12px;
    background-color: #000 !important;
    mix-blend-mode: normal !important;
    opacity: 1 !important;
    display: block;
    box-shadow: 0 0 20px #000;
    transition: opacity 0.5s ease;
}


/* Video grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

/* Video item */
.video-item {
    text-align: center;
    cursor: pointer;
    padding: 10px;
    background: #111;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: 0.3s ease;
}

.video-item:hover {
    transform: scale(1.04);
    border-color: #ffcc00;
}

/* Active selection */
.video-item.active {
    border-color: #ffcc00;
    box-shadow: 0 0 12px #ffcc00aa;
}

/* Titles under thumbnails */
.video-title {
    display: center;
    margin-top: 15px;
    font-size: 15px;
    color: #ffffff;
}

/* Mobile improvements */
@media (max-width: 768px) {
    #mainVideo {
        height: auto;
    }
}


/* TEAM SECTION – Cave Aesthetic (Updated) */
.team-section {
  background: #050505;
  padding: 70px 0;
  color: #f2e2b2;
}

.team-section h2 {
  color: #ffd36a;
  text-shadow: 0 0 12px rgba(255, 180, 60, 0.3);
}


/* ================================
   TEAM ROW — KEEP CARDS SIDE BY SIDE
   ================================ */
.team-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 35px;
  flex-wrap: nowrap; /* prevents stacking */
}


/* ================================
   TEAM CARDS — FIXED SIZE + GLOW
   ================================ */
.team-card {
  background: #111;
  border: none;
  width: 250px;           /* FIXED SIZE — this is the correct width */
  border-radius: 12px;
  overflow: hidden;
  position: relative;     /* required for glow */
  box-shadow:
    0 0 25px rgba(255, 140, 0, 0.15),
    0 0 45px rgba(255, 100, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow:
    0 0 35px rgba(255, 150, 0, 0.4),
    0 0 80px rgba(255, 120, 0, 0.2);
}


/* Info box */
.team-info {
  background: rgba(0, 0, 0, 0.55);
  padding: 15px;
  text-align: center;
  color: #ffd36a;
}

.team-info h5 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: #ffe7a1;
}

.team-info div {
  font-size: 0.9rem;
  color: #d6c8a0;
}


/* Orange glow behind card */
.team-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 120%,
    rgba(205, 108, 47, 0.792),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* <<< FIX — allows clicking elements above */
}

.team-card:hover::before {
  opacity: 1;
}

/*GITHUB ICON*/
.github-icon {
    display: inline-block;
    margin-top: 8px;
}

.github-icon i {
    font-size: 32px;
    color: #ffd36a;
    transition: 0.3s ease;
}

.github-icon i:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #ffd36a;
}


/* FOOTER */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #333;
}

.footer a {
  text-decoration: underline;

}

.footer a::hover {
  color:#ffd36a;
}


/*FORCING THESE STYLESSSS*/
/* ===== Ensure video sits above flame layer but BELOW header ===== */
.video-gallery {
  position: relative;     /* already set, but keep to create local stacking context */
  isolation: isolate;     /* prevents parent blending effects */
  background: #000;       /* solid black background for gallery */
  padding: 40px 0;
  border-radius: 12px;
  z-index: 5;             /* make sure gallery sits above flames (flames z-index:0) */
}

/* main video wrapper must be above flames but below header (header z-index:1000) */
.main-video-wrapper {
  position: relative;
  z-index: 10;            /* small number, less than header (1000) so header stays on top */
  background-color: #000; /* ensure hard black behind player */
  border-radius: 12px;
  padding: 10px;
}

/* ensure the <video> itself is above the flames */
#mainVideo {
  position: relative;
  z-index: 11;
  background-color: #000 !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  display: block;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 20px #000;
  transition: opacity 0.35s ease;
}

/* keep flames behind everything (you already had z-index:0) */
.fire-container {
  z-index: 0;
}

/* remove any accidental backdrop-filter on ancestors (defensive) */
.video-gallery, .main-video-wrapper, #mainVideo {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  filter: none !important;
}

