/**
* Template Name: MyResume (Dark / Modern Customization)
* Custom professional dark theme — replaces the default light MyResume palette.
*
* ============================================================
* DESIGN TOKENS
* ============================================================
* --bg          : page background
* --bg-header   : fixed sidebar header background
* --surface     : cards / panels
* --text        : main text
* --text-muted  : secondary text
* --accent      : single brand accent (used consistently)
* ------------------------------------------------------------
*/

:root {
  --bg:            #0b1020;
  --bg-header:     rgba(11, 16, 32, 0.92);
  --surface:       #111a2e;
  --surface-2:     #16203a;
  --border:        rgba(255, 255, 255, 0.08);
  --text:          #e6ebf5;
  --text-muted:    #9aa6bd;
  --text-faint:    #6b7690;
  --accent:        #4d9fff;
  --accent-soft:   rgba(77, 159, 255, 0.14);
  --accent-hover:  #6cb2ff;
  --success:       #18d26e;
  --danger:        #ed3c0d;
  --radius:        12px;
  --radius-sm:     8px;
  --shadow:        0 10px 30px rgba(0, 0, 0, 0.35);
  --font-body:     "Segoe UI", "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --font-heading:  "Raleway", "Segoe UI", Arial, sans-serif;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  margin: 0;
  overflow-x: hidden;
}

::selection { background: var(--accent-soft); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: #22305a; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #fff;
  font-weight: 700;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover { color: var(--accent-hover); }

p { color: var(--text-muted); }

img { max-width: 100%; }

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 18px;
  bottom: 18px;
  z-index: 996;
  background: var(--accent);
  width: 42px;
  height: 42px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s;
  box-shadow: 0 6px 18px rgba(77, 159, 255, 0.4);
}
.back-to-top i { font-size: 20px; color: #fff; line-height: 0; }
.back-to-top:hover { background: var(--accent-hover); }
.back-to-top.active { visibility: visible; opacity: 1; }

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
#preloader:before {
  content: "";
  width: 56px;
  height: 56px;
  border: 4px solid var(--surface-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: animate-preloader 0.8s linear infinite;
}
@keyframes animate-preloader {
  to { transform: rotate(360deg); }
}

/* Disable aos delay on small screens */
@media screen and (max-width: 768px) {
  [data-aos-delay] { transition-delay: 0 !important; }
}

/*--------------------------------------------------------------
# Header (fixed sidebar)
--------------------------------------------------------------*/
#header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 9997;
  width: 100px;
  padding: 18px 14px;
  overflow-y: auto;
  background: var(--bg-header);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-right: 1px solid var(--border);
  transition: all 0.5s;
}

@media (max-width: 991px) {
  #header {
    width: 280px;
    left: -280px;
    border-right: 1px solid var(--border);
  }
}

