/* ===== CV Bùi Phước Vinh — static clone of cv02 template ===== */
:root {
  --highlight: #e65650;
  --main: #000;
  --text: #a8a8a8;
  --top: #B27E3D;
  --black: #252525;
  --white: #fff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background: var(--white);
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--highlight); }
img { max-width: 100%; display: block; }

/* ===== Header (subpages only) ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #eee;
  position: relative;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.site-header .logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--black);
}
.site-header .logo span { color: var(--highlight); }
.site-header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
}
.site-header nav a {
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  letter-spacing: .5px;
}
.site-header nav a.active,
.site-header nav a:hover { color: var(--highlight); }

.menu-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; }

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .site-header nav { width: 100%; display: none; margin-top: 15px; }
  .site-header nav.open { display: block; }
  .site-header nav ul { flex-direction: column; gap: 15px; }
}

/* ===== Homepage hero (split layout) ===== */
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
@media (max-width: 768px) {
  .home-hero { grid-template-columns: 1fr; }
}

.intro-section {
  position: relative;
  overflow: hidden;
  background: #000;
}
.intro-section img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
}
.intro-section .info {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 40px;
}
.intro-section .info-inner { max-width: 380px; }
.intro-section .greet {
  color: var(--white);
  font-size: 24px;
  font-weight: 300;
  margin: 0 0 15px;
}
.intro-section .name {
  color: var(--white);
  font-size: 44px;
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: 1px;
}
.intro-section .title {
  color: var(--highlight);
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.intro-section .socials {
  margin-top: 40px;
  display: flex;
  gap: 15px;
}
.intro-section .socials a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
}
.intro-section .socials a:hover { background: var(--highlight); border-color: var(--highlight); }

/* ===== 4 fancy menu boxes (homepage) ===== */
.fancy-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 100%;
  min-height: 100vh;
}
.fancy-menu .item {
  position: relative;
  overflow: hidden;
  min-height: 240px;
}
@media (max-width: 768px) {
  .fancy-menu { min-height: auto; grid-template-rows: auto auto; }
  .fancy-menu .item { aspect-ratio: 4/3; min-height: auto; }
}
.fancy-menu .item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.fancy-menu .item:hover img { transform: scale(1.08); }
.fancy-menu .item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  transition: background .3s;
}
.fancy-menu .item:hover::after { background: rgba(230,86,80,.55); }
.fancy-menu .item .label {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 2px;
}
.fancy-menu .item .icon {
  font-size: 36px;
  margin-bottom: 18px;
}

/* ===== Info section (3 columns: address / phone / email) ===== */
.info-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 768px) { .info-cols { grid-template-columns: 1fr; } }

.info-cols .item {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  color: var(--white);
}
.info-cols .item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.info-cols .item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
}
.info-cols .item .body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}
.info-cols .item .icon {
  font-size: 42px;
  margin-bottom: 25px;
  color: var(--white);
}
.info-cols .item p {
  font-size: 18px;
  margin: 0;
}

/* ===== Subpage hero strip ===== */
.page-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000;
}
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
}
.page-hero .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 30px;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}
.page-hero .info-inner { max-width: 420px; text-align: left; }
@media (max-width: 768px) {
  .page-hero .container { justify-content: center; }
  .page-hero .info-inner { text-align: center; }
}
.page-hero .greet {
  color: var(--white);
  font-size: 22px;
  font-weight: 300;
  margin: 0 0 12px;
}
.page-hero .name {
  color: var(--white);
  font-size: 38px;
  font-weight: 700;
  margin: 0 0 12px;
}
.page-hero .title {
  color: var(--highlight);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ===== Article / content area ===== */
.article {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 30px;
}
.article h1, .article h2.section-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 40px;
  color: var(--black);
}
.article h2 { font-size: 22px; margin: 30px 0 15px; color: var(--black); }
.article h3 { font-size: 18px; margin: 25px 0 12px; color: var(--black); }
.article p { margin: 0 0 16px; color: #555; font-size: 15px; }
.article ul { padding-left: 22px; }
.article li { margin-bottom: 8px; color: #555; }
.article hr { border: 0; border-top: 1px solid #eee; margin: 30px 0; }
.article strong { color: var(--black); }
.article a { color: var(--highlight); border-bottom: 1px dotted var(--highlight); }

/* ===== Cards grid (used on Thành tựu, Dự án) ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}
.card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.card .card-img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #2a2a2a, #555);
  position: relative;
  overflow: hidden;
}
.card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.card .card-body { padding: 18px 20px; }
.card .card-body h3 { font-size: 16px; margin: 0 0 8px; color: var(--black); }
.card .card-body p { font-size: 13px; color: #777; margin: 0; }
.card .card-tag {
  display: inline-block;
  background: var(--highlight);
  color: var(--white);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

/* ===== Contact form ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 30px;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info p { margin-bottom: 12px; }
.contact-info i { color: var(--highlight); width: 22px; margin-right: 8px; }

.contact-form .form-group { margin-bottom: 18px; }
.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: inherit;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--highlight); }
.btn-submit {
  background: var(--highlight);
  color: var(--white);
  border: 0;
  padding: 13px 35px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  border-radius: 3px;
  transition: background .25s;
  font-family: inherit;
}
.btn-submit:hover { background: #d04540; }

/* ===== Footer ===== */
.site-footer {
  background: var(--main);
  color: var(--text);
  text-align: center;
  padding: 40px 20px;
  font-size: 13px;
}
.site-footer a { color: var(--highlight); }
