/* Root Variables */
:root {
  --big-margin: 5ch;
  --small-margin: 2ch;
  --scrollbar-width: 5px;
  --scroll-fade-scale: 0;
}

/* General Styles */
body {
  font-family: 'Roboto', sans-serif;
  background: #ffffff;
  color: #333;
  margin: 0;
  padding: var(--big-margin);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

h1,
h2,
h3 {
  font-size: 2rem;
  text-transform: none;
}

p,
pre,
ol,
ul {
  font-family: 'Courier New', monospace;
}

ul {
  list-style: none;
  padding: 0;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Navigation */
ul.navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin-bottom: var(--big-margin);
}

ul.navigation li {
  list-style: none;
  margin: 0 -3px;
}

ul.navigation li:first-child {
  font-weight: bold;
}

ul.navigation li a {
  font-family: 'monospace', sans-serif;
  color: #000;
  text-decoration: none;
  font-size: 1.2rem;
  position: relative;
  padding: 5px 10px;
  display: inline-block;
  transition: color 0.3s ease, transform 0.3s ease;
}

ul.navigation li a:hover {
  color: #1e90ff;
  transform: scale(1.1);
}

ul.navigation li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #1e90ff;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

ul.navigation li a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Breadcrumbs Navigation */
ul.navigation.breadcrumbs {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

ul.navigation.breadcrumbs li {
  font-family: monospace;
  font-size: 1.2rem;
  color: #000;
  margin-right: 10px;
}

ul.navigation.breadcrumbs li a {
  color: #000;
  text-decoration: none;
  font-weight: normal;
  transition: color 0.3s ease;
}

ul.navigation.breadcrumbs li span {
  font-weight: bolder;
}

ul.navigation.breadcrumbs li a:hover {
  color: #1e90ff;
}

ul.navigation.breadcrumbs li:not(:last-child)::after {
  content: '/ ';
}

ul.navigation.breadcrumbs li:last-child {
  margin-right: 0;
}

ul.navigation.breadcrumbs li:last-child::after {
  content: '';
}

/* Breadcrumbs Navigation */
ul.navigation.breadcrumbs {
  display: flex;
  justify-content: flex-start;
  padding: 10px 0;
}

ul.navigation.breadcrumbs li {
  font-family: monospace;
  font-size: 1.2rem;
  color: #000;
  margin-right: 10px;
}

ul.navigation.breadcrumbs li a {
  color: #000;
  text-decoration: none;
  font-weight: normal;
  transition: color 0.3s ease;
}

/* Highlight the current page */
ul.navigation.breadcrumbs li span {
  font-weight: bold;
  color: #0000ff;
}

ul.navigation.breadcrumbs li a:hover {
  color: #1e2dff;
}

ul.navigation.breadcrumbs li:not(:last-child)::after {
  content: '/ ';
}

ul.navigation.breadcrumbs li:last-child {
  margin-right: 0;
}

ul.navigation.breadcrumbs li:last-child::after {
  content: '';
}

/* Footer Navigation */
ul.navigation.footer {
  margin-top: calc(var(--big-margin) - var(--small-margin));
  margin-bottom: 0;
  text-align: center;
  padding: 0;
  background: white;
  color: #ccc;
  display: flex;
  justify-content: center;
}

ul.navigation.footer li {
  font-weight: normal;
  margin: 0 10px;
}

ul.navigation.footer a {
  color: inherit;
}

ul.navigation.footer a:hover {
  color: #000000;
}

/* Default About Section */
.about-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--big-margin);
  flex-wrap: wrap;
}

.about-image {
  flex: 1 1 30%;
  max-width: 200px;
  margin-right: var(--small-margin);
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.about-text {
  flex: 2 1 60%;
  max-width: 800px;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

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

/* Mobile adjustments */
@media screen and (max-width: 768px) {
  .about-section {
    flex-direction: column; /* Stack image and text vertically */
    padding: 10px;
  }

  .about-image {
    flex: 1 1 100%;
    max-width: 100%;
    margin-right: 0;
  }

  .about-text {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .about-text p {
    font-size: 1rem; /* Smaller text size on mobile */
    line-height: 1.4;
  }

  .about-text strong {
    font-size: 1.1rem;
  }

  /* Adjust the breadcrumbs navigation for smaller screens */
  ul.navigation.breadcrumbs {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  ul.navigation.breadcrumbs li {
    font-size: 1rem;
    margin: 5px 0;
  }

  /* Adjust footer navigation for mobile */
  ul.navigation.footer {
    flex-direction: column;
    text-align: left;
  }

  ul.navigation.footer li {
    margin: 10px 0;
  }
}

/* Contact Section */
.contact-section {
  padding: var(--big-margin);
  text-align: center;
}

.contact-section ul {
  list-style: none;
  padding: 0;
}

.contact-section ul li {
  margin: 10px 0;
}

.contact-section ul li a {
  color: #000;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.contact-section ul li a:hover {
  color: #ff1493;
}

/* General Form Styling */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

form .form-control,
form .btn {
  width: 100%;
}

form .mb-3 {
  width: 40vw;
}

h1 {
  text-align: center;
}

/* Button */
.d-grid .btn {
  width: auto;
}

/* Portfolio */
.portfolio-item {
  position: relative;
  margin: 10px;
}

.portfolio-title {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: black;
  font-size: 18px;
  display: none;
}

.portfolio-item:hover .portfolio-title {
  display: block;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 2vh;
  height: 2vh;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.25);
  mix-blend-mode: difference !important;
  backdrop-filter: invert(1);
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out, background 0.2s ease-out;
  z-index: 1000;
}

body.custom-cursor-page .custom-cursor {
  width: 40px; /* Increase size */
  height: 40px; /* Increase size */
  transition: transform 0.1s ease, width 0.3s, height 0.3s;
}

/* Cursor Label */
.custom-cursor-label {
  position: fixed;
  background-color: #fff;
  border: 1px solid #000;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 1rem;
  display: none;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  transform: translate(-50%, -50%);
}

/* On Hover, make Cursor Label visible */
.custom-cursor:hover + .custom-cursor-label {
  display: block;
}

/* Page-specific style */
body.custom-cursor-page .custom-cursor-label {
  font-size: 1.2rem;
}

/* Links Hover Effect */
a:hover ~ .custom-cursor {
  transform: scale(1.5);
}

* {
  cursor: none;
}

a:hover {
  cursor: none;
}

/* Responsive Design */
@media (max-width: 1000px) {
  h1,
  p {
    font-size: 1.5rem;
  }
}

@media (max-width: 750px) {
  .portfolio-item {
    width: 100%;
  }
}
