/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
}

/* =========================
   THEMES
========================= */
.theme-light {
  background: #f3f0e8;
  color: #1b1b1b;
}

.theme-green {
  background: #0c4b38;
  color: #f5efe4;
}

.theme-orange {
  background: #a85018;
  color: #f8efe4;
}

/* =========================
   TOP BAR
========================= */
.topbar {
  padding-top: 20px;
  border-bottom: none;
}

.topbar-dark {
  background: rgba(12, 75, 56, 0.95);
  border-bottom: none;
}

.topbar-orange {
  background: rgba(168, 80, 24, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.topbar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.topnav {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.topnav a {
  color: #3b3b3b;
  border: 1.5px solid #6f6660;
  padding: 7px 22px;
  border-radius: 25px;
  font-size: 0.9rem;
  text-transform: lowercase;
  transition: all 0.25s ease;
}

.topnav-light a {
  color: #f8efe4;
}

.topnav a:hover {
  background-color: #6f6660;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.topnav a.active {
  background-color: #6f6660;
  color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #7e3b14;
}

.menu-btn-light {
  color: #f8efe4;
}

/* =========================
   PAGE WRAPPER
========================= */
.page {
  max-width: 1366px;
  margin: 0 auto;
  min-height: 100vh;
}

/* =========================
   HOME
========================= */
.home-page {
  padding: 10px 20px 80px;
}

.home-hero {
  min-height: auto;
  text-align: center;
  padding: 18px 20px 28px;
}

.logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 18px auto 18px;
}

.hero-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6rem;
  font-weight: 500;
  line-height: 1.08;
  margin-bottom: 28px;
}

.hello-italic {
  font-style: italic;
}

.underline-word {
  position: relative;
  display: inline-block;
}

.underline-word::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 16px;
  border-bottom: 3px solid #1b1b1b;
  border-radius: 50%;
  transform: rotate(-2deg);
  animation: scribbleUnderline 3s ease-in-out infinite;
}

.underline-word::before {
  content: "";
  position: absolute;
  left: 6px;
  bottom: -16px;
  width: 0;
  height: 14px;
  border-bottom: 2px solid #1b1b1b;
  border-radius: 50%;
  transform: rotate(1deg);
  animation: scribbleUnderline2 3s ease-in-out infinite;
}

@keyframes scribbleUnderline {
  0% {
    width: 0;
    opacity: 0;
  }
  40% {
    width: 100%;
    opacity: 1;
  }
  80% {
    width: 100%;
    opacity: 1;
  }
  100% {
    width: 0;
    opacity: 0;
  }
}

@keyframes scribbleUnderline2 {
  0% {
    width: 0;
    opacity: 0;
  }
  40% {
    width: 92%;
    opacity: 1;
  }
  80% {
    width: 92%;
    opacity: 1;
  }
  100% {
    width: 0;
    opacity: 0;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.25);
}

.home-collage {
  padding-top: 20px;
  margin-top: 10px;
  margin-bottom: 80px;
  display: flex;
  justify-content: center;
}

.home-photo-box {
  position: relative;
  width: fit-content;
}

.collage-image {
  width: 100%;
  max-width: 1100px;
  height: auto;
  display: block;
}

.divider-line {
  width: 100vw;
  height: 1px;
  background: #c79b62;
  margin: 10px 0;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.quote-section {
  text-align: center;
  margin: 5px 0 0;
}

.quote-text {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.2rem;
  color: #5a5652;
}

.home-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 40px 0 50px;
}

.home-link-card {
  display: block;
  width: 230px;
  min-height: 66px;
  background: #ead7ab;
  color: #1b1b1b;
  padding: 22px 18px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-link-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: -12px;
  width: 0;
  height: 0;
  border-top: 12px solid #d9c28f;
  border-left: 12px solid #ead7ab;
}

.home-link-card p {
  font-size: 0.95rem;
  line-height: 1.4;
}

.home-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
}

.home-link-card {
  display: block;
  width: 230px;
  min-height: 70px;
  background: #ead7ab;
  color: #1b1b1b;
  padding: 20px 18px;
  box-shadow: 0 8px 14px rgba(0,0,0,0.18);
  transform: rotate(-1.5deg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}
.home-link-card:nth-child(2){
  transform: rotate(1.5deg);
}

.home-link-card:nth-child(3){
  transform: rotate(-1deg);
}
.home-link-card:hover{
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.25);
}

