/* Nav Toggle (Hamburger) for mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  width: 32px;
  height: 32px;
  margin-left: 16px;
  z-index: 1001;
}
.nav-toggle span {
  height: 4px;
  width: 100%;
  background: var(--secondary-color-light);
  margin: 4px 0;
  border-radius: 2px;
  display: block;
  transition: 0.4s;
}



/* Animate nav-toggle when open */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
*{
    margin: 0;
    padding: 0;
    /*box-sizing: border-box;*/
}


h1{
  font-family: "Merienda", cursive;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* Color variables for light theme */
:root{
  --primary-color:#2F5249;
  --primary-color-light:#437057;
  --secondary-color:#97B067;
  --secondary-color-light:#E3DE61;
  --secondary-color-dark:#9d9a36;
}


/* Color variables for dark theme */
.dark-theme {
  --primary-color: #212121;
  --primary-color-light: #333;
  --secondary-color: #edf2fc;
  --secondary-color-light: #e3de61;
  --secondary-color-dark: #9d9a36;
}

html{
  scroll-behavior: smooth;
  /* Fade in animation for page load */
  animation: fadeIn 0.5s ease-in-out;
}

body {
  height: 100vh;
  /* min-width: 840px; */
  display: flex;
  flex-direction: column;
  background: var(--primary-color);
  font-family: 'Playfair Display', serif;
  /* Smooth color transition for theme change */
  transition: fadeIn 0.3s, color 0.3s;
  /* animation: fadeIn 1s ease-in-out; */
}

#icon {
  transition: filter 0.3s;
}



/* Navigation bar styles */
nav{
  padding: 20px 30px;
  display: flex;
  align-items: center;
  margin: 0 auto;
  background-color: var(--primary-color-light);
  animation: fadeInUp 0.5s ease-in-out;
}

#logo{
    width: 200px;
    cursor: pointer;
    color: var(--secondary-color-light);
    font-size: 30px;
    animation: fadeInDown 1.0s ease-in-out;
}

#logo:hover{
    color: var(--secondary-color-dark);
    transition: color 0.3s ease-in-out;
    
}


nav ul{
    flex: 1;
    text-align: right;
    padding-right: 40px;

}

nav ul li{
    display: inline-block;
    list-style: none;
    margin: 5px 20px;
    animation: fadeInDown 1.2s ease-in-out
}

nav ul li a{
    text-decoration: none;
    color:var(--secondary-color-light);
    font-size: 20px;
    letter-spacing: 2px;
    position: relative;
    font-weight: 700;
    
}

nav ul li a:hover{
    color: var(--secondary-color-dark);
    transition: color 0.3s ease-in-out;
}

nav ul li a:hover::after{
    color: var(--secondary-color-dark);
    content: "";
    width: 100%;
    height: 2px;
    background: var(--secondary-color-dark);
    position: absolute;
    bottom: -4px;
    left: 0;
    animation: fadeInDown 0.5s ease-in-out;
}

/* Main content: Coming soon message */
main{
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  letter-spacing: 12px;
  font-size: 48px;
  color: var(--secondary-color);
}



/* Footer styles */
footer{
  margin:0 8% ;
  height: 80px;
  display: flex;
  align-items: center;
  position: fixed;
  bottom: 0;
  width: 100vw;
  animation: fadeInUp 1.5s ease-in-out;
}

footer a{
    font-size: 30px;
    color: var(--secondary-color);
    margin-right: 20px;
}

footer a:hover{
    color: var(--secondary-color-dark);
    transition: color 0.3s ease-in-out;
}

footer a.linkedin:hover::after{
    content: "";
    width:28px;
    height: 2px;
    background: var(--secondary-color-dark);
    position: absolute;
    bottom:20px;
    left: 0;
    animation: fadeInDown 0.5s ease-in-out;
}
footer a.github:hover::after{
    content: "";
    width: 28px;
    height: 2px;
    background: var(--secondary-color-dark);
    position: absolute;
    bottom:20px;
    left: 46px;
    animation: fadeInDown 0.5s ease-in-out;
}
footer .copyright{
    color: var(--secondary-color);
    font-size: 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}



/* Responsive Design: Mobile and Tablet */
@media (max-width: 1024px) {
  nav {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 5px;
  }
  nav ul {
    padding-right: 0;
    text-align: center;
    width: 20vw;
  }
  #logo {
    font-size: 24px;
    width: 150px;
    margin-left: 10px;
  }
  
 
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }
  nav ul {
    position: fixed;
    top: 0;
    right: -100vw;
    width: 20%;
    max-width: 250px;
    height: 100vh;
    background: var(--primary-color-light);
    flex-direction: column;
  
    padding: 80px 24px 24px 24px;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
    z-index: 1000;
    text-align: left;
  }
  nav ul.open {
    right: 0;
  }
  nav ul li {
    display: block;
    margin: 18px 0;
  }
}

@media (max-width: 768px) {
  body {
    min-width: 0;
  }
  nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 5px 2px;
  }
  nav ul li {
    margin: 5px 8px;
  }
  
  
  
  footer {
    font-size: 14px;
    height: 60px;
  }
}

@media (max-width: 480px) {
    main {
        font-size: 32px;
        letter-spacing: 8px;
        padding: 0 10px;
        text-align: center;
    }
  nav ul{
    width: 30vw;
  }

  #logo {
    font-size: 18px;
    width: 120px;
  }
  nav ul li a {
    font-size: 14px;
  }

  footer {
    font-size: 10px;
    height: 40px;
  }
}

/* End Responsive Design */