/* Imports */
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap");

/* Global Variables */
:root {
  --primary-color: red; /* Red */
  --secondary-color: #ffffff; /* White */
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: black;
  --border-radius: 5px;
  --font-family: "JetBrains Mono", monospace;
}

/* General Styles --------------------------------------------------------------------------------------------------------- */
html,
body {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  background-color: var(--light-color);
  color: var(--dark-color);
  scroll-behavior: smooth;
  scroll-snap-type: y;
}

/* Text Formatting Styles */
b {
  font-weight: bold;
}

i {
  font-style: italic;
  color: var(--secondary-color);
}

u {
  text-decoration: underline;
}

s {
  text-decoration: line-through;
  color: var(--secondary-color);
}

mark {
  background-color: var(--warning-color);
}

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

a:hover {
  color: var(--secondary-color);
}

button {
  color: white;
  background: var(--primary-color);
  padding: 10px 15px;
  font-size: 16px;
  border-radius: var(--border-radius);
  border: none;
  margin: 10px 0;
  cursor: pointer;
}

button:hover {
  background-color: var(--secondary-color);
}

/* Code and Preformatted Text Styles */
code {
  background-color: var(--light-color);
  padding: 10px;
  border-radius: var(--border-radius);
  font-family: "Courier New", Courier, monospace;
}

pre {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 15px;
  font-family: "Courier New", Courier, monospace;
  overflow: auto;
}

/* Small Text Styles */
small {
  font-size: 0.8em;
  color: var(--secondary-color);
}

/* Subscript and Superscript Styles */
sub {
  font-size: 0.8em;
}

sup {
  font-size: 0.8em;
}

/* Abbreviation Styles */
abbr {
  border-bottom: 1px dotted;
  cursor: help;
}

/* Time Element Styles */
time {
  font-style: italic;
  color: var(--secondary-color);
}

/* Progress Element Styles */
progress {
  width: 100%;
  height: 20px;
  accent-color: var(--primary-color);
}

/* Fieldset and Legend Styles */
fieldset {
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius);
  padding: 15px;
  background: var(--light-color);
}

legend {
  font-weight: bold;
  color: var(--primary-color);
}

/* Horizontal Rule Styles */
hr {
  border: 0;
  height: 1px;
  background: var(--primary-color);
  margin: 20px 0;
}

/* Canvas Styles */
canvas {
  max-width: 100%;
  border: 1px solid var(--secondary-color);
  border-radius: var(--border-radius);
}

/* Image Styles */
img {
  max-width: 100%;
}

/* Iframe Styles */
iframe {
  width: 100%;
  border: none;
  border-radius: var(--border-radius);
}

/* Video Styles */
video {
  max-width: 100%;
  border-radius: var(--border-radius);
}

/* Audio Styles */
audio {
  width: 100%;
}

/* Keyboard Input Styles */
kbd {
  font-family: "Courier New", Courier, monospace;
  background-color: var(--light-color);
  padding: 2px 4px;
  border-radius: var(--border-radius);
}

/* Variable Styles */
var {
  font-style: italic;
}

/* Address Styles */
address {
  font-style: italic;
  color: var(--secondary-color);
}

/* Blockquote Styles */
blockquote {
  background: var(--light-color);
  border-left: 5px solid var(--primary-color);
  padding: 10px 20px;
  margin: 20px 0;
  font-style: italic;
  font-size: 1.1em;
}

/* List Styles */
ul {
  padding-left: 20px;
}

li {
  margin: 5px 0;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th,
td {
  border: 1px solid var(--secondary-color);
  padding: 10px;
  text-align: left;
}

th {
  background-color: var(--primary-color);
  color: white;
}

/* Details and Summary Styles */
details {
  margin: 20px 0px;
  background: var(--light-color);
  border-radius: var(--border-radius);
  padding: 10px;
  padding-left: 15px;
}

details summary {
  color: var(--primary-color);
}

details summary::before {
  content: "";
  padding: 2px;
}

summary {
  font-weight: bold;
  cursor: pointer;
}

/* Header Styles */
header {
  background: var(--primary-color);
  color: #ffffff;
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
  scroll-margin-top: 100px;
  position: sticky;
  top: 0;
  opacity: 0.99;
}

header h1 {
  margin: 0;
  font-size: 3.5em;
}

/* Main Content Styles */
main {
  padding: 20px;
  background: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Section Styles */
section {
  margin: 20px 0;
  padding: 15px;
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  scroll-snap-align: start;
  scroll-margin-top: 100px;
}

section h2,
section h3 {
  font-size: 2em;
  color: var(--primary-color);
}

/* Footer Styles */
footer {
  text-align: center;
  padding: 10px 0px;
  background: var(--primary-color);
  color: #ffffff;
  position: sticky;
  bottom: 0;
  width: 100%;
}

footer a {
  color: #ffffff;
}

/* Navigation Styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: var(--primary-color);
}

.navbar .logo {
  font-size: 1.5em;
  color: #ffffff;
}

.navbar .menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.navbar .menu li {
  margin: 0 15px;
}

.navbar .menu a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
}

.navbar .menu a:hover {
  text-decoration: underline;
}

.navbar .menu-toggle {
  display: none;
  font-size: 1.5em;
  color: #ffffff;
  cursor: pointer;
}

/* Mobile Media Query */
@media (max-width: 768px) {
  .navbar .logo {
    font-size: 1.5em;
    margin-right: 10px;
  }

  .navbar .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    background-color: var(--primary-color);
    padding: 20px 0;
  }

  .navbar .menu.active {
    display: flex;
  }

  .navbar .menu li {
    margin: 10px 0;
    text-align: center;
  }

  .navbar .menu-toggle {
    display: block;
    font-size: 1.5em;
    color: #ffffff;
    cursor: pointer;
  }
}

/* Contact Section */
#contact {
  padding: 20px;
  border-radius: 8px;
}

#contact h3 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 20px;
  color: #333;
}

#contact form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#contact form label {
  font-size: 1.1em;
  color: #333;
  margin-bottom: 8px;
  width: 100%;
}

#contact form input,
#contact form textarea {
  padding: 12px;
  margin-bottom: 15px;
  width: 80%;
  max-width: 600px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1.1em;
}

#contact form textarea {
  resize: vertical;
}

#contact form button {
  padding: 12px 25px;
  border: none;
  color: white;
  width: 100%;
  max-width: 625px;
  font-size: 1.1em;
  border-radius: 5px;
  cursor: pointer;
  background-color: var(--primary-color);
  transition: background-color 0.3s ease;
}

#contact form button:hover {
  background-color: #ff5722;
}

/* Card Styles */
.project {
  padding: 15px;
  margin: 20px 0;
  border: 1px solid red;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.project h4 {
  font-size: 1.5em;
  color: var(--primary-color);
}

.project a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: bold;
}

.project a:hover {
  text-decoration: underline;
}

/* Button Styles */
.btn {
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #b31b00;
  }
