/* ===================================
   CSS Variables
   =================================== */

:root {
  --dark: #15181c;
  --white: #fff;

}

html[mode="dark"] {
  --dark: #fff;
  --white: #15181c;
  --white2: #15181c;
  --white3: #15181c;
}

/* ===================================
   Font Faces
   =================================== */

@font-face {
  font-family: "SpaceMono-Regular";
  src: url("../fonts/SpaceMono-Regular.woff") format("woff"),
    url("../fonts/SpaceMono-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "SpaceMono-Bold";
  src: url("../fonts/SpaceMono-Bold.woff") format("woff"),
    url("../fonts/SpaceMono-Bold.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Helvetica-Light";
  src: url("../fonts/Helvetica-Light.woff") format("woff"),
    url("../fonts/Helvetica-Light.ttf") format("truetype");
  font-display: swap;
}

/* ===================================
   Base Styles & Reset
   =================================== */

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Improved focus for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #0071bc;
  outline-offset: 2px;
}

/* ===================================
   Root Font Size (Responsive) - FIXED
   =================================== */

html {
  font-size: 62.5%;
}

@media (max-width: 1700px) {
  html {
    font-size: 59%;
  }
}

@media (max-width: 1600px) {
  html {
    font-size: 56%;
  }
}

@media (max-width: 1500px) {
  html {
    font-size: 52%;
  }
}

@media (max-width: 1400px) {
  html {
    font-size: 49%;
  }
}

@media (max-width: 1300px) {
  html {
    font-size: 46%;
  }
}

@media (max-width: 1200px) {
  html {
    font-size: 40%;
  }
}

@media (max-width: 1140px) {
  html {
    font-size: 56%;
    /* FIXED: Was 36% - too small */
  }
}

@media (max-width: 1023px) {
  html {
    font-size: 62.5%;
  }
}

@media (max-width: 374px) {
  html {
    font-size: 56%;
  }
}

@media (max-width: 320px) {
  html {
    font-size: 50%;
  }
}

/* ===================================
   Body & Global Elements
   =================================== */

body {
  font-size: 1.6rem;
  background-color: var(--white);
  transition: background-color 0.3s ease, color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
}

/* ===================================
   Layout
   =================================== */

.container {
  width: 90.1%;
  max-width: 173rem;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .container {
    width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.main-wrapper {
  overflow: hidden;
}

/* ===================================
   Spacing Utilities - ADDED
   =================================== */

.pb-5 {
  padding-bottom: 5rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 3rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.p-3 {
  padding: 1rem;
}

/* ===================================
   Header
   =================================== */

@media (max-width: 768px) {
  .header {
    padding-top: 2.6rem;
    padding-bottom: 1rem;
  }
}

/* Header Logo */
.header__logo {
  width: 15rem;
  transition: opacity 0.3s ease;
}

@media (max-width: 576px) {
  .header__logo {
    width: 13.6rem;
  }
}

html[mode="dark"] .header__logo {
  display: none;
}

.header__logo.dark-mode {
  display: none;
}

html[mode="dark"] .header__logo.dark-mode {
  display: block;
}

/* Header Top */
.header-top {
  height: 9.4rem;
  border-bottom: 1px solid var(--dark);
  /* FIXED: Was hardcoded #000 */
  transition: border-color 0.3s ease;
}

@media (max-width: 768px) {
  .header-top {
    border-bottom: 0;
    height: auto;
  }
}

.header-top .burger-menu {
  display: none;
}

@media (max-width: 768px) {
  .header-top .burger-menu {
    display: block;
  }
}

/* Header Menu */
.header-menu {
  margin-top: 1.8rem;
  margin-bottom: 1.8rem;
}

@media (max-width: 768px) {
  .header-menu {
    display: none;
  }
}

/* ===================================
   Navigation Menu - IMPROVED
   =================================== */

.menu-nav ul {
  list-style-type: none;
  display: flex;
  gap: 3.3rem;
  /* BETTER: Using gap instead of margin */
}

.menu-nav li.active a {
  font-family: "SpaceMono-Bold";
}

.menu-nav li a {
  color: var(--dark);
  font-size: 2rem;
  font-family: "SpaceMono-Regular";
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.menu-nav li a:hover {
  color: #0071bc;
}

/* ===================================
   Utility Classes
   =================================== */

.flex-space {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================================
   Border Utilities - FIXED
   =================================== */

.border-top-1px {
  border-top: 1px solid var(--dark);
  /* FIXED: Was hardcoded #000 */
  transition: border-color 0.3s ease;
}

/* ===================================
   Typography
   =================================== */

body {
  font-family: "Helvetica-Light";
}


.section-title {
  font-family: "SpaceMono-Regular";
  color: var(--dark);
  transition: color 0.3s ease;
}

h1.section-title {
  color: var(--dark);
  font-family: "SpaceMono-Regular";
  font-size: 18rem;
  text-transform: uppercase;
  line-height: 1.51;
  height: 20.7rem;
  margin-bottom: 6rem;
  overflow: hidden;
  font-weight: normal;
  -webkit-transform: translateX(-0.5rem);
  transform: translateX(-0.5rem);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
}

.l-description {
  font-size: 1.8rem;

  line-height: 2.8rem;
  color: var(--dark);
}

.t-section-divider {
  padding-top: 2.5rem;
}

ul.section-list {
  margin-top: 2rem
}

ul.section-list li {
  padding-bottom: 1rem;
  font-size: 18px;
  margin-left: 4rem;
}

/* ===================================
   Buttons
   =================================== */

.burger-menu {
  width: 3.2rem;
  cursor: pointer;
}

.burger-menu__line {
  width: 100%;
  height: 1px;
  background-color: var(--dark);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.burger-menu__line:not(:last-child) {
  margin-bottom: 1rem;
}

.color-mode-btn {
  font-size: 2rem;
  cursor: pointer;
  font-family: "SpaceMono-Bold";
  text-transform: uppercase;
  margin-right: 2.6rem;
  transition: color 0.3s ease;
}

.color-mode-btn:hover {
  opacity: 0.8;
}

.color-mode-btn svg {
  margin-right: 1.2rem;
}

.color-mode-btn--dark {
  color: var(--dark);
}

.color-mode-btn--dark svg g {
  fill: var(--dark);
  transition: fill 0.3s ease;
}

/* ===================================
   Bootstrap Grid - ADDED RESPONSIVE
   =================================== */

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding-right: 15px;
  padding-left: 15px;
}

.col-4 {
  flex: 0 0 30%;
  max-width: 30%;
  padding-right: 15px;
  padding-left: 15px;
}

@media (max-width: 768px) {

  .col-6,
  .col-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ===================================
   Bootstrap Utilities
   =================================== */

.bg-dark {
  background-color: #212529;
}

.bg-gray {
  background-color: #c8d1da66;
}

.text-white {
  color: #fff;
}

.border {
  border: 1px solid #dee2e6;
}

.p-5 {
  padding: 5rem;
}

.p-2 {
  padding: 2rem;
}

/* ===================================
   Bootstrap Buttons
   =================================== */

.btn {
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn:hover {
  color: #212529;
}

.btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.65;
}

.btn-primary {
  color: #fff;
  background-color: #000;
  border-color: #000;
  font-size: 16px;
}

.btn-primary:hover {
  color: #fff;
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

.btn-primary:focus-visible {
  color: #fff;
  background-color: #0b5ed7;
  border-color: #0a58ca;
  box-shadow: 0 0 0 0.25rem rgba(49, 132, 253, 0.5);
}

.btn-primary:active {
  color: #fff;
  background-color: #0a58ca;
  border-color: #0a53be;
}

.btn-primary:disabled {
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
}

/* ===================================
   Print Styles
   =================================== */

@media print {

  .burger-menu,
  .color-mode-btn,
  .header-menu {
    display: none !important;
  }

  body {
    font-size: 12pt;
    background: white;
    color: black;
  }

  .container {
    width: 100%;
    max-width: none;
  }
}

.code-block {
  background-color: #c8d1da66;
  padding: 2rem;
}

label {
  font-family: "SpaceMono-Bold";
  font-size: 18px;
}

input {
  display: block;
  font-size: 100%;
  margin-bottom: 1rem;
  height: 3.3rem;
  margin-top: 1rem;
  padding: 5px;
  font-family: "SpaceMono-Bold";
  width: 50%;
}

.mb-3 {
  margin-bottom: 3rem;
}

.btn-register {
  padding: 1rem 2rem 1rem 2rem;
  text-transform: uppercase;
  font-family: 'SpaceMono-Regular';
}

.btn-register:hover {
  background-color: white;
  color: black;
  border-color: black;
}

pre {
  white-space: pre-wrap;
  /* wrap lines */
  word-break: break-word;
  /* break long strings */
}

/* Container */
#status-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
}

/* Message */
.status-message {
  background: #000;
  color: #fff;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }

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

.status-message.closing {
  animation: slideOut 0.2s ease-in forwards;
}



/* Types */
.status-message.info {
  border-left: 4px solid #0071bc;
}

.status-message.success {
  border-left: 4px solid #00a86b;
}

.status-message.error {
  border-left: 4px solid #dc3545;
}

.status-message.warning {
  border-left: 4px solid #ff9500;
}

.status-message.loading {
  border-left: 4px solid #6c757d;
}

/* Icon */
.status-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* Spinner */
.spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #6c757d;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Content */
.status-content {
  flex: 1;
  font-size: 14px;
}

/* Close button */
.status-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 24px;
  height: 24px;
}

.status-close:hover {
  color: #333;
}

/* Progress bar */
.status-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.3;
  animation: progressBar 5s linear forwards;
}

@keyframes progressBar {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}