/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* --- Main styling --- */

header {
  z-index: 10;
  /* Ensure this is higher than other elements */
  position: relative;
  /* z-index works on positioned elements */
  background-color: #222;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 20px;
}

.hamburger {
  display: none;
}

main {
  text-align: center;
  /* Center the main content (h1 and form) */
}

/* Link Styles */
a {
  color: #db9e71;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:active {
  color: #db9e71;
}

a:visited {
  color: #db9e71;
}

body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.5;

  background-color: #222;
}

h1 {
  color: #f8f8f8;
  border-bottom: 2px solid #f8f8f8;
  /* Adds a solid black line below h1 */
  padding-bottom: 5px;
  /* Adjust as needed */
  margin-bottom: 20px;
  /* Adjust as needed */
  font-size: 32px;
  line-height: 1.2;
}

h2 {
  font-size: 24px;
  line-height: 1.3;
  color: #f8f8f8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  /* Adds a subtle white line below h2 */
  padding-bottom: 3px;
  /* Adjust as needed */
  margin-bottom: 15px;
  /* Adjust as needed */
}

p {
  color: #f8f8f8;
}

.navigation {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  float: right;
  /* Add margin for separation */
}

.navigation a {
  font-size: 18px;
  color: #db9e71;
  text-decoration: none;
  font-weight: 500;
  margin: 0 15px;
  /* Adjust spacing between navigation links */
}

/* Hover effect for the navigation links */
.navigation a:hover {
  color: #db9e71;
}

.home-sci a {
  position: relative;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid #db9e71;
  border-radius: 50%;
  font-size: 20px;
  color: #db9e71;
  text-decoration: none;
  z-index: 1;
  overflow: hidden;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;
}

.home-sci a:hover {
  color: #222;
}

.home-sci a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #db9e71;
  z-index: -1;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;
}

.home-sci a:hover::before {
  width: 100%;
}

footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  /* Center content horizontally */
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 20px;
}

.footer h1 {
  margin-bottom: 10px;
}

footer a {
  margin: 0 10px;
}

/* --- index.html --- */

.home {
  height: 50vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  justify-content: space-between;
}

.home-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px 40px;
  /* Top padding increased to 60px */
}

.home-text {
  flex: 1;
  padding-right: 20px;
  text-align: center;
  margin-right: 20px;
}

.home-text h1 {
  margin-top: 70px;
  /* Adjust the top margin as needed */
}

.home-image {
  flex: 1;
  max-width: 50%;
  text-align: center;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 20;
  margin-left: 75px;
}

.home-image img {
  width: 50%;
  /* Adjust the width as needed */
  height: auto;
  max-width: 100%;
  border-radius: 50%;
  overflow: hidden;
}

.home-content h1 {
  color: #f8f8f8;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
}

.home-content h3 {
  font-size: 32px;
  font-weight: 700;
  color: #f8f8f8;
}

.home-content p {
  font-size: 16px;
  margin: 20px 0 40px;
}

.home-content .btn-box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  text-align: center;
  width: 345px;
  height: 50px;
  margin: 0 auto;
}

.btn-box {
  margin-top: 50px;
  gap: 10%;
  text-align: center;
}

.btn-box a {
  position: relative;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: 150px;
  padding: 15px;
  height: 100%;
  margin-right: 10px;
  background: #db9e71;
  border: 2px solid #db9e71;
  border-radius: 8px;
  font-size: 19px;
  color: #222;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  z-index: 1;
  overflow: hidden;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;
}

.btn-box a:hover {
  color: #db9e71;
}

.btn-box a:nth-child(2) {
  background: transparent;
  color: #db9e71;
}

.btn-box a:nth-child(2):hover {
  color: #222;
}

.btn-box a:nth-child(2)::before {
  background: #db9e71;
}

.btn-box a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: #222;
  z-index: -1;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;
}

.btn-box a:hover::before {
  width: 100%;
}

.menu-button {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  color: #db9e71;
  font-size: 24px;
  cursor: pointer;
}

.lang-switch {
  background-color: #222;
  border: none;
  padding: 0;
  margin: 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hover effect */
.lang-switch:hover {
  background-color: #333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* --- work.html --- */

.project-main {
  text-align: center;
}

.h2pro {
  color: #222;
}

.project-section {
  max-width: 1200px;
  margin: 0 auto;
}

.project-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.project-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 300px;
  text-align: center;
}

.project-card h2 {
  margin-bottom: 10px;
}

.project-card p {
  color: #222;
  margin-bottom: 20px;
}

.project-card .btn {
  text-align: left;
  display: inline-block;
  padding: 8px 16px;
  background-color: #db9e71;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  margin: 10px auto;
}

/* --- contact.html --- */

form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

form div {
  margin-bottom: 20px;
}

form label {
  font-size: 18px;
  color: #f8f8f8;
  display: block;
  margin-bottom: 5px;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #f8f8f8;
  border-radius: 5px;
}

form textarea {
  resize: vertical;
  /* Allow vertical resizing for the textarea */
}

form button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #db9e71;
  color: #f8f8f8;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  -webkit-transition: opacity 0.3s;
  -o-transition: opacity 0.3s;
  transition: opacity 0.3s;
}

