@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Inter', sans-serif;
    }

    body {
  background: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='174' viewBox='0 0 100 174'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='2'%3E%3Cpolygon points='50,1 99,26 99,75 50,100 1,75 1,26'/%3E%3Cpolygon points='50,74 99,99 99,148 50,173 1,148 1,99'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(100deg, #1e3c72, #00d587);

  background-size: 200px 174px, 400% 400%;
  background-repeat: repeat, no-repeat;

  animation: gradient 20s ease infinite;
  height: 100%;
  color: #eaeaea;
  overflow-x: hidden;
}


@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}
    
    

    header {
        
    border-radius: 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1.2rem 2rem;
      position: sticky;
      top: 0;
      background-color: rgba(30, 60, 114, 0.05);
      animation: gradient 10s ease infinite;
      z-index: 100;
      backdrop-filter: blur(20px);
    }

    .logo {
      font-weight: 700;
      font-size: 1.2rem;
      color: #ffffff;
      letter-spacing: 1px;
    }

    nav ul {
      list-style: none;
      display: flex;
      gap: 2rem;
    }

    nav ul li a {
      text-decoration: none;
      color: #bdbdbd;
      transition: color 0.3s;
    }

    nav ul li a:hover {
      color: #ffffff;
    }
    
p{

font-family: "Roboto", sans-serif;
  
}
    .hamburger {
      display: none;
      flex-direction: column;
      cursor: pointer;
    }

    .hamburger span {
      height: 3px;
      width: 25px;
      background: #ebebeb;
      margin: 4px 0;
      transition: 0.4s;
    }

@media (max-width: 768px) {
  header {
    padding: 1.2rem 2rem 1.2rem 2rem;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 18px;
  }

  nav ul {
    border-radius: 10px;
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }

  nav ul.active {
    display: flex;
    flex-direction: row;  /* 🔹 Make links horizontal */
    gap: 1rem;            /* 🔹 Add spacing */
    justify-content: center;
    width: auto;          /* 🔹 Prevent stretched box */
  }

  nav ul li a {
    color: #fff;
    padding: 0.5rem 1rem;
    white-space: nowrap;  /* 🔹 Prevent text wrapping */
  }
}


#about {
  position: relative;
  padding: 4rem 2rem;
  border-radius: 16px;
  max-width: 900px;
  margin: 4rem auto;
  color: #eaeaea;
border: 2px solid rgba(72, 255, 0, 0.1);
  /* semi-transparent overlay */
  background: rgba(104, 183, 183, 0.3);
  backdrop-filter: blur(10px);

  

}

#projects {
  position: relative;
  padding: 4rem 2rem;
  border-radius: 16px;
  max-width: 900px;
  margin: 4rem auto;
  color: #eaeaea;

  border: 2px solid rgba(72, 255, 0, 0.1);
  background: rgba(104, 183, 183, 0.3);
  backdrop-filter: blur(10px);

  

}

#contact{
  position: relative;
  padding: 4rem 2rem;
  border-radius: 16px;
  max-width: 900px;
  margin: 4rem auto;
  color: #eaeaea;
border: 2px solid rgba(72, 255, 0, 0.1);
 
  background: rgba(104, 183, 183, 0.3);
  backdrop-filter: blur(10px);

  

}

#contact h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

#contact {
  line-height: 1.7;
  font-size: 1.1rem;
  color: #cce7f5;
}


#about h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

#about p {
  line-height: 1.7;
  font-size: 1.1rem;
  color: #cce7f5;
}

    .hero {
      min-height: 90vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      padding: 2rem;
    }

    .hero h1 {
      font-size: 3rem;
      font-weight: 700;
      margin-bottom: 1rem;
    }

    .hero p {
        margin-top: 30px;
      font-size: 1.2rem;
      color: #ade8f4;
    }

    section {
      padding: 4rem 2rem;
      max-width: 800px;
      margin: auto;
    }

    section h2 {
      font-size: 2rem;
      margin-bottom: 1rem;
      color: #ffffff;
    }

    section p {
      color: #c5f1fa;
      line-height: 1.6;
    }
 
    .footer {
      text-align: center;
      padding: 1rem;
      color: white;
      border-top: 1px solid #222;
      margin-top: 4rem;
    }

    .project-tiles {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 2rem;
      padding-top: 2rem;
    }

    .project-tile {
      position: relative;
      overflow: hidden;
      border-radius: 8px;
      
      cursor: pointer;
      transition: transform 0.3s ease;
    }

    .project-tile img {
        border-radius: 8px;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease, opacity 0.3s ease;
    }

    .project-tile:hover {
      transform: scale(1.05);
    }

    .project-tile:hover img {
        transform: scale(1.1);
      opacity: 0.8;
    }

    .project-title {
      position: absolute;
      bottom: 10px;
      left: 10px;
      font-size: 1.2rem;
      font-weight: 700;
      color: #ffffff;
      background-color: rgba(0, 0, 0, 0.5);
      padding: 0.5rem;
      border-radius: 5px;
    }

    #pfp {
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.1);
}

#pfp.animate-pfp {
  animation: fadeInScale 1s ease forwards;
}
    @keyframes fadeInScale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

    #pfp:hover {
      border: 5px solid green;
      transition: 0.1s linear;
    }
    .project-tile:hover {
  transform: scale(1.1);
  
}

.logo:hover {
  color: #28a745;
  transition: color 0.3s ease;
}
.hamburger span.toggle:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}
.hamburger span.toggle:nth-child(2) {
  opacity: 0;
}
.hamburger span.toggle:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

button{
    all: unset;          
  cursor: pointer;    
  display: inline;    
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  
}
.popup-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background-color: #f1f1f1;
  padding: 10px 15px;
  border-bottom: 1px solid #ccc;
}

    .popup-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.6);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
    }

    
.popup-content {
 display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  width: 95%;
  max-width: 1200px;  /* 🔹 wider popup */
  height: 85%;        /* 🔹 taller popup */
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

 .popup-close {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background-color: rgb(0, 0, 0);
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;}
   
   .popup-iframe {
  width: 100%;
  height: 100%;
  border: none;
  flex-grow: 1;
}