/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Quicksand", sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header styles */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
}

.logo {
  font-family: "Marcellus", serif;
  font-size: 22px;
  text-transform: uppercase;
  color: #000;
  transition: color 0.3s ease;
}

.logo:hover,
.logo:focus {
  color: #2e396c;
}

.main-nav {
  display: flex;
}

.nav-list {
  display: flex;
  gap: 54px;
}

.nav-link {
  font-size: 14px;
  color: #000;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: #2e396c;
}

.nav-link:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #2e396c;
  transition: width 0.3s ease;
}

.nav-link:hover:after,
.nav-link:focus:after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.burger-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #000;
  transition: all 0.3s ease;
}

/* Hero section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 60px;
  background: url("..//assets/img/hero-bg.png") lightgray 50% / cover no-repeat;
  background-position: center;
  text-align: center;
}

.hero-content {
  padding: 20px 30px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  text-align: center;
  background-color: #fffaf2;
}

.hero-title {
  font-family: "Marcellus", serif;
  font-size: 48px;
  color: #2e396c;
  text-transform: uppercase;
}

.hero-subtitle {
  font-family: "Carattere", cursive;
  font-size: 40px;
  color: #000;
}

.cta-button {
  margin-top: 66px;
  padding: 20px 40px;
  border: 1px solid #fff;
  border-radius: 40px;
  backdrop-filter: blur(7px);
  display: inline-block;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.3);
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 30px;
  backdrop-filter: blur(14px);
}

.cta-button:hover,
.cta-button:focus {
  background-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

/* About section */
.about-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 160px 60px;
  color: #fffaf2;
  background-color: #2e396c;
  position: relative;
}

.about-image:nth-child(1) {
  position: absolute;
  left: 120px;
  top: 50%;
  transform: translateY(-50%);
}

.about-image:nth-child(2) {
  position: absolute;
  right: 80px;
  top: 20px;
}

.about-image:nth-child(3) {
  position: absolute;
  right: 160px;
  bottom: 40px;
}

.about-content {
  max-width: 425px;
  margin: 0 auto;
}

.section-title {
  font-family: "Marcellus", serif;
  font-size: 64px;
  text-transform: uppercase;
}

.about-text {
  font-size: 20px;
  margin-top: 30px;
}

/* Collection section */
.collection-section {
  padding: 60px;
  background-color: #fffaf2;
}

.collection-subtitle {
  font-size: 20px;
  color: #2e396c;
  margin-top: 20px;
}

.collection-grid {
  display: flex;
  gap: 11px;
  margin-top: 40px;
}

.collection-item {
  width: 260px;
  height: 390px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-color: #e4e4e4;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collection-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.collection-image {
  height: 286px;
  width: 100%;
  object-fit: cover;
}

.collection-title {
  font-size: 24px;
  color: #2e396c;
  text-align: center;
}

/* FAQ section */
.faq-section {
  padding: 80px 60px;
}

.faq-list {
  margin-top: 20px;
}

.faq-item {
  border: 1px solid #e7e7e7;
  margin-top: 20px;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px;
  font-size: 24px;
  font-weight: 700;
  color: #202020;
  background-color: #fff;
  text-align: left;
  transition: background-color 0.3s ease;
}

.faq-question:hover,
.faq-question:focus {
  background-color: #f9f9f9;
}

.faq-icon {
  margin-left: auto;
  transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 8px 24px 24px;
  font-size: 24px;
  color: rgba(0, 0, 0, 0.7);
  background-color: #fff;
}

/* Contact section */
.contact-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 80px 60px;
}

.contact-info {
  flex: 1;
}

.contact-details {
  font-size: 16px;
  color: #000;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-link {
  text-decoration: underline;
  transition: color 0.3s ease;
}

.contact-link:hover,
.contact-link:focus {
  color: #2e396c;
}

.contact-form {
  width: 384px;
  padding-right: 50px;
  display: flex;
  flex-direction: column;
}

.form-input {
  padding: 18px 20px;
  border: 1px solid #000;
  margin-bottom: 10px;
  color: rgba(0, 0, 0, 0.5);
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #2e396c;
}

