html,
body,
:root {
  min-height: 100%;
  background: #050505;
  overflow-x: hidden;
}

/* Base Panel Styles */
.panel {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.panel video,
.carousel-image {
  width: 100%;
  object-fit: cover;
  transition: transform 1s ease, filter 0.6s ease;
}

/* Gradient Overlay - Global Base */
.panel::after {
  content: "";
  position: absolute;
  inset: 0; 
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.15)
  );
  opacity: 0.9;
  transition: opacity 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

 .carousel-container .carousel-image {
            filter: grayscale(100%) contrast(1.1) brightness(0.7);
            transition: opacity 1s ease, filter 0.6s ease, transform 1s ease;
        }
        
        .panel.active .carousel-container .carousel-image {
            filter: grayscale(0%) brightness(0.9);
        }

/* --- DESKTOP LAYOUT (Large Screens) --- */
@media (min-width: 1024px) {
  .panel {
    flex: 1;
    transition: flex 0.7s ease;
  }

  .panel video, 
  .carousel-container,
  .carousel-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  
  /* Initial Filter State for Desktop (Cinematic) */
  .panel video,
  .carousel-image {
    filter: grayscale(100%) contrast(1.1) brightness(0.7);
  }

  .panel-content {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    right: 3rem;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
  }

  .panel.active {
    flex: 1.25;
  }

  .panel.active video,
  .panel.active .carousel-image {
    filter: grayscale(0%) brightness(0.9);
  }

  .panel.active::after {
    opacity: 1;
  }

  .panel.active .panel-content {
    opacity: 1;
    transform: translateY(0);
  }

  .panel.inactive {
    flex: 0.875;
  }
}

/* --- MOBILE & TABLET LAYOUT (Stacked) --- */
@media (max-width: 1023px) {
  .panel {
    display: flex;
    flex-direction: column;
    flex: none;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Image/Video Container */
  .panel video,
  .carousel-container {
    position: relative !important;
    width: 100%;
    height: 60vh;
    max-height: 500px;
    min-height: 300px;
  }

  /* Carousel Images inside relative container need to fulfill the container */
  .carousel-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* Clear filters on mobile so content is always visible/attractive */
    filter: grayscale(0%) brightness(0.9);
  }
  
  /* Ensure video also has clear filter on mobile */
  .panel video {
     filter: grayscale(0%) brightness(0.9);
  }

  /* Overlay only on the image part */
  .panel::after {
    bottom: auto;
    height: 60vh;
    max-height: 500px;
    min-height: 300px;
  }

  /* Content Below Image */
  .panel-content {
    position: relative !important;
    inset: auto !important;
    padding: 2.5rem 2rem;
    background: #050505;
    opacity: 1 !important;
    transform: none !important;
    z-index: 2;
  }

  .panel-content h2 {
    font-size: 2rem;
    line-height: 1.1;
  }

  /* Disable accordion effects */
  .panel.active, 
  .panel.inactive {
    flex: none;
  }
}

.font-black {
  color: white;
}

.expertise-card {
  background: #050505;
  padding: 3rem 2.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.5s ease;
  position: relative;
}

.expertise-card:last-child {
  border-right: none;
}

.expertise-card .icon {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 2rem;
  transition: all 0.5s ease;
}

.expertise-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  transition: color 0.4s ease;
}

.expertise-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  transition: color 0.4s ease;
}

/* HOVER */
.expertise-card:hover {
  /* background: #ffffff; */
  /* transform: translateY(-8px); */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.expertise-card:hover .icon {
  color: white;
  /* transform: scale(1.1); */
}

.expertise-card:hover h3 {
  color: white;
}

.expertise-card:hover p {
  color: rgba(255, 255, 255, 0.75);
}

 /* SECOND SECTION  */

div svg{
    margin-bottom: 40px;
}

/* THIRD SECTION */

 .audience-item {
    position: relative;
    padding-left: 2.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    transition: all 0.4s ease;
  }

  .audience-item::before {
    content: "—";
    position: absolute;
    left: 0;
    top: 0;
    color: rgba(255,255,255,0.4);
    transition: color 0.4s ease, transform 0.4s ease;
  }

  .audience-item:hover {
    color: white;
    transform: translateX(6px);
  }

  .audience-item:hover::before {
    color: white;
    transform: translateX(2px);
  }

  .audience-item.muted {
    color: rgba(255,255,255,0.35);
  }

  .audience-item.muted:hover {
    color: rgba(255,255,255,0.55);
  }

  /* application */

  
  .form-field {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .form-field label {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    font-weight: 500;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 0.75rem 0;
    font-size: 1rem;
    color: white;
    font-weight: 500;
    outline: none;
    transition: border-color 0.3s ease;
  }

  .form-field input::placeholder,
  .form-field textarea::placeholder {
    color: rgba(255,255,255,0.35);
    font-weight: 500;
  }

  .form-field input:focus,
  .form-field select:focus,
  .form-field textarea:focus {
    border-bottom-color: white;
  }

  .form-field select option {
    background: #050505;
    color: white;
  }

  /* footer */

  .footer-title {
    font-size: 11px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2rem;
    color: white;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    color: rgba(255,255,255,0.45);
  }

  .footer-links a {
    transition: color 0.3s ease;
  }

  .footer-links a:hover {
    color: white;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    color: rgba(255,255,255,0.45);
  }

  .footer-links a {
    transition: color 0.3s ease;
  }

  .footer-links a:hover {
    color: white;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    color: rgba(255,255,255,0.45);
  }

  .footer-links a {
    transition: color 0.3s ease;
  }

  .footer-links a:hover {
    color: white;
  }