@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=DM+Sans:wght@400;500;600&display=swap");

:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --border: #334155;
  --accent: #38bdf8;
  --accent2: #818cf8;
  --green: #34d399;
  --light: #f8fafc;
  --muted: #94a3b8;
  --radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--light);
  font-family: "DM Sans", sans-serif;
  line-height: 1.7;
  font-size: 1rem;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--light);
  text-decoration: underline;
}
a:visited {
  color: var(--accent);
}

ul {
  padding-left: 1.4rem;
}
li {
  margin-bottom: 0.4rem;
}

blockquote {
  border-left: 4px solid var(--accent);
  background: rgba(56, 189, 248, 0.06);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--light);
}

.font-display {
  font-family: "Playfair Display", Georgia, serif;
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.25;
}

#navbar {
  background: linear-gradient(180deg, #1a2744 0%, #1e293b 100%);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  animation: slideDown 0.5s ease both;
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 52px;
  gap: 4px;
}

.nav-link {
  font-family: "DM Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition:
    color 0.2s,
    background 0.2s;
}
.nav-link:hover {
  color: var(--light);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}
.nav-link:visited {
  color: var(--muted);
}
.nav-link.active {
  color: var(--accent);
  font-weight: 700;
}
.nav-link.active:visited {
  color: var(--accent);
}

.page-header {
  background: linear-gradient(180deg, #1a2744 0%, #0f172a 100%);
  border-bottom: 1px solid var(--border);
  padding: 60px 40px;
  text-align: center;
}
.page-header h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
}
.page-header h1 span {
  color: var(--accent);
}
.page-header p {
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
}

#hero {
  background: linear-gradient(180deg, #1a2744 0%, #0f172a 100%);
  padding: 0 40px;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  animation: fadeIn 0.8s ease both;
}
#hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}
#hero h1 span {
  color: var(--accent);
}
#hero p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 540px;
  margin-inline: auto;
}

.btn {
  display: inline-block;
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  margin: 4px;
}
.btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  text-decoration: none;
}
.btn-primary {
  background-color: var(--accent);
  color: var(--bg);
}
.btn-primary:visited {
  color: var(--bg);
}
.btn-outline {
  border: 2px solid var(--border);
  color: var(--light);
}
.btn-outline:visited {
  color: var(--light);
}

#about {
  max-width: 900px;
  margin: 100px auto;
  padding: 0 24px;
}
#about h2 {
  font-size: 2rem;
  margin-bottom: 6px;
}
#about h2 span {
  color: var(--accent);
}
.section-rule {
  width: 60px;
  height: 3px;
  background: var(--accent);
  border: none;
  margin-bottom: 30px;
}
.about-grid {
  display: flex;
  gap: 70px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.about-text {
  flex: 1 1 320px;
  color: var(--muted);
}
.about-text p {
  margin-bottom: 14px;
}
.about-text strong {
  color: var(--light);
}
.about-image {
  flex: 1 1 260px;
  text-align: center;
  margin-top: -40px;
}
.about-image img {
  max-width: 300px;
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  mix-blend-mode: luminosity;
  opacity: 0.9;
  transition: opacity 0.3s ease, mix-blend-mode 0.3s ease;
}

#footer {
  background-color: #1a2744;
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 28px;
  font-size: 0.9rem;
  color: var(--muted);
}

.gallery-container {
  max-width: 980px;
  margin: 40px auto;
  padding: 0 20px;
}
.gallery-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.gallery-card {
  flex: 1 1 280px;
  max-width: 300px;
  background: #1a2744;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.gallery-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); 
}
.gallery-card img { 
  width: 100%; 
  height: 200px; 
  object-fit: cover; 
}
.gallery-caption {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: #1a2744;
  text-align: center;
}
.gallery-caption h4 {
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 4px;
  font-weight: 600;
}
.gallery-caption p {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: "DM Sans", sans-serif;
}

.blog-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 24px;
}
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
  transition: box-shadow 0.2s;
  animation: fadeIn 0.6s ease both;
}
.article-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.article-banner {
  background: #0c1e40;
}
.article-banner img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}
.article-banner .banner-label {
  text-align: center;
  padding: 6px;
  font-size: 0.75rem;
  color: var(--muted);
}
.article-body {
  padding: 28px;
}
.article-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.tag {
  font-weight: 600;
}
.tag-sport {
  color: var(--accent);
}
.tag-music {
  color: var(--green);
}
.tag-vlog {
  color: var(--accent2);
}
.article-date {
  color: var(--muted);
}
.article-body h2 {
  font-size: 1.5rem;
  margin-bottom: 14px;
  line-height: 1.3;
}
.article-body p {
  color: var(--muted);
  margin-bottom: 12px;
}
.article-body p strong {
  color: var(--light);
}
.article-body h3 {
  font-size: 1.05rem;
  color: var(--accent);
  margin: 20px 0 8px;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
}
.article-body ul {
  color: var(--muted);
  margin-bottom: 14px;
}
.article-body ul strong {
  color: var(--light);
}

.video-wrap {
  margin: 20px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.video-wrap video,
.video-wrap iframe {
  width: 100%;
  height: 360px;
  display: block;
  border: none;
}
.video-caption {
  background: var(--bg);
  padding: 8px 14px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.contact-container {
  max-width: 600px;
  margin: 50px auto;
  padding: 0 24px;
}
.contact-container h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  text-align: center;
}
.contact-container > p {
  color: var(--muted);
  text-align: center;
  margin-bottom: 28px;
}

.social-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  justify-content: center;
}
.social-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  transition:
    border-color 0.2s,
    color 0.2s;
}
.social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.social-btn:visited {
  color: var(--muted);
}

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

@media (max-width: 700px) {
  #hero h1 {
    font-size: 2rem;
  }
  .about-grid {
    flex-direction: column;
  }
  .gallery-card {
    max-width: 100%;
  }
  .video-wrap iframe,
  .video-wrap video {
    height: 220px;
  }
  .nav-link {
    padding: 8px 10px;
    font-size: 0.72rem;
  }
}

#backToTop {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.2s ease;
  z-index: 999;
}
#backToTop:hover {
  transform: translateY(-3px);
}

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
#lightbox.active {
  display: flex;
}
#lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease;
}
#lightbox-close {
  position: absolute;
  top: 20px;
  right: 32px;
  font-size: 2.5rem;
  color: var(--light);
  cursor: pointer;
  line-height: 1;
}
#lightbox-close:hover {
  color: var(--accent);
}

#lightbox-prev,
#lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--light);
  font-size: 2rem;
  padding: 12px 18px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}
#lightbox-prev { left: 20px; }
#lightbox-next { right: 20px; }
#lightbox-prev:hover,
#lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

#lightbox-caption {
  position: absolute;
  bottom: 20px;
  color: var(--light);
  font-size: 0.95rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 16px;
  border-radius: 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}
.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: var(--bg);
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.open-badge {
  text-align: center;
  font-size: 0.75rem;
  color: var(--green);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.profile-name {
  text-align: center;
  font-size: 1.4rem;
  color: var(--light);
  margin-bottom: 4px;
}
.profile-role {
  text-align: center;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 16px;
}
.profile-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 16px;
}
.data-label {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 12px;
}
.data-row {
  display: flex;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.data-key {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 1px;
  min-width: 110px;
  padding-top: 2px;
}
.data-val {
  font-size: 0.95rem;
  color: var(--light);
  font-weight: 500;
}