/*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/* 1) Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&family=Rajdhani:wght@500;700&display=swap');

/*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/* 2) Bangladesh color variables */
:root {
  --bd-green:       #006a4e;
  --bd-red:         #f42a41;
  --bd-dark:        #0a0a0a;
  --bd-light:       #f5f5f5;
  --bd-green-rgb:   0,106,78;
  --bd-red-rgb:     244,42,65;
}

/*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/* 3) Base & layout */
body, html {
  height: 100%;
  margin: 0;
  font-family: 'Fira Code', monospace;
  color: var(--bd-light);
}
body {
  display: flex;
  flex-direction: column;
  padding: 0;
  background:
    linear-gradient(135deg, var(--bd-green), var(--bd-red)),
    url('bd_bg_1.jpg') center/cover fixed;
  background-blend-mode: overlay;
}
main { flex: 1; }

/*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/* 4) Header, footer, #social */
header,
footer,
#social {
  background-color: rgba(0, 0, 0, 0.25) !important;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  position: sticky;
  top: 0;
  /* z-index: 1000; */
  backdrop-filter: blur(10px);
  /* border-bottom: 2px solid var(--bd-green); */
}
header:hover {
  background-color: rgba(0, 0, 0, 0.30) !important;
}

/*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/* 5) Nav & links */
nav, .auth-buttons, .event-timer {
  display: flex;
}
nav {
  margin-top: 0;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  background: linear-gradient(to right, rgba(var(--bd-green-rgb), 0.25), rgba(var(--bd-red-rgb), 0.25));
  padding: 10px 0;
  border-top: 2px solid var(--bd-red);
  border-bottom: 2px solid var(--bd-green);
  font-family: 'Rajdhani', sans-serif;
}
nav ul {
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}
nav ul li {
  margin: 10px 15px;
}
nav ul li a {
  position: relative;
  display: inline-block;
  color: var(--bd-light);
  font-size: 1.1em;
  font-weight: 700;
  letter-spacing: .05em;
  text-decoration: none;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  border-radius: 6px;
  text-shadow: 1px 1px #000;
  transition: all 0.3s ease;
}
nav ul li a::before {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 3px;
  background: linear-gradient(45deg, var(--bd-green), var(--bd-red));
  transform: scaleX(0);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
nav ul li a:hover {
  background: rgba(var(--bd-red-rgb), 0.2);
  transform: scale(1.1);
  color: var(--bd-red);
}
nav ul li a:hover::before {
  transform: scaleX(1);
}
nav ul li a.active,
nav ul li a:focus {
  background: linear-gradient(45deg, var(--bd-green), var(--bd-red));
  color: #fff;
}

/*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/* 6) Sections & hero */
section,
#hero {
  padding: 80px 20px;
  background-color: rgba(0,0,0,.21);
}
#hero {
  padding: 100px 20px;
  text-align: center;
  background-color: rgba(0,0,0,.7);
}
#hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 4em;
  margin-bottom: 20px;
  text-shadow: 4px 4px #000;
  animation: fadeInDown 1s;
}
#hero p {
  font-size: 1.5em;
  max-width: 600px;
  margin: 0 auto 40px;
  animation: fadeInUp 1s;
}

/*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/* 7) Typography & lists */
section h2,
#hero h1,
#login h2 {
  font-family: 'Rajdhani', sans-serif;
  color: var(--bd-red);
  animation: fadeInDown 1s;
  text-shadow: 2px 2px #000;
}
section h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 40px;
}
#prizes ul,
.rules-list,
nav ul {
  list-style: none;
  padding: 0;
}
.rules-list li {
  margin: 15px 0;
  line-height: 1.6;
  font-size: 1.2em;
}
.rules-list li i {
  margin-right: 15px;
  font-size: 1.5em;
  color: var(--bd-red);
}

/*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/* 8) Auth Buttons */
.auth-buttons {
  position: absolute;
  top: 15px;
  right: 20px;
  gap: 12px;
}
.auth-buttons .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1em;
  padding: 10px 18px;
  color: var(--bd-light);
  background: linear-gradient(135deg, rgba(var(--bd-green-rgb), 0.2), rgba(var(--bd-red-rgb), 0.2));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}
.auth-buttons .button i {
  margin-right: 8px;
  color: var(--bd-light);
}
.auth-buttons .button:hover {
  transform: scale(1.05);
  background: rgba(var(--bd-red-rgb), 0.3);
  box-shadow: 0 5px 15px rgba(var(--bd-red-rgb), 0.5);
  color: #fff;
}
.auth-buttons .button:hover i {
  color: #fff;
}

/*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/* 10) Logo */
.logo {
  position: relative;
  display: inline-block;
}
.logo img {
  height: 180px;
  width: auto;
  filter: drop-shadow(0 0 8px var(--bd-green));
  transition: none;
}

/*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/* 11) Footer */
footer {
  font-size: 0.95em;
  padding: 20px 10px;
  border-top: 1px solid rgba(var(--bd-green-rgb), 0.4);
  background: linear-gradient(to right, rgba(var(--bd-green-rgb), 0.3), rgba(var(--bd-red-rgb), 0.3));
  color: var(--bd-light);
  text-shadow: none;
}
