/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Barriecito&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap");

:root {
  font-size: 16px;
  font-family: "PT Sans", sans-serif;
  --text-primary: #0B1D51;
  --text-secondary: #0B1D51;
  --bg-primary: #0B1D51;
  --bg-secondary: #0B1D51;
  --transition-speed: 600ms;
  --navbar-height: 12vh;
  margin: 0;
  padding: 0;
}

body {
  color: #0B1D51;
  background-color: white;
  margin: 0;
  padding: 0;
}

/* Make all images round by default */
img {
  /* max-width: 100%; */
  /* max-height: 100%; */
  /* border-radius: 50%; */
  object-fit: contain;
}

body::-webkit-scrollbar {
  width: 0.5rem;
}

body::-webkit-scrollbar-track {
  background: #1e1e24;
}

body::-webkit-scrollbar-thumb {
  background: #b6b6b6;
}

html {
  scroll-behavior: smooth;
  
}

body {
  margin-top: calc(var(--navbar-height) + 2rem); /* Increased margin to prevent overlap */
}

p {
  color: #0B1D51;
}


/* Scroll behaviour */
.scroll-element {
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 1000ms, transform 1000ms ease-out;
}

/* Clase cuando el elemento está en el viewport */
.visible {
  opacity: 1;
  transform: translateY(0);
}


/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

#desktop-nav {
  position: fixed;
    top: 0;
    width: 100%;
    height: var(--navbar-height);
    background-color: white; /* Hintergrund, damit Text nicht überlappt */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Leichter Schatten für bessere Sichtbarkeit */
    z-index: 1000; /* Stellt sicher, dass es über anderen Elementen bleibt */
    align-items: center;
    padding: 0 20px;
}


.nav-logo {
  grid-area: a;
  width: 6rem;
  height: calc(var(--navbar-height) * 0.9);
  border-radius: 50%; /* Make nav logo round */
}

.photo-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, 1fr);
  object-fit: cover;
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: scale(0.3);
    filter: hue-rotate(180deg);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: hue-rotate(0deg);
  }
}

