:root {
  --primary-color: #1a1a4b;
  --secondary-color: #3b2f5f;
  --accent-color: #00f7ff;
  --text-color: #d4af37;
  --container-bg-color: rgba(26, 26, 26, 0.5);
  --font-family: 'Raleway', Arial, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: url('images/main.jpg') no-repeat center center fixed;
  background-size: cover;
  color: var(--text-color);
  font-family: var(--font-family);
  transition: background 0.5s ease-in-out;
}

.container {
  background-color: var(--container-bg-color);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  color: var(--accent-color) !important;
  text-shadow: 1px 1px 2px #d4af37, 0 0 1em var(--secondary-color), 0 0 0.2em var(--accent-color);
  margin: 0.5em 0;
  text-align: center;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
}

h3 {
  font-size: 2rem;
  font-weight: 500;
}

/* Body Text */
p {
  font-family: var(--font-family);
  color: #fff;
  text-shadow: 1px 1px 2px #000, 0 0 1em var(--text-color), 0 0 0.2em var(--text-color);
  line-height: 1.6;
  margin: 1em 0;
  font-size: 1.125rem;
  text-align: center;
}

/* Links */
a {
  font-family: var(--font-family);
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Buttons */
button {
  font-family: var(--font-family);
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
  background-color: #e6c200;
  transform: scale(1.05);
}

.btn-primary {
  font-family: 'Raleway', sans-serif;
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: #e6c200;
  transform: scale(1.05);
}


/* Input Fields */
input[type="text"],
input[type="number"] {
  font-family: var(--font-family);
  font-size: 1rem;
  padding: 10px;
  border: 3px solid var(--accent-color);
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 8px var(--primary-color);
  outline: none;
}

.navbar {
  background-color: var(--primary-color);
  padding: 10px 20px;
}

.navbar-brand {
  font-family: var(--font-family);
  color: var(--text-color);
  font-size: 1.5rem;
  text-decoration: none;
}

.navbar-brand:hover {
  color: var(--accent-color);
}

.nav-link {
  color: var(--text-color) !important; /* Maintain text color consistency */
  font-family: var(--font-family);
  font-weight: 600;
  margin: 0 10px;
}

.nav-link:hover {
  color: var(--accent-color) !important;
}

.nav-link.active {
  color: var(--accent-color) !important;
  font-weight: bold;
  text-decoration: underline;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="%23ffd700" viewBox="0 0 30 30"%3E%3Cpath stroke="rgba%28180, 180, 180, 1%29" stroke-width="2" stroke-linecap="round" stroke-miterlimit="10" d="M4 7h22M4 15h22M4 23h22"/%3E%3C/svg%3E');
}


/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--accent-color);
  padding: 20px 0;
}

.footer-link {
  color: var(--accent-color);
  text-decoration: none;
  margin: 0 10px;
}

.footer-link:hover {
  text-decoration: underline;
}

/* Global Styles for Mobile Responsiveness */

/* Small Devices (Phones, Portrait View, max-width: 576px) */
@media (max-width: 576px) {
  body {
    padding: 10px;
    font-size: 14px;
  }

  .step-card {
    padding: 15px;
    border-radius: 8px;
    max-width: 95%;
    margin: 10px auto;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  p {
    font-size: 1rem;
  }

  button {
    padding: 12px 20px;
    font-size: 1rem;
  }

  input[type="text"],
  input[type="number"] {
    font-size: 1rem;
    padding: 10px;
  }

  .navbar {
    padding: 0.5rem 1rem;
  }
}

/* Medium Devices (Tablets, Landscape View, max-width: 768px) */
@media (max-width: 768px) {
  body {
    padding: 15px;
    font-size: 16px;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--secondary-color);
    position: absolute;
    top: 60px;
    left: 0;
    padding: var(--spacing-md);
    }
   
    .main-nav ul.active {
    display: flex;
    }
   
    .nav-toggle {
    display: block;
    font-size: 1.5rem;
    }

  .step-card {
    padding: 20px;
    max-width: 90%;
    margin: 15px auto;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  p {
    font-size: 1.125rem;
  }

  button {
    padding: 15px 25px;
    font-size: 1.125rem;
  }

  input[type="text"],
  input[type="number"] {
    font-size: 1.125rem;
    padding: 12px;
  }
}

/* Large Devices (Desktops, max-width: 1200px) */
@media (max-width: 1200px) {
  .step-card {
    max-width: 85%;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  p {
    font-size: 1.25rem;
  }

  button {
    padding: 10px 20px;
  }
}
