:root {
  --primary: #8c9eff;     
  --accent: #b59cff;         
  --text: #dcd7f7;            /* chữ chính */
  --subtext: #aaa6c3;         /* chữ phụ */
  --bg: linear-gradient(135deg, #1e1e2f, #2b1e46, #0d0d13);
  --card: rgba(40, 40, 60, 0.85);
  --shadow: rgba(0, 0, 0, 0.45);
  --radius: 12px;
  --transition: all 0.3s ease;
}

/* ==================== TOÀN TRANG ==================== */
body {
  font-family: "Inter", "Manrope", Arial, sans-serif;
  margin: 0;
  background: var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.7;
  letter-spacing: 0.3px;
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 15, 25, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 1rem 0;
}

.navbar a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  margin: 0 1.2rem;
  transition: var(--transition);
}

.navbar a:hover {
  color: var(--accent);
  text-shadow: 0 0 6px rgba(181, 156, 255, 0.4);
}

/* ==================== BANNER ==================== */
.banner {
  background: var(--bg);
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #f1f1f1;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.5);
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(178, 124, 245, 0.2), transparent 70%);
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 60%, rgba(0, 123, 255, 0.15), transparent 70%);
}

.banner h1 {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.banner p {
  font-size: 1.1rem;
  color: #cfcfcf;
  margin-top: 1rem;
  z-index: 1;
  max-width: 700px;
  line-height: 1.6;
}

/* ==================== LAYOUT CHUNG ==================== */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

section {
  margin-bottom: 4rem;
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 20px var(--shadow);
  backdrop-filter: blur(8px);
  transition: 0.3s;
}

section:hover {
  box-shadow: 0 6px 25px rgba(181, 156, 255, 0.25);
}

h2 {
  color: var(--accent);
  border-bottom: 2px solid var(--primary);
  display: inline-block;
  margin-bottom: 1.5rem;
  padding-bottom: 0.3rem;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(178, 124, 245, 0.25);
}

/* ==================== THÔNG TIN CÁ NHÂN ==================== */
.about-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding: 2rem 1rem;
}

.about-info {
  flex: 1 1 50%;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-info ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.about-info li {
  margin-bottom: 1.2rem;
  color: var(--text);
}

.about-info strong {
  color: var(--accent);
  font-weight: 600;
  margin-right: 0.5rem;
}

.about-photo {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-photo img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35),
              0 0 30px rgba(181, 156, 255, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-photo img:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 45px rgba(140, 111, 240, 0.3),
              0 0 40px rgba(178, 124, 245, 0.25);
}

/* ==================== KỸ NĂNG ==================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.skills-grid div {
  background: rgba(55, 55, 75, 0.9);
  padding: 1rem;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  transition: 0.3s;
}

.skills-grid div:hover {
  background: rgba(70, 60, 100, 0.95);
}

/* ==================== DỰ ÁN ==================== */
#projects {
  text-align: Left;
}

#projects h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2rem;
}

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

.project-card {
  background: rgba(50, 50, 70, 0.9);
  border: 1px solid rgba(150, 120, 255, 0.2);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  padding: 1.5rem;
  text-align: left;
  color: var(--text);
  transition: 0.3s;
}

.project-card:hover {
  background: rgba(70, 60, 100, 0.95);
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.25);
}

.project-card h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.95rem;
  color: var(--subtext);
  line-height: 1.5;
}

/* ==================== GALLERY ==================== */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.photo-gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: var(--transition);
}

.photo-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(150, 120, 255, 0.3);
}

/* ==================== LIÊN HỆ ==================== */
#contact {
  background: rgba(40, 40, 60, 0.85);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  text-align: center;
}

#contact h2 {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px rgba(178, 124, 245, 0.25);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  background: rgba(60, 60, 80, 0.6);
  color: var(--text);
  font-size: 1rem;
  text-decoration: none;
  transition: 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.contact-item i {
  color: var(--accent);
  font-size: 1.3rem;
}

.contact-item:hover {
  transform: translateY(-5px);
  background: rgba(90, 70, 120, 0.9);
  box-shadow: 0 6px 20px rgba(181, 156, 255, 0.25);
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-item {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  .about-photo img {
    max-width: 320px;
    margin-bottom: 1.5rem;
  }
}