#main { margin-left: 100px; }
@media (max-width: 991px) { #main { margin-left: 0; } }

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.nav-menu { padding: 0; display: block; }
.nav-menu * { margin: 0; padding: 0; list-style: none; }
.nav-menu > ul > li { position: relative; white-space: nowrap; margin-bottom: 8px; }

/* Desktop: icon-only pills, label expands on hover */
.nav-menu a {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  padding: 10px;
  font-size: 15px;
  border-radius: 50px;
  background: var(--surface);
  height: 56px;
  width: 56px;
  overflow: hidden;
  transition: all 0.3s;
}
.nav-menu a i { font-size: 20px; width: 24px; text-align: center; flex-shrink: 0; }
.nav-menu a span {
  padding: 0 5px 0 10px;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active,
.nav-menu a.active:focus,
.nav-menu li:hover > a {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 6px 18px rgba(77, 159, 255, 0.35);
}
.nav-menu a:hover span,
.nav-menu a.active span,
.nav-menu li:hover > a span { color: #fff; }
.nav-menu a:hover,
.nav-menu li:hover > a { width: 100%; }

/* Mobile: full-width labels always visible */
@media (max-width: 991px) {
  .nav-menu a { width: 100%; }
  .nav-menu a span { display: inline; }
}

/* Mobile toggle */
.mobile-nav-toggle {
  position: fixed;
  right: 12px;
  top: 12px;
  z-index: 9998;
  border: 0;
  background: var(--surface);
  font-size: 24px;
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 0;
  box-shadow: var(--shadow);
}
.mobile-nav-active { overflow: hidden; }
.mobile-nav-active #header { left: 0; }
.mobile-nav-active .mobile-nav-toggle { background: var(--accent); color: #fff; }

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url("http://lamlamvn.io.vn/up/cover.png") no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Legibility overlay — dark gradient (replaces white tint of original) */
#hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 16, 32, 0.55) 0%,
    rgba(11, 16, 32, 0.4) 55%,
    rgba(11, 16, 32, 0.9) 100%
  );
}
#hero .container { position: relative; z-index: 2; }
@media (min-width: 992px) { #hero .container { padding-left: 60px; } }

#hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}
#hero p {
  color: #d7deeb;
  margin: 18px 0 0;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-family: var(--font-heading);
}
#hero p span { color: var(--accent); font-weight: 600; letter-spacing: 1px; }

#hero .social-links { margin-top: 30px; display: flex; gap: 14px; }
#hero .social-links a {
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
#hero .social-links a:hover {
  color: #fff;
  background: var(--accent);
  border-color: transparent;
  transform: translateY(-3px);
}

@media (max-width: 992px) {
  #hero { text-align: center; }
  #hero .social-links { justify-content: center; }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 70px 0;
  overflow: hidden;
}

.section-title {
  text-align: center;
  padding-bottom: 34px;
}
.section-title h2 {
  font-size: 30px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  position: relative;
  color: #fff;
}
.section-title h2::before {
  content: "";
  position: absolute;
  display: block;
  width: 120px;
  height: 1px;
  background: var(--border);
  bottom: 1px;
  left: calc(50% - 60px);
}
.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 44px;
  height: 3px;
  background: var(--accent);
  bottom: 0;
  left: calc(50% - 22px);
}
.section-title p {
  max-width: 700px;
  margin: 0 auto;
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about .content h3 {
  font-weight: 700;
  font-size: 24px;
  color: var(--text);
}
.about .content ul {
  list-style: none;
  padding: 0;
}
.about .content ul li {
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
}
.about .content ul strong {
  margin-right: 10px;
  color: #fff;
  min-width: 110px;
}
.about .content ul i {
  font-size: 16px;
  margin-right: 5px;
  color: var(--accent);
  line-height: 0;
}
.about .content p:last-child { margin-bottom: 0; }

/*--------------------------------------------------------------
# Facts
--------------------------------------------------------------*/
.facts .count-box {
  padding: 46px 30px 34px;
  margin-top: 30px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}
.facts .count-box i {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  box-shadow: 0 6px 18px rgba(77, 159, 255, 0.4);
}
.facts .count-box span {
  font-size: 34px;
  display: block;
  font-weight: 700;
  color: #fff;
}
.facts .count-box p { margin: 0; font-size: 14px; }

/*--------------------------------------------------------------
# Skills
--------------------------------------------------------------*/
.skills .progress {
  height: 60px;
  display: block;
  background: none;
  border-radius: 0;
}
.skills .progress .skill {
  padding: 10px 0;
  margin: 0;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--text);
}
.skills .progress .skill .val { float: right; font-style: normal; color: var(--text-muted); }
.skills .progress-bar-wrap { background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; }
.skills .progress-bar {
  width: 1px;
  height: 10px;
  transition: 0.9s;
  background-color: var(--accent);
}

