/* Page Specific Styles */

/* Hero Section */
.hero-section {
  position: relative;
  height: 80vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-section:hover .hero-background img {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    transparent 100%
  );
  z-index: 1;
}

.hero-content {
  max-width: 900px;
  padding: 40px;
  color: white;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.6rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  padding: 12px 30px;
  font-size: 1.1rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

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

/* Content Section */
.content-section {
  padding: 100px 0;
  background: linear-gradient(
    to bottom,
    var(--color-background),
    var(--color-background-alt)
  );
}

.content-inner {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--color-card-bg);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.content-inner:hover {
  transform: translateY(-5px);
}

.content-inner h2 {
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: var(--color-primary);
}

.content-inner p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--color-text);
}

/* Gallery Section */
.gallery-section {
  padding: 100px 25px;
  background-color: var(--color-background);
}

.gallery-grid {
  grid-template-columns: minmax(100px, 1fr) minmax(100px, 1fr) minmax(
      100px,
      1fr
    );
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 0;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.gallery-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-image {
  opacity: 0.9;
}

/* Gallery Modal */
.gallery-modal.show,
.gallery-modal .modal-dialog {
  display: flex;
  align-items: center;
  justify-content: center;
  height: inherit;
  background: rgba(0, 0, 0, 0.85);
}

.gallery-modal .modal-content {
  background-color: transparent;
  border: none;
  box-shadow: none;
}

.gallery-modal .modal-header {
  position: absolute;
  z-index: 999;
  right: 10px;
  top: 10px;
  /* background-color: var(--color-background); */
  border-bottom: none;
  padding: 15px 20px;
  color: var(--color-text);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.gallery-modal .modal-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.gallery-modal .btn-close {
  filter: invert(1);
  background-size: 1.5rem;
}

.gallery-modal .modal-body {
  padding: 0;
  background-color: rgba(0, 0, 0, 0.9); /* Dark overlay for elegance */
}

.gallery-modal .carousel-inner {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.gallery-modal .carousel-item {
  transition: opacity 0.5s ease, transform 0.5s ease; /* Smooth fade transition */
}

.gallery-modal .carousel-item img {
  width: 100%;
  height: auto;
  max-height: 92vh;
  object-fit: contain;
  border-radius: var(--border-radius);
  margin: 0 auto;
}

.gallery-modal .carousel-control-prev,
.gallery-modal .carousel-control-next {
  width: 15%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.gallery-modal .carousel-control-next {
  background: linear-gradient(to left, rgba(0, 0, 0, 0.7), transparent);
}

.gallery-modal .carousel-control-prev:hover,
.gallery-modal .carousel-control-next:hover {
  opacity: 1;
}

.gallery-modal .carousel-control-prev-icon,
.gallery-modal .carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-size: 2rem;
  background-color: var(--color-primary);
  border-radius: 50%;
  filter: none;
}

body.dark-mode .gallery-modal .modal-header {
  background-color: transparent;
  color: var(--color-text);
}

body.dark-mode .gallery-modal .modal-body {
  background-color: rgba(0, 0, 0, 0.95);
}

body.dark-mode .gallery-item {
  box-shadow: var(--box-shadow);
}

body.dark-mode .gallery-item:hover {
  box-shadow: var(--box-shadow-hover);
}

/* Responsive Styles for Gallery */
@media (max-width: 991px) {
  .gallery-section {
    padding: 60px 15px;
  }

  .gallery-image {
    height: 200px;
  }

  .gallery-grid {
    grid-template-columns: minmax(100px, 1fr) minmax(100px, 1fr);
  }

  .gallery-modal .carousel-item img {
    max-height: 70vh;
  }
}

@media (max-width: 767px) {
  .gallery-section {
    padding: 50px 15px;
  }

  .gallery-image {
    height: 180px;
  }

  .gallery-modal .carousel-item img {
    max-height: 60vh;
  }

  .gallery-grid {
    grid-template-columns: minmax(100px, 1fr) minmax(100px, 1fr);
  }
}

@media (max-width: 575px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-image {
    height: 150px;
  }

  .gallery-modal .carousel-item img {
    max-height: 50vh;
  }

  .gallery-modal .modal-title {
    font-size: 1.2rem;
  }

  .gallery-modal .carousel-control-prev-icon,
  .gallery-modal .carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
    background-size: 1.5rem;
  }
}

/* Video Section */
.video-section {
  padding: 100px 0;
  background-color: var(--color-background-alt);
}

.video-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  /* padding-bottom: 56.25%; */
  height: auto;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.video-container video {
  /* position: absolute; */
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  background-color: #000;
}

/* Customize video controls */
.video-container video::-webkit-media-controls-panel {
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: var(--border-radius);
}

.video-container video::-webkit-media-controls-play-button,
.video-container video::-webkit-media-controls-volume-slider,
.video-container video::-webkit-media-controls-timeline {
  filter: brightness(1.2);
}

.video-container video::-webkit-media-controls {
  color: var(--color-primary);
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-dark)
  );
  color: white;
}

.cta-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-content p {
  font-size: 1.4rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  padding: 12px 30px;
  font-size: 1.1rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

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

.btn-white {
  background-color: white;
  color: var(--color-primary);
  border-color: white;
}

.btn-white:hover {
  background-color: transparent;
  color: white;
}

/* Dark Mode Styles */
body.dark-mode .hero-section,
body.dark-mode .content-section,
body.dark-mode .gallery-section,
body.dark-mode .video-section {
  background: var(--color-background-alt);
}

body.dark-mode .content-inner {
  background-color: var(--color-card-bg);
}

body.dark-mode .content-inner h2 {
  color: var(--color-primary);
}

body.dark-mode .content-inner p {
  color: var(--color-text);
}

body.dark-mode .gallery-modal .modal-header {
  background-color: transparent;
  color: var(--color-text);
}

body.dark-mode .gallery-modal .modal-body {
  background-color: rgba(0, 0, 0, 0.95);
}

body.dark-mode .gallery-item {
  box-shadow: var(--box-shadow);
}

body.dark-mode .gallery-item:hover {
  box-shadow: var(--box-shadow-hover);
}

body.dark-mode .video-container {
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

body.dark-mode .video-container:hover {
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.15);
}

/* Responsive Styles */
@media (max-width: 1199px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.4rem;
  }

  .section-header h2 {
    font-size: 2.5rem;
  }

  .cta-content h2 {
    font-size: 2.5rem;
  }

  .content-inner h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 991px) {
  .hero-section {
    height: 70vh;
    min-height: 500px;
  }

  .hero-content {
    padding: 30px;
  }

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

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .content-section,
  .video-section,
  .cta-section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

  .cta-content h2 {
    font-size: 2.2rem;
  }

  .content-inner {
    padding: 30px;
  }
}

@media (max-width: 767px) {
  .hero-section {
    height: 60vh;
    min-height: 400px;
  }

  .hero-content {
    padding: 20px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .content-section,
  .video-section,
  .cta-section {
    padding: 50px 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

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

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1.2rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .content-inner {
    padding: 20px;
  }

  .content-inner h2 {
    font-size: 2rem;
  }

  .content-inner p {
    font-size: 1.1rem;
  }
}

@media (max-width: 575px) {
  .hero-section {
    height: 50vh;
    min-height: 350px;
  }

  .hero-buttons,
  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .hero-buttons .btn,
  .cta-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

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

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll.animated {
  animation: fadeInUp 1s ease-out;
}
