/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Poppins:wght@300;400;600;700&display=swap');
@import '../css/font-awesome.css';

:root {
  --primary-color: #FFD700;
  /* Gold */
  --primary-dark: #B8860B;
  /* Dark Gold */
  --secondary-color: #111111;
  /* Rich Black */
  --secondary-light: #1a1a1a;
  /* Soft Black */
  --text-color: #f0f0f0;
  /* Off-white for dark bg */
  --text-dark: #111111;
  /* Dark text for light areas */
  --text-light: #f4f4f4;
  --white: #ffffff;
  --transition-speed: 0.5s;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

/* Base Reset & Globals */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--secondary-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
}

h3 {
  font-size: 1.75rem;
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.text-center {
  text-align: center;
}

.text-white {
  color: var(--white);
}

.d-flex {
  display: flex;
}

.justify-center {
  justify-content: center;
}

.align-center {
  align-items: center;
}

.gap-20 {
  gap: 20px;
}

/* Header & Navigation */
header {
  background: transparent;
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.3s;
}

header.scrolled {
  background: rgba(0, 0, 0, 0.9);
  position: fixed;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 80px;
  /* Adjust based on logo needs */
  width: auto;
}

nav ul {
  display: flex;
  gap: 30px;
}

nav a {
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Mobile Menu Toggle (Hidden on Desktop) */
.menu-toggle {
  display: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section & Video Carousel */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding-top: 0;
}

.carousel-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /* Simpler overlay to let videos shine */
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h2 {
  color: var(--white);
  font-size: 4rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  animation: fadeInUp 1s ease-out;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  animation: fadeInUp 1.2s ease-out;
}

.hero-socials {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
  animation: fadeInUp 1.4s ease-out;
}

.hero-socials a {
  color: var(--white);
  font-size: 2rem;
  transition: transform 0.3s, color 0.3s;
}

.hero-socials a:hover {
  color: var(--primary-color);
  transform: translateY(-5px);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 50px;
  transition: background 0.3s, transform 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  color: var(--white);
}

/* Stats Section */
.stats-section {
  background: var(--primary-color);
  color: var(--white);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item .count {
  font-size: 3rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.stat-item p {
  font-size: 1.2rem;
  text-transform: uppercase;
}

/* Video/Gallery Section */
.video-section {
  padding: 80px 0;
  background: #f9f9f9;
  color: var(--text-dark);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  margin-bottom: 10px;
  color: var(--primary-dark);
}

/* Interactive Gallery Slider */
.gallery-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  padding: 0 40px;
  /* Space for arrows */
}

.gallery-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease-out;
  padding: 20px 0;
  /* Space for shadows */
}

.video-item {
  flex: 0 0 300px;
  /* Fixed width for consistency */
  position: relative;
  /* Enforce 9:16 Aspect Ratio */
  padding-top: 533px;
  /* 300 * 16/9 approx */
  height: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  background: #000;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.video-item:hover {
  transform: scale(1);
}

.video-item video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Navigation Buttons */
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
}

.gallery-btn:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
  left: 10px;
}

.gallery-next {
  right: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .video-item {
    flex: 0 0 260px;
    /* Slightly smaller on mobile */
    padding-top: 462px;
  }

  .gallery-container {
    padding: 0;
    /* Max width on mobile */
  }

  .gallery-btn {
    display: none;
    /* Optional: hide arrows on mobile if swipe (or just rely on overflow for now) */
  }

  .gallery-track {
    overflow-x: auto;
    /* Allow native swipe on mobile */
    scroll-snap-type: x mandatory;
    padding-left: 20px;
    /* Start padding */
  }

  .video-item {
    scroll-snap-align: center;
  }
}

/* Features/Advantages */
.features-section {
  padding: 80px 0;
  background: var(--white);
  color: var(--text-dark);
}

