/* Font */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* CSS Variables */
:root {
  --brand-color: #e5c100;
  --abi-color: #f26d1f;
  --mvr-color: #f6de41;
  --pegasus-color: #9b3831;
  --tourhunter-color: #5095e8;

  /* Light theme variables (default) */
  --bg-color: #f5f5f7;
  --text-color: #333333;
  --link-color: #404040;
  --header-gradient-start: var(--brand-color);
  --header-gradient-end: #f5f5f7;
  --card-bg: #fff;
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #171717;
    --text-color: #e9e9e9;
    --link-color: #e9e9e9;
    --link-hover-color: #242424;
    --header-gradient-start: #777;
    --header-gradient-end: #171717;
    --card-bg: #101010;
  }
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  margin: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.5;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin: 0;
}

h3 {
  font-size: 1.75rem;
  font-weight: normal;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

.display-1 {
  font-size: 5rem;
  font-weight: 300;
  line-height: 1.2;
}

.fw-bold {
  font-weight: 700 !important;
}

.fw-semibold {
  font-weight: 600 !important;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-italic {
  font-style: italic;
}

.text-bold {
  font-weight: bold;
}

.font-weight-bold {
  font-weight: 700 !important;
}

.text-secondary {
  color: #6c757d;
}

.small {
  font-size: 0.75rem;
  font-weight: 400;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

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

.mb-5 {
  margin-bottom: 3rem !important;
}

.ms-3 {
  margin-left: 1rem !important;
}

.p-0 {
  padding: 0 !important;
}

.p-3 {
  padding: 1rem !important;
}

.px-4 {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.pr-4 {
  padding-right: 1.5rem !important;
}

/* Links */
a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: none;
  background-color: var(--brand-color);
  color: var(--link-hover-color, var(--link-color));
}

a.no-hover:hover {
  background-color: transparent !important;
  color: var(--link-color);
}

/* Layout */
.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

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

.col {
  flex-basis: 0;
  flex-grow: 1;
  max-width: 100%;
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

.col-sm-6,
.col-md-6 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 576px) {
  .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.col-md-12 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 768px) {
  .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.wrapper {
  display: grid;
  grid-template-columns: minmax(auto, 500px);
  justify-content: center;
  margin: 10px;
}

.hero {
  margin-bottom: 16px;
}

/* Header */
.header {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  justify-content: space-between;
  padding-bottom: 50px;
  background: linear-gradient(
    to bottom,
    var(--header-gradient-start),
    var(--header-gradient-end)
  );
}

.header > h1,
.header > h3 {
  margin: 50px 0;
}

.header h3 a,
.header h1 a,
.header h3 a:hover,
.header h1 a:hover {
  text-decoration: none;
  color: var(--text-color);
}

.header h3.rounded-pill {
  border-top-right-radius: 50rem !important;
  border-bottom-right-radius: 50rem !important;
  border-top-left-radius: 50rem !important;
  border-bottom-left-radius: 50rem !important;
}

.header h2 {
  margin-top: 0;
}

.header button {
  width: 36px;
  height: 36px;
  padding: 10px;
  color: #e9e9e9;
  text-align: center;
  background-color: #303030;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 1px 8px #cdcdcd;
  outline: none;
}

.header button:hover {
  cursor: pointer;
}

/* Cards */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.25rem;
}

.card-body {
  flex: 1 1 auto;
  min-height: 1px;
  padding: 1.25rem;
}

.card-img-top {
  width: 100%;
  border-top-left-radius: calc(0.25rem - 1px);
  border-top-right-radius: calc(0.25rem - 1px);
}

.card-title {
  margin-bottom: 0.75rem;
  font-weight: bold;
}

.card-desc {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.bg-transparent {
  background-color: transparent !important;
}

.border-0 {
  border: 0 !important;
}

/* Project-specific styles */
.brand-color {
  color: var(--brand-color) !important;
}

.brand-bg {
  background-color: var(--brand-color) !important;
}

.card.abi-bg a:hover,
.card.abi-bg a:focus {
  background-color: var(--abi-color) !important;
  color: #fff;
  text-decoration: none;
}

.card.pegasus-bg a:hover,
.card.pegasus-bg a:focus {
  background-color: var(--pegasus-color) !important;
  color: #fff;
  text-decoration: none;
}

.card.tourhunter-bg a:hover,
.card.tourhunter-bg a:focus {
  background-color: var(--tourhunter-color) !important;
  color: #fff;
  text-decoration: none;
}

.card.mvr-bg a:hover,
.card.mvr-bg a:focus {
  background-color: var(--mvr-color) !important;
  color: #333;
  text-decoration: none;
}

/* Sections */
.work,
.certifications {
  margin-bottom: 150px;
}

.work > h3,
.certifications > h3,
.contacts > h3 {
  font-weight: 700;
}

.work-item {
  margin: 48px 0;
}

.work-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
  text-align: center;
}

.work-header span {
  font-weight: 300;
  margin-left: 16px;
}

.work-item p {
  margin: 0;
}

.side-projects {
  margin-bottom: 250px;
}

.contacts {
  margin-bottom: 50px;
}

.contacts a {
  margin-right: 8px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  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-lg {
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  line-height: 1.5;
  border-radius: 0.3rem;
}

.btn-danger {
  color: #fff;
  background-color: #dc3545;
  border-color: #dc3545;
}

.btn-danger:hover {
  color: #fff;
  background-color: #c82333;
  border-color: #bd2130;
}

/* Images */
.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Utilities */
.rounded {
  border-radius: 0.25rem !important;
}

.bg-dark {
  background-color: #343a40 !important;
  color: #fff;
}

/* Navigation */
.nav-tabs {
  border-bottom: none;
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
}

.nav-link.active {
  background-color: var(--card-bg);
  color: var(--text-color) !important;
}

.tab-content {
  padding: 16px;
  background-color: var(--card-bg);
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
  .display-1 {
    font-size: 3.5rem;
  }

  .wrapper {
    grid-template-columns: 1fr;
  }
}
