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

@font-face {
    font-family: Roboto;
    src: url(files/Roboto/Roboto-Light.ttf) format("woff2");
}
@font-face {
    font-family: Robold;
    src: url(files/Roboto/Roboto-Bold.ttf) format("woff2");
}
@font-face {
    font-family: RobotoMedium;
    src: url(files/Roboto/Roboto-Medium.ttf) format("woff2");
}

body {
  font-family: RobotoMedium;
}

/* Header styles */
header {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: 0.3s;
  border-bottom: 1px solid #333;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.logo {
  display: flex;
  align-items: center;
  margin-left: 20px;
  transition: 0.3s;
}

.logo img {
  height: 60px;
  width: auto;
  margin-right: 10px;
  transition: 0.3s;
  background-color: #fff;
  border-radius: 25%;
}

.logo span {
  font-weight: bold;
  font-size: 24px;
  margin-left: 10px;
  transition: 0.3s;
}

.title {
  font-size: 24px;
  font-weight: bold;
  transition: 0.3s;
}

/* Title section styles */
#title-section {
  height: 100vh;
  overflow: hidden;
  position: relative;
  background-color: #eee;
}

.parallax {
  position: relative;
  height: 100%;
  perspective: 1px;
  overflow-x: hidden;
  overflow-y: hidden;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  transform: translateZ(-1px) scale(2);
}

.desktop-image,
.mobile-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(-1px) scale(2);
}

.title-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  backdrop-filter: blur(2px);
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  padding: 10px;
}

.title-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.title-content p {
  font-size: 24px;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

/* Mobile-specific styles */
@media screen and (max-width: 768px) {
  .title-content {
    top: 15%; /* Adjust the value as needed */
    transform: translateX(-50%);
    width: 80vw;
  }

  .title-content h1 {
    font-size: 32px; /* Adjust the font size for mobile */
    margin-bottom: 10px; /* Adjust the margin as needed */
  }

  .title-content p {
    font-size: 16px; /* Adjust the font size for mobile */
    margin-top: 10px; /* Adjust the margin as needed */
  }
}

/* Desktop-specific styles */
@media screen and (min-width: 769px) {
  .title-content {
    top: 50%;
    left: 50%;
    transform: translateY(-50%);
    text-align: left;
    max-width: 50%; /* Adjust the width as needed */
    margin-right: 5%;
  }

  .title-content h1 {
    font-size: 48px; /* Adjust the font size for desktop */
    margin-bottom: 20px; /* Adjust the margin as needed */
  }

  .title-content p {
    font-size: 24px; /* Adjust the font size for desktop */
    margin-top: 10px; /* Adjust the margin as needed */
  }
}

/* Projects section styles */
#projects-section {
  padding: 40px;
  font-family: Roboto;
}

#projects-section h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 20px;
}

#projects-section ul {
  list-style-type: none;
}

#projects-section li {
  font-size: 24px;
  margin-bottom: 10px;
}

#projects-section li a {
  color: #000;
  text-decoration: none;
}

/* Collapsed header styles */
.collapsed {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: 0.3s;
}

.collapsed nav {
  padding: 10px 0px;
  transition: 0.3s;
}

.collapsed .logo {
  transition: 0.3s;
}

.collapsed .logo img {
  height: 30px;
  transition: 0.3s;
}

.collapsed .logo span {
  font-size: 18px;
  transition: 0.3s;
}

/* Media queries */
@media screen and (max-width: 768px) {
  .desktop-image {
    display: none;
  }
}

@media screen and (min-width: 769px) {
  .mobile-image {
    display: none;
  }
}

#projects-section {
  padding: 40px;
  text-align: center;
}

.project-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.project-card {
  width: 300px;
  margin: 20px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: 0.3s;
}
.project-card:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  transition: 0.3s;
}

.project-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-details {
  padding: 20px;
}

.project-title {
  font-size: 24px;
  margin-bottom: 10px;
}

.project-description {
  font-size: 16px;
  color: #555;
}



@media (prefers-color-scheme: dark) {
  body {
    background-color: #222;
    color: #fff;
  }
  
  header {
    background-color: #222;
  }
  
  .title {
    color: #fff;
  }
  
  #projects-section {
    background-color: #333;
  }
  
  #projects-section li a {
    color: #fff;
  }

  .project-title {
    color: #000;
  }
}

@media (prefers-color-scheme: light) {
  body {
    background-color: #fff;
    color: #222;
  }
  
  header {
    background-color: #fff;
  }
  
  .title {
    color: #222;
  }
  
  #projects-section {
    background-color: #eee;
  }
  
  #projects-section li a {
    color: #000;
  }
}
