/* ===== Koi Portfolio — Minimal Black & White CSS (có hiệu ứng cơ bản) ===== */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  background: #000;
  color: #fff;
  line-height: 1.6;
}

/* === HERO TRANG CHỦ (Click Here) === */
body.home .hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  text-align: center;
  animation: fadeIn 1.5s ease-in-out;
}

body.home .hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  animation: slideDown 1.2s ease;
}

body.home .hero p {
  font-size: 18px;
  margin-bottom: 40px;
  animation: fadeInUp 1.4s ease;
}

body.home .hero .btn {
  padding: 12px 28px;
  border: 2px solid #fff;
  border-radius: 50px;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
  animation: pulse 2s infinite;
}

body.home .hero .btn:hover {
  background: #fff;
  color: #000;
  transform: scale(1.05);
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
/* -------- Portfolio Grid -------- */
.portfolio {
  padding: 100px 40px 60px;
  background: #fff;
  color: #000;
}
.portfolio .page-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 700;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.card .meta {
  padding: 14px;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.card:hover img {
  transform: scale(1.06);
}

/* -------- Footer -------- */
.site-footer {
  padding: 30px;
  text-align: center;
  font-size: 14px;
  color: #999;
}

/* -------- Responsive -------- */
@media (max-width: 768px) {
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 16px; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
}

/* Header layout */
.portfolio-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 50px;
  border-bottom: 1px solid #eee;
}

.menu-left ul {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-left ul li a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  transition: color 0.3s ease;
}

.menu-left ul li a:hover {
  color: #000;
}

.logo-center h1 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

.social-right {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.social-right a {
  color: #333;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-right a:hover {
  color: #000;
  transform: translateY(-3px);
}

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 50px;
}

.portfolio-item {
  text-align: center;
}

.portfolio-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

/* -------- Header -------- */
.site-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: transparent;
}
.site-logo a {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
}
.main-menu ul {
  list-style: none;
  display: flex;
  gap: 30px;
}
.main-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}
.main-menu a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}
.main-menu a:hover::after {
  width: 100%;
}

/* -------- Hero Section (Trang chủ) -------- */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #000;
  padding: 20px;
}
.hero h1 {
  font-size: 64px;
  font-weight: 700;
  margin-bottom: 15px;
}
.hero p {
  font-size: 20px;
  margin-bottom: 25px;
}
.hero .hero-btn {
  display: inline-block;
  padding: 14px 34px;
  border: 2px solid #fff;
  border-radius: 30px;
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}
.hero .hero-btn:hover {
  background: #fff;
  color: #000;
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Social icons ở hero */
.hero-social {
  margin-top: 30px;
  display: flex;
  gap: 18px;
  justify-content: center;
}
.hero-social a {
  color: #fff;
  font-size: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}
.hero-social a:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
}



/* ===== MENU CHUNG ===== */

/* Reset */
.site-header ul,
.site-header li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  border-bottom: 1px solid #eee;
  position: relative;
  z-index: 10;
}

/* Logo giữa */
.site-branding {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Menu trái */
.main-navigation {
  flex: 1;
}

.main-navigation ul {
  display: flex;
  gap: 25px;
}

.main-navigation a {
  position: relative;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  transition: color 0.3s ease;
}

.main-navigation a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #000;
  transition: width 0.3s ease;
}

.main-navigation a:hover {
  color: #000;
}

.main-navigation a:hover::after {
  width: 100%;
}

/* Social phải */
.header-social {
  display: flex;
  gap: 15px;
}

.header-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.header-social a:hover {
  background: #000;
  color: #fff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}
/* ===== HEADER PORTFOLIO ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 60px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 cột đều nhau */
  gap: 20px; /* khoảng cách giữa các album */
}

.portfolio-item {
  background: #111; 
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px); /* hiệu ứng hover */
}