/* =========================
   ABOUT
========================= */
.about-theme {
  background:
    linear-gradient(rgba(248, 243, 238, 0.92), rgba(248, 243, 238, 0.92)),
    url("../images/about-bg.jpg") center/cover no-repeat fixed;
}

.about-page {
  padding: 60px 70px 100px;
}

.about-top {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 70px;
  align-items: start;
  margin-bottom: 120px;
}

.about-title {
  color: #a85018;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.5rem;
  font-style: italic;
  font-weight: 700;
  margin-bottom: 38px;
  display: inline-block;
  position: relative;
}

.about-text-block p {
  max-width: 600px;
  margin-bottom: 16px;
  font-size: 1.15rem;
  line-height: 1.72;
  text-align: justify;
  text-justify: inter-word;
}

.about-image-block {
  display: flex;
  justify-content: center;
}

.about-photo {
  width: 365px;
  height: 520px;
  object-fit: cover;
  border-radius: 185px 185px 0 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.section-heading {
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.5rem;
  text-align: center;
}

.accent-heading {
  color: #a85018;
}

.background-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 58px;
  margin-top: 78px;
}

.background-card {
  text-align: center;
  position: relative;
  transition: transform 0.25s ease;
}

.background-card:hover {
  transform: translateY(-6px);
}

.hover-image {
  position: absolute;
  top: 47px;              
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  z-index: 5;
}

.background-card:hover .hover-image {
  opacity: 1;
  transform: translateX(-50%) scale(1.02);
}

.round-icon {
  width: 94px;
  height: 94px;
  margin: 0 auto 26px;
  border-radius: 50%;
  border: 3px solid #d7b182;
  background: #a85018;
  color: #ffffff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.background-card h3 {
  min-height: 52px;
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.card-line {
  width: 100%;
  height: 2px;
  margin: 0 auto 16px;
  background: #c79b62;
}

.background-card p {
  font-size: 0.98rem;
  line-height: 1.55;
  font-weight: 700;
}

/* =========================
   HOBBIES
========================= */
.hobbies-page {
  padding: 86px 64px 90px;
}

.hobbies-header {
  margin-bottom: 78px;
}

.light-heading {
  color: #f5efe4;
}

.hobby-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 58px;
  margin-bottom: 86px;
}

.hobby-card {
  text-align: center;
}

.hobby-card h2 {
  color: #f5efe4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.45;
  min-height: 64px;
}

.gold-line {
  background: #b98b54;
}

.hobby-card p {
  color: #f5efe4;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 292px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 38px;
}

.gallery-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* =========================
   CONTACT
========================= */
.contact-page {
  padding: 78px 76px 90px;
}

.contact-wrapper {
  max-width: 760px;
}

.contact-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.22;
  margin-bottom: 42px;
}

.contact-line-group {
  display: flex;
  align-items: center;
  margin-bottom: 26px;
}

.contact-line {
  height: 2px;
  background: #c89a61;
}

.short-line {
  width: 600px;
}

.long-line {
  width: 260px;
}

.contact-text {
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 38px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  color: #a85018;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 700;
}

.contact-item a {
  color: #f8efe4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-style: italic;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  text-align: center;
  padding: 2px 0 10px;
  font-size: 0.95rem;
  color: #7e3b14;
}

.site-footer-dark,
.site-footer-orange {
  color: #f8efe4;
}

/* =========================
   FADE IN
========================= */
.fade-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-item.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px) {
  .about-top,
  .background-grid,
  .hobby-columns,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 4.7rem;
  }
}

@media (max-width: 768px) {
  .topbar-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .menu-btn {
    display: block;
  }

  .topnav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 14px;
    padding-top: 10px;
  }

  .topnav.open {
    display: flex;
  }

  .page,
  .about-page,
  .hobbies-page,
  .contact-page,
  .home-page {
    padding-left: 24px;
    padding-right: 24px;
  }

  .logo {
    margin-bottom: 60px;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .section-heading {
    font-size: 2.8rem;
  }

  .about-title {
    font-size: 2.5rem;
  }

  .scribble-title::before {
    width: 150px;
    height: 56px;
  }

  .about-photo {
    width: 290px;
    height: 420px;
  }

  .gallery-grid img {
    height: 240px;
  }

  .contact-title {
    font-size: 2.6rem;
  }

  .short-line {
    width: 220px;
  }

  .long-line {
    width: 100px;
  }

  .contact-item a {
    font-size: 1rem;
    word-break: break-word;
  }
}