/* 🔹 General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  line-height: 1.6;
  color: #333;
}

/* Titles & Headings */
h1, h2, h3 {
  font-family: 'Merriweather', sans-serif;
  font-weight: 700; /* Makes headers stand out */
  color: #004c4c; /* Keeps it in your theme */
}

/* Body Text (Main Content) */
body {
  font-family: Arial, sans-serif;
}


a {
  text-decoration: none;
  color: inherit;
}

body, html {
  overflow-x: hidden; /* Prevents horizontal scrolling */
}

/* 🔹 Navbar */
nav {
  background-color: #004c4c; /* Keep your current color */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  height: 60px; /* Keeps navbar height consistent */
  width: 100%;
  
  /* 🔹 Makes the navbar fixed at the top */
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000; /* Ensures it stays above other elements */
}

/* 🔹 Logo Image Styles */
nav .logo img {
  height: 50px;
  margin-top: 6px;
  z-index: 1002; /* Ensures the logo stays on top */
  position: relative; /* Make sure it's positioned above other elements */
}

/* 🔹 Navigation Links (Desktop) */
.nav-links-container {
  display: flex;
  align-items: center;
}

/* Ensure the `ul` inside the container is flex */
.nav-links {
  display: flex;  /* Make the links inline */
  list-style: none;  /* Remove bullets */
  padding: 0;
  margin: 0;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links li a {
  color: white;
  font-weight: bold;
}

.nav-links li a:hover {
  text-decoration: underline;
}

/* LinkedIn Button Styles */
.linkedin-button {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: #004c4c;
  color: white;
  font-size: 1.5em;
  font-weight: bold;
  text-align: center;
  line-height: 40px; /* Centering the text inside */
  border: 2px solid white; /* White border for square button */
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.linkedin-button:hover {
  background-color: white;
  color: #004c4c; /* Change text to teal on hover */
}

/* 🔹 Burger Menu Base Styles */
.burger-menu {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 11px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
  z-index: 1001; /* Ensure burger menu is below logo */
}

/* 🔹 Burger Bars */
.burger-bar {
  width: 35px;
  height: 4px;
  background-color: white;
  margin: 5px 0;
  transition: all 0.3s ease-in-out;
  position: absolute;
}

/* 🔹 Position bars initially */
.burger-bar:nth-child(1) {
  top: 8px;
}

.burger-bar:nth-child(2) {
  top: 18px;
}

.burger-bar:nth-child(3) {
  top: 28px;
}

/* 🔹 When menu is active (animated effect) */
.burger-menu.active .burger-bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.burger-menu.active .burger-bar:nth-child(2) {
  opacity: 0; /* Hide middle bar */
}

.burger-menu.active .burger-bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* 🔹 Show Burger Menu on Mobile */
@media (max-width: 768px) {
  .burger-menu {
    display: flex;
  }
}

.nav-links {
  display: flex;  /* Ensure horizontal layout */
  flex-direction: row;  /* Keep links inline */
}

@media (max-width: 768px) {
  .nav-links-container {
    display: none; /* Hidden by default */
    position: fixed; /* Make it overlay the entire screen */
    top: 0;
    left: 0;
    width: 100vw; /* Full width */
    height: 100vh; /* Full height */
    background-color: rgba(0, 76, 76, 0.95); /* Optional: Slight transparency */
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Stack links vertically */
    z-index: 999; /* Keep this below the logo and burger menu */
  }

  .nav-links-container.active {
    display: flex; /* Show when active */
    flex-direction: column;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically */
    height: 100%; /* Ensure it fills the full height */
  }

  .nav-links li {
    margin: 20px 0; /* Increase spacing between items */
    font-size: 24px; /* Increase font size */
  }

  .burger-menu {
    position: fixed;
    right: 20px;
    z-index: 1001; /* Make sure it's above the nav menu but below the logo */
  }
  
  .linkedin-button {
    position: relative;
    top: -140px; /* Adjust this value until it's aligned */
    align-items: center;
  }
}


/* Hero Section */
.hero {
  background-color: #e6f7f7; /* Light teal background */
  text-align: center;
  width: 100%;
  padding: 50px 20px;
  margin-top: 60px; /* 🔹 Pushes the hero section below the navbar */
}
.hero h1 {
  font-size: 2.5em;
  color: #004c4c; /* Dark teal */
}
.hero p {
  font-size: 1.2em;
  margin-top: 10px;
}
.hero button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #004c4c; /* Dark teal */
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
}
.hero button:hover {
  background-color: #003737; /* Even darker teal */
}

/* About Section */
.about {
  padding: 50px 20px;
  background-color: #ffffff;
}
.about h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 20px;
  color: #004c4c; /* Dark teal */
}
.about .profile-pic-container {
  text-align: center;
  margin-bottom: 20px;
}
.about .profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%; /* Makes the image circular */
  object-fit: cover; /* Ensures the image scales nicely within the circle */
  border: 4px solid #004c4c; /* Optional: Add a border around the picture */
}
.about p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}


.spacer {
height: 30px; /* Adjust as needed */
}


