/* styles.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Custom properties for theming */
:root {
  --background-color-light: #ffffff;
  --text-color-light: #000000;
  --background-color-dark: #2c2c2c;
  --text-color-dark: #ffffff;
  --frame-color-light: rgba(
    255,
    255,
    255,
    0.5
  ); /* 50% transparent light frame */
  --frame-color-dark: rgba(44, 44, 44, 0.5); /* 50% transparent dark frame */
}

/* Global styles */
html,
body {
  width: 100%;
  height: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll */
  font-family: "PT Sans", sans-serif;
  transition: background-color 0.5s ease-in-out;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Standard */
}

hr {
  border: none;
  height: 1px;
  background-color: #00cb33; /* Change to your preferred color */
  width: 97%; /* Change to your preferred width */
  margin: 0 auto; /* Center the line */
}

.spacer {
  height: 10px; /* Adjust as needed */
}

/* Theme-specific styles */
.light-theme {
  background-color: var(--background-color-light);
  color: var(--text-color-light);
}

.dark-theme {
  background-color: var(--background-color-dark);
  color: var(--text-color-dark);
}

.light-theme #section1 {
  background-image: url("medias/light-theme.jpg");
}

.dark-theme #section1 {
  background-image: url("medias/dark-theme.jpg");
}

.light-theme #section2,
.light-theme #section3 {
  background-color: var(--background-color-light);
  color: var(--text-color-light);
}

.dark-theme #section2,
.dark-theme #section3 {
  background-color: var(--background-color-dark);
  color: var(--text-color-dark);
}

.light-theme h2 {
  border-color: var(--frame-color-light);
}

.dark-theme h2 {
  border-color: var(--frame-color-dark);
}

#section1 {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-direction: column;
  text-align: center; /* Center text */
  opacity: 0; /* Initially set to 0 */
  filter: none; /* Initially no blur */
}

#section2,
#section3,
#section4 {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#section1 .text-container {
  max-width: 60vw;
  margin: 0 auto; /* Center the text container */
}

#section1 h1,
#section1 p,
#section1 #logo {
  opacity: 0; /* Initially set to 0 */
  transform: translateY(-20px); /* Initially set to translate upwards */
}

#logo {
  max-width: 80px; /* Adjust size as needed */
  margin: 20px 0; /* Adjust spacing as needed */
}

/* Container styles */
#section2 .container,
#section3 .container,
#section4 .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Text container styles */
#section2 .text-container,
#section3 .text-container,
#section4 .text-container {
  display: flex;
  flex-direction: column;
  max-width: 45%;
}

/* Image and text styles */
#section2 h2,
#section3 h2,
#section4 h2 {
  flex: 1;
  max-width: 95%;
}

#section2 h2,
#section2 p,
#section3 h2,
#section3 p,
#section4 h2,
#section4 p {
  margin: 10px 0;
}

#section2 img,
#section4 img {
  margin: 0 10px; /* Add horizontal margin */
  flex: 1;
  max-width: 45%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Shadow for 3D effect */
}

/* Contact section */
#section5 {
  height: 90vh;
}

#section5 .container {
  height: 90vh;
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
}

/* Menu styles */
#menu {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: block;
  padding: 10px;
  z-index: 9999; /* Ensure the menu icon is always on top */
  transition: background-color 0.5s, color 0.5s;
}

/* Remove underline from menu links */
#menu a {
  text-decoration: none; /* Remove underline from links */
}

/* Menu icon styles */
#menuIcon {
  font-size: 2em;
  cursor: pointer;
  transition: color 0.5s; /* Smooth transition for color change */
  color: inherit;
}

/* Links container styles */
#links {
  display: none;
  position: absolute;
  bottom: 60px; /* Adjusted for better separation from the icon */
  right: 0;
  background-color: rgba(
    255,
    255,
    255,
    0.8
  ); /* Slightly transparent background */
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  transition: background-color 0.5s, color 0.5s, opacity 0.5s; /* Smooth transition for theme and visibility change */
  opacity: 0; /* Initially invisible */
}

#links a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #000;
  font-weight: bold;
}

#links a:visited {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #000;
  font-weight: bold;
}

#links a:hover {
  background-color: #ddd;
}

a.email-link {
  color: inherit;
  text-decoration: none;
}

a.email-link:hover {
  text-decoration: underline;
}

#footer {
  text-align: left;
  padding: 0px 5px;
  position: relative;
  left: 0;
  bottom: 5px;
  width: 99%;
}

#footer p {
  display: flex;
  justify-content: space-between;
  margin: 5px;
  padding: 0;
  font-size: small;
}

.left {
  align-self: flex-start;
  margin-left: 10px;
}

.center {
  align-self: flex-center;
}

.right {
  align-self: flex-end;
}

/* Media query for mobile devices */
@media only screen and (max-width: 768px) {
  #section1 h2 {
    position: relative;
    z-index: 2;
    max-width: 70%;
  }

  /* Ensure there's no fixed height on the container */
  #section2,
  #section3,
  #section4 {
    height: auto; /* This ensures the section height is based on its content */
    overflow: visible; /* Ensures content is not clipped */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
  }

  #section5 {
    height: 90vh;
  }

  #section5 .container {
    height: 90vh;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
  }

  #section2 .container,
  #section3 .container,
  #section4 .container {
    flex-direction: column-reverse;
  }

  #section2 .text-container,
  #section3 .text-container,
  #section4 .text-container {
    max-width: 100%;
  }

  #section2 img,
  #section3 img,
  #section4 img {
    width: 100%;
    min-width: 450px;
    height: auto;
    max-height: 250px;
  }

  #footer {
    text-align: center;
  }

  #footer a {
    pointer-events: none;
  }

  #footer p {
    flex-direction: column;
  }

  #footer span {
    display: block;
    align-self: center;
    margin-left: 0px;
  }
}

/* Hide menu icon on wider screens */
@media only screen and (min-width: 769px) {
  #menu {
    display: none;
  }
}

/* End of styles.css */