.submit-button {
  padding: 19px 0;
  color: #fff;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  background-color: #2e396c;
  border: none;
  transition: background-color 0.3s ease;
}

.submit-button:hover,
.submit-button:focus {
  background-color: #3a4a8c;
}

/* Footer */
.main-footer {
  padding: 40px 60px;
  color: #fff;
  background-color: #2e396c;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-logo {
  font-family: "Marcellus", serif;
  font-size: 28px;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.footer-logo:hover,
.footer-logo:focus {
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 40px;
}

.footer-link {
  font-size: 16px;
  transition: opacity 0.3s ease;
}

.footer-link:hover,
.footer-link:focus {
  opacity: 0.8;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 24px;
}

.copyright {
  font-size: 12px;
}

.social-links {
  display: flex;
  gap: 4px;
}

.social-link {
  padding: 9px;
  border-radius: 21px;
  transition: background-color 0.3s ease;
}

.social-link:hover,
.social-link:focus {
  background-color: rgba(255, 255, 255, 0.2);
}

html {
  scroll-behavior: smooth;
}

.services-section {
  background: #2e396c;
  color: #fffaf2;
  padding: 80px 60px;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 90px;
  row-gap: 30px;
}

.services-item {
  border: 1px solid #ffffff;
  padding: 20px;
}

.services-title {
  font-size: 24px;
  color: #fffaf2;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-family: "Marcellus", serif;
}

.services-btn {
  display: inline-block;
  text-decoration: none;
  background: #fffaf2;
  color: #2e396c;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 24px;
  line-height: 100%;
  letter-spacing: -5%;
  margin-top: 10px;
}

.casino-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.casino-images img {
  width: 100%;
}

.main-section {
  padding: 40px 20px;
}

.gallery-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-images img {
  width: 100%;
  height: auto;
}

/* Responsive styles */
@media (max-width: 991px) {
  .main-header {
    padding: 20px 40px;
  }

  .hero {
    padding: 80px 40px;
  }

  .casino-images {
    grid-template-columns: repeat(1, 1fr);
  }

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

  .casino-section {
    padding: 40px 20px;
  }

  .about-section {
    padding: 120px 40px;
  }

  .collection-section {
    padding: 40px;
  }

  .faq-section {
    padding: 60px 40px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .contact-section {
    padding: 60px 40px;
    flex-direction: column;
    align-items: center;
  }

  .contact-info {
    margin-bottom: 40px;
  }

  .main-footer {
    padding: 30px 40px;
  }

  .collection-grid {
    flex-wrap: wrap;
    justify-content: center;
  }

  .about-image:nth-child(1) {
    left: 30px;
    top: 0px;
    transform: none;
    width: 80px;
  }

  .about-image:nth-child(2) {
    right: 0px;
    top: 20px;
    width: 140px;
  }

  .about-image:nth-child(3) {
    right: 95px;
    bottom: 20px;
    width: 115px;
  }

  .services-list {
    grid-template-columns: repeat(1, 1fr);
    column-gap: 0;
    row-gap: 30px;
  }

  .services-section {
    padding: 40px 20px;
  }
}

@media (max-width: 640px) {
  .main-header {
    padding: 20px 20px;
  }

  .logo {
    z-index: 10;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    z-index: 5;
  }

  .main-nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .nav-link {
    font-size: 24px;
  }

  .mobile-menu-toggle {
    display: flex;
    z-index: 10;
  }

  .mobile-menu-toggle.active .burger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .mobile-menu-toggle.active .burger-line:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active .burger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .hero {
    padding: 60px 20px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 32px;
  }

  .about-section {
    padding: 100px 20px;
    flex-direction: column;
  }

  .about-images {
    margin-left: 0;
    margin-top: 20px;
  }

  .section-title {
    font-size: 48px;
  }

  .collection-section {
    padding: 20px;
  }

  .collection-grid {
    flex-direction: column;
    align-items: center;
  }

  .faq-section {
    padding: 40px 20px;
  }

  .contact-section {
    padding: 40px 20px;
  }

  .contact-form {
    width: 100%;
    padding-right: 0;
  }

  .main-footer {
    padding: 20px 20px;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .social-links {
    margin-top: 10px;
  }
}
