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

:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --text-color: #333;
  --light-gray: #f5f6fa;
  --white: #ffffff;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

/* Header styles */
header {
  background-color: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

.contact-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 20px;
}

.contact-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.contact-icon .fa-phone {
  background: var(--primary-color);
  padding: 10px;
  border-radius: 50%;
}

.contact-icon .fa-whatsapp {
  background: #25d366;
  padding: 10px;
  border-radius: 50%;
}

.contact-icon .fa-telegram {
  background: #0088cc;
  padding: 10px;
  border-radius: 50%;
}

/* Hero section */
.hero-section {
  height: 80vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 0 1rem;
  margin-top: 60px;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-video::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-section h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section p {
  font-size: 1.4rem;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Catalog section */
.catalog-section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.catalog-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.filters select {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.houses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.house-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.house-card:hover {
  transform: translateY(-5px);
}

.house-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.house-info {
  padding: 1.5rem;
}

.house-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.house-description {
  color: #666;
  margin-bottom: 1rem;
}

.house-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: #666;
}

.specifications-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.download-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--secondary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  text-align: center;
}

.download-btn:hover {
  background-color: #2980b9;
}

.archive-btn {
  background-color: var(--accent-color);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.archive-btn:hover {
  background-color: #c0392b;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1001;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  margin: 2rem auto;
  background: var(--white);
  padding: 1rem;
  border-radius: 10px;
  overflow-y: auto;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--white);
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 1002;
}

.swiper {
  width: 100%;
  height: 500px;
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #f5f5f5;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--white);
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 50%;
}

.swiper-pagination-bullet {
  background: var(--white);
  opacity: 0.7;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--secondary-color);
}

.modal-info {
  padding: 1rem;
  background-color: var(--light-gray);
  border-radius: 8px;
  margin-top: 1rem;
}

.modal-info h2 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.modal-info p {
  color: var(--text-color);
  margin-bottom: 1rem;
}

/* Footer styles */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 3rem 1rem 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
}

.footer-link {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--secondary-color);
}

.copyright {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Responsive design */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
    margin-right: 15px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero-section {
    height: 60vh;
    margin-top: 60px;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1.1rem;
  }

  .catalog-section {
    margin: 2rem auto;
  }

  .houses-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .house-card {
    margin: 0 1rem;
  }

  .modal-content {
    margin: 1rem;
    padding: 0.5rem;
  }

  .swiper {
    height: 300px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    padding: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-icons {
    gap: 10px;
  }

  .contact-icon {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 1.8rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .house-title {
    font-size: 1.1rem;
  }

  .house-description {
    font-size: 0.9rem;
  }

  .download-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .view-details {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .contact-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}

.view-details {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  width: 100%;
  text-align: center;
}

.view-details:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.about-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

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

.about-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.about-text h2 {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #333;
  margin-bottom: 15px;
}

.about-text ul {
  list-style-type: none;
  padding-left: 0;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.about-text li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  font-size: 1.1em;
}

.about-text li:before {
  content: "•";
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  font-size: 1.2em;
}

.presentation-container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.presentation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.presentation-header h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin: 0;
}

.download-presentation-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary-color);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.download-presentation-btn:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.presentation-wrapper {
  position: relative;
  width: 100%;
  height: 700px;
  overflow: hidden;
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#pdf-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.pdf-navigation {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 25px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.pdf-nav-btn {
  background: var(--secondary-color);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.pdf-nav-btn:hover {
  background: #2980b9;
  transform: scale(1.1);
}

.pdf-nav-btn:disabled {
  background: #e0e0e0;
  cursor: not-allowed;
  transform: none;
}

#page-num {
  font-size: 18px;
  color: var(--primary-color);
  font-weight: 500;
  min-width: 80px;
  text-align: center;
}

@media (max-width: 768px) {
  .about-section {
    padding: 40px 15px;
  }

  .about-content {
    margin-bottom: 30px;
  }

  .about-text h2 {
    font-size: 28px;
  }

  .about-text ul {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .presentation-container {
    padding: 15px;
  }

  .presentation-wrapper {
    height: 500px;
  }

  .presentation-header {
    flex-direction: column;
    gap: 15px;
  }

  .presentation-header h3 {
    font-size: 22px;
  }

  .download-presentation-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .about-text h2 {
    font-size: 24px;
  }

  .about-text p {
    font-size: 1em;
  }

  .about-text li {
    font-size: 1em;
  }

  .presentation-wrapper {
    height: 400px;
  }
}
