/* Nav Toggle (Hamburger) */
.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;
}

@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;
  }
}

/* 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;
}

:root{
   --primary-color:#2F5249;
   --primary-color-light:#437057;
   --secondary-color:#97B067;
   --secondary-color-light:#E3DE61;
    --secondary-color-dark:#9d9a36;
}


.dark-theme {
  --primary-color: #212121;
  --primary-color-light: #333;
  --secondary-color: #edf2fc;
  --secondary-color-light: #e3de61;
  --secondary-color-dark: #9d9a36;
}

html{
    scroll-behavior: smooth;
    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;
  transition: fadeIn 0.3s, color 0.3s;
  /* animation: fadeIn 1s ease-in-out; */
}

#icon {
  transition: filter 0.3s;
}

/* 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;
  }
  .info {
    margin-left: 2%;
  }
 
}

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

@media (max-width: 480px) {
  nav ul{
    width: 40vw;
  }

  #logo {
    font-size: 18px;
    width: 120px;
  }
  nav ul li a {
    font-size: 14px;
  }
  .info h1 {
    font-size: 22px;
  }
  .info p {
    font-size: 12px;
  }
  .animated-button {
    padding: 8px 16px;
    font-size: 12px;
  }
  footer {
    font-size: 10px;
    height: 40px;
  }
}

/* End Responsive Design */

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{
    flex: 1;
    display: flex;
    align-items: center;
}

.info{
    margin-left:8% ;
}

.info h1{
    font-size: 70px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    animation: fadeInDown 1.5s ease-in-out;
}

.info h1 span{
    color: var(--secondary-color-light);
    animation: fadeInDown 3s ease-in-out;
}

.info p{
    color: var(--secondary-color);
    line-height: 22px;
    font-size: 20px;
    text-transform: capitalize;
    animation: fadeInLeft 3.0s ease-in-out;
}

 
.animated-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 36px;
  margin-top: 10px;
  border: 4px solid;
  border-color: transparent;
  font-size: 16px;
  background-color: inherit;
  border-radius: 100px;
  font-weight: 600;
  color: var(--secondary-color-light);
  box-shadow: 0 0 0 2px var(--primary-color-light);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  animation: fadeInUp 3.5s ease-in-out;

}

.animated-button svg {
  position: absolute;
  width: 24px;
  fill: var(--secondary-color-light);
  z-index: 9;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .arr-1 {
  right: 16px;
}

.animated-button .arr-2 {
  left: -25%;
}

.animated-button .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: var(--secondary-color-light);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .text {
  position: relative;
  z-index: 1;
  transform: translateX(-12px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button:hover {
  box-shadow: 0 0 0 12px transparent;
  color: var(--primary-color);
  border-radius: 12px;
}

.animated-button:hover .arr-1 {
  right: -25%;
}

.animated-button:hover .arr-2 {
  left: 16px;
}

.animated-button:hover .text {
  transform: translateX(12px);
}

.animated-button:hover svg {
  fill: var(--primary-color);
}


.animated-button:hover .circle {
  width: 220px;
  height: 220px;
  opacity: 1;
}


footer{
    margin:0 8% ;
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    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%;
}
