* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

:root {
  --bg-color: white;
  --text-color: #222;
  --heading-color: #111;
  --paragraph-color: #444;
  --nav-bg: pink;
  --nav-link-color: #333;
  --hero-bg-start: #dfe9f3;
  --hero-bg-end: #ffffff;
  --card-bg: #ffffff;
  --card-border: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.08);
  --shadow-hover-color: rgba(0, 0, 0, 0.12);
}

body[data-theme="dark"] {
  --bg-color: #1a1a2e;
  --text-color: #e0e0e0;
  --heading-color: #ffffff;
  --paragraph-color: #b0b0b0;
  --nav-bg: #16213e;
  --nav-link-color: #e0e0e0;
  --hero-bg-start: #16213e;
  --hero-bg-end: #1a1a2e;
  --card-bg: #16213e;
  --card-border: #2a2a4a;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --shadow-hover-color: rgba(0, 0, 0, 0.5);
}

body {
  font-family: Arial, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

.topbar {
  position: sticky;
  top: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.logo {
  position: absolute;
  left: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--heading-color);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--nav-link-color);
  font-weight: 600;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #0d6efd;
}

.theme-toggle {
  background: none;
  border: 2px solid var(--nav-link-color);
  color: var(--nav-link-color);
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: 0.3s;
}

.theme-toggle:hover {
  background: var(--nav-link-color);
  color: var(--bg-color);
}

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--hero-bg-start), var(--hero-bg-end));
  padding: 40px 20px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  max-width: 1000px;
  width: 100%;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 12px;
}

.hero-text span {
  color: #0d6efd;
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--paragraph-color);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 380px;
  border-radius: 50%;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.about-section,
.projects-section,
.contact-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 20px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
  color: var(--heading-color);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.about-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 20%;
  display: flex;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  float: right;
  margin-right: 50px;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  margin-left: 2rem;
  top: 200x;;
  position: relative;
  color: var(--heading-color);
}

.about-text p {
  margin-bottom: 15px;
  color: var(--paragraph-color);
  font-size: 1.05rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--card-bg);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 25px var(--shadow-color);
  transition: 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card h3 {
  margin-bottom: 10px;
  color: var(--heading-color);
}

.contact-section {
  text-align: center;
  padding-bottom: 120px;
}

.contact-section a {
  color: #0d6efd;
  text-decoration: none;
}

.contact-section a:hover {
  text-decoration: underline;
}

.hobbies-section,
.gallery-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 120px 40px;
}

.hobbies-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.hobby-container {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 10px 25px var(--shadow-color);
  padding: 24px;
  text-align: center;
  transition: 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.hobby-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px var(--shadow-hover-color);
  border-color: #0d6efd;
}

.hobby-image {
  margin-bottom: 15px;
}

.hobby-image img {
  width: 100%;
  max-width: 300px;
  border-radius: 16px;
  box-shadow: 0 8px 20px var(--shadow-color);
}

.hobby-container h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--heading-color);
}

.hobby-container p {
  color: var(--paragraph-color);
  font-size: 1rem;
}

.hobby-link {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 20px;
  background: #0d6efd;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
}

.hobby-link:hover {
  background: #0b5ed7;
}

.video-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.video-links .hobby-link {
  font-size: 0.85rem;
  padding: 6px 14px;
}

.video-desc {
  color: var(--paragraph-color);
  font-size: 0.9rem;
  margin-top: 12px;
  line-height: 1.5;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 30px;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 25px var(--shadow-color);
  display: block;
  transition: 0.3s;
}

.gallery-item img:hover {
  transform: translateY(-5px);
}

@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-image img {
    max-width: 280px;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image {
    display: flex;
    justify-content: center;
  }

  .hobbies-content {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .navbar {
    flex-direction: column;
    gap: 12px;
  }

  .logo {
    position: static;
  }
}

.softball-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 20px;
}

.softball-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.softball-item img {
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  box-shadow: 0 10px 25px var(--shadow-color);
  display: block;
  transition: 0.3s;
}

.softball-item img:hover {
  transform: translateY(-5px);
}

@media (max-width: 900px) {
  .softball-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .softball-grid {
    grid-template-columns: 1fr;
  }
}

.kdrama-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 20px;
}

.kdrama-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.kdrama-item img {
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  box-shadow: 0 10px 25px var(--shadow-color);
  display: block;
  transition: 0.3s;
}

.kdrama-item img:hover {
  transform: translateY(-5px);
}

@media (max-width: 900px) {
  .kdrama-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .kdrama-grid {
    grid-template-columns: 1fr;
  }
}

.video-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 20px;
}

.video-container {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.video-container iframe {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  box-shadow: 0 10px 25px var(--shadow-color);
}

@media (max-width: 900px) {
  .video-container iframe {
    max-width: 100%;
  }
}