/* ─── 1. CORE VARIABLES & RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --flame: #FF4D00;        /* Vibrant Studio Orange */
  --flame-glow: rgba(255, 77, 0, 0.4);
  --void: #191919;         /* OLED Black */
  --soot: #0E0E12;
  --charcoal: #0D0D0F; 
  --ash: #16161A;
  --smoke: #2A2A34;
  --fog: #9999A8;
  --light: #F0EDE8;
  --glass: rgba(255, 255, 255, 0.03);
  --ui-border: rgba(255, 255, 255, 0.08);
  
  --display: 'Bebas Neue', sans-serif;
  --body: 'DM Sans', sans-serif;
  --nav-h: 65px;
}

html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--flame) var(--soot); }
body {
  font-family: var(--body);
  background: var(--void);
  color: var(--light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Cinematic Vignette Overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.16) 100%);
  pointer-events: none;
  z-index: 50;
}

/* Film Grain */
body::after {
  content:''; position:fixed; inset:0; pointer-events:none; z-index:9999;
  opacity:.03;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── 2. NAVIGATION ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 64px);
  transition: all 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 5, 6, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ui-border);
}
.nav-logo img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 11px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--fog); text-decoration: none; position: relative; transition: color .3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--flame); }

/* Mobile Menu Trigger */
.nav-burger {
  display: none; /* Stays hidden on desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001; /* Keeps burger above the mobile overlay */
}

.nav-burger span {
  width: 100%;
  height: 2px;
  background-color: var(--light);
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* This creates the 'X' when the menu is open */
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 999; background: var(--void);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  opacity: 0; pointer-events: none; transition: .4s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--display); font-size: 48px; color: var(--light); text-decoration: none; }

/* ─── 3. BUTTONS & UI ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; transition: .4s; border-radius: 2px;
}
.btn-primary { background: var(--flame); color: white; box-shadow: 0 4px 15px var(--flame-glow); }
.btn-primary:hover { transform: translateY(-3px); background: #ff5e1a; box-shadow: 0 8px 25px var(--flame-glow); }
.btn-ghost { border: 1px solid var(--ui-border); color: var(--light); }
.btn-ghost:hover { border-color: var(--flame); color: var(--flame); }

/* This is the part that adds the orange line to EVERY section label */
.section-label::before, .hero-eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--flame);
  flex-shrink: 0;
}