form button:hover {
  opacity: 0.8;
}


.costyle {
  max-width: 600px;
  margin: 0 auto;
  /* Center the costyle div horizontally */
  padding: 20px;
  border: 1px solid #f8f8f8;
  /* Optional: Add a border for styling */
}

.costyle p {
  font-size: 18px;
  color: #f8f8f8;
  margin-bottom: 20px;
}

.button1 {
  display: inline-block;
  padding: 10px 20px;
  background-color: #db9e71;
  color: #f8f8f8;
  border: none;
  cursor: pointer;
  -webkit-transition: opacity 0.3s;
  -o-transition: opacity 0.3s;
  transition: opacity 0.3s;
}

.button1:hover {
  opacity: 0.8;
  cursor: pointer;
}

/* --- about.html --- */

.content-container {
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 50px;
}

.day-night-cycle {
  position: relative;
  width: 275px;
  height: 425px;
  overflow: hidden;
  margin-top: 45px;
  margin-left: 60px;
}

.cycle-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-animation: rotateDayNightCycle 30s linear infinite;
  animation: rotateDayNightCycle 30s linear infinite;
  opacity: 0;
  border: 3px solid #f8f8f8;
  /* Add a white border around the images */
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  /* Make sure the border is included in the element's total size */
}

.cycle-image:nth-child(1) {
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
}

.cycle-image:nth-child(2) {
  -webkit-animation-delay: 5s;
  animation-delay: 5s;
}

.cycle-image:nth-child(3) {
  -webkit-animation-delay: 10s;
  animation-delay: 10s;
}

.cycle-image:nth-child(4) {
  -webkit-animation-delay: 15s;
  animation-delay: 15s;
}

.cycle-image:nth-child(5) {
  -webkit-animation-delay: 20s;
  animation-delay: 20s;
}

.cycle-image:nth-child(6) {
  -webkit-animation-delay: 25s;
  animation-delay: 25s;
}

@-webkit-keyframes rotateDayNightCycle {
  0% {
    opacity: 0;
  }

  16.66%,
  100% {
    opacity: 1;
  }
}

@keyframes rotateDayNightCycle {
  0% {
    opacity: 0;
  }

  16.66%,
  100% {
    opacity: 1;
  }
}

/* --- Responsive styling ---*/

@media screen and (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .home-content {
    max-width: 90%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home-content h1 {
    font-size: 36px;
    line-height: 1.2;
    display: none;
  }

  .home-content h3 {
    font-size: 24px;
  }

  .home-content p {
    font-size: 14px;
  }

  .home-text {
    margin: 0;
    /* Reset margin */
    padding: 0;
    /* Reset padding */
    margin-bottom: 20px;
    text-align: center;
    justify-content: center;
  }

  .home-image {
    width: 50%;
    text-align: center;
    position: relative;
  }

  .home-image img {
    width: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    top: -50px;
    left: 25%;
    transform: translateX(-50%);
  }

  .home {
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  .btn-box {
    margin-top: 50px;
    padding-top: 100px;
    gap: 10%;
    text-align: center;
  }

  .btn-box a {
    padding: 10px 15px;
    width: auto;
    font-size: 14px;
  }

  .hamburger {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .hamburger span {
    display: block;
    width: 25px;
    /* Width of each line */
    height: 3px;
    /* Height of each line */
    background-color: #f8f8f8;
    /* Light gray color for visibility */
    margin: 5px 0;
    /* Spacing between lines */
  }

  .navigation {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    background-color: #222;
    /* Dark gray background */

    /* Adjusted for transparency */
    width: 100%;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(0, 0, 0, 0.1);
  }

  .navigation.show {
    display: block;
    /* Additional styles for open menu */
  }

  .navigation a {
    color: #db9e71;
    /* Orange color for links */
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    /* Choose a font that fits your design */
    font-size: 16px;
    /* Adjust size as needed */
    line-height: 1.5;
    /* Good for readability */
    display: block;
    margin: 5px 0;
    /* Inherits color from parent .navigation */
  }

  .navigation a:hover,
  .navigation a:active {
    background-color: rgba(219, 158, 113, 0.3);
    /* Slightly transparent version of #db9e71 */
    color: #f8f8f8;
    /* Light gray for contrast */
  }

  .day-night-cycle {
    display: none;
  }

  #typing-text {
    color: #f8f8f8;
    overflow: hidden;
    white-space: nowrap;
    border-right: .15em solid orange;
    width: 0;
    margin: 0;
    animation: typing 3s steps(30, end);
  }

  @keyframes typing {
    from {
      width: 0;
    }
  }
}