:root {
  color-scheme: light dark;
  --bg: light-dark(#ffffff, #0a0a0a);
  --text: light-dark(#1f2937, #f3f4f6);
  --surface: light-dark(#f3f4f6, #171717);
  --primary: #dc3545;
  --success: #198754;
  --warning: #ffc107;
  --danger: #dc3545;
  --dark: #343a40;
  --light: #fefefe;
}

* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 1.8;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-sizing: border-box;
}
nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: bold;
  margin-left: 20px;
}

.btn-login {
  display: inline-block;
  border: 2px solid var(--primary);
  padding: 10px 40px;
  border-radius: 30px;
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.4s ease;

  /* Increased initial shadow for constant "shiny" look */
  box-shadow:
    0 0 10px rgba(220, 53, 69, 0.9),
    inset 0 0 5px rgba(220, 53, 69, 0.9);
}

.btn-login:hover {
  background: var(--primary);
  color: white;
  /* Intense outer glow on hover */
  box-shadow:
    0 0 20px rgba(220, 53, 69, 0.9),
    inset 0 0 15px rgba(220, 53, 69, 0.9);
  transform: scale(1.05);
}
/* Hero with Background Image */
.hero {
  height: 90vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 20px;
}

.typewriter {
  text-align: center;
  min-height: 50px;
}
.typewriter-text {
  font-size: 3.5rem;
  display: inline-block;
  letter-spacing: 0.15em;
  line-height: 3.5rem;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 15px;
  max-width: 1200px;
  margin: auto;
}

h2 {
  color: var(--primary);
  font-size: 1.8rem;
}
h3 {
  color: var(--primary);
}

/* Assigning spanning rules to mimic your design */
.image-gallery img:nth-child(1) {
  grid-column: span 1;
  grid-row: span 2;
}
.image-gallery img:nth-child(2) {
  grid-column: span 2;
}
.image-gallery img:nth-child(3) {
  grid-column: span 1;
}
.image-gallery img:nth-child(4) {
  grid-column: span 1;
  grid-row: span 1;
}
.image-gallery img:nth-child(5) {
  grid-column: span 1;
  grid-row: span 1;
}
.image-gallery img:nth-child(6) {
  grid-column: span 1;
  grid-row: span 2;
}
.image-gallery img:nth-child(7) {
  grid-column: span 1;
  grid-row: span 2;
}
.image-gallery img:nth-child(8) {
  grid-column: span 1;
  grid-row: span 2;
}
.image-gallery img:nth-child(9) {
  grid-column: span 1;
  grid-row: span 1;
}
.image-gallery img:nth-child(10) {
  grid-column: span 2;
  grid-row: span 1;
}

.image-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

section {
  padding: 100px 20px;
  max-width: 1000px;
  margin: auto;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}
.card {
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-body {
  padding: 25px;
}
.btn {
  padding: 20px 50px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 16px;
}
.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-warning {
  background: var(--warning);
  color: white;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

/* Deep Content Styling */
.gray-section {
  background: var(--surface);
  text-align: center;
  padding: 50px;
  border-radius: 20px;
}

.full-width-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  margin: 40px 0;
}
/* Modal Styles */
#age-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}
.modal-content {
  background: #222;
  padding: 40px;
  border-radius: 20px;
  margin: 20px;
}

.modal-content h1 {
  color: var(--primary);
}

.modal-content button {
  margin-right: 10px;
}

/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
section {
  animation: fadeInUp 1s ease-out forwards;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text);
  z-index: 1002;
  transition: transform 0.3s ease;
}

/* Transform to X when active */
.menu-toggle.active {
  transform: rotate(90deg);
}

/* Change symbol to X when active */
.menu-toggle.active::before {
  content: "✕";
}

.menu-toggle::before {
  content: "☰";
}

footer {
  text-align: center;
  padding: 100px;
  background: #111;
  color: white;
}

.registration-form-container {
  color: var(--dark);
  max-width: 800px;
  width: 90%;
  margin: 170px auto 50px;
  padding: 40px;
  background: #fff;
  border-radius: 20px;
  color-scheme: light;
  background-color: var(--light);
  color: var(--dark);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.registration-form-container header h1 {
  color: var(--primary);
}

/* Force inputs and form controls to strictly follow your light theme */
.registration-form-container input,
.registration-form-container select,
.registration-form-container textarea {
  color: #000000;
  background-color: #ffffff;
  border: 1px solid #ccc;
}

/* Force checkboxes and radios to use your primary color */
.registration-form-container input[type="radio"],
.registration-form-container input[type="checkbox"] {
  accent-color: var(--primary);
}

.form-header {
  text-align: center;
}

.form-header h1 {
  line-height: 3rem;
  margin: 0px 20px 20px;
}

/* Grid Layout: 2 inputs per row */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* Full-width elements */
.full-width {
  grid-column: span 2;
}

/* Modern Inputs */
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--dark);
  font-weight: bolder;
}

