* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #121212;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(18, 18, 18, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  transition: transform 0.3s ease;
}

header h1:hover {
  transform: scale(1.05);
}

nav a {
  color: #d0d0d0;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  margin-left: 1rem;
  padding: 6px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.hero {
  position: relative;
  z-index: 2;
  width: 100vw;
  min-height: calc(60vh - 60px); 
  padding: 3rem 2rem;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(30, 30, 30, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin: 1rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  animation: fadeIn 0.8s ease-out;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    width: 100%;
    padding: 2rem 1rem;
    border-radius: 12px;
  }
}

.hero h2 {
  font-size: 3rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
  max-width:  90%;
  animation: fadeIn 1s ease-out;
}

.hero p {
  font-size: 1.3rem;
  color: #d0d0d0;
  line-height: 1.5;
  max-width: 700px;
  margin-bottom: 2rem;
  animation: fadeIn 1s ease-out 0.2s;
}

.hero .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeIn 1s ease-out 0.4s;
}

.hero .cta-button:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    width: 100%;
    padding: 2rem 1rem;
    border-radius: 12px;
  }
  .hero h2 {
    font-size: 2rem;
    max-width: 95%;
  }
  .hero p {
    font-size: 1rem;
    max-width: 100%;
  }
  .hero .cta-button {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
}


.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto; 
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.projects {
  padding: 2rem 1rem;  max-width: 900px;
  margin: 0 auto;
}

.projects h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
  text-align: center;
}


.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}


.card {
  background: rgba(30, 30, 30, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.card p {
  font-size: 0.85rem;
  color: #d0d0d0;
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.card a {
  color: #d0d0d0;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
  display: inline-block; 
}
.card a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: #888;
  background: rgba(18, 18, 18, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.link_re {
  color: #888 !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 12px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.link_re:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.empty-message {
  position: relative;
  text-align: center;
  font-size: 1.2rem;
  color: #999;
  margin-top: 1rem;
  cursor: default;
  transition: transform 0.3s ease, color 0.3s ease;
}

.empty-message:hover {
  color: #d0d0d0;
  transform: scale(1.05);
}

.empty-message::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background-color: #888888;
  transition: width 0.3s ease, left 0.3s ease;
}

.empty-message:hover::after {
  width: 100%;
  left: 0;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
  }

  header h1 {
    font-size: 1.2rem;
  }

  nav a {
    margin: 0.3rem;
    font-size: 0.8rem;
    padding: 5px 10px;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .hero .cta-button {
    font-size: 0.8rem;
    padding: 8px 16px;
  }

  .projects {
    padding: 0.5rem;
  }

  .projects h3 {
    font-size: 1.2rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .card {
    padding: 0.8rem;
  }

  .card h4 {
    font-size: 1rem;
  }

  .card p, .card a {
    font-size: 0.8rem;
  }

  footer {
    padding: 0.8rem;
    font-size: 0.75rem;
  }
}