/* Skills Section - Two Columns */
.skills-container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 50px auto;
  padding: 20px;
}
.technical-skills, .proficiency-container {
  flex: 1;
  padding: 20px;
}
.technical-skills {
  text-align: left;
}
.technical-skills h2, .proficiency-container h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 20px;
  color: #004c4c;
}
.skills-category h3 {
  font-size: 1.5em;
  color: #004c4c;
  margin-bottom: 10px;
}
.skills-category ul {
  list-style-type: none;
  padding-left: 0;
}
.skills-category ul li {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 5px;
  color: #555;
}

/* Language Proficiency Bars */
.language {
  margin-bottom: 20px;
}
.bar-frame {
  width: 100%;
  height: 25px;
  border: 2px solid #004c4c;
  border-radius: 5px;
  background-color: #e6f7f7;
  overflow: hidden;
}
.bar {
  height: 100%;
  width: 0; /* Start empty */
  transition: width 1.5s ease-in-out; /* Smooth animation */
}
.bar.advanced { background-color: #008080; }
.bar.intermediate { background-color: #66cccc; }
.bar.beginner { background-color: #b3e0e0; }


/* Contact Section */
.contact {
  padding: 50px 20px;
  background-color: #e6f7f7; /* Light teal background */
}
.contact h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 20px;
  color: #004c4c; /* Dark teal */
}
.contact form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.contact form input, 
.contact form textarea, 
.contact form button {
  margin-bottom: 10px;
  padding: 10px;
  font-size: 1em;
}
.contact form input, .contact form textarea {
  border: 1px solid #ddd;
  border-radius: 5px;
}

.contact form input, 
.contact form textarea {
  font-family: Arial, sans-serif;
  font-size: 1rem; /* Adjust font size if needed */
  color: #333; /* Text color */
}

.contact form button {
  background-color: #004c4c; /* Dark teal */
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.contact form button:hover {
  background-color: #003737; /* Even darker teal */
}

/* 🔹 Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #004c4c;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  opacity: 0; /* 🔹 Hidden by default */
  transition: opacity 0.4s ease-in-out, transform 0.3s ease-in-out;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

/* 🔹 Fully visible when scrolling down */
#backToTop.visible {
  opacity: 1;
  transform: translateY(0); /* Normal position */
}

/* 🔹 When not in use, fade it slightly */
#backToTop.hidden {
  opacity: 0.3; /* 🔹 Slightly visible when idle */
  transform: translateY(10px); /* Moves down slightly */
}

/* 🔹 Hover effect (full opacity when hovered) */
#backToTop:hover {
  opacity: 1;
  background-color: #003737;
}


/* Parallax Background */
.parallax {
background: url('https://johannesrauschenberger.github.io/web/img/background.jpg') no-repeat center center/cover;
height: 100vh; /* Full screen height */
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: -1; /* Sends it behind content */
}

/* Scrolling Content */
.content {
background-color: rgba(0, 0, 0, 0.85); /* Dark background with transparency */
color: white;
width: 100%;
padding: 50px;
margin-top: 70vh; /* Pushes content below the fixed image */
}


.fade-in {
opacity: 0;
transform: translateY(30px);
transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.show {
opacity: 1;
transform: translateY(0);
}

.projects-container {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
margin: 50px auto;
gap: 20px;
margin-top: 40px;
}

.project-card {
background: #f8f1dc; /* Light cream background */
padding: 20px;
border-radius: 10px;
text-align: center;
width: 30%; /* Ensures three cards fit */
min-width: 250px; /* Ensures cards don't get too small */
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
  .project-card {
    flex: 1 1 100%; /* Each project takes full width */
  }
  .skills-container {
    flex-direction: column; /* Stacks the two skill containers vertically */
  }
  .technical-skills, .proficiency-container {
    flex: 1 1 100%; /* Makes each section take full width */
    margin-bottom: 20px; /* Adds space between the two sections */
  }
}


.project-card img {
width: 100%;
border-radius: 8px;
}

.project-card h3 {
margin-top: 15px;
font-size: 1.5rem;
color: #0F4C5C; /* Dark teal */
}


.project-card p {
font-size: 1rem;
color: #333;
}

.project-button {
display: inline-block;
margin-top: 10px;
padding: 10px 15px;
background: black;
color: white;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
}

/* Keep "My Projects" header white */
.content h1 {
  color: white !important; /* Force it to stay white */
}


.project-button:hover {
background: #444;
}

.placeholder {
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
color: gray;
height: 200px;
}

footer {
background-color: #e6f7f7; /* Light teal */
color: black;
padding: 5px 0; /* Reduce padding to shrink height */
text-align: center;
font-size: 14px; /* Adjust if needed */
width: 100%;
max-width: 100%;
box-sizing: border-box;
}



.skills-container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 50px auto;
  padding: 20px;
  flex-wrap: wrap;
}

/* Left side (Tech Skills) and Right side (Languages) take exactly 50% */
.technical-skills, .proficiency-container {
  flex: 1 1 50%;
  padding: 20px;
  min-width: 300px; /* Prevents sections from getting too small */
}

/* On smaller screens, stack them */
@media (max-width: 768px) {
.technical-skills, .proficiency-container {
  flex: 1 1 100%;
}
}

/* Scroll Reveal Effect */
.scroll-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* When in view, make items appear */
.scroll-item.visible {
  opacity: 1;
  transform: translateY(0);
}