.card {
  background-color: white;
  animation: cardEntrance 1500ms ease-out;
  animation-fill-mode: backwards;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  height: 100%;
  width: 100%;
  border-radius: 4px;
  transition: all 500ms;
  overflow: hidden;

  
 background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.flags{
  height: 1.5rem;
  width: 1.5rem;
  border-radius: 50%; /* Make flag icons round */
}

nav,
.nav-links {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  transition: width 600ms ease;
  
}

.nav-link:hover {
  filter: grayscale(0%) opacity(1);
  background: var(--bg-secondary);
  color: var(--text-secondary);
}


.nav-links {
  margin-right: 2rem;
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}



a {
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

.logo {
  font-size: 1rem;
}

.logo:hover {
  cursor: default;
}


/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  margin-right: 2rem;
  cursor: pointer;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: #0B1D51;
  transition: all 0.3s ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Added shadow to separate from content */
  z-index: 1001; /* Higher z-index than navbar */
}
  

.menu-links.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-link:hover {
  filter: grayscale(0%) opacity(1);
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  text-decoration: none;
  
}

.menu-links li {
  list-style: none;
}


.menu-links.open {
  max-height: fit-content;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* SECTIONS */

section {
  padding-top: 6vh; /* Increased from 4vh */
  padding-bottom: 4vh; /* Added bottom padding */
  min-height: 90vh; /* Reduced from 96vh */
  margin: 0 10rem;
  box-sizing: border-box;
  margin-bottom: 2rem; /* Added margin between sections */
}

.section-container {
  display: flex;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  min-height: 70vh; /* Changed from fixed height to min-height */
  padding-top: 2rem; /* Added top padding */
}

.section__pic-container {
  display: flex;
  height: 100px;
  width: 100px;
  margin: auto 0;
}


.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
   margin-top: 1.5rem;
   display: block;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.title {
  font-size: 3rem;
  text-align: center;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
  filter: brightness(0) saturate(100%) invert(12%) sepia(95%) saturate(1000%) hue-rotate(205deg) brightness(80%) contrast(95%); 
  border-radius: 50%; /* Make icons round */
}

/* BUTTONS */ 

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
  color:#0B1D51;
}

.btn-color-1,
.btn-color-2 {
  border: #0B1D51 0.1rem solid;
  color: #fdfcfc;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: #0B1D51;
  color: #f8f9fa;
}


.btn-color-1:hover {
  background: #f8f9fa;
  color: #0B1D51;
}

.btn-color-2 {
  background: none;
  color: #0B1D51;
}

.btn-color-2:hover {
  border: #0B1D51 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}

/* ABOUT SECTION */

#about {
  position: relative;
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.about-containers,
.about-details-container {
  display: flex;
  flex-direction: column; /* Changed to column for better stacking */
}

.about-pic {
  border-radius: 50%; /* Make about picture round */
  height: 20rem;
  width: 20rem;
  object-fit: cover;
}


.details-container {
  padding: 2rem 1.5rem; /* Increased padding */
  flex: 1;
  background: white;
  border-radius: 2rem;
  border: #0B1D51 0.1rem solid;
  border-color: #0B1D51;
  text-align: center;
  margin-bottom: 2rem; /* Added margin between containers */
}

.section-container {
  gap: 4rem;
  min-height: 70%; /* Changed from height to min-height */
}

.section__pic-container {
  height: 30rem;
  width: 30rem;
  margin: auto 0;
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
}

.experience-sub-title {
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
  text-align: center;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.article-container {
  display: block; /* Simple block display */
  padding: 1rem;
  margin-bottom: 2rem;
}

.article-container ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.article-container li {
  background: white;
  border: #0B1D51 0.1rem solid;
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-container li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

article {
  display: flex;
  width: 10rem;
  justify-content: space-around;
  gap: 0.5rem;
}

article .icon {
  cursor: default;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
}

.color-container {
  border-color: #0B1D51;
  background: rgb(250, 250, 250);
}

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

.project-title {
  margin: 1rem;
}

.project-btn {
  border-color: #0B1D51;
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  min-height: 60vh; /* Changed from height to min-height */
  padding-bottom: 4rem; /* Added bottom padding */
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: #0B1D51 0.1rem solid;
  border-color: #0B1D51;
  background: rgb(250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
  border-radius: 50%; /* Make contact icons round */
}

.email-icon {
  height: 2.5rem;
  border-radius: 50%; /* Make email icon round */
}

/* FOOTER SECTION */

footer {
  min-height: 20vh; /* Changed from height to min-height */
  margin: 2rem 1rem 0; /* Added top margin */
  padding-top: 2rem; /* Added top padding */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

footer p {
  text-align: center;
  margin: 0.5rem 0;
}

footer nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

footer .nav-links {
  justify-content: center;
  margin-right: 0;
}

  .cc--box {
    background-color: #222 !important;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
  }

/* MEDIA QUERIES */

@media screen and (max-width: 1400px) {
 #profile {
   min-height: 75vh; /* Changed from height to min-height */
   margin-bottom: 4rem; /* Reduced margin */
 }
 .about-containers {
   flex-wrap: wrap;
 }
 #contact,
 #projects {
   min-height: fit-content; /* Changed from height to min-height */
   padding-bottom: 3rem; /* Added bottom padding */
 }
}
@media screen and (max-width: 1200px) {
 #desktop-nav {
   display: none;
 }
 #hamburger-nav {
   display: flex;
 }
 #experience,
 .experience-details-container {
   margin-top: 2rem;
 }
 #profile,
 .section-container {
   display: block;
 }
 .arrow {
   display: none;
 }
 section,
 .section-container {
   min-height: fit-content; /* Changed from height to min-height */
 }
 section {
   margin: 0 5%;
   padding-bottom: 4rem; /* Increased bottom padding */
   padding-top: 8vh; /* Increased top padding */
 }
 .section__pic-container {
   width: 275px;
   height: 275px;
   margin: 0 auto 2rem;
 }
 .about-containers {
   margin-top: 0;
 }
 /* Fix button container spacing */
 .btn-container {
   flex-direction: column;
   align-items: center;
   gap: 1.5rem;
   margin-top: 2rem;
 }
 .btn {
   width: 10rem; /* Wider buttons for better touch targets */
 }
 /* Improve project section spacing */
 .project-title {
   margin: 1.5rem 0;
 }
 .details-container {
   margin-bottom: 2rem;
 }

 /* Add a specific media query for tablet-sized screens */
@media screen and (max-width: 900px) and (min-width: 601px) {
 .btn-container {
   flex-direction: column;
   align-items: center;
   gap: 1.5rem;
   margin-top: 2rem;
 }
 .btn {
   width: 12rem;
 }
 .project-title {
   margin: 2rem 0 1rem 0;
 }
 .details-container {
   margin-bottom: 2rem;
   padding: 1.5rem 1rem; /* Adjusted padding for mobile */
 }
 section {
   padding-bottom: 4rem;
 }

}
@media screen and (max-width: 600px) {
.section__text {
 margin-top: 150px;
}

 #contact,
 footer {
   min-height: 35vh; /* Changed from height to min-height */
   padding-bottom: 3rem; /* Increased bottom padding */
 }
 #profile {
   min-height: 75vh; /* Changed from height to min-height */
   margin-bottom: 3rem; /* Increased margin */
   padding-top: 4rem; /* Added more top padding */
 }
 article {
   font-size: 1rem;
 }
 footer nav {
   min-height: fit-content; /* Changed from height to min-height */
   margin-bottom: 1rem;
   display: flex;
   justify-content: center;
 }
 .about-containers,
 .contact-info-upper-container,
 .btn-container {
   flex-wrap: wrap;
 }
 /* Improve button layout on mobile */
 .btn-container {
   flex-direction: column;
   align-items: center;
   gap: 1rem;
   margin-top: 2rem;
   width: 100%;
 }
 .btn {
   width: 80%;
   max-width: 12rem;
   text-align: center;
 }
 .contact-info-container {
   margin: 0;
 }
 .contact-info-container p,
 .nav-links li a {
   font-size: 1rem;
 }
 .experience-sub-title {
   font-size: 1.25rem;
 }
 /* Improve list styling on mobile */
 .article-container ul {
   margin: 0.3rem 0;
 }
 .article-container li {
   padding: 0.8rem 1rem;
   margin-bottom: 0.8rem;
   font-size: 0.95rem;
   line-height: 1.4;
 }
 .logo {
   font-size: 1.5rem;
 }
 .nav-links {
   flex-direction: column;
   gap: 0.5rem;
   text-align: center;
 }
 .section__pic-container {
   width: auto;
   height: 46vw;
   justify-content: center;
   margin-bottom: 2rem;
 }
 .section__text__p2 {
   font-size: 1.25rem;
 }
 .title {
   font-size: 2rem;
   margin-bottom: 1.5rem;
 }
 .text-container {
   text-align: justify;
 }
 /* Project section improvements */
 .project-title {
   margin: 1.5rem 0;
   font-size: 1.5rem;
 }
 .details-container {
   margin-bottom: 2rem;
   padding: 1rem;
 }
 /* Section spacing improvements */
 section {
   padding-top: 6vh;
   padding-bottom: 5vh;
   margin-bottom: 3rem;
 }
 /* Text spacing improvements */
 .section__text {
   padding: 0 1rem;
 }
 .section__text__p1 {
   margin-top: 2rem;
   margin-bottom: 1rem;
 }
}
}

