/*
SPACING SYSTEM (for padding) (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128

FONT SIZE SYSTEM (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98
*/

/*
- font weights:
Default: 400
Medium: 500
Semi-bold: 600
Bold: 700

- line heights: 
1.05

- letter spacing:
-0.5px
0.75px

SHADOWS

BUTTONS:
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);

HEADER:
box-shadow: 0px 2px 4px -1px rgba(0,0,0,0.2),
            0px 4px 5px 0px rgba(0,0,0,0.14),
            0px 1px 10px 0px rgba(0,0,0,0.12);

IT SKILLS/EDUCATION LOGOS:
box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);

PROJECT/CHANNEL BOXES: 
  box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
    0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);

FITFRESH PREVIEW: 
box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
    0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);

BORDER-RADIUS

Small Elements (buttons, links, focus states): 6px
Medium Containers (boxes, cards, project containers): 8px  
Circular Elements (profile photos, logos, channel images): 50%

DESIGN SYSTEM:
- 6px: Interactive elements (buttons, navbar links, focus states)
- 8px: Container elements (project boxes, channel containers, IT skills boxes)
- 50%: Circular elements (profile photos, education logos, YouTube channel images)

*/

:root {
  /* Text Colors - WCAG AA Compliant */
  --text-primary: #212529; /* Main text - 16.1:1 contrast ratio on white */
  --text-secondary: #6c757d; /* Secondary text - 4.5:1 contrast ratio on white */
  --text-muted: #868e96; /* Muted text - 4.3:1 contrast ratio on white */
  --text-light: #ffffff; /* Light text on dark backgrounds */

  /* Brand Colors */
  --primary-blue: #1d2a5d;
  --primary-blue-dark: #141d41;
  --primary-blue-light: #dce1f4;
  --accent-red: #ed1c24;
  --accent-red-dark: #c1161e;

  /* Background Colors */
  --bg-dark: #212529;
  --bg-medium: #343a40;
}

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

/* Force light mode - prevent browser dark mode */
:root {
  color-scheme: light only;
}

html {
  color-scheme: light only;
}

/* Prevent any system dark mode from affecting elements */
* {
  color-scheme: light only;
}

/* Override any potential system dark mode styles */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light only !important;
  }

  html,
  body,
  * {
    color-scheme: light only !important;
  }
}

*:focus {
  outline: none;
  box-shadow: 0 0 0 0.3rem rgba(29, 42, 93, 0.4),
    0 0 0 0.6rem rgba(220, 225, 244, 0.6);
  border-radius: 6px;
  transition: box-shadow 0.2s ease;
}

*:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

a {
  text-decoration: none;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Roboto Slab", serif;
}

br {
  content: "";
  margin: 2.4rem;
  display: block;
}

/* REUSABLE STYLES */

.container {
  max-width: 120rem;
  margin: 0 auto;
}

html {
  /* 10px / 16px = 0.625 */
  font-size: 62.5%;
  scroll-behavior: smooth;
  /* Percentage of user's browser font-size setting */
}

/* FLEXBOX LAYOUTS */

.flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6.4rem;
  justify-content: center;
  align-items: stretch;
}

.flex-container--2-cols {
  justify-content: space-between;
}

.flex-container--2-cols > * {
  flex: 0 1 calc(50% - 3.2rem);
  min-width: 0;
}

.flex-container--3-cols {
  justify-content: space-between;
}

.flex-container--3-cols > * {
  flex: 0 1 calc(33.333% - 4.27rem);
  min-width: 0;
}

.flex-container--4-cols {
  justify-content: space-between;
}

.flex-container--4-cols > * {
  flex: 0 1 calc(25% - 4.8rem);
  min-width: 0;
}

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

/* Legacy grid classes for backward compatibility */
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6.4rem;
  justify-content: center;
  align-items: stretch;
}

.grid--2-cols {
  justify-content: space-between;
}

.grid--2-cols > * {
  flex: 0 1 calc(50% - 3.2rem);
  min-width: 0;
}

.grid--3-cols {
  justify-content: space-between;
}

.grid--3-cols > * {
  flex: 0 1 calc(33.333% - 4.27rem);
  min-width: 0;
}

.grid--4-cols {
  justify-content: space-between;
}

.grid--4-cols > * {
  flex: 0 1 calc(25% - 4.8rem);
  min-width: 0;
}

/* HEADINGS */

.heading-primary,
.heading-secondary,
.heading-tertiary,
.heading-project {
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.heading-primary {
  display: flex;
  justify-content: center;
  font-size: 4.4rem;
  line-height: 1.05;
  margin-bottom: 3.2rem;
  margin-top: 3.2rem;
}

.heading-secondary {
  display: flex;
  justify-content: center;
  font-size: 4.4rem;
  line-height: 1.2;
  margin-bottom: 9.6rem;
}

.heading-tertiary {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 3.2rem;
  text-align: center;
}

.heading-project {
  display: flex;
  justify-content: center;
  font-size: 3.2rem;
  line-height: 1.2;
  margin-bottom: 3.2rem;
}

/* ICONS */

.icon {
  fill: var(--primary-blue);
  height: 4.5rem;
  width: 4.5rem;
}

/* GENERAL BUTTONS */

.btn,
.btn:link,
.btn:visited {
  color: var(--text-light);
  display: inline-block;
  background-color: var(--primary-blue);
  text-decoration: none;
  font-size: 2rem;
  font-weight: 600;
  padding: 1.6rem 3.2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn--full:link,
.btn--full:visited {
  background-color: var(--primary-blue);
  color: var(--text-light);
}

.btn--full:hover,
.btn--full:active {
  background-color: var(--primary-blue-dark);
}

/* LISTS */

.list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.list-item {
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  line-height: 1.2;
}

/* BACK TO TOP BUTTON */

#myBtn {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 3rem;
  z-index: 99;
  border: none;
  outline: none;
  background-color: var(--primary-blue);
  color: var(--text-light);
  cursor: pointer;
  padding: 1.6rem;
  border-radius: 6px;
  font-size: 1.8rem;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

#myBtn:hover {
  background-color: var(--primary-blue-dark);
  transition: all 0.3s;
}

.mybtn-up-arrow {
  fill: var(--text-light);
  stroke: #fff;
}