/* ── 4. CTA BANNER ── */
.cta-banner {
  background: var(--flame); 
  padding: 20px 20px;      /* Large vertical padding for that "ribbon" feel */
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-content {
  display: flex;
  flex-direction: column;   /* Stacks text and button */
  align-items: center;
  gap: 20px;                /* Creates space between the quote and the button */
  max-width: 900px;
}

.cta-banner p {
  color: #ffffff;
  font-size: clamp(20px, 2.5vw, 20px);
  font-style: normal;      /* <--- THIS IS THE CODE FOR NOT ITALIC */
  font-weight: 500;       /* I added a bit of weight so it looks bold and professional */
  line-height: 1.5;
  margin: 0;
  letter-spacing: 0.01em; /* Optional: makes clean text easier to read */
}

/* ── THE CTA BUTTON ── */
.btn-white {
  display: inline-block;
  background: #ffffff;
  color: var(--flame);      /* Orange text on white button */
  padding: 18px 45px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  background: #fdfdfd;
  letter-spacing: 0.2em;    /* Subtle elegant hover effect */
}

/* ─── 5. REVEAL ANIMATIONS ─── */
.reveal { 
  opacity: 0; 
  transform: translateY(30px); /* Starts lower */
  transition: 0.8s cubic-bezier(0.2, 1, 0.3, 1); 
}

.reveal.visible { 
  opacity: 1; 
  transform: translateY(0); /* Ends in place */
}

/* Responsive */
@media (max-width: 900px) {
  .nav-burger {
    display: flex; /* This turns the burger ON for mobile */
  }
  .nav-links {
    display: none; /* This hides the text links on mobile */
  }
}

/* ─── 6. HERO SECTION ─── */
#home { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-slideshow { position: absolute; inset: 0; z-index: 0; }
.hero-slide { 
  position: absolute; inset: 0; background-size: cover; background-position: center; 
  opacity: 0; transition: opacity 1.5s ease-in-out; 
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, transparent 50%, var(--void) 100%),
              linear-gradient(90deg, rgba(5,5,6,0.8) 0%, transparent 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 clamp(24px, 4vw, 64px); max-width: 1000px; }
.hero-eyebrow { 
  color: var(--flame); 
  letter-spacing: 0.3em; 
  text-transform: uppercase; 
  font-size: 12px; 
  margin-bottom: 20px; 
  display: flex;        
  align-items: center;  
  gap: 15px;            
}
.hero-title { 
  font-family: var(--display); 
  font-size: clamp(50px, 10vw, 110px); 
  line-height: 0.9; 
  margin-bottom: 24px; 
  letter-spacing: -0.02em;
  text-wrap: balance; /* Prevents single words on a line */
  text-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Depth for readability over images */
}

.hero-desc { 
  color: var(--fog); 
  max-width: 550px; 
  line-height: 1.8; 
  font-size: 17px; 
  text-wrap: pretty; /* Modern way to prevent 'orphans' at the end of paragraphs */
  border-left: 2px solid var(--flame); /* Vertical orange accent line */
  padding-left: 24px;
}

.hero-ctas { 
  display: flex; 
  gap: 16px; 
  margin-top: 48px; 
  flex-wrap: wrap; 
}
/* --- STAGED HERO FADE-IN --- */

/* 1. Set starting state (invisible and slightly lower) */
#home .hero-eyebrow, 
#home .hero-title, 
#home .hero-desc, 
#home .hero-ctas {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

/* 2. Set final state (triggered by JS class 'hero-loaded') */
#home.hero-loaded .hero-eyebrow { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
#home.hero-loaded .hero-title { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
#home.hero-loaded .hero-desc { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }
#home.hero-loaded .hero-ctas { opacity: 1; transform: translateY(0); transition-delay: 0.8s; }

/* --- HERO SCROLL INDICATOR --- */
.scroll-indicator {
  position: absolute;
  bottom: 110px; /* Sits exactly above the ticker */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 10;
  opacity: 0;
  /* This waits for the hero to load before appearing */
  animation: fadeInIndicator 1s ease 2.5s forwards; 
}

.mouse {
  width: 22px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 3px;
  height: 7px;
  background: var(--flame);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}

.scroll-indicator span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--fog);
  font-weight: 500;
}

/* --- ANIMATIONS --- */
@keyframes scrollWheel {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 15px); }
}

