* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
  font-family: "Montserrat", sans-serif;
}

:root {
  --bg-color: #080808;
  --second-bg-color: #101010;
  --text-color: white;
  --main-color: #ea580c;
}

html {
  font-size: 50%;
  overflow-x: hidden;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
}

/* Header */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 4rem 15%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.logo {
  font-size: 3rem;
  color: var(--text-color);
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.logo:hover {
  transform: scale(1.1);
}

span {
  background: linear-gradient(270deg, #DF8908 10%, #ff1d15 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

#menu-icon {
  font-size: 3.5rem;
  color: var(--main-color);
  display: none;
  cursor: pointer;
}

.navbar a {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease-in-out;
  border-bottom: 3px solid transparent;
}

.navbar a:hover {
  color: var(--main-color);
  border-bottom: 3px solid var(--main-color);
}

.gradient-btn {
  font-size: 1.8rem;
  padding: 1rem 2rem;
  border-radius: 3rem;
  background: linear-gradient(270deg, #DF8908 10%, #ff1d15 100%);
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  color: white;
  border: none;
  text-wrap: nowrap;
}

.gradient-btn:hover {
  transform: scale(1.05);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15rem 15% 5rem;
  position: relative;
  overflow: hidden;
}

/* Floating Quotes */
.floating-quotes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.float-quote {
  position: absolute;
  font-size: 8rem;
  font-weight: 700;
  color: var(--main-color);
  opacity: 0.06;
  animation: floatQuote 20s ease-in-out infinite;
}

.float-quote:nth-child(1) {
  top: 10%;
  left: 5%;
  font-size: 12rem;
  animation-delay: 0s;
  animation-duration: 25s;
}

.float-quote:nth-child(2) {
  top: 60%;
  left: 15%;
  font-size: 6rem;
  animation-delay: -5s;
  animation-duration: 18s;
}

.float-quote:nth-child(3) {
  top: 20%;
  right: 10%;
  font-size: 10rem;
  animation-delay: -3s;
  animation-duration: 22s;
}

.float-quote:nth-child(4) {
  top: 70%;
  right: 20%;
  font-size: 5rem;
  animation-delay: -8s;
  animation-duration: 20s;
}

.float-quote:nth-child(5) {
  top: 40%;
  left: 25%;
  font-size: 7rem;
  animation-delay: -12s;
  animation-duration: 24s;
}

.float-quote:nth-child(6) {
  top: 80%;
  left: 60%;
  font-size: 9rem;
  animation-delay: -2s;
  animation-duration: 19s;
}

.float-quote:nth-child(7) {
  top: 5%;
  left: 70%;
  font-size: 6rem;
  animation-delay: -7s;
  animation-duration: 21s;
}

.float-quote:nth-child(8) {
  top: 50%;
  right: 5%;
  font-size: 11rem;
  animation-delay: -10s;
  animation-duration: 23s;
}

@keyframes floatQuote {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.04;
  }
  25% {
    transform: translate(20px, -30px) rotate(5deg);
    opacity: 0.3;
  }
  50% {
    transform: translate(-10px, 20px) rotate(-3deg);
    opacity: 0.4;
  }
  75% {
    transform: translate(15px, 10px) rotate(3deg);
    opacity: 0.03;
  }
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8rem;
  width: 100%;
  max-width: 1200px;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 7rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 3rem;
}

.quote {
  font-size: 2rem;
  font-style: italic;
  color: #cccccc;
  line-height: 1.8;
  position: relative;
}

.quote i {
  color: var(--main-color);
  font-size: 2.5rem;
  vertical-align: middle;
}

.quote-source {
  display: block;
  margin-top: 1.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  font-style: normal;
  background: linear-gradient(270deg, #DF8908 10%, #ff1d15 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-image {
  flex: 0 0 350px;
}

.hero-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 2rem;
  box-shadow: 0 0 30px rgba(234, 88, 12, 0.3);
  transition: 0.4s ease-in-out;
}

.hero-image img:hover {
  box-shadow: 0 0 40px rgba(234, 88, 12, 0.5),
              0 0 80px rgba(234, 88, 12, 0.2);
  transform: scale(1.02);
}

/* Section Title */
.section-title {
  font-size: 5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 5rem;
}

/* Biography Section */
.biography {
  padding: 8rem 15%;
  background: var(--second-bg-color);
}

.bio-container {
  max-width: 900px;
  margin: 0 auto;
}

.bio-content p {
  font-size: 1.8rem;
  line-height: 2;
  color: #cccccc;
  margin-bottom: 2.5rem;
  text-align: justify;
}

.bio-content p:last-child {
  margin-bottom: 0;
}

/* Timeline Section */
.timeline {
  padding: 8rem 15%;
}

.timeline-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--main-color) 0%, transparent 100%);
  z-index: 0;
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  min-height: 20rem;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-content {
  position: absolute;
  left: calc(50% + 4rem);
  top: 0;
  text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
  position: absolute;
  right: calc(50% + 4rem);
  top: 0;
  text-align: right;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 0.5rem;
  transform: translateX(-50%);
  width: 2rem;
  height: 2rem;
  background: var(--main-color);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--main-color);
  z-index: 1;
}

