@font-face {
  font-family: 'Halimun';
  src: url('Halimun.ttf') format('truetype');
}

/* CSS Variables */
:root {
  --bg-color: #f4f3ef;
  --text-dark: #1a1a1a;
  --accent-brown: #5d4d42;
  --accent-rust: #965b41;
  --font-sans: 'Poppins', sans-serif;
  --font-script: 'Halimun', cursive;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  font-family: var(--font-sans);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Header & Navigation */
header {
  padding: 2.5rem;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

.menu-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--text-dark);
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-btn:hover {
  background-color: var(--text-dark);
}

.menu-btn:hover span {
  background-color: var(--bg-color);
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 1px;
  background-color: var(--text-dark);
  transition: background-color 0.3s ease;
}

/* Main Content Layout */
main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 5%;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Left Section: Typography & Blocks */
.text-section {
  position: relative;
  padding-left: 10%;
}

.title-group {
  width: fit-content;
}

.bars-container {
  display: flex;
  align-items: stretch;
  height: 50px;
  margin-bottom: -15px;
  width: 100%;
  z-index: 1;
  position: relative;
}

.dark-bar {
  background-color: #2a221d;
  width: 18px;
  flex-shrink: 0;
  margin-right: 12px;
}

.light-bar {
  background-color: var(--accent-brown);
  flex: 1;
}

.title-script {
  font-family: var(--font-script);
  font-size: 3.75rem;
  font-weight: 400;
  color: var(--accent-rust);
  position: relative;
  z-index: 2;
  line-height: 1;
  margin-top: 10px;
  left: -20px;
}

.subtitle {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  letter-spacing: 0.8em;
  font-weight: 500;
  margin-top: 0.5rem;
  margin-left: 5px;
}

.author {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 400;
  margin-top: 4rem;
  margin-left: 5px;
}

/* Right Section: Image */
.image-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 2rem 0;
}

.image-wrapper {
  width: 100%;
  max-width: 360px;
  height: 480px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s ease;
}

.image-wrapper:hover img {
  transform: scale(1.05);
}

/* Footer Section */
footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem 5%;
  pointer-events: none;
}

.footer-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  width: calc(50% - 5%);
}

.footer-line {
  flex: 1;
  height: 2px;
  background-color: var(--text-dark);
}

.year {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 400;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .title-script {
    font-size: 4rem;
  }
  .image-wrapper {
    height: 420px;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 6rem;
    text-align: center;
  }

  .text-section {
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .bars-container {
    margin-left: 0;
  }

  .title-script {
    font-size: 3rem;
    margin-top: 8px;
  }

  .subtitle {
    margin-left: 0;
    letter-spacing: 0.4em;
    font-size: 1rem;
  }

  .author {
    margin-left: 0;
    margin-top: 1.5rem;
  }

  .image-section {
    padding: 0 2rem;
  }

  .image-wrapper {
    max-width: 100%;
    height: 320px;
  }

  .menu-btn {
    display: none;
  }

  footer {
    position: static;
    padding: 1rem 5% 2rem;
  }

  .footer-content {
    position: static;
    width: 100%;
  }
}