@keyframes fadeInIndicator {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Hide on small screens to keep the hero clean */
@media (max-height: 700px) {
  .scroll-indicator { display: none; }
}

/* ─── 7. MODAL & TICKER ─── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-video { width: 90%; aspect-ratio: 16/9; max-width: 1100px; }
.modal-video iframe { width: 100%; height: 100%; border: none; }
.modal-close { position: absolute; top: 30px; right: 30px; color: white; font-size: 40px; cursor: pointer; background: none; border: none; }

/* REPLACED CODE STARTS HERE */
.ticker-wrap { 
  position: absolute; 
  bottom: 0; 
  left: 0; 
  right: 0; 
  z-index: 20;
  
  background: rgba(13, 13, 15, 0.85); 
  backdrop-filter: blur(10px); 
  border-top: 1px solid var(--ui-border); 
  padding: 20px 0; 
  overflow: hidden; 

  /* THE FADE MASK */
  -webkit-mask-image: linear-gradient(
    to right, 
    rgba(0,0,0,0) 0%, 
    rgba(0,0,0,1) 20%, 
    rgba(0,0,0,1) 80%, 
    rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(
    to left, 
    rgba(0,0,0,0) 0%, 
    rgba(0,0,0,1) 20%, 
    rgba(0,0,0,1) 80%, 
    rgba(0,0,0,0) 100%
  );
}

.ticker { 
  display: flex; 
  gap: 100px; 
  animation: scroll 80s linear infinite; 
  white-space: nowrap;
  align-items: center;
  /* ADD THIS LINE: Ensures the ticker doesn't wrap or stop early */
  width: max-content; 
}

.ticker-logo { 
  height: 50px;      
  width: auto;
  display: block;
  filter: brightness(0) invert(1); 
  opacity: 0.6;      
  transition: opacity 0.3s;
  /* ADD THIS LINE: Prevents logos from shrinking on small screens */
  flex-shrink: 0; 
}

.ticker-logo:hover {
  opacity: 1;        
}

/* UPDATE THIS PART: Change -50% to -33.333% */
@keyframes scroll { 
  from { transform: translateX(0); } 
  to { transform: translateX(-33.333%); } 
}
/* REPLACED CODE ENDS HERE */

/* --- SIZZLE REEL SECTION --- */
.sizzle-container {
  width: 100%;
  height: 60vh; /* Takes up 60% of the screen height */
  background: #000;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--ui-border);
  border-bottom: 1px solid var(--ui-border);
}

.sizzle-video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sizzle-video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures video fills area without stretching */
  filter: brightness(0.7) contrast(1.1); /* Matches your moody site aesthetic */
}

/* Cinematic Gradient Overlay */
.sizzle-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom, 
    rgba(14, 14, 18, 0.8) 0%, 
    transparent 40%, 
    transparent 60%, 
    rgba(14, 14, 18, 0.8) 100%
  );
  z-index: 1;
}

/* Subtle texture overlay to match the body grain */
.sizzle-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  z-index: 2;
}

.sizzle-content {
  position: relative;
  z-index: 3;
  text-align: center;
}

.sizzle-label {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  border-top: 1px solid var(--flame);
  padding-top: 20px;
}

/* Ensure the section feels responsive */
@media (max-width: 768px) {
  .sizzle-container { height: 40vh; }
  .sizzle-label { font-size: 10px; letter-spacing: 0.3em; }
}

/* ─── 8. AWARDS SECTION ─── */
.awards-header {
  text-align: left;
  margin-bottom: 56px;
  padding: 0 clamp(24px, 4vw, 64px); /* This aligns it with the Hero */
}

.awards-scroll {
  position: relative;
  width: 100%;
  z-index: 1;
  overflow: hidden; /* Important to keep the track inside */
  
  /* Increased to 25% and 75% for a much deeper fade */
-webkit-mask-image: linear-gradient(
    to right, 
    rgba(0,0,0,0) 0%, 
    rgba(0,0,0,1) 25%, 
    rgba(0,0,0,1) 75%, 
    rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(
    to left, 
    rgba(0,0,0,0) 0%, 
    rgba(0,0,0,1) 25%, 
    rgba(0,0,0,1) 75%, 
    rgba(0,0,0,0) 100%
  );
  
  margin-top: 20px;
}

.awards-track { 
  display: flex; 
  gap: 20px; 
  animation: scroll 250s linear infinite; 
  width: max-content; 
}

/* --- CINEMATIC AWARD ITEMS --- */
.awards-section { 
  background: var(--charcoal); 
  padding: 80px 0; /* OLD */
  border-top: 1px solid var(--ui-border); 
  overflow: hidden; 
}
.award-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 40px;
  min-width: 280px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.award-item:hover {
  background: rgba(255, 77, 0, 0.03);
  border-color: var(--flame);
  transform: translateY(-5px);
}

.award-star {
  color: var(--flame);
  font-size: 24px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 8px var(--flame-glow));
}

