/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  background: #0f0f1a;
  color: #eee;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Gradient & Neon */
.gradient-text {
  background: linear-gradient(45deg, #ff4ecd, #00ffe0, #ffed4a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-move 5s infinite alternate;
}
.neon {
  color: #00ffe0;
  text-shadow: 0 0 5px #00ffe0, 0 0 15px #00ffe0, 0 0 25px #00ffe0;
}

/* Navbar */
nav {
  background: rgba(20,20,30,0.9);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 10px rgba(0,0,0,0.5);
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
}
nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}
nav ul li a:hover {
  color: #ff4ecd;
  text-shadow: 0 0 5px #ff4ecd, 0 0 15px #ff4ecd;
}

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ff4ecd, #00ffe0, #4a90e2);
}
.hero::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, #ff4ecd, #00ffe0, #ffed4a, #ff4ecd);
  animation: rotate-bg 12s linear infinite;
}
.hero-content {
  position: relative;
  z-index: 1;
  color: white;
}
.hero .avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #fff;
  margin-bottom: 15px;
  box-shadow: 0 0 20px #00ffe0;
}
.hero h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}
.hero .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: linear-gradient(45deg, #ff4ecd, #00ffe0);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}
.hero .btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #00ffe0;
}

/* Section chung */
section {
  padding: 50px 20px;
  margin: 20px auto;
  width: 85%;
  max-width: 1100px;
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
}
h2 {
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
  font-size: 1.8em;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}
.project-card {
  background: rgba(255,255,255,0.07);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.project-card img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}
.project-card:hover img {
  transform: scale(1.1) rotate(2deg);
}
.project-card h3 {
  margin: 15px 0 10px;
}
.project-card a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: linear-gradient(45deg, #ff4ecd, #00ffe0);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  transition: 0.3s;
}
.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 20px #00ffe0;
}
.project-card a:hover {
  box-shadow: 0 0 15px #ff4ecd;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  background: rgba(255,255,255,0.1);
  color: white;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 10px #00ffe0;
}
.contact-form button {
  padding: 12px;
  background: linear-gradient(45deg, #ff4ecd, #00ffe0);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.contact-form button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #ff4ecd;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: rgba(20,20,30,0.9);
  color: #eee;
  margin-top: 40px;
  border-radius: 10px 10px 0 0;
}

/* Animations */
@keyframes rotate-bg {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}
@keyframes gradient-move {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
