@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: 'Montserrat', sans-serif;
}

body{
  background: linear-gradient(-45deg, #1a1a1a, #333, #000, #111);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@keyframes gradientBG{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

header{
  background: rgba(0,0,0,0.7);
  padding: 1rem 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.6), -5px -5px 15px rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.header-container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo{
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img{
  width: 70px;
  height: 70px;
  border: 1px solid #fff;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.logo img:hover{
  transform: scale(1.1) rotate(5deg);
}

nav ul{
  display: flex;
  list-style: none;
  gap: 1rem;
  align-items: center;
}

nav ul li a{
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid #fff;
  border-radius: 8px;
  transition: all 0.3s ease;
}

nav ul li a:hover{
  background: #3498db;
  color: #000;
  box-shadow: inset 0 0 10px rgba(255,255,255,0.1);
}

nav ul li.dropdown{
  position: relative;
}

.dropdown-menu{
  position: absolute;
  top: 2.5rem;
  left: 0;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  display: none;
  flex-direction: column;
  min-width: 180px;
  z-index: 100;
}

.dropdown:hover .dropdown-menu{
  display: flex;
}

.dropdown-menu li a{
  padding: 0.5rem 1rem;
  color: #fff;
  border: none;
  display: block;
}

.dropdown-menu li a:hover{
  background: #3498db;
  color: #000;
}

.login-btn button{
  background: #111;
  border: 1px solid #fff;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-btn button:hover{
  background: #fff;
  color: #000;
  transform: translateY(-2px);
}

main{
  flex: 1;
  padding: 2rem;
}

.projects-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  justify-items: center;
}

@media(max-width:1200px){
  .projects-grid{
    grid-template-columns: repeat(3, 1fr);
  }
}

@media(max-width:768px){
  .projects-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:480px){
  .projects-grid{
    grid-template-columns: 1fr;
  }
}

.project-card{
  background: #111;
  border-radius: 18px;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.6), -5px -5px 15px rgba(255,255,255,0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 400px;
}

.project-card img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover img{
  transform: scale(1.1);
}

.project-card h3{
  text-align: center;
  margin: 1rem 0 0.5rem;
}

.project-card p{
  text-align: center;
  padding: 0 1rem;
  color: #ccc;
  font-size: 0.9rem;
  flex-grow: 1;
  overflow: hidden;
}

.project-card:hover{
  transform: scale(1.05) translateY(-5px);
  box-shadow: inset 2px 2px 12px rgba(255,255,255,0.1), 5px 5px 20px rgba(0,0,0,0.8);
}

.btn-group{
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem 0;
}

.btn-primary{
  padding: 0.5rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  background: #3498db;
  color: #000;
}

.btn-primary:hover{
  background: #fff;
  color: #000;
  transform: translateY(-2px);
}

footer{
  background: rgba(0,0,0,0.7);
  padding: 1rem 2rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(8px);
}

footer img{
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #fff;
  transition: transform 0.3s ease;
}

footer img:hover{
  transform: scale(1.1) rotate(5deg);
}
