:root {
  --primary: #000000;
  --secondary: #111111;
  --accent: #7efe03;
  --light: #f8f9fa;
  --dark: #212529;
}

/* Base Styles */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  line-height: 1.6;
  color: var(--dark);
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  background-color: var(--primary) !important;
  border-bottom: 2px solid var(--accent);
  transition: all 0.3s ease;
  padding: 0.8rem 1rem;
}

.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.9) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.25rem;
}

.navbar-nav {
  padding-top: 1rem;
}

.nav-link {
  padding: 0.5rem 1rem !important;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  max-height: 1200px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
}

#shows {
  position: relative;
  overflow: hidden; /* keeps bg inside */
}

.creators-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; /* make it cover section */
  height: 100%; /* make it cover section */
  background-color: #ffffff;
  opacity: 0.2;
  background-image: linear-gradient(#e3e3e3 2px, transparent 2px),
    linear-gradient(90deg, #e3e3e3 2px, transparent 2px),
    linear-gradient(#e3e3e3 1px, transparent 1px),
    linear-gradient(90deg, #e3e3e3 1px, #ffffff 1px);
  background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
  background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
  background-repeat: repeat;
  z-index: 0;
}

#shows .container {
  position: relative;
  z-index: 1; /* keep text above background */
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Fix for iOS 10+ */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  background-image: url("https://i.imgur.com/d21fzdi.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Buttons */
.btn {
  font-size: 1rem;
  padding: 0.5rem 1.25rem;
  white-space: nowrap;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
}

.btn-accent {
  background-color: #404040;
  border-color: #404040;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-accent:hover {
  background-color: #e03800;
  border-color: #e03800;
  transform: translateY(-2px);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Cards */
.service-card,
.creator-card,
.industry-card {
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

.service-card:hover,
.creator-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 62, 0, 0.1);
}

.carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

.video-slide {
  flex: 0 0 80%;
  background: #404040;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  aspect-ratio: 9 / 16;
  position: relative;
}

.video-slide:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: 0 8px 20px rgba(126, 254, 3, 0.2);
}

.video-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.3s ease;
}

.carousel-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.carousel-nav.left {
  left: 0.5rem;
}

.carousel-nav.right {
  right: 0.5rem;
}

/* Industries Section */
.industry-card {
  background: white;
  border-radius: 0.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
  width: 5rem;
  height: 5rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(126, 254, 3, 0.1);
  border-radius: 50%;
}

.custom-rect-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  aspect-ratio: 3/2;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.industry-icon {
  font-size: 1.75rem;
  color: #404040;
}

/* Contact Form */
#contact .card {
  border: 1px solid var(--accent);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

#contact .form-control {
  background-color: rgba(17, 17, 17, 0.8);
  border: 1px solid #333;
  color: white;
  transition: all 0.3s ease;
}

#contact .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.25rem rgba(255, 62, 0, 0.25);
  background-color: rgba(17, 17, 17, 0.9);
}

#contact label {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

/* Featured Creators */
.creator-card {
  border-radius: 0.75rem;
  overflow: hidden;
  background: white;
}

.creator-image-wrapper {
  position: relative;
  height: 200px; /* Fixed height for consistency */
  overflow: hidden;
  width: 100%; /* Ensure full width */
  background: #f0f0f0; /* Fallback color while image loads */
}

.creator-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* Focus on center of image */
  transition: transform 0.5s ease;
  display: block; /* Remove any default spacing */
}

.creator-image.contain {
  object-fit: contain; /* Shows full image without cropping */
  background: white; /* Add background if image doesn't fill space */
}
.creator-image.portrait {
  object-position: top center; /* Focus on faces for portrait images */
}

.creator-card:hover .creator-image {
  transform: scale(1.05);
}

.social-links {
  position: absolute;
  bottom: -3.125rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.9375rem;
  padding: 0.625rem;
  background: rgba(0, 0, 0, 0.7);
  transition: all 0.3s ease;
}

.creator-card:hover .social-links {
  bottom: 0;
}

.social-icon {
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.creator-bio {
  min-height: 3.75rem;
  margin-bottom: 0.9375rem;
  font-size: 0.9rem;
}

.animate-on-scroll {
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
}

/* Animation Types */
.fadeInUp {
  transform: translateY(1.875rem);
}

.fadeInUp.animated {
  transform: translateY(0);
}

.fadeInLeft {
  transform: translateX(-1.875rem);
}

.fadeInLeft.animated {
  transform: translateX(0);
}

.fadeInRight {
  transform: translateX(1.875rem);
}

.fadeInRight.animated {
  transform: translateX(0);
}

.fadeIn {
  transform: none;
}

.zoomIn {
  transform: scale(0.8);
  opacity: 0;
}

.zoomIn.animated {
  transform: scale(1);
  opacity: 1;
}

/* Section Spacing */
section {
  padding: 3rem 0;
}

/* Success Modal */
.modal-content {
  border: none;
  border-radius: 0.75rem;
}

.check-icon {
  color: var(--accent);
}

/* Icons */
.fas,
.fab {
  margin-right: 0.5rem;
}

/* ==================== */
/* Responsive Adjustments */
/* ==================== */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 576px) {
  .hero {
    min-height: 80vh;
    text-align: center;
  }

  .display-4 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1.1rem;
  }

  .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
  }

  .video-slide {
    flex: 0 0 85%;
  }

  .carousel-nav {
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
  }

  .creator-image-wrapper {
    height: 10rem;
  }

  section {
    padding: 2rem 0;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .video-slide {
    flex: 0 0 60%;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .navbar-brand {
    font-size: 1.5rem;
  }

  .display-4 {
    font-size: 2.5rem;
  }

  .video-slide {
    flex: 0 0 45%;
  }

  .creator-image-wrapper {
    height: 180px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .video-slide {
    flex: 0 0 30%;
  }

  .creator-image-wrapper {
    height: 220px;
  }

  section {
    padding: 4rem 0;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  section {
    padding: 5rem 0;
  }

  .hero {
    min-height: 100vh;
  }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1320px;
  }
}

/* Platform Icons Styling */
.platform-icon {
  text-align: center;
  transition: transform 0.3s ease;
}

.platform-icon:hover {
  transform: translateY(-5px) scale(1.1);
}

.platform-name {
  display: block;
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .platform-icon i {
    font-size: 2.5rem !important;
  }
  .platform-name {
    font-size: 0.8rem;
  }
}

#whyWorkWithUs {
  color: white;
}
