body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    margin: 0;
    background: #f4f6f8;
    color: #333;
}

/* Container chính */
.container {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

/* Header tổng thể */
header {
  background: linear-gradient(135deg, #2a5298, #1e3c72);
  color: white;
  position: relative;
  padding: 20px 0;
}

/* Giới hạn header theo container */
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* Đồng hồ & lượt truy cập */
.header-top-right {
  position: absolute;
  top: 15px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 0.95rem;
  color: #fff;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeSlideIn 1s ease forwards;
}

/* Ảnh & thông tin trung tâm */
.header-center {
  text-align: center;
  padding-top: 40px;
}

.header-center img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid #fff;
  object-fit: cover;
}

.header-center h1 {
  margin: 10px 0 5px;
  font-size: 2rem;
}

.header-center p {
  font-size: 1rem;
  opacity: 0.9;
}

/* === NAVIGATION DƯỚI HEADER === */
.nav-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 15px;
  padding-top: 10px;
}

.nav-bottom ul {
  display: flex;
  justify-content: flex-start; /* căn trái, có thể đổi thành center nếu muốn giữa */
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 25px;
}

.nav-bottom a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-bottom a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff8e1;
}

/* Giới hạn và làm responsive */
@media (max-width: 768px) {
  .header-top-right {
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
  }

  .header-center img {
    width: 110px;
    height: 110px;
  }

  .header-center h1 {
    font-size: 1.5rem;
  }

  .nav-bottom ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .nav-bottom a {
    font-size: 14px;
    padding: 6px 10px;
  }

}
/* Hiệu ứng fade + slide cho phần góc phải */
.header-top-right {
    position: absolute;
    top: 15px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    font-size: 0.95rem;
    color: #fff;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeSlideIn 1s ease forwards;
}

#clock {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 10px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

/* Keyframe animation */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hiệu ứng hover cho đồng hồ và bộ đếm */
#clock:hover{
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Thêm hiệu ứng “pulse” nhẹ khi rê chuột */
#clock:hover::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    animation: pulseGlow 1.2s ease-out forwards;
}

/* Keyframe cho hiệu ứng sáng nhẹ */
@keyframes pulseGlow {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }

    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

/* Đảm bảo phần tử cha có position để ::after hoạt động */
#clock{
    position: relative;
    overflow: hidden;
}

/* Responsive cho điện thoại */
@media (max-width: 576px) {
    .header-top-right {
        top: 10px;
        right: 10px;
        font-size: 0.8rem;
        gap: 4px;
    }
}

/* Nội dung chính chia 2 cột */
.content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    padding: 30px;
}

/* Sidebar */
.sidebar {
    border-right: 2px solid #f0f0f0;
    padding-right: 20px;
}

.section {
    background: white;
    border-radius: 15px;
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.section:hover {
    transform: translateY(-3px);
}

.section h2 {
    color: #2a5298;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 1.3rem;
}

.section p,
.section ul {
    font-size: 1em;
    line-height: 1.6;
}

/* Kỹ năng */
.skills span {
    display: inline-block;
    background: #eef3fb;
    color: #2a5298;
    padding: 5px 10px;
    border-radius: 8px;
    margin: 4px 4px 0 0;
    font-size: 0.9rem;
}

/* Kinh nghiệm */
.experience-item {
    margin-bottom: 20px;
}

.experience-item h3 {
    margin: 0;
    font-size: 1rem;
    color: #555;
}

.experience-item p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: #555;
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background: #1e3c72;
    color: white;
    font-size: 0.9rem;
}

/* Con trỏ click */
#slide1,
#slide2 {
    cursor: pointer;
}

/* --- Responsive Design --- */

/* Tablet */
@media (max-width: 992px) {
    .content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sidebar {
        border-right: none;
        border-bottom: 2px solid #f0f0f0;
        padding-right: 0;
        padding-bottom: 20px;
    }

    header img {
        width: 120px;
        height: 120px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .section {
        padding: 18px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    header {
        padding: 25px 10px;
    }

    header img {
        width: 100px;
        height: 100px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    header p {
        font-size: 0.9rem;
    }

    .container {
        margin: 20px auto;
    }

    .content {
        padding: 20px 15px;
    }

    .section {
        padding: 15px;
        font-size: 0.95rem;
    }

    .skills span {
        font-size: 0.85rem;
        padding: 4px 8px;
    }
}