/*--------------------------------------------------------------
# Resume
--------------------------------------------------------------*/
.resume .resume-title {
  font-size: 24px;
  font-weight: 700;
  margin: 20px 0;
  color: #fff;
}
.resume .resume-item {
  padding: 0 0 22px 20px;
  margin-top: -2px;
  border-left: 2px solid var(--accent);
  position: relative;
}
.resume .resume-item h4 {
  line-height: 18px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--font-heading);
  color: var(--accent);
  margin-bottom: 10px;
}
.resume .resume-item h5 {
  font-size: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 16px;
  display: inline-block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
}
.resume .resume-item ul { padding-left: 20px; }
.resume .resume-item ul li { padding-bottom: 10px; }
.resume .resume-item:last-child { padding-bottom: 0; }
.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: -9px;
  top: 0;
  background: var(--bg);
  border: 3px solid var(--accent);
}

/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/
.portfolio .portfolio-item { margin-bottom: 30px; }

.portfolio #portfolio-flters {
  padding: 6px 12px;
  margin: 0 auto 25px;
  list-style: none;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
}
.portfolio #portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-muted);
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
}
.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active {
  color: #fff;
  background: var(--accent);
}

.portfolio .portfolio-wrap {
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: var(--shadow);
  z-index: 1;
}
.portfolio .portfolio-wrap img { display: block; width: 100%; height: 280px; object-fit: cover; }
.portfolio .portfolio-wrap::before {
  content: "";
  background: rgba(11, 16, 32, 0.72);
  position: absolute;
  inset: 12px;
  border-radius: var(--radius-sm);
  transition: all ease-in-out 0.3s;
  z-index: 2;
  opacity: 0;
}
.portfolio .portfolio-wrap .portfolio-info {
  opacity: 0;
  position: absolute;
  inset: 0;
  text-align: center;
  z-index: 3;
  transition: all ease-in-out 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.portfolio .portfolio-wrap .portfolio-info h4 {
  font-size: 20px;
  color: #fff;
  font-weight: 700;
  margin: 0 0 4px;
}
.portfolio .portfolio-wrap .portfolio-info p {
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  margin: 0;
}
.portfolio .portfolio-wrap .portfolio-links { margin-top: 12px; z-index: 4; }
.portfolio .portfolio-wrap .portfolio-links a {
  color: #fff;
  margin: 0 4px;
  font-size: 26px;
  display: inline-block;
  transition: 0.3s;
}
.portfolio .portfolio-wrap .portfolio-links a:hover { color: var(--accent); transform: scale(1.1); }
.portfolio .portfolio-wrap:hover::before { inset: 0; opacity: 1; }
.portfolio .portfolio-wrap:hover .portfolio-info { opacity: 1; }

/*--------------------------------------------------------------
# Portfolio Details
--------------------------------------------------------------*/
.portfolio-details { padding-top: 40px; }
.portfolio-details .portfolio-details-slider img {
  width: 100%;
  border-radius: var(--radius);
}
.portfolio-details .swiper-pagination { margin-top: 20px; position: relative; }
.portfolio-details .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: var(--surface-2);
  opacity: 1;
  border: 1px solid var(--accent);
}
.portfolio-details .swiper-pagination .swiper-pagination-bullet-active { background-color: var(--accent); }
.portfolio-details .portfolio-info {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.portfolio-details .portfolio-info ul { list-style: none; padding: 0; font-size: 15px; }
.portfolio-details .portfolio-info ul li + li { margin-top: 10px; }
.portfolio-details .portfolio-description { padding-top: 30px; }
.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.services .icon-box {
  text-align: center;
  padding: 46px 24px 42px;
  transition: all ease-in-out 0.3s;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.services .icon-box .icon {
  margin: 0 auto;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: ease-in-out 0.3s;
  position: relative;
}
.services .icon-box .icon i { font-size: 36px; transition: 0.5s; position: relative; }
.services .icon-box h4 { font-weight: 700; margin: 12px 0 12px; font-size: 22px; }
.services .icon-box h4 a { color: var(--text); }
.services .icon-box h4 a:hover { color: var(--accent); }
.services .icon-box p { font-size: 14px; line-height: 24px; margin-bottom: 0; }
.services .icon-box:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 14px 34px rgba(77, 159, 255, 0.15);
}

/* Service color variants — muted, professional */
.services .iconbox-blue i   { color: #4d9fff; }
.services .iconbox-orange i { color: #ffa76e; }
.services .iconbox-pink i   { color: #e873a0; }
.services .iconbox-yellow i { color: #ffc24e; }
.services .iconbox-red i    { color: #ff7255; }
.services .iconbox-teal i   { color: #38d2c0; }

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonials .section-header { margin-bottom: 40px; }
.testimonials .testimonials-carousel,
.testimonials .testimonials-slider { overflow: hidden; }
.testimonials .testimonial-item { text-align: center; }
.testimonials .testimonial-item .testimonial-img {
  width: 120px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.testimonials .testimonial-item h3 { font-size: 20px; font-weight: 700; margin: 14px 0 4px; color: #fff; }
.testimonials .testimonial-item h4 { font-size: 14px; color: var(--text-muted); margin: 0 0 16px; }
.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right { color: var(--accent); font-size: 28px; opacity: 0.7; }
.testimonials .testimonial-item p { font-style: italic; margin: 0 auto 15px; width: 90%; }
.testimonials .swiper-pagination { margin-top: 20px; position: relative; }
.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px; height: 12px;
  background-color: var(--surface-2);
  opacity: 1; border: 1px solid var(--accent);
}
.testimonials .swiper-pagination .swiper-pagination-bullet-active { background-color: var(--accent); }
@media (min-width: 992px) { .testimonials .testimonial-item p { width: 70%; } }

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info { width: 100%; }
.contact .info i {
  font-size: 20px;
  color: var(--accent);
  float: left;
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
}
.contact .info h4 {
  padding: 0 0 0 62px;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #fff;
}
.contact .info p {
  padding: 0 0 0 62px;
  margin-bottom: 0;
  font-size: 14px;
  color: var(--text-muted);
  word-break: break-word;
}
.contact .info .email,
.contact .info .phone { margin-top: 40px; }
.contact .info .email:hover i,
.contact .info .address:hover i,
.contact .info .phone:hover i {
  background: var(--accent);
  color: #fff;
}

.contact .php-email-form { width: 100%; }
.contact .php-email-form .form-group { padding-bottom: 8px; }

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: var(--danger);
  text-align: left;
  padding: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.contact .php-email-form .error-message br + br { margin-top: 25px; }
.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: var(--success);
  text-align: center;
  padding: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.contact .php-email-form .loading {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  padding: 15px;
  border-radius: var(--radius-sm);
}
.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--success);
  border-top-color: transparent;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: var(--radius-sm);
  box-shadow: none;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact .php-email-form input::placeholder,
.contact .php-email-form textarea::placeholder { color: var(--text-faint); }
.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
  background: rgba(255, 255, 255, 0.06);
}
.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email] { height: 48px; }
.contact .php-email-form textarea { padding: 14px 16px; }

.contact .php-email-form button[type=submit] {
  background: var(--accent);
  border: 0;
  padding: 12px 38px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: 0.4s;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(77, 159, 255, 0.35);
}
.contact .php-email-form button[type=submit]:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(77, 159, 255, 0.45);
}

@keyframes animate-loading {
  to { transform: rotate(360deg); }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: var(--surface);
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  padding: 34px 0;
  border-top: 1px solid var(--border);
}
#footer h3 {
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-heading);
  padding: 0;
  margin: 0 0 15px;
}
#footer p { font-style: italic; padding: 0; margin: 0 0 30px; }
#footer .social-links { margin: 0 0 30px; }
#footer .social-links a {
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  width: 38px;
  height: 38px;
  margin-right: 6px;
  border-radius: 50%;
  transition: 0.3s;
}
#footer .social-links a:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
}
#footer .copyright { margin: 0 0 5px; color: var(--text-muted); }
#footer .credits { font-size: 13px; color: var(--text-faint); }
#footer .credits a { color: var(--text-muted); }
#footer .credits a:hover { color: var(--accent); }
