/* Fonts */
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,700,700i|Montserrat:300,400,500,700');

/* Variables - Black & Gold Theme */
:root {
  --primary-gold: #D4AF37;
  /* Classic Gold */
  --primary-gold-hover: #F2C94C;
  /* Lighter Gold/Amber */
  --bg-black: #050505;
  /* Deep Black */
  --bg-dark: #121212;
  /* Material Dark */
  --bg-card: #1E1E1E;
  /* Elevate Surface */
  --text-white: #ffffff;
  --text-grey: #e0e0e0;
  --input-bg: #2C2C2C;
  --border-color: #333333;
}

body {
  background: var(--bg-black);
  color: var(--text-white);
  font-family: "Open Sans", sans-serif;
  overflow-x: hidden;
}

a {
  color: var(--primary-gold);
  transition: all 0.3s ease;
  text-decoration: none;
}

a:hover,
a:active,
a:focus {
  color: var(--primary-gold-hover);
  outline: none;
  text-decoration: none;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

p {
  padding: 0;
  margin: 0 0 30px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  margin: 0 0 20px 0;
  padding: 0;
  color: var(--text-white);
}

/* Header */
#header {
  background: rgba(5, 5, 5, 0.8);
  padding: 15px 0;
  height: 80px;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  transition: all 0.5s;
  z-index: 997;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#header #logo {
  float: left;
}

#header #logo h1 {
  font-size: 34px;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 3px;
}

#header #logo h1 a,
#header #logo h1 a:hover {
  color: var(--text-white);
  padding-left: 10px;
  border-left: 4px solid var(--primary-gold);
}

#header #logo img {
  padding: 0;
  margin: 0;
  max-height: 50px;
  /* Constrain logo height */
}

/* Nav Menu */
.nav-menu,
.nav-menu * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu>li {
  float: left;
  white-space: nowrap;
}

.nav-menu a {
  display: block;
  position: relative;
  color: var(--text-white);
  padding: 10px 15px;
  transition: 0.3s;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-menu a:hover,
.nav-menu .menu-active>a {
  color: var(--primary-gold);
}

/* Intro Section */
#intro {
  display: table;
  width: 100%;
  height: 80vh;
  /* Reduced from 100vh to bring results closer */
  min-height: 500px;
  background: var(--bg-black);
  position: relative;
}

/* Optional subtle texture/gradient for background */
#intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
  opacity: 0.5;
  z-index: 0;
}


#intro .carousel-item {
  width: 100%;
  height: 80vh;
  /* Sync with parent */
  min-height: 500px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#intro .carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  /* Above background */
}

#intro .carousel-content {
  text-align: center;
  margin-top: 60px;
}

#intro h2 {
  color: var(--primary-gold);
  margin-bottom: 20px;
  font-size: 48px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#intro p {
  width: 80%;
  margin: 0 auto 40px auto;
  color: var(--text-grey);
  font-size: 16px;
  letter-spacing: 0.5px;
}

/* Forms */
.form-control {
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  border-radius: 8px;
  /* Softer corners */
  height: 55px;
  padding: 10px 20px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  background-color: #333;
  border-color: var(--primary-gold);
  color: var(--text-white);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
  outline: none;
}

input::placeholder {
  color: #888 !important;
  font-weight: 300;
}

.btn-secondary {
  background-color: #2a2a2a;
  border: 1px solid var(--border-color);
  color: var(--text-grey);
  height: 55px;
  border-radius: 8px;
  transition: all 0.3s;
  font-weight: 500;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #333;
  border-color: var(--primary-gold);
  color: var(--primary-gold);
  cursor: pointer;
}