.award-category {
  color: var(--light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.6;
}

.award-festival {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
}

.award-film {
  font-size: 13px;
  color: var(--flame);
  font-style: italic;
  font-weight: 500;
}

/* ─── 9. WORK / PROJECTS GRID ─── */
.section-pad {
  /* This 'clamp' ensures the space is consistent on small and large screens */
  padding: 80px clamp(24px, 4vw, 64px); 
}
.section-label { 
  color: var(--flame); 
  text-transform: uppercase; 
  font-size: 11px; 
  letter-spacing: 0.3em; 
  font-weight: 700; 
  margin-bottom: 15px; 
  display: flex; 
  align-items: center; 
  gap: 15px; 
}
.section-subtitle {
  margin-bottom: 40px; /* This creates the gap where you drew the line */
  max-width: 800px;    /* Optional: prevents the text from stretching too wide */
  line-height: 1.6;    /* Optional: makes the text easier to read */
}

/* You can also add this to give the buttons some breathing room */
.filter-bar {
  margin-bottom: 30px; 
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── 9. VIDEO GRIDS ─── */
.section-title { font-family: var(--display); font-size: clamp(40px, 6vw, 80px); line-height: 1; margin-bottom: 30px; }

.filter-bar { display: flex; gap: 10px; margin-bottom: 40px; }
.filter-btn { 
  background: transparent; border: 1px solid var(--ui-border); color: var(--fog); 
  padding: 8px 20px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; transition: .3s;
}
.filter-btn.active, .filter-btn:hover { border-color: var(--flame); color: var(--flame); background: rgba(255, 77, 0, 0.05); }

.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 450px), 1fr)); gap: 30px;
}
.project-card {
  background: var(--charcoal); border: 1px solid var(--ui-border); 
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer;
}
.project-thumb {
  width: 100%; aspect-ratio: 16 / 9; overflow: hidden; position: relative;
  filter: grayscale(0.3); transition: .5s;
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: .6s; }
.project-card:hover { border-color: var(--flame); transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.6); }
.project-card:hover .project-thumb { filter: grayscale(0); }
.project-card:hover .project-thumb img { transform: scale(1.05); }

.project-info { padding: 25px; }
.project-genre { color: var(--flame); font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 10px; }
.project-name { font-family: var(--display); font-size: 28px; letter-spacing: 0.03em; margin-bottom: 5px; }
.project-director { font-size: 13px; color: var(--fog); }

/* Small Grid */
.projects-grid-small { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; }
.project-card-sm .project-name { font-size: 20px; }

/* Ensure the modal content can scroll if the info is long */
.modal-content-wrapper {
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  background: #0d0d0f; /* Dark background */
  border: 1px solid var(--ui-border);
  position: relative;
  margin: 40px auto;
}