.feature-block {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.feature-block img {
  width: 150px;
  border-radius: 10px;
  object-fit: cover;
}

.feature-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* Testimonials */
.testimonials {
  background: #f4f4f4;
  padding: 60px 20px;
  border-radius: 10px;
  margin-top: 40px;
  color: var(--text-dark);
  /* Contrast Fix */
}

.testimonial-item {
  margin-bottom: 30px;
  font-style: italic;
}

.testimonial-item span {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  color: var(--primary-color);
  font-style: normal;
}

/* Footer */
footer {
  background: var(--secondary-color);
  color: var(--text-light);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 0.9rem;
  color: #888;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .nav-wrapper {
    flex-wrap: wrap;
  }

  nav {
    display: none;
    /* Add JS toggle later */
    width: 100%;
    margin-top: 20px;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }

  .feature-block {
    flex-direction: column;
  }

  .feature-block img {
    width: 100%;
    height: 200px;
  }
}

/* Generic Grid Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

/* Internal Page Header */
.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/slider1.jpg') center/cover no-repeat;
  padding: 120px 0 60px;
  text-align: center;
  color: var(--white);
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: var(--white);
}

/* Content Blocks */
.content-section {
  padding: 60px 0;
  background-color: var(--white);
  /* Ensure default is white */
  color: var(--text-dark);
  /* Text is dark */
}

.team-member {
  text-align: center;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s;
  color: var(--text-dark);
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 15px;
  object-fit: cover;
}

.team-member h4 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

/* Forms */
form {
  max-width: 600px;
  margin: 0 auto;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  color: var(--text-dark);
  /* Contrast Fix */
}

input,
textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-dark);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

textarea {
  height: 150px;
  resize: vertical;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

/* Blog List */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.blog-item {
  display: flex;
  gap: 20px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
  color: var(--text-dark);
  /* Contrast Fix */
}

.blog-image {
  width: 300px;
  height: 250px;
  object-fit: cover;
  flex-shrink: 0;
}

.blog-content {
  padding: 20px;
  flex-grow: 1;
}

.blog-date {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.blog-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.blog-meta {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .blog-item {
    flex-direction: column;
  }

  .blog-image {
    width: 100%;
    height: 200px;
  }
}

/* Base Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ambient Video Section */
.ambient-video-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}

.ambient-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.ambient-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px);
  /* Blur effect */
  transform: scale(1.1);
  /* Prevent blurred edges */
}

.ambient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.relative-z {
  position: relative;
  z-index: 2;
}

.ambient-video-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.ambient-video-item {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  /* Fits comfortably in container */
  aspect-ratio: 9 / 16;
  background: transparent;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  /* Subtle depth without looking like a frame */
}

.ambient-video-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

@media (max-width: 900px) {
  .ambient-video-grid {
    justify-content: center;
  }

  .ambient-video-item {
    flex: 0 0 45%;
    /* 2 per row on tablets */
    max-width: none;
  }
}

@media (max-width: 600px) {
  .ambient-video-item {
    flex: 0 0 80%;
    /* 1 per row on mobile */
  }
}

/* Hover Gallery Section */
.hover-gallery-section {
  padding: 80px 0;
  background: #111;
  overflow: hidden;
  position: relative;
  color: #fff;
}

.hover-gallery-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 10;
}

.hover-gallery-title h2 {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.hover-gallery-title p {
  color: #aaa;
  font-size: 1.2rem;
}

.hover-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: rotate(-2deg);
  /* Modern tilted look */
  width: 120%;
  /* Wider to cover rotation edges */
  margin-left: -10%;
}

.hover-gallery-row {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}

.hover-gallery-item {
  width: 300px;
  height: 200px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(80%);
}

.hover-gallery-item:hover {
  transform: scale(1.05);
  filter: grayscale(0%);
  box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
  z-index: 10;
}

.hover-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Glass effect overlay on hover */
.hover-gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.hover-gallery-item:hover::after {
  opacity: 1;
}

@media (max-width: 768px) {
  .hover-gallery-container {
    transform: rotate(0deg);
    width: 100%;
    margin-left: 0;
  }

  .hover-gallery-item {
    width: 200px;
    height: 130px;
  }
}