.timeline-content {
  width: max-content;
  max-width: 40rem;
}

.timeline-year {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--main-color);
  background: rgba(234, 88, 12, 0.1);
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}

.timeline-content h3 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.timeline-content p {
  font-size: 1.5rem;
  color: #aaaaaa;
  line-height: 1.6;
}

/* Timeline Book Thumbnail */
.timeline-book {
  margin-top: 1.5rem;
  width: 8rem;
  height: 12rem;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.3s ease-in-out;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 5;
}

.timeline-book:hover {
  border-color: var(--main-color);
  box-shadow: 0 0 20px rgba(234, 88, 12, 0.4);
}

.timeline-book img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s ease-in-out;
}

.timeline-book:hover img {
  transform: scale(1.1);
}

.timeline-item:nth-child(even) .timeline-book {
  margin-left: auto;
}

/* Gallery Section - Masonry */
.gallery {
  padding: 8rem 15%;
  background: var(--second-bg-color);
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: 0.4s ease-in-out;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease-in-out;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover {
  box-shadow: 0 0 40px rgba(234, 88, 12, 0.4);
}

/* Розміри для masonry */
.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

/* Overlay з підписом */
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 2rem 2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  opacity: 0;
  transition: 0.4s ease-in-out;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  font-size: 1.4rem;
  font-weight: 500;
  color: white;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal.active {
  display: block;
}

.modal-content {
  background: var(--second-bg-color);
  margin: 5% auto;
  padding: 0;
  width: 80%;
  max-width: 900px;
  border-radius: 2rem;
  position: relative;
  animation: slideDown 0.4s ease;
}

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

.modal-close {
  position: absolute;
  right: 2rem;
  top: 2rem;
  font-size: 4rem;
  color: var(--main-color);
  cursor: pointer;
  z-index: 10;
  transition: 0.3s ease;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
}

.modal-close:hover {
  transform: rotate(90deg);
  background: var(--main-color);
  color: white;
}

.modal-cover {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 2rem 2rem 0 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.modal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 4rem;
}

.modal-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  background: linear-gradient(270deg, #DF8908 10%, #ff1d15 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  font-size: 1.4rem;
  line-height: 1.4;
}

.modal-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.modal-meta i {
  font-size: 1.8rem;
  color: var(--main-color);
  flex: 0 0 auto;
}

.modal-meta .meta-label {
  color: var(--main-color);
  font-weight: 600;
  white-space: nowrap;
}

.modal-meta .meta-value {
  color: #cccccc;
  font-weight: 500;
}

.modal-text {
  font-size: 1.6rem;
  line-height: 1.9;
  color: #cccccc;
  margin-bottom: 3rem;
}

.modal-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.modal-img {
  width: 100%;
  height: 250px;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 2px solid var(--main-color);
}

.modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s ease;
}

