/* Updated modern styles for Edwin Vogel Website using Grid and vh units */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --header-height: 10vh;
}


body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #000;
  background-color: #fff;
  min-height: 100vh;
  margin: 0 auto; /* Center the body */ 
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "header"
    "main"
    "footer";
}

body::-webkit-scrollbar {
  display: none;                   /* Chrome, Safari */
}

/* Header styles */

header {
   background-color: #fff;
  z-index: 100;
  width: 100%;
  padding: 2vh 5vw;
  margin-bottom: 10vh;
  position: sticky;
  top: 0;
}

.header-container {
  width: 100%;
  max-width: 2560px; /* Or whatever max size you prefer */
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none; /* optional: blocks right-click interaction */
}


.logo {
  text-decoration: none;
  color: #000;
  width: 150px;
  height: auto;
  transition: transform 0.3s ease;
  margin-top: 20px;
}

.logo:hover {
  transform: scale(1.05); /* 5% zoom on hover */
}

.logo img {
  width: 100%;
  height: auto;
  display: block;
  outline: none; /* Remove outline in Chrome */
  border: none; /* Ensure no border */
}

/* Navigation styles //REVISE  */ 
nav {
  display: flex;
  align-items: center;
  margin-left: auto; /* Push to right side */
}

.menu {
  display: flex;
  list-style: none;
  margin-right: 2vw;
  line-height: 1.0;
}

.menu li {
  margin-left: 2vw;
}

.menu a {
  text-decoration: none;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 5px 10px;
  transition: all 0.3s ease;
}

/* Updated menu hover effect - only box slides down, text stays in place */
.menu a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  border: 1px solid #000;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.menu a:hover::before,
.menu a.active::before {
  opacity: 1;
}

.menu a:hover,
.menu a.active {
  padding-top: 15px;
  padding-bottom: 5px;
}

/* Social icons */
.social-icons {
  display: flex;
  line-height: 0px;
}

.social-icons a {
  margin-left: 1.5em;
  text-decoration: none;
  transition: transform 0.5s ease;
}

.social-icons a:hover {
  transform: scale(1.1); /* 10% zoom on hover */
}

.social-icons img {
  width: 24px;
  height: 24px;
}

/* Burger menu */

.burger-menu {
  display: none !important;
}

.burger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #000;
  transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Main content */

main {
  grid-area: main;
  width: 100%;
  margin-top: 20px; /* Add space after header's bottom margin */
  position: relative;
  z-index: 1; /* Lower than header */
}

.main-container {
  width: 100%;
  max-width: 2560px;
  margin: 0 auto;
  padding: 0 5vw;
}


/* Profile section */
.profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  margin-bottom: 10vh;
}

.profile-photo {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.profile-photo img {
  width: 100%;
  height: auto;
  max-width: 400px; /* NEW: limit actual image size */
  min-width: unset; /* Optional: remove the min-width */
}


.profile-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  line-height: 1;
  gap: 1rem;
}

.profile-intro {
    line-height: 1.6;
    max-width: 40vw;
}

/* Gradient text for Edwin Vogel heading */
.profile-text h1 {
  font-family: 'Inter';
  font-size: 6rem;
  font-weight: bold;
  margin-bottom: 5vh;
  line-height: 1.2;
  background: linear-gradient(to bottom right, #b3b3b3, #bebaff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


.bigname {
    display: inline-block; /* Needed for transform to work properly */
    margin-bottom: 3vh;
    font-size: 3rem;
    transition: transform 0.3s ease; /* Smooth movement */
  }
  .bigname:hover {
    transform: translate(5px, -5px); /* Right 5px, Up 5px */
  }

/* Vita timeline */
.timeline {
  margin-top: 5vh;
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  margin-bottom: 5vh;
  margin-right: 5vw;
  transition: transform 0.3s ease;
  max-width: 100%;
  column-gap: 2vw;
}

.timeline-content {
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.timeline-item:hover {
  transform: scale(1.05);
}


.timeline-year {
  font-weight: bold;
   background: linear-gradient(to bottom right, #ff6b6b, #6259ef);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none; /* turn off real underline */
}

/* Contact page */
.contact-info {
  margin-top: 5vh;
}

.contact-info p {
  margin-bottom: 2vh;
}

.contact-info a {
  background: linear-gradient(to bottom right, #ff6b6b, #6259ef);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none; /* turn off real underline */
}

.contact-info a:hover {
    border-bottom: 1px solid #6259ef; /* simulate underline */
}

/* Impressum */
.impressum-content {
  margin-top: 5vh;
}

.impressum-content h2 {
  margin-bottom: 3vh;
}

.impressum-content p {
  margin-bottom: 2vh;
}

/* Footer */

footer {
  grid-area: footer;
  padding: 2vh 5vw; /* Matches header padding */
  background-color: #fff;
  width: 100%;
}

.footer-container {
  width: 100%;
  max-width: 2560px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

footer a {
  color: #000;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Impressum link underline on hover */
footer a:hover {
  text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 768px) {
  /* Mobile layout */
  header {
    grid-template-columns: auto 1fr auto;
    display: flex;
    align-items: center; /* Change from start to center */
    justify-content: space-between;
    padding: 2vh 5vw;
    position: sticky;
    margin-bottom: 5vh;
    background: #fff;
  }
  
   .logo {
    width: 100px;
    margin-bottom: 0; /* Remove any bottom margin */
    display: flex;
    align-items: center;
    margin-top: 5px;
  }
  
  /* Show burger menu, hide regular menu */
  .burger-menu {
  margin-left: 15px;
}
  
  nav {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    margin-top: 0; /* Remove any top margin */
  }
  
  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(var(--header-height) - 2vh);
    right: 0;
    width: 50vw;
    background-color: #fff;
    padding: 1vh 2vw;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 99;
  }
  
  .menu.active {
    display: flex;
  }
  
  .menu li {
    margin: 1vh 0;
    width: 100%;
  }
  
  .menu a {
    display: block;
    width: 100%;
  }
  
  /* Remove hover effect in burger menu */
  .menu a::before {
    display: none;
  }
  
  /* Social icons in mobile view */

  .social-icons {
  display: flex;
  align-items: center;
  padding-right: 3vw;
  gap: 1vw; /* optional: spacing between icons */
  line-height: 0px;
}
  
  .burger-menu {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 30px;
    height: 20px;
    cursor: pointer;
    margin-left:  15px;
    z-index: 101;
  }
  
  /* Profile section in mobile view */
  .profile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 5vh;
  }
  
  .profile-photo {
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
  }
 
  
  .profile-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0px;
  }
  
  .profile-text h1 {
    margin-bottom: 3vh;
    font-size: 3rem;
  }
  
  .profile-intro {
    line-height: 1.6;
    max-width: 80%;
}
  
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 1vh;
  }
  
  .timeline-item {
    grid-template-columns: 1fr; /* Stack year and content vertically */
  }

  .timeline-year {
    margin-bottom: 1vh;
  }
}
