* {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}
body {
  background-color: #BFC3BA;
  color: #333;
  line-height: 1.6;
}
/* Header */
#header {
  width: 100%;
  height: 100vh;
  background-image: url(images/landscape_back.jpeg);
  background-size: cover;
  background-position: center;
}
.container{
  padding: 10px 10%;
}
nav{
  display: flex; 
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.logo {
  width: 200px;
  font-size: 20px;
}
/* Navigation Bar */
nav ul li {
  display: inline-block; /* Keeps the list items in a single line */
  list-style: none;
  margin: 10px 20px;
}
nav ul li a {
  color: #333;
  text-decoration: none;
  font-size: 18px;
  position: relative;
}
nav ul li a::after { /* Underline effect */
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #333;
  bottom: -5px; /* Position the line below the text */
  left: 0;
  transition: width 0.3s ease; /* Smooth transition for the underline */
}
nav ul li a:hover::after {
  width: 100%; /* Expand the underline to full width on hover */
}
.header-text{
  display: inline-block;
  padding: 20px;
  background-color: #afcfe6;
  border-radius: 20px;
  margin-top: 20%;
  font-size: 30px;
}
.header-text h1 {
  font-size: 50px;
  margin-top: 20px;
}
/* About Section */
#about {
  padding: 50px 0;
}
.row {
  display: flex; /* Use flexbox to display side by side */
  justify-content: space-between;
  flex-wrap: wrap;
}
.about-col-1 {
  flex-basis: 35%; /* Set the width of the first column */
}
.about-col-1 img {
  width: 100%; /* Make the image responsive */
  border-radius: 20px; /* Add some border radius for aesthetics */
}
.about-col-2 {
  flex-basis: 60%; /* Set the width of the second column */
}
.sub-title {
  font-size: 60px;
  font-weight: 600;
}
/* Tabs */
.tab-titles {
  display: flex;
  margin: 20px 0 40px 0; 
}
.tab-links {
  margin-right: 50px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer; /* Change cursor to pointer for clickable links */
  position: relative;
}
.tab-links::after { /* Underline effect for tabs */
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #af404f; /* Color for the underline */
  bottom: -5px; /* Position the line below the text */
  left: 0;
  transition: 0.3s; /* Smooth transition for the underline */
}
.tab-links.active-link::after { /* Active link underline effect */
  width: 50%;
}
.tab-contents ul li {
  list-style: none; /* Remove bullet points */
  margin: 10px 0; /* Add some space between list items */
}
.tab-contents ul li span {
  color: #af404f; /* Color for the list items */
  font-size: 18px; /* Font size for the list items */
}
.tab-contents {
  display: none; /* Hide all tab contents by default */
}
.tab-contents.active-tab {
  display: block; /* Show the active tab content */
}
/* Projects */
#projects {
  padding: 50px 0;
}
.projects-list {
  display: flex; /* Use flexbox to display projects side by side */
  gap: 40px;
  margin-top: 50px; 
  min-width: 250px; /* Minimum width for responsiveness */
}
.projects-list div {
  background: #afcfe6; /* Background color for project cards */
  padding: 20px;
  font-size: 18px; /* Font size for project descriptions */
  font-weight: 500; /* Font weight for project descriptions */
  border-radius: 20px; /* Rounded corners for project cards */
  flex: 1; /* Allow cards to grow and shrink equally */
  transition: background-color 0.3s, transform 0.3s; /* Smooth transition for background and transform */ 
}
.projects-list div:hover {
  background-color: #af404f; /* Change background color on hover */
  transform: translateY(-10px); /* Move the link up on hover */
  color: white; /* Change text color on hover */
  text-decoration: underline; /* Underline effect on hover */
}
.projects-list div:hover a {
  color: white; /* Change link color on hover */
}
.projects-list div h2 {
  font-size: 24px; /* Font size for project titles */
  margin-bottom: 10px; /* Space below project titles */
}
.projects-list div a {
  text-decoration: none; /* Remove underline from links */
  color: #333; /* Default link color */
  font-weight: 600; /* Bold project links */
  margin-top: 10px; /* Space above project links */
  display: inline-block; /* Make the link a block element */
}
/* Hobbies */
#hobbies {
  padding: 50px 0;
}
.hobbies-list {
  display: flex; /* Use flexbox to display hobbies side by side */
  gap: 40px;
  margin-top: 50px;
  min-width: 250px; /* Minimum width for responsiveness */
  flex-wrap: wrap; /* Allow wrapping of hobby cards */
  justify-content: center; /* Center the hobby cards */
}
.piano {
  border-radius: 20px; /* Rounded corners for hobby cards */
  position: relative; /* Position relative for absolute positioning of images */
  overflow: hidden; /* Hide overflow for rounded corners */
}
.piano img {
  width: 100%; /* Make images responsive */
  border-radius: 20px; /* Rounded corners for images */
  display: block; /* Make images block elements */
  transition: transform 0.3s ease; /* Smooth transition for image scaling */
}
.layer {
  width: 100%; /* Full width for the overlay */
  height: 0; /* Full height for the overlay */
  background: linear-gradient(rgba(0, 0, 0, 0.5), #af404f); /* Semi-transparent overlay */
  border-radius: 20px; /* Rounded corners for the overlay */
  position: absolute; /* Position absolute for overlay */
  left: 0; /* Align to the left */
  bottom: 0; /* Align to the bottom */
  overflow: hidden; /* Hide overflow for rounded corners */
  color: white; /* Text color for the overlay */
  display: flex; /* Use flexbox for centering content */
  flex-direction: column; /* Stack content vertically */
  align-items: center; /* Center content horizontally */
  justify-content: center; /* Center content vertically */
  text-align: center; /* Center text */
  font-size: 18px; /* Font size for overlay text */
  transition: height 0.3s ease; /* Smooth transition for overlay height */
}
.layer h3 {
  font-weight: 600; /* Bold hobby titles */
  font-size: 24px; /* Font size for hobby titles */
  margin-bottom: 10px; /* Space below hobby titles */
}
.layer a {
  margin-top: 10px; /* Space above links */
  color: white; /* Link color in the overlay */
  text-decoration: none; /* Remove underline from links */
  font-size: 18px; /* Font size for links */
  line-height: 1.5; /* Line height for links */
  background: #af404f; /* Background color for links */
  width: 100px; /* Fixed width for links */
  height: 30px; /* Fixed height for links */
  border-radius: 20px; /* Rounded corners for links */
  text-align: center; /* Center text in links */
}
.piano:hover img{
  transform: scale(1.05); /* Slightly enlarge the image on hover */
  transition: transform 0.3s ease; /* Smooth transition for the image */
}
.piano:hover .layer {
  height: 100%; /* Expand the overlay to full height on hover */
  transition: height 0.3s ease; /* Smooth transition for the overlay */
}
.btn {
  background-color: #f0f0f0; /* Transparent background for the button */
  display: block; /* Make the button a block element */
  margin: 50px auto; /* Center the button */
  width: fit-content; /* Fit the button to its content */
  border: 1px solid #af404f; /* Border color for the button */
  padding: 10px 20px; /* Padding for the button */
  border-radius: 5px; /* Rounded corners for the button */
  text-decoration: none; /* Remove underline from the button */
  color: #af404f; /* Text color for the button */
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition for background and text color */
}
.btn:hover {
  background-color: #af404f; /* Change background color on hover */
  color: white; /* Change text color on hover */
  cursor: pointer; /* Change cursor to pointer on hover */
}

/* Contact */
.contact-left {
  flex-basis: 50%; /* Set the width of the left column */
}
.contact-right {
  flex-basis: 50%; /* Set the width of the right column */
}
.contact-left p {
  margin-top: 30px; /* Space above the paragraph */
  font-size: 18px; /* Font size for the paragraph */
}
.contact-left p i {
  margin-right: 10px; /* Space between the icon and text */
  color: #af404f; /* Color for the icon */
  font-size: 20px; /* Font size for the icon */
}
.social-icons {
  margin-top: 20px; /* Space above the social icons */
}
.social-icons a {
  text-decoration: none; /* Remove underline from social icons */
  color: #333; /* Color for social icons */
  font-size: 24px; /* Font size for social icons */
  margin-right: 10px; /* Space between social icons */
  display: inline-block; /* Make social icons inline-block elements */
  transition: transform 0.3s ease, color 0.3s ease; /* Smooth transition for transform and color */
}
.social-icons a:hover {
  color: #af404f; /* Change icon color on hover */
  transform: translateY(-5px); /* Move the icon up on hover */
}
.btn.btn2 {
  display: inline-block;
}
.contact-right form {
  width: 100%; /* Full width for the form */
}
form input, form textarea {
  width: 100%; /* Full width for inputs and textarea */
  border: 0;
  outline: none; /* Remove outline for inputs and textarea */
  background-color: #f0f0f0; /* Light background color for inputs and textarea */ 
  color: #333; /* Text color for inputs and textarea */
  font-size: 16px; /* Font size for inputs and textarea */
  padding: 10px; /* Padding for inputs and textarea */
  margin: 10px 0; /* Space between inputs and textarea */
  border-radius: 5px; /* Rounded corners for inputs and textarea */
}
form .btn2 {
  padding: 10px 20px; /* Padding for the submit button */
  font-size: 16px; /* Font size for the submit button */
  margin-top: 10px; /* Space above the submit button */
}
/* CSS for small screens */
nav .fa-solid {
  display: none; /* Hide the icons by default */
}

@media only screen and (max-width: 768px) {
  #header {
    background-image: url(images/landscape_small_screen.jpeg);
    width: 100%;
  }
  .header-text {
    margin-top: 30%;
    padding: 10px;
  }
  .header-text h1 {
    font-size: 30px; /* Smaller font size for small screens */
  }
  nav .fa-solid {
    display: block; /* Show the icons on small screens */
    font-size: 24px; /* Increase icon size for better visibility */
  }
  nav ul {
    background-color: #afcfe6; /* Background color for the menu */
    position: fixed; /* Position the menu absolutely */
    top: 0; /* Position below the header */
    right: -200px; /* Align to the right */
    width: 200px; /* Fixed width for the menu */
    height: 100vh; /* Full height for the menu */
    padding-top: 60px; /* Space for the header */
    transition: right 0.3s ease; /* Smooth transition for the menu */
  }
  nav ul li {
    display: block; /* Stack the menu items vertically */
    margin: 25px; /* Space between menu items */
  }
  nav ul .fa-solid {
    position: absolute; /* Position the close icon */
    top: 20px; /* Position at the top */
    left: 20px; /* Position to the left */
    cursor: pointer; /* Change cursor to pointer */
    z-index: 2; /* Ensure the close icon is above other elements */
  }
  .sub-title {
    font-size: 40px; /* Smaller font size for sub-title on small screens */
  }
  .about-col-1, .about-col-2 {
    flex-basis: 100%; /* Full width for both columns */
    text-align: center; /* Center the text */
  }
  .about-col-1 {
    margin-bottom: 20px; /* Space below the image */
  }
  .about-col-1 {
    font-size: 16px; /* Smaller font size for the about section */
  }
  .tab-links {
    font-size: 16px; /* Smaller font size for tab links */
    margin-right: 20px; /* Reduced margin for tab links */
  }
  .contact-left, .contact-right {
    flex-basis: 100%; /* Full width for both columns */
    text-align: center; /* Center the text */
  }
  .projects-list, .hobbies-list {
    flex-direction: column; /* Stack projects and hobbies vertically */
    align-items: center; /* Center the items */
    width: 100%; /* Full width for projects and hobbies */
  }
}
#msg {
  color: #af404f; /* Color for the span element */
  margin-top: -40px; /* Adjust the margin to position it correctly */
  display: block; /* Make the span a block element */
}