body {
  background-color: #7e8384 !important;
  color: #333;
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  font-family: 'Candal', sans-serif; /* Replace 'Caprasimo' with the actual font name */
}

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

html{
  overflow-x: hidden;
}

.header-wrapper {
  background-color: #fff;
  padding: 20px 50px 100px;
}

h1 {
  font-size: 50px !important;
  margin: 0 0 10px;
}
h1.name {
  font-size: 80px !important;
}
h2 {
  font-size: 18px;
}
p {
  font-size: 18px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Navigation */
.navbar-custom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #007A5E;
  border-radius: 30px;
  margin: 0 auto;
  width: 95%;
  transition: all 0.3s ease;
  z-index: 1000;
  /* Add these properties to prepare for sticky state */
  position: relative;
  left: 0;
  right: 0;
}

/* Fixed navbar on scroll */
.navbar-custom.sticky {
  position: fixed;
  top: 35px;
  width: fit-content; /* Width will match the content */
  margin: 0 auto;
  left: 0;
  right: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Hide logo and language switcher when navbar is sticky */
.navbar-custom.sticky .logo,
.navbar-custom.sticky .language-switcher {
  display: none;
}

/* Center the nav links when logo and language switcher are hidden */
.navbar-custom.sticky .nav-links {
  margin: 0 auto;
}

.logo {
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
}

/* Logo and language switcher transition */
.navbar-custom .logo,
.navbar-custom .language-switcher {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.navbar-custom.sticky .logo,
.navbar-custom.sticky .language-switcher {
  opacity: 0;
  visibility: hidden;
}

/* Nav links transition to center */
.navbar-custom .nav-links {
  transition: margin 0.3s ease;
}

.navbar-custom.sticky .nav-links {
  margin: 0 auto;
}

.logo img {
  height: 25px;
  margin-right: 5px;
  position: absolute;
  z-index: 10000;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
}

.nav-links li {
  margin-left: 10px;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  box-shadow: inset 0 0 0 0 #fff;
  transition: color .3s ease-in-out, box-shadow .3s ease-in-out;
  padding: 2px 10px 5px;
  border-radius: 100px;
}

.nav-links li.active a,
.nav-links a:hover {
  color: #007A5E;
  background-color: #fff;
  box-shadow: inset 200px 0 0 0 #fff;
}

/* Media query for mobile view */
@media (max-width: 768px) {
  .navbar-custom {
    position: relative;
    transform: none;
    left: -15px;
    top: auto;
    margin: 10px auto;
    width: 100%;
  }
}


/* Language Switcher */
.language-switcher {
  position: relative;
  width: 60px;
  height: 30px;
  background-color: #007A5E;
  border: 1px solid #fff;
  border-radius: 15px;
  display: flex;
  align-items: center;
  padding: 0 5px;
}

.language-toggle {
  position: absolute;
  width: 24px;
  height: 24px;
  background-color: white;
  border-radius: 50%;
  right: 3px;
  transition: transform 0.3s ease;
}

.language-text {
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  position: absolute;
  left: 10px;
  width: 0;
  cursor: auto;
}

.language-switcher.english .language-text:after {
  content: "EN";
}

.language-switcher.german .language-text:after {
  content: "GE";
  margin-left: 22px;
}

.language-switcher.german .language-toggle {
  transform: translateX(-28px);
}

a.language-option {
  opacity: 0;
}

/* Hamburger Menu Styles */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
}

.bar {
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
}

/* Media query for mobile view */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    z-index: 100;
    position: relative;
    right: -55px;
  }
  .navbar-custom.sticky.scroll-up .hamburger,
  .navbar-custom.sticky.scroll-down .hamburger {
      position: sticky;
  }
  
  .nav-links {
    position: fixed;
    left: -100%;
    top: 0;
    flex-direction: column;
    background-color: #fff;
    width: 100%;
    height: 100vh;
    z-index: 99;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 100px 0;
    font-size: 45px;
    background-color: #007A5E;
  }
  
  .nav-links.show {
    left: 0;
  }
  
  .nav-links li {
    margin: 20px 0;
  }
  
  /* Hamburger animation */
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  /* Adjust language switcher position for mobile */
  .language-switcher {
    position: absolute;
    right: 20px;
    z-index: 100;
  }
}

/* About Section */
.about {
  background-color: #f8f8f8;
  padding: 50px 0;
  margin-bottom: 60px;
}

.about h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.about p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
  color: #666;
  font-size: 14px;
}

.skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.skill {
  display: flex;
  align-items: center;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
}

.skill-icon {
  width: 40px;
  height: 40px;
  margin-right: 15px;
  color: #4285f4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-text h4 {
  margin-bottom: 5px;
  font-size: 16px;
}

.skill-text p {
  margin: 0;
  font-size: 12px;
  text-align: left;
}

.cta-text {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

/* Portfolio Section */
.portfolio {
  margin-bottom: 60px;
}

.portfolio h2 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 24px;
}

.portfolio p {
  text-align: center;
  margin-bottom: 30px;
  color: #666;
  font-size: 14px;
}

.portfolio-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.portfolio-nav button {
  padding: 8px 15px;
  margin: 0 5px;
  background-color: #4285f4;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.see-more {
  text-align: center;
  margin-top: 30px;
}

.see-more a {
  color: #4285f4;
  text-decoration: none;
}

/* Contact Section */
.contact {
  background-color: #007A5E;
  color: white;
  padding: 20px 0;
  text-align: center;
}

.contact h2 {
  margin-bottom: 30px;
  font-size: 28px;
}

.contact-info {
  margin-bottom: 30px;
}

.contact-info p {
  margin: 5px 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.social-link {
  width: 50px;
  height: 50px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CE1126;
  text-decoration: none;
}
.social-link .material-icons {
  font-size: 30px;
}

.social-links a:hover {
  color: #FCD116;
}

/* Footer */
.contact-header {
  margin: 0 0 50px;
}

footer {
  background-color: #333;
  color: #fff;
  padding: 5px 0;
  text-align: center;
  font-size: 12px;
}

footer p {
  font-size: 12px;
  margin: 0;
}

footer .footer-content a {
  text-decoration: none;
  color: #fff;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

@media (max-width: 768px) {
  .services, .skills {
      flex-direction: column;
  }
  .gallery {
      grid-template-columns: 1fr;
  }
  .hero h1 {
      font-size: 48px;
  }
  h1.name {
    font-size: 60px !important;
  }
  h1 {
    font-size: 45px !important;
  }
}
@media (max-width: 992px) {
  .header-wrapper .nav-links a {
    padding: 0 5px 8px;
    font-size: 14px;

  }
  .header-wrapper .nav-links.show a {
    font-size: 45px;
  }
}