/*==========================================================
  GENERAL STYLES
==========================================================*/
* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: 'Nunito Sans', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
  transition: background-color 0.3s ease;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #000;
  color: white;
}

:root { /* Light Mode */
    --bg-color: #f5f5f5e8;
    --text-color: #333;
    --accent-color: #FFD700;
    --card-bg: #ffffff;
    --card-border-color: #e0e0e0;
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    --card-hover-border-color: var(--accent-color);
}

.dark-mode { /* Dark Mode */
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --accent-color: #FFD700;
    --card-bg: rgba(30, 30, 30, 0.5);
    --card-border-color: rgba(255, 255, 255, 0.2);
    --card-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    --card-hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    --card-hover-border-color: rgba(255, 215, 0, 0.4);
}

/*==========================================================
  HEADER STYLES
==========================================================*/
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: hsla(240, 20%, 10%, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  box-sizing: border-box;
}

.logo img {
  height: 100px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  color: yellow;
  background: rgba(255,255,255,0.2);
  border: 2px solid yellow;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background: yellow;
  color: black;
  transform: translateY(-2px);
}

.welcome-text {
  color: yellow;
  font-weight: 600;
  margin-right: 10px;
  white-space: nowrap;
}

/*==========================================================
  HERO SECTION STYLES
==========================================================*/
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    color: #fff;
}

#bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    animation: fadeInContent 1.5s ease-out;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
   font-size: 4.5rem;
    margin-bottom: 1rem;
    font-weight: 900;
    line-height: 1.2;
    color: #FFD700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 0 20px rgba(255,215,0,0.4);
}

.hero-content p {
    font-size: 1.3rem;
    margin-top: 0;
    color: #e0e0e0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

/*==========================================================
  CARDS SECTION STYLES
==========================================================*/
.cards-section {
    background-color: var(--bg-color);
    padding: 80px 20px 40px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.cards-section h2 {
    font-size: 3.5em;
    margin-bottom: 30px;
    color:#ffd700 ;
}

.cards-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.card {
   position: relative;
   background: var(--card-bg);
   backdrop-filter: blur(10px);
   -webkit-backdrop-filter: blur(10px);
   border: 1px solid var(--card-border-color);
   border-radius: 15px;
   padding: 25px;
   flex: 1 1 300px;
   max-width: 350px;
   transition: all 0.4s ease;
   cursor: pointer;
   overflow: hidden;
   text-align: center;
}

.card::before {
   content: '';
   position: absolute;
   top: 50%;
   left: 50%;
   width: 200%;
   height: 200%;
   background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, rgba(255, 215, 0, 0) 60%);
   transform: translate(-50%, -50%);
   opacity: 0;
   transition: opacity 0.5s ease;
   z-index: 0;
}

.card:hover::before {
   opacity: 1;
}

.card:hover {
   transform: translateY(-10px);
   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
   border-color: rgba(255, 215, 0, 0.4);
}

.card img, .card h3, .card p {
   position: relative;
   z-index: 1;
}

.card img {
   width: 100%;
   height: 180px;
   object-fit: cover;
   border-radius: 10px;
   margin-bottom: 20px;
   transition: transform 0.4s ease;
}

.card:hover img {
   transform: scale(1.05);
}

.card h3 {
   font-size: 1.8em;
   margin: 0 0 10px 0;
   color: #FFD700;
   font-weight: 700;
}

.card p {
   font-size: 0.95rem;
   color: var(--text-color);
   line-height: 1.6;
   text-shadow: none;
}

.card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(80%);
}

.card.disabled:hover {
    transform: none;
    box-shadow: var(--card-shadow);
    border-color: var(--card-border-color);
}

.card.disabled:hover::before {
    opacity: 0;
}

/*==========================================================
  FORM STYLES
==========================================================*/
main {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  padding: 60px;
  padding-top: 120px;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 12, 0.45);
  z-index: -1;
}

.form-box {
  background: hsla(0, 10%, 12%, 0.71);
  padding: 50px;
  border-radius: 40px;
  box-shadow: 0 10px 25px #ffd9d9ff;
  width: 100%;
  max-width: 500px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 1;
  min-height: 400px;
  margin-top: 60px;
}

.form-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px hsla(45, 89%, 49%, 1);
}

.form-box h2 {
  text-align: center;
  color: hsla(45, 89%, 49%, 1);
  margin-bottom: 15px;
  font-size: 2rem;
  font-weight: 600;
}

.field, .form-control {
  margin-bottom: 1rem;
}

.form-box label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #ffffff;
  text-align: left;
  font-size: 14px;
}

.form-box input,
.form-box select {
  width: 100%;
  height: 55px;
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}

