/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #0a0a0a;
  color: #eee;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: #111;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.menu li a {
  color: #eee;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.menu li a:hover,
.menu li a.active {
  color: #ff7e5f;
}

.hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

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

.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 aspect ratio */
  min-height: 100vh;
  min-width: 177.77vh; /* 16:9 aspect ratio */
  transform: translate(-50%, -50%);
  filter: brightness(0.4);
  border: none;
}

.hero-text {
  max-width: 900px;
  color: #fff;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  animation: fadeInUp 1.5s ease forwards;
}

.hero-text h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.3rem;
  line-height: 1.4;
}

.intro-contact {
  max-width: 700px;
  margin: 3rem auto;
  padding: 0 1rem;
  text-align: center;
}

.intro-contact h2 {
  color: #ff7e5f;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.intro-contact p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #111;
  color: #666;
  margin-top: auto;
  font-size: 0.9rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Videos Page Styles */
.page-header {
  text-align: center;
  padding: 4rem 2rem 2rem;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #fff;
}

.page-header p {
  font-size: 1.2rem;
  color: #ccc;
  max-width: 600px;
  margin: 0 auto;
}

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

.video-item {
  background: #1a1a1a;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

.video-info {
  padding: 1.5rem;
}

.video-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.video-info p {
  color: #ccc;
  line-height: 1.6;
}

/* Photo Domains Navigation */
.photo-domains-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem;
  background: #111;
  margin-bottom: 2rem;
}

.domain-btn {
  background: #2a2a2a;
  color: #ccc;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.domain-btn:hover,
.domain-btn.active {
  background: #ff7e5f;
  color: white;
  transform: translateY(-2px);
}

/* Photo Domain Sections */
.photo-domain {
  margin-bottom: 4rem;
}

.domain-header {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  margin-bottom: 2rem;
}

.domain-header h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.domain-header p {
  font-size: 1.1rem;
  color: #ccc;
  max-width: 600px;
  margin: 0 auto;
}

/* Photos Grid */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  padding: 0 2rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.photo-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

.photo-item:hover img {
  transform: scale(1.05);
}

.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.photo-item:hover .photo-overlay {
  transform: translateY(0);
}

.photo-overlay h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.photo-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Books Page Styles */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.book-item {
  display: flex;
  background: #1a1a1a;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 250px;
}

.book-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.book-cover {
  position: relative;
  flex: 0 0 150px;
  overflow: hidden;
}

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

.book-item:hover .book-cover img {
  transform: scale(1.05);
}

.book-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.view-book-btn {
  background: #ff7e5f;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.view-book-btn:hover {
  background: #ff6b47;
}

.book-info {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.book-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.book-subtitle {
  font-size: 1rem;
  color: #ff7e5f;
  margin-bottom: 1rem;
  font-weight: 500;
}

.book-description {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: auto;
  font-size: 0.95rem;
}

.book-details {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #333;
}

.book-year,
.book-pages {
  font-size: 0.85rem;
  color: #999;
  background: #2a2a2a;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
}

/* Responsive Design for Videos and Photos */
@media (max-width: 768px) {
  .videos-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
  }
  
  .photos-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1rem;
  }
  
  .books-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
  }
  
  .book-item {
    flex-direction: column;
    min-height: auto;
  }
  
  .book-cover {
    flex: 0 0 200px;
    width: 100%;
  }
  
  .page-header h1 {
    font-size: 2.5rem;
  }
  
  .page-header p {
    font-size: 1rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .menu {
    gap: 1rem;
  }
}
