@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

/* ---------------- Reset & Base ---------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Arial", sans-serif;
  background: white;
  color: #222;
  line-height: 1.6;
  transition: background-color 1.5s ease, color 1.5s ease;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
  transition: all 0.3s ease;
}

div {
  scroll-behavior: smooth;
}

img {
  object-fit: cover;
}

h1, h2, h3 {
  font-weight: 600;
  color: #111;
}

/* ---------------- Navbar ---------------- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 16px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  z-index: 1000;
  width: 85%;
  max-width: 1100px;
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav .logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #000;
}

nav .logo a {
  color: #111;
  font-weight: 700;
  font-size: 16px;
}

nav .nav-links {
  display: flex;
  gap: 24px;
}

nav .nav-links a {
  font-size: 14px;
  color: #333;
  transition: color 0.3s ease;
  font-weight: 500;
}

nav .nav-links a:hover {
  color: grey;
}

/* ---------------- Hero ---------------- */
.header-container.container {
  width: 85%;
  max-width: 1100px;
  margin: 0 auto;
}   

.hero {
  display: flex;
  justify-content: space-between; /* push text left, image right */
  align-items: center;
  gap: 100px; /* spacing between text and image */
  margin-top: 100px;
  flex-wrap: nowrap; /* keep them side by side on wide screens */
}

.hero .content {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.hero .content h1 {
  font-size: 42px;
  line-height: 1.2;
}

.hero .content p {
  font-size: 16px;
  color: #555;
}
.dark-mode .hero .content p {
  font-size: 16px;
  color: white;
}

.hero .content .cta-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 20px;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-weight: 500;
  transition: all 0.3s ease;
}

.hero .content .cta-btn:hover {
  background: #fff;
  color: #000;
  border: 1px solid #000;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.hero img {
  width: 380px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transition: transform 0.4s ease;
}

.hero img:hover {
  transform: scale(1.06) rotate(-1deg);
}

/* ---------------- Floating Action Button ---------------- */
.fab-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 12px;
  z-index: 9999;
}

.fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  cursor: pointer;
}

.fab:hover {
  transform: scale(1.1);
}

/* Menu hidden by default */
.fab-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px) scale(0.8);
  transition: all 0.3s ease;
}

/* Show menu with pop animation */
.fab-menu.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Rotate + button */
.main-fab.open {
  transform: rotate(45deg);
}

/* Brand colors */
.fab.insta {
  background: #E1306C;
}

/* ---------------- Horizontal Bar ---------------- */
.horizontal-bar {
  width: 40%;
  height: 3px;
  background: black;
  border-radius: 4px;
  margin: 20px auto;
}

@keyframes fillBar {
  to {
    width: 80%;
  }
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------- Dark Mode FAB ---------------- */
.dark-mode-fab {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
}

.dark-mode-fab .fab {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  border: none;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

.dark-mode-fab .fab:hover {
  transform: scale(1.1);
  background: #222;
}

/* ---------------- Dark Mode (Unified & Color-only) ---------------- */
body.dark-mode {
  background:linear-gradient(black, #1c1c1c);
  color: #eee;
}

/* text colors only */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode p,
body.dark-mode a {
  color: #eee;
}

/* navbar colors, keep layout identical */
body.dark-mode nav {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

body.dark-mode nav .logo a,
body.dark-mode nav .nav-links a {
  color: #eee;
}

body.dark-mode nav .nav-links a:hover {
  color: #bbb;
}

/* hero CTA color swap only */
body.dark-mode .hero .content .cta-btn {
  background: #eee;
  color: #111;
}

body.dark-mode .hero .content .cta-btn:hover {
  background: #111;
  color: #eee;
}

/* poetry cards and section backgrounds (color only) */
.dark-mode .poetry-section {
  color: #eee;
}

.dark-mode .sample-card {
  background: #1c1c1c;
  color: #eee;
}

.dark-mode .sample-card p.date {
  color: #aaa;
}

/* horizontal bar color only */
body.dark-mode .horizontal-bar {
  background: #f5f5f5;
}

/* footer colors only */
body.dark-mode .site-footer {
  color: #eee;
  border-top: 1px solid #333;
}

body.dark-mode .site-footer a {
  color: #eee;
}

body.dark-mode .site-footer a:hover {
  color: #bbb;
}

/* ---------------- Poetry Section ---------------- */
.poetry-section {
  padding: 60px 20px;
  background: transparent;
  text-align: center;
  transition: background-color 1.5s ease, color 1.5s ease;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  font-weight: bold;
  transition: background-color 1.5s ease, color 1.5s ease;
}

.poetry-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  transition: background-color 1.5s ease, color 1.5s ease;
}

.sample-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px 30px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: background-color 1.5s ease, color 1.5s ease;
  height: 100%;
  flex: 1 1 250px;
  min-width: max-content;
  width: max-content;
}

.poetry-grid {
  align-items: stretch;
}

.poetry-grid > * {
  flex-grow: 1;
}

.sample-card p {
  line-height: 0.7;
  font-size: 0.85rem;
  white-space: pre-line;
}

.sample-card h3 {
  margin-bottom: 5px;
  line-height: 0.7;
  transition: background-color 1.5s ease, color 1.5s ease;
}

.sample-card p.date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.2;
  transition: background-color 1.5s ease, color 1.5s ease;
}

.first,
.second,
.third,
.forth {
  white-space: pre;
}

/* ---------------- Footer ---------------- */
.site-footer {
  color: #222;
  padding: 30px 20px;
  text-align: center;
  font-size: 14px;
  border-top: 1px solid #ddd;
  transition: background-color 1.5s ease, color 1.5s ease;
}

.site-footer a {
  color: #000;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #555;
}

.site-footer .footer-socials {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.site-footer .footer-socials a {
  font-size: 20px;
  color: #000;
  transition: color 0.3s ease;
}

.site-footer .footer-socials a:hover {
  color: #555;
}

/* ---------------- Fade-in on Scroll ---------------- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 3s ease, transform 3s ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 768px) {
  nav {
    gap: 16px;
    flex-wrap: wrap;
  }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
    margin-top: 120px;
    justify-content: center;
    gap: 40px;
  }

  .hero .content {
    text-align: center;
    align-items: center;
  }

  .hero .content h1 {
    font-size: 32px;
  }

  .dark-mode-fab {
    top: 24px;
    right: 30px;
  }

  .site-footer {
    gap: 12px;
  }
}