.form-box input:hover,
.form-box input:focus,
.form-box select:hover,
.form-box select:focus {
  border-color: #ffda0a;
  box-shadow: 0 0 10px rgba(255, 218, 10, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

.form-box input::placeholder {
  color: hsla(0, 0%, 100%, 0.7);
  font-size: 14px;
}

.form-box select {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23ffda0a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

.form-box select option {
  background: #ffffff;
  color: #000000;
}

.btn-register {
  width: 100%;
  height: 50px;
  padding: 10px 12px;
  background: linear-gradient(90deg, #ffc107, #f8ba00);
  color: #000000;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
  transition: all 0.3s ease;
  margin-top: 20px;
}

.btn-register:hover {
  background: linear-gradient(90deg, #ffda0a, #f5f835);
  box-shadow: 0 6px 20px rgba(255, 218, 10, 0.6);
  transform: translateY(-2px);
}

.btn-register:active {
  transform: translateY(0);
}

.form-box p {
  text-align: center;
  margin-top: 15px;
  color: #ffffff;
}

.form-box a {
  color: #ffda0a;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.form-box a:hover {
  color: #f5f835;
}

.error-message {
  color: #ff4d4d;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px;
  margin-bottom: 15px;
  border-radius: 5px;
  text-align: center;
  border: 1px solid #ff4d4d;
}

/*==========================================================
  FOOTER STYLES
==========================================================*/
.footer {
    background: #14141f8f;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 0, 0.4);
    text-align: center;
    padding: 20px 10px;
    font-size: 14px;
    font-weight: 600;
    color: yellow;
    margin-top: 40px;
}

.footer p {
    margin: 5px 0;
}

.footer .dev-name {
    font-weight: 800;
    color: yellow;
    transition: color 0.3s ease;
}

.footer .dev-name:hover {
    color: yellow;
}

/*==========================================================
  MISC STYLES
==========================================================*/
.menu-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 2em;
    color: #FFD700;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    display: flex; justify-content: center; align-items: center;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

#dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    font-size: 2em;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex; justify-content: center; align-items: center;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFD700;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

/*==========================================================
  RESPONSIVE STYLES
==========================================================*/
@media (max-width: 991px) {
  .form-box {
    max-width: 90%;
    min-height: auto;
    padding: 25px;
  }
  .form-box h2 {
    font-size: 1.75rem;
  }
  .form-box input,
  .form-box select {
    height: 50px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 15px;
  }

  .logo img {
    height: 80px;
  }

  .nav-links {
    width: 100%;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
  }

  .nav-links a {
    padding: 6px 12px;
    font-size: 14px;
  }

  .welcome-text {
    font-size: 14px;
    margin-bottom: 5px;
  }

  h1 {
      font-size: 2.5em;
  }

  .hero-content p {
      font-size: 1.2em;
  }

  .cards-section {
      padding: 20px 10px;
  }
  
  .cards-section h2 {
      font-size: 2em;
  }

  .cards-row {
      flex-direction: column;
      align-items: center;
  }
  
  .card {
      width: 90%;
  }

  .auth {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }

  .brand, form {
      width: 90%;
      margin-left: 0;
      text-align: center;
  }

  .footer {
    font-size: 13px;
    padding: 15px;
  }
}

@media (max-width: 600px) {
  main {
    padding-top: 80px;
    align-items: flex-start;
  }
  .form-box {
    max-width: 100%;
    padding: 20px;
    border-radius: 10px;
    min-height: auto;
    margin-top: 60px;
  }
  .form-box h2 {
    font-size: 1.5rem;
  }
  .btn-register {
    height: 45px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    justify-content: flex-end;
  }
  .nav-links a {
    width: 100%;
    text-align: center;
      margin-left: auto;
  }
}




/*==========================================================
  MISC STYLES
==========================================================*/
.menu-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 2em;
    color: #FFD700;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    display: flex; justify-content: center; align-items: center;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

#dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    font-size: 2em;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex; justify-content: center; align-items: center;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFD700;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

/*==========================================================
  RESPONSIVE STYLES
==========================================================*/
@media (max-width: 991px) {
  .form-box {
    max-width: 90%;
    min-height: auto;
    padding: 25px;
    margin-top: 80px;
  }
  .form-box h2 {
    font-size: 1.75rem;
  }
  .form-box input,
  .form-box select {
    height: 50px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 15px;
  }

  .logo img {
    height: 80px;
  }

  .nav-links {
    width: 100%;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
   
  }

  .nav-links a {
    padding: 6px 12px;
    font-size: 14px;
      margin-left: auto;
  }

  .welcome-text {
    font-size: 14px;
    margin-bottom: 5px;
  }

  h1 {
      font-size: 2.5em;
  }

  .hero-content p {
      font-size: 1.2em;
  }

  .cards-section {
      padding: 20px 10px;
  }
  
  .cards-section h2 {
      font-size: 2em;
  }

  .cards-row {
      flex-direction: column;
      align-items: center;
  }
  
  .card {
      width: 90%;
  }

  .auth {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }

  .brand, form {
      width: 90%;
      margin-left: 0;
      text-align: center;
  }

  .footer {
    font-size: 13px;
    padding: 15px;
  }
}

@media (max-width: 600px) {
  main {
    padding-top: 80px;
    align-items: flex-start;
  }
  .form-box {
    max-width: 100%;
    padding: 20px;
    border-radius: 10px;
    min-height: auto;
    margin-top: 85px;
  }
  .form-box h2 {
    font-size: 1.5rem;
  }
  .btn-register {
    height: 45px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .nav-links a {
    width: 100%;
    text-align: center;
  }
}