.modal-info-details {
  padding: 40px;
  background: linear-gradient(to bottom, rgba(20,20,22,1), #0d0d0f);
}

/* Scrollbar styling for the modal info */
.modal-content-wrapper::-webkit-scrollbar {
  width: 6px;
}
.modal-content-wrapper::-webkit-scrollbar-thumb {
  background: var(--flame);
}

/* Ensure the video container keeps its aspect ratio */
.modal-video {
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* ─── 10. SERVICES ─── */
.section-pad {
  /* This 'clamp' ensures the space is consistent on small and large screens */
  padding: 80px clamp(24px, 4vw, 64px); 
}
.core-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2px; background: var(--ui-border); border: 1px solid var(--ui-border); }
.service-card {
  padding: 50px 40px;
  background: var(--charcoal);
  border: 1px solid var(--ui-border);
  position: relative;
  transition: all 0.4s ease;
  /* ADD THIS: This creates a clean "top-bar" look without needing icons */
  border-top: 3px solid transparent; 
}

.service-card:hover {
  border-top-color: var(--flame); /* The line turns orange on hover */
  transform: translateY(-5px);
  background: rgba(255, 77, 0, 0.02); /* Very subtle orange tint */
}

.service-card h3 {
  font-family: var(--display);
  font-size: 24px;
  margin-bottom: 20px;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.service-card p {
  color: var(--fog);
  line-height: 1.7;
  font-size: 15px;
  margin: 0;
}


/* ─── SERVICES / HOVER BAR ─── */
.color-bars {
  display: flex;
  gap: 8px; /* Slightly wider gap looks better with images */
  width: 100%;
  height: 200px; /* Set a fixed height for the visual */
  position: relative;
  z-index: 1;
}

.color-bar {
  flex: 1; 
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  
  /* Smooth transition for the expansion */
  transition: flex 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s;
  
  /* Image Setup */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ─── HOVER LOGIC ─── */

/* 1. When the mouse enters the container, make all bars slightly darker/smaller */
.color-bars:hover .color-bar {
  flex: 0.6;
  filter: brightness(0.5) grayscale(0.5);
}

/* 2. When hovering a SPECIFIC bar, make it expand and light up */
.color-bars .color-bar:hover {
  flex: 4; /* This controls how wide it gets */
  filter: brightness(1.1) grayscale(0);
  z-index: 2;
}

/* ─── INSERTING YOUR IMAGES ─── */
/* Use a linear-gradient overlay so text (if any) remains readable */

.color-bar:nth-child(1) { background-image: linear-gradient(to bottom,#1a1a2e,#16213e), url('assets/services/img1.webp'); }
.color-bar:nth-child(2) { background-image: linear-gradient(to bottom,#2d1b1b,#1a0f0f), url('assets/services/img2.webp'); }
.color-bar:nth-child(3) { background-image: linear-gradient(to bottom,#E04B25,#8B2E15), url('assets/services/img3.webp'); }
.color-bar:nth-child(4) { background-image: linear-gradient(to bottom,#c4a35a,#7a6530), url('assets/services/img4.webp'); }
.color-bar:nth-child(5) { background-image: linear-gradient(to bottom,#1c2e1c,#0f1a0f), url('assets/services/img5.webp'); }
.color-bar:nth-child(6) { background-image: linear-gradient(to bottom,#2e2e3a,#1a1a22), url('assets/services/img6.webp'); }
.color-bar:nth-child(7) { background-image: linear-gradient(to bottom,#3a1c1c,#1a0e0e), url('assets/services/img7.webp'); }

/* Add Text Labels */
.color-bar::after {
  content: attr(data-label); /* Pulls text from HTML attribute */
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  font-family: var(--display);
  font-size: 1.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s 0.2s; /* Slight delay for text appearance */
  white-space: nowrap;
}

.color-bar:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* --- ADVANCED SERVICES REVEAL --- */
.advanced-services-reveal {
  display: grid;
  grid-template-columns: 1fr 2fr; /* 1/3 to 2/3 Split */
  background: var(--void);
  border: 1px solid var(--ui-border);
  min-height: 600px;
  overflow: hidden;
  margin-top: 40px;
}

/* Left Navigation */
.services-nav {
  display: flex;
  flex-direction: column;
  background: var(--charcoal);
  border-right: 1px solid var(--ui-border);
}

.service-reveal-item {
  padding: 50px 40px;
  border-bottom: 1px solid var(--ui-border);
  cursor: pointer;
  position: relative;
  transition: all 0.4s ease;
  flex: 1; /* Makes all items equal height */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-reveal-item:last-child { border-bottom: none; }

.reveal-num {
  font-family: var(--display);
  font-size: 14px;
  color: var(--flame);
  margin-bottom: 10px;
  display: block;
  opacity: 0.5;
}

.reveal-title {
  font-family: var(--display);
  font-size: 32px;
  text-transform: uppercase;
  margin-bottom: 15px;
  letter-spacing: 0.05em;
  transition: transform 0.4s ease;
}

.reveal-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fog);
  max-width: 300px;
  opacity: 0;
  transform: translateY(10px);
  /* This ensures the 'closing' animation is as smooth as the 'opening' */
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.4s ease, margin 0.3s ease;
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
}

.service-reveal-item.active .reveal-desc {
  opacity: 1;
  transform: translateY(0);
  max-height: 200px;
  margin-top: 15px;
}

/* Progress Bar Accent */
.reveal-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--flame);
  transform: scaleY(0);
  transition: transform 0.4s ease;
  transform-origin: top;
}
.service-reveal-item.active .reveal-progress { transform: scaleY(1); }

/* Right Side Stage */
.services-stage {
  position: relative;
  overflow: hidden;
  background: #000;
}

#revealImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Increased duration to 0.8s for a smoother 'return' home */
  transition: opacity 0.6s ease-in-out, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  filter: brightness(0.8) contrast(1.1);
}

.stage-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--charcoal) 0%, transparent 20%);
  z-index: 1;
}

.stage-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Responsive Fix */
@media (max-width: 1024px) {
  .advanced-services-reveal { grid-template-columns: 1fr; }
  .services-stage { height: 400px; order: -1; }
  .stage-overlay { background: linear-gradient(to bottom, transparent, var(--charcoal)); }
}

/* ─── 11. PARTNER SERVICES ─── */
.partner-services-grid {
  display: grid;
  /* This 'repeat' logic creates 4 columns on desktop and 1 on mobile automatically */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 30px;
}

/* Ensure the cards match the Core Services style we built earlier */
.partner-services-grid .service-card {
  height: 100%; /* Makes all cards the same height even if text length differs */
  display: flex;
  flex-direction: column;
}

/* Optional: If you want the Partner cards to look slightly different, 
   you can give them a different top border color, like 'var(--fog)' */
#partners .service-card:hover {
  border-top-color: var(--flame);
}

/* --- Contact Layout --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 3rem;
}

.contact-info { display: flex; flex-direction: column; gap: 2.5rem; }

.contact-detail label {
  display: block;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--fog);
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.contact-detail a, .contact-detail address {
  font-size: 1.1rem;
  color: #fff;
  font-style: normal;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-detail a:hover { color: var(--flame); }

/* Cinematic Map Filter */
.contact-map {
  width: 100%;
  aspect-ratio: 16/9;
  filter: grayscale(1) invert(0.9);
  border: 1px solid var(--ui-border);
  overflow: hidden;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; }

/* Editorial Form */
.editorial-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group label { display: block; font-size: 0.8rem; margin-bottom: 0.75rem; color: var(--fog); }

.editorial-form input, .editorial-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ui-border);
  padding: 1rem;
  color: #fff;
  font-family: inherit;
  transition: all 0.3s ease;
}

.editorial-form input:focus, .editorial-form textarea:focus {
  outline: none;
  border-color: var(--flame);
  background: rgba(255, 255, 255, 0.05);
}

/* Custom Select Component */
.custom-select-wrapper { position: relative; width: 100%; }
.select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ui-border);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.custom-select-wrapper.is-open .select-trigger { border-color: var(--flame); background: rgba(255, 255, 255, 0.06); }

.select-trigger .placeholder { color: var(--fog); font-size: 0.9rem; transition: color 0.3s; }
.select-trigger .chevron { transition: transform 0.3s ease; opacity: 0.5; }
.is-open .chevron { transform: rotate(180deg); color: var(--flame); opacity: 1; }

.select-options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #0d0d0d;
  border: 1px solid var(--ui-border);
  border-top: none;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.is-open .select-options { opacity: 1; visibility: visible; transform: translateY(0); }

.select-option {
  padding: 1rem;
  color: var(--fog);
  font-size: 0.9rem;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}
.select-option:hover {
  background: rgba(243, 82, 30, 0.1);
  color: var(--flame);
  padding-left: 1.25rem;
  border-left-color: var(--flame);
}
.select-option.is-active { color: var(--flame); background: rgba(243, 82, 30, 0.05); }

/* Custom Checkboxes */
.form-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.form-check { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; font-size: 0.85rem; color: var(--fog); transition: color 0.3s; }
.form-check:hover { color: #fff; }
.form-check input { display: none; }
.check-custom { width: 16px; height: 16px; border: 1px solid var(--ui-border); position: relative; transition: all 0.3s; }
.form-check input:checked + .check-custom { background: var(--flame); border-color: var(--flame); }

/* Responsive */
@media (max-width: 992px) {
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-info { order: 2; }
}

/* ─── 12. FOOTER ─── */
.footer { padding: 60px clamp(24px, 4vw, 64px); border-top: 1px solid var(--ui-border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-socials { display: flex; gap: 20px; }
.footer-socials svg { width: 18px; color: var(--fog); transition: .3s; }
.footer-socials a:hover svg { color: var(--flame); }

