/* styles.css */

:root {
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --accent-color: #e53935; /* A vibrant red for accents */
  --shadow-color: rgba(0, 0, 0, 0.7);
  --whatsapp-green: #25D366; /* WhatsApp green color */
}

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

body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden; /* Prevent horizontal scroll */
  /* Initial page fade-in is handled by JS now after loading */
}

/* Loading Overlay Styles */
#loading-overlay {
  position: fixed;
  inset: 0; /* Cover entire viewport */
  background-color: var(--bg-color); /* Same as body background */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000; /* Ensure it's on top of everything */
  opacity: 1;
  transition: opacity 0.5s ease-out; /* Fade out transition */
}

.loading-logo {
  width: 150px; /* Adjust size as needed */
  height: auto;
  animation: spin 2s linear infinite; /* Spin animation */
  margin-bottom: 1rem; /* Space between logo and text */
}

.loading-text {
  font-size: 1.2rem;
  color: var(--text-color);
}

/* Main Content Wrapper Styles */
#main-content {
  opacity: 1; /* Start visible after loading */
  transition: opacity 0.5s ease-in; /* Fade in transition */
  /* Add initial animations for header/main if desired, triggered by JS */
}

#main-content.content-hidden {
  opacity: 0;
  visibility: hidden; /* Hide from layout and interaction */
  height: 0; /* Collapse space */
  overflow: hidden; /* Prevent content visibility */
}


/* Header and Logo Styles (inside main-content) */
header {
  text-align: center;
  padding: 2rem 1rem;
  /* Removed animation: slideDown - will be triggered by JS if needed */
}

.logo {
  max-width: 200px; /* Adjust as needed */
  width: 50%; /* Responsive width */
  height: auto; /* Maintain aspect ratio */
}

main {
  max-width: 1200px; /* Limit content width */
  margin: 0 auto; /* Center content */
  padding: 1rem;
  text-align: center; /* Center inline-block elements like the button */
}

/* Main video container (YouTube iframe) */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  margin: 2rem 0;
  box-shadow: 0 4px 16px var(--shadow-color);
  border-radius: 0.5rem;
  overflow: hidden;
  /* Removed animation: fadeInUp - will be triggered by JS if needed */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Gallery styles */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid */
  gap: 1rem;
  margin-top: 2rem; /* Add space above gallery */
  margin-bottom: 2rem; /* Add space below gallery */
  text-align: left; /* Reset text-align for grid items */
}

.gallery-item {
  position: relative;
  width: 100%;
  padding-top: 100%; /* Default 1:1 aspect ratio; overridden by JS */
  overflow: hidden;
  opacity: 0; /* Start hidden for JS-triggered animation */
  transform: translateY(20px);
  /* Animation applied via JS */
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer; /* Indicate clickable */
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}


.gallery-item:hover {
  transform: scale(1.05) translateY(0); /* Slight lift on hover */
  box-shadow: 0 6px 20px var(--shadow-color);
}

.gallery-item img,
.gallery-item video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the container */
  pointer-events: none; /* IMPORTANT: Prevent direct interaction (play/click) */
  display: block; /* Remove extra space below */
}

/* Play icon for videos in the gallery */
.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem; /* Make icon larger */
  color: rgba(255, 255, 255, 0.8); /* White with some transparency */
  background-color: rgba(0, 0, 0, 0.5); /* Dark semi-transparent circle */
  border-radius: 50%;
  width: 50px; /* Fixed size */
  height: 50px; /* Fixed size */
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* Icon should not be interactive */
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .play-icon {
    opacity: 1; /* Full opacity on hover */
}

/* Modal (Lightbox) Styles */
.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0; /* Cover the entire viewport */
  background: rgba(0, 0, 0, 0.9); /* Darker overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000; /* Ensure modal is on top */
  padding: 1rem; /* Add padding around content */
  opacity: 0; /* Start hidden for animation */
  pointer-events: none; /* Prevent interaction when hidden */
  transition: opacity 0.3s ease-in-out;
}

.modal.visible {
    opacity: 1;
    pointer-events: auto; /* Allow interaction when visible */
}

.modal-content {
  position: relative;
  max-width: 90%; /* Adjust width to make space for arrows */
  max-height: 95%; /* Limit height */
  display: flex; /* Use flex for easier centering if needed */
  justify-content: center;
  align-items: center;
}

.modal-content img,
.modal-content video {
  display: block;
  max-width: 100%; /* Ensure media fits within modal-content */
  max-height: calc(95vh - 4rem); /* Adjust max height based on viewport and padding */
  width: auto;   /* Maintain aspect ratio */
  height: auto;  /* Maintain aspect ratio */
  object-fit: contain; /* Ensure whole media is visible */
  border-radius: 4px; /* Optional: slight rounding */
}

/* Style for zoomed-in image */
.modal-content img.zoomed {
    max-width: none; /* Allow image to exceed container width when zoomed */
    max-height: none;/* Allow image to exceed container height when zoomed */
    cursor: zoom-out;
    transform: scale(1.5); /* Example basic zoom */
    /* Note: Actual zoom/pan might need JavaScript library */
}

/* Close button for the modal */
.modal-close {
  position: fixed; /* Position relative to viewport */
  top: 15px; /* Distance from top */
  right: 15px; /* Distance from right */
  font-size: 2.5rem; /* Slightly larger */
  font-weight: bold;
  color: #fff;
  background: rgba(0, 0, 0, 0.4); /* Slight background for visibility */
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1005; /* Ensure close button is above arrows and content */
  width: 45px;
  height: 45px;
  line-height: 45px; /* Center the '×' */
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  padding: 0; /* Remove default padding */
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.3); /* Lighten on hover */
  transform: scale(1.1);
}

/* Modal Navigation Arrows */
.modal-nav {
    position: fixed; /* Position relative to viewport */
    top: 50%; /* Center vertically */
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent background */
    color: #fff; /* White arrow */
    border: none;
    font-size: 3rem; /* Large arrow */
    font-weight: bold;
    cursor: pointer;
    z-index: 1001; /* Above content, below close button */
    padding: 10px 15px; /* Padding around arrow */
    border-radius: 8px; /* Rounded corners */
    transition: background-color 0.3s ease, transform 0.2s ease;
    user-select: none; /* Prevent text selection */
    line-height: 1; /* Adjust line height for better vertical centering of char */
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.6); /* Darker on hover */
    transform: translateY(-50%) scale(1.1); /* Scale effect */
}

.modal-prev {
    left: 15px; /* Position left arrow */
}

.modal-next {
    right: 15px; /* Position right arrow */
}


/* WhatsApp Button Style */
.whatsapp-button {
  display: inline-block; /* Allow setting padding and centering */
  background-color: var(--whatsapp-green);
  color: #ffffff; /* White text */
  padding: 10px 20px; /* Medium-small padding */
  border-radius: 20px; /* Rounded corners */
  text-decoration: none; /* Remove underline from link */
  font-weight: bold;
  font-size: 1rem; /* Adjust size as needed */
  margin: 2rem auto; /* Add space around the button and center it */
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.whatsapp-button:hover {
  background-color: #1ebe57; /* Slightly darker green on hover */
  color: #ffffff;
  transform: scale(1.03); /* Slight scale effect */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}


/* Animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Removed page-level animations, handled by JS or applied to specific elements */
/* @keyframes fadeInPage ... */
/* @keyframes slideDown ... */
/* @keyframes fadeInUp ... */

