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

:root {
  --primarycolor: rgb(0, 0, 0);
  --font-size-base: 16px;
  --border-radius-base: 8px;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  line-height: 1.5;
}

body {
  font-family: "Montserrat", sans-serif;
}

/* Common */
h2 {
  font-weight: bold;
  font-size: 2rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 5rem 0;
}

.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primarycolor);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.25s ease;
}

/* Header Section */
header {
  position: sticky;
  top: -5px;
  background: #fff;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header {
  padding: 12px 0px;
  display: flex;
  justify-content: space-between; /* Canh theo trục chính*/
  align-items: center; /* Canh theo trục phụ*/
}

/* Logo */
.header-avatar img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
}

/* Links */
.header-nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

.header-nav a {
  text-decoration: none;
  color: #333;
  transition: 0.2s;
}

.header-nav a:hover {
  color: #000;
  font-weight: 600;
}

.login-btn {
  padding: 8px 16px;
  background: black;
  color: white;
  border-radius: var(--border-radius-base);
  text-decoration: none;
  transition: 0.2s ease;
  cursor: pointer;
}

.login-btn:hover {
  background: #333;
}

/* Main Section */
/* Hero Banner Section */
/* ============================
   HERO BANNER
============================ */
.hero-banner {
  height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 25px;
}

.hero-banner h1 {
  font-size: 3.3rem;
  font-weight: bold;
}

.hero-subtitle {
  max-width: 500px;
  opacity: 0.8;
}

.hero-socials {
  display: flex;
  gap: 20px;
}

.media-icon {
  color: #000;
  display: inline-flex;
  padding: 10px;
  border-radius: 50%;
  transition: 0.25s ease;
  background-color: #dbdddf;
  position: relative;
  z-index: 100;
}

.follow-count {
  top: -10px;
  right: -10px;
  background-color: rgb(0, 0, 0);
  border-radius: 10px;
  padding: 4px;
  font-size: 0.6rem;
  color: white;
  position: absolute;
}

.media-icon:hover {
  background-color: rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.btn-primary:hover {
  background: #606163;
  transform: translateY(-3px);
}

/* ------------ */
/* My Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: center;
}

.skills .skill-item {
  padding: 10px 0;
}

.skill-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  margin-right: 5px;
}

.skill-item {
  display: flex;
  align-items: center;
}

/* My Projects Section */
.projects-gird {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* grid-template-rows: repeat(2, 450px); */
  gap: 30px;
}

/* Card styling */
.card {
  background: #fff;
  border-radius: var(--border-radius-base);
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(51, 50, 50, 0.15);
}

/* Image */
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Card content spacing */
.card > div {
  padding: 20px;
}

/* Description */
.card p {
  color: #555;
}

.card a:hover {
  background: #444;
}

/* ---------------- */
/* About Me Section */
.about-me-container {
  display: flex;
  gap: 40px;
}

.about-me-img {
  flex: 1;
  height: auto;
}

.about-me-img img {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: auto;
  width: 100%;
  border-radius: var(--border-radius-base);
}

.about-me-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Contact Me Section */
.contact-me-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.contact-me-desc {
  max-width: 400px;
  text-align: center;
  color: #555;
}

.contact-me-form {
  width: 100%;
  max-width: 500px;

  background: #fff;
  padding: 30px;
  border-radius: var(--border-radius-base);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);

  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-control {
  display: flex;
  flex-direction: column;
}

.form-control label {
  margin-bottom: 6px;
  font-weight: 500;
}

.form-control input,
.form-control textarea {
  padding: 12px 14px;
  border-radius: var(--border-radius-base);
  border: 1px solid #ccc;
}

.form-control input:focus,
.form-control textarea:focus {
  outline: none;
  border-color: #000;
}

/* Footer Section */
.footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
}

.footer-nav ul {
  display: flex;
  gap: 20px;
  color: var(--primarycolor);
}

.footer li {
  list-style: none;
}

.footer a {
  text-decoration: none;
  color: var(--primarycolor);
}

/* Btn */
.btn-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: black;
  color: white;
  font-size: 18px;
  cursor: pointer;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}
