/* ===============================
   NEXORA — Dark Premium UI
   =============================== */

/* Global reset */
* {
  box-sizing: border-box;
  max-width: 100vw;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  background: #0a0a0f;
  color: #f8f8f8;
}

/* Prevent GSAP / animations overflow */
section,
header,
main,
footer,
.hero,
.hero * {
  overflow-x: hidden;
  max-width: 100vw;
}

/* ===============================
   Navbar
   =============================== */
header,
nav {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(12px);
  color: #fff;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 12px;
}

/* ===============================
   Form Base
   =============================== */
.form-input,
input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #13131a;
  color: #ffffff;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

input:focus,
textarea:focus {
  border-color: #00d4ff;
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.25);
}

/* ===============================
   Button
   =============================== */
button {
  border: none;
  border-radius: 999px;
  padding: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #00d4ff, #7a5cff);
  cursor: pointer;
}

/* ===============================
   Nexora Custom Dropdown
   =============================== */

.nexora-dropdown {
  position: relative;
  width: 100%;
}

.nexora-selected {
  background: #13131a;
  color: rgba(255, 255, 255, 0.5);
  padding: 14px 44px 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  user-select: none;
}

/* Dropdown arrow */
.nexora-selected::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

/* When dropdown is open */
.nexora-dropdown:has(.nexora-options.active) .nexora-selected::after {
  transform: translateY(-50%) rotate(180deg);
  border-top-color: #00d4ff;
}

/* Hover state */
.nexora-selected:hover {
  border-color: rgba(0, 212, 255, 0.4);
  background: #1a1a24;
}

/* When a service is selected (has value) */
.nexora-selected.has-value {
  color: #ffffff;
}

/* Focus/Active state */
.nexora-dropdown:has(.nexora-options.active) .nexora-selected {
  border-color: #00d4ff;
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.25);
  background: #1a1a24;
}

/* Dropdown panel */
.nexora-options {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: #1a1c2b;
  backdrop-filter: blur(14px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(0, 212, 255, 0.1);
  z-index: 9999;
  overflow: hidden;
  animation: dropdownSlide 0.2s ease-out;
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nexora-options.active {
  display: block;
}

/* Dropdown items */
.nexora-option {
  padding: 14px 16px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.25s ease;
  border-left: 3px solid transparent;
}

.nexora-option:hover {
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.15), rgba(122, 92, 255, 0.15));
  color: #ffffff;
  border-left-color: #00d4ff;
  padding-left: 20px;
}

.nexora-option:active {
  background: linear-gradient(90deg, #00d4ff, #7a5cff);
  color: #ffffff;
}

/* Selected option indicator */
.nexora-option.selected {
  background: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
  border-left-color: #00d4ff;
}

/* ===============================
   Footer
   =============================== */
footer {
  background: #0a0a0f;
  color: #aaa;
  text-align: center;
  padding: 1.5rem;
}