.btn-get-started {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 14px 50px;
  border-radius: 50px;
  transition: all 0.4s ease;
  margin: 15px;
  color: #000 !important;
  background: linear-gradient(135deg, var(--primary-gold) 0%, #F2C94C 100%);
  border: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  text-transform: uppercase;
  cursor: pointer;
}

.btn-get-started:hover {
  background: linear-gradient(135deg, #F2C94C 0%, var(--primary-gold) 100%);
  color: #000 !important;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
  transform: translateY(-3px);
}

/* Main Content */
#main {
  background: var(--bg-black);
  padding: 30px 0;
  /* Reduced padding */
  min-height: 50vh;
}

.section-header h3 {
  font-size: 36px;
  color: var(--primary-gold);
  text-transform: uppercase;
  text-align: center;
  font-weight: 700;
  position: relative;
  padding-bottom: 20px;
  letter-spacing: 2px;
}

.section-header h3::after {
  content: '';
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary-gold);
  bottom: 0;
  left: calc(50% - 30px);
  box-shadow: 0 0 10px var(--primary-gold);
}

.section-header p {
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-white);
  font-size: 18px;
}

/* Result Cards - Glassmorphism style */
.about-col {
  background: rgba(30, 30, 30, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  /* Very subtle border */
  text-align: center;
  padding: 40px 30px;
  margin-bottom: 30px;
  transition: all 0.4s ease;
  width: 100%;
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-col:hover {
  transform: translateY(-10px);
  background: rgba(30, 30, 30, 0.9);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.1);
}

.about-col .img {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 25px;
  border: 1px solid #333;
}

.about-col .icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-gold), #F2C94C);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: -35px auto 0 auto;
  position: relative;
  z-index: 2;
  border: 6px solid #1E1E1E;
  /* Matches card bg */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.about-col:hover .icon {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.about-col h2 {
  color: var(--text-white);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-col h2 a {
  color: #000 !important;
  background: linear-gradient(135deg, var(--primary-gold) 0%, #F2C94C 100%);
  padding: 12px 25px;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.about-col h2 a:hover {
  background: #fff;
  color: #000 !important;
  box-shadow: 0 6px 15px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.about-col p {
  font-size: 15px;
  color: #aaa;
  margin-bottom: 15px;
  line-height: 1.6;
}

.about-col .fa-graduation-cap {
  color: var(--primary-gold) !important;
  margin-bottom: 10px;
  display: inline-block;
  font-size: 2.5em;
  /* Larger icon */
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Footer */
#footer {
  background: #000;
  color: #888;
  font-size: 13px;
  border-top: 1px solid #222;
  position: relative;
  /* Changed from fixed for better mobile handling usually, but keeping layout as requested */
  /* If sticking to fixed as before: */
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 25px 0;
}

#footer strong {
  color: var(--text-white);
}

/* Back to top */
.back-to-top {
  position: fixed;
  display: none;
  background: var(--primary-gold);
  color: #000;
  width: 44px;
  height: 44px;
  text-align: center;
  line-height: 44px;
  /* Center vertical */
  font-size: 16px;
  border-radius: 50%;
  right: 20px;
  bottom: 20px;
  /* Adjusted to not overlap footer if it's fixed */
  transition: all 0.3s;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
  padding-top: 0;
  /* Reset */
}

.back-to-top:hover {
  background: #fff;
  color: var(--primary-gold);
  transform: translateY(-3px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  #header {
    height: 70px;
    padding: 10px 0;
  }

  #header #logo h1 {
    font-size: 28px;
  }

  #intro h2 {
    font-size: 32px;
  }

  #intro p {
    font-size: 15px;
    width: 90%;
  }

  .carousel-content {
    padding: 0 20px;
  }

  .form-control {
    margin-bottom: 15px;
  }

  .btn-secondary {
    /* QR Button / Camera Toggle */
    width: 100% !important;
    margin-bottom: 10px;
  }

  .btn-group-toggle {
    display: flex;
    width: 100%;
  }

  .btn-group-toggle .btn {
    flex: 1;
  }

  .btn-get-started {
    width: 100%;
    margin: 15px 0;
  }

  .about-col {
    padding: 30px 15px;
  }
}