.modal-img:hover img {
  transform: scale(1.1);
}

.modal-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.modal-actions {
  display: flex;
  gap: 1.2rem;
}

.modal-buy-btn {
  flex: 1;
  padding: 1.5rem 3rem;
  background: linear-gradient(270deg, #DF8908 10%, #ff1d15 100%);
  border: none;
  border-radius: 1rem;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-decoration: none;
}

.modal-buy-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px var(--main-color);
}

.modal-secondary-btn {
  flex: 1;
  padding: 1.5rem 3rem;
  background: transparent;
  border: 2px solid var(--main-color);
  border-radius: 1rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--main-color);
  cursor: pointer;
  transition: 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-decoration: none;
}

.modal-secondary-btn:hover {
  background: var(--main-color);
  color: white;
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(234, 88, 12, 0.25);
}

.placeholder-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Footer */
.footer {
  background-color: var(--second-bg-color);
  padding: 50px 0;
}

.footer .social-icons {
  text-align: center;
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  padding: 1rem;
  background: transparent;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  color: var(--main-color);
  margin: 3rem 0.5rem;
  transition: 0.3s ease-in-out;
}

.social-icons a:hover {
  color: var(--text-color);
  background-color: var(--main-color);
  transform: scale(1.2) translateY(-5px);
  box-shadow: 0 0 10px var(--main-color);
}

.footer ul {
  text-align: center;
  font-size: 1.8rem;
  gap: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
}

.footer ul li a {
  color: white;
  border-bottom: 3px solid transparent;
  transition: 0.3s ease-in-out;
}

.footer ul li a:hover {
  border-bottom: 3px solid var(--main-color);
}

.footer .copyright {
  text-align: center;
  margin-top: 40px;
  font-size: 16px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
}

::-webkit-scrollbar-track {
  background-color: var(--bg-color);
}

/* Responsive */
@media (max-width: 1285px) {
  #menu-icon {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    right: 0;
    width: 50%;
    padding: 1rem 3rem;
    background: rgba(0, 0, 0, 0.8);
    border-bottom-left-radius: 2rem;
    border-left: 2px solid var(--main-color);
    border-bottom: 2px solid var(--main-color);
    display: none;
  }

  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
    color: var(--text-color);
  }

  .navbar.active {
    display: block;
  }

  .gradient-btn {
    display: none;
  }
}

@media (max-width: 992px) {
  html {
    font-size: 45%;
  }

  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 5rem;
  }

  .hero-text h1 {
    font-size: 5rem;
  }

  .hero-image {
    flex: 0 0 auto;
  }

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

  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery-item.wide {
    grid-column: span 1;
  }

  .timeline-container::before {
    left: 2rem;
  }

  .timeline-dot {
    left: 2rem;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    position: relative;
    left: auto;
    right: auto;
    text-align: left;
    margin-left: 5rem;
  }

  .timeline-item:nth-child(even) .timeline-book {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }

  .modal-body {
    padding: 2rem;
  }

  .modal-title {
    font-size: 2.5rem;
  }

  .modal-text {
    font-size: 1.4rem;
  }

  .modal-images {
    grid-template-columns: 1fr;
  }

  .modal-close {
    right: 1rem;
    top: 1rem;
    font-size: 3rem;
    width: 3.5rem;
    height: 3.5rem;
  }

  .modal-actions {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 40%;
  }

  .header {
    padding: 3rem 5%;
  }

  .hero {
    padding: 12rem 5% 5rem;
  }

  .biography,
  .timeline,
  .gallery {
    padding: 6rem 5%;
  }

  .section-title {
    font-size: 4rem;
    margin-bottom: 4rem;
  }

  .hero-text h1 {
    font-size: 4rem;
  }

  .quote {
    font-size: 1.6rem;
  }

  .gallery-masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .gallery-item.tall {
    grid-row: span 1;
  }

  .gallery-item.wide {
    grid-column: span 1;
  }

  .footer ul {
    flex-direction: column;
    gap: 2rem;
  }
}