input,
select {
  width: 100%;
  padding: 14px;
  border: 1.5px solid #eee;
  border-radius: 10px;
  background: #fdfdfd;
  transition: 0.3s;
}

input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Target the select box itself */
select {
  color: var(--dark); /* Sets the text color to black */
  background-color: var(--light); /* Ensures contrast */
}

/* Target the individual options within the dropdown */
select option {
  color: var(--dark); /* Forces options to be black */
  background-color: var(--light);
}

/* Optional: Specifically target the placeholder if it's currently grey */
select:invalid {
  /* color: #000000; */
}

/* Apply your brand color to all radios and checkboxes */

/* Shiny Button */
.btn-shiny {
  background: var(--primary);
  color: white;
  border: none;
  padding: 16px;
  margin: 20px 0px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  width: 100%;
  cursor: pointer;
  transition: 0.4s;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-shiny:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.5);
}

.info-text {
  margin: 20px 0px;
  padding: 20px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.01);
}

/* Responsive: 1 column on mobile */
@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full-width {
    grid-column: span 1;
  }
}

.drop-zone {
  width: 100%;
  height: 150px;
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed var(--primary);
  border-radius: 10px;
  cursor: pointer;
  color: var(--primary);
  transition: background 0.3s ease;
}
.drop-zone--over {
  border-style: solid;
  background: rgba(220, 53, 69, 0.05);
}
.drop-zone__input {
  display: none;
}

@media (max-width: 800px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95); /* Dark RGBA Overlay */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: 0.4s;
  }

  .nav-links.active {
    right: 0;
  } /* Show menu */
  .nav-links a {
    font-size: 1.5rem;
    margin: 0;
  }

  /* Assigning spanning rules to mimic your design */
  .image-gallery img:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }
  .image-gallery img:nth-child(2) {
    grid-column: span 2;
    grid-row: span 1;
  }
  .image-gallery img:nth-child(3) {
    grid-column: span 2;
    grid-row: span 1;
  }
  .image-gallery img:nth-child(4) {
    grid-column: span 2;
    grid-row: span 2;
  }
  .image-gallery img:nth-child(5) {
    grid-column: span 2;
    grid-row: span 1;
  }
  .image-gallery img:nth-child(6) {
    grid-column: span 2;
    grid-row: span 1;
  }
  .image-gallery img:nth-child(7) {
    grid-column: span 4;
    grid-row: span 1;
  }
  .image-gallery img:nth-child(8) {
    grid-column: span 2;
    grid-row: span 1;
  }
  .image-gallery img:nth-child(9) {
    grid-column: span 2;
    grid-row: span 2;
  }
  .image-gallery img:nth-child(10) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .typewriter-text {
    font-size: 2rem;
    display: inline-block;
    letter-spacing: 0.15em;
    line-height: 3rem;
  }

  .gray-section,
  footer {
    padding: 20px;
  }
  .modal-content {
    padding: 20px;
  }
  .modal-content button,
  .modal-content a {
    padding: 15px 20px;
  }
}

@media (max-width: 500px) {
  .registration-form-container {
    padding: 40px 20px;
  }

  .form-header h1 {
    line-height: 3rem;
    margin-bottom: 20px;
    font-size: 1.5rem;
  }

  .modal-content {
    padding: 20px 5px;
  }
  .modal-content button,
  .modal-content a {
    padding: 10px;
  }

  .modal-content button {
    margin-right: 3px;
  }
}
