:root {
  --bg-1: #000000;
  --bg-2: #0a0a0a;
  --dot: rgba(255, 255, 255, 0.08);
  --text: #e6e6e6;
  --muted: #a9a9a9;
  --blue: #0198D7; /* primary accent */
  --line: rgba(255,255,255,0.16);
}

html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  background-image:
    radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 1.6px),
    radial-gradient(120% 140% at 50% -10%, rgba(255,255,255,0.06), rgba(0,0,0,0) 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  background-size: 22px 22px, auto, auto;
  background-repeat: repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { width: min(92vw, 1200px); margin: 28px auto 60px; }

/* Core box primitive — sharp corners, decorated edges */
.box {
  position: relative;
  background: rgba(255,255,255,0.02);
  border: 2px solid rgba(255,255,255,0.08);
  outline: 1px solid #000;
  box-shadow: inset 0 0 0 1px #0a0c0f, 0 0 0 1px #000, inset 0 1px 4px rgba(0,0,0,0.2);
}
.box::before, .box::after {
  content: "";
  position: absolute;
  pointer-events: none;
  width: 32px; height: 32px;
}
.box::before {
  left: -2px; top: -2px;
  background:
    linear-gradient(var(--blue),var(--blue)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--blue),var(--blue)) 0 0 / 2px 100% no-repeat,
    linear-gradient(to bottom right, var(--blue) 50%, transparent 50%) 0 0 / 12px 12px no-repeat;
}
.box::after {
  right: -2px; bottom: -2px;
  background:
    linear-gradient(var(--blue),var(--blue)) 100% 100% / 100% 2px no-repeat,
    linear-gradient(var(--blue),var(--blue)) 100% 100% / 2px 100% no-repeat,
    linear-gradient(to top left, var(--blue) 50%, transparent 50%) 100% 100% / 12px 12px no-repeat;
}

/* Polished header */
header.box { padding: 12px 14px; }
/* Grid defines three columns and THREE rows shared across columns:
   row 1: top content (logo / primary nav / language)
   row 2: separator (CONNECTED across col 1-2 only)
   row 3: bottom content (tools label / tool nav / empty) */
.hdr {
  display: grid;
  grid-template-columns: 220px 1fr 100px;
  grid-template-rows: auto 2px auto;
  column-gap: 8px; /* small gap before the right box */
  align-items: start;
  position: relative;
}

.midline {
  grid-row: 2;
  grid-column: 1 / 3;  /* span first two columns */
  height: 2px;
  align-self: stretch;
  background:
    linear-gradient(var(--blue), var(--blue)) left / 225px 2px no-repeat,
    linear-gradient(to right, rgba(150,150,150,0.30), rgba(152,152,152,0.06)) left / 100% 2px no-repeat;
}

/* Left column elements */
.brand {
  grid-row: 1; grid-column: 1;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1.2;
  padding: 6px 8px 4px 6px;
}
.brand .logo {
  width: 200px;
  object-fit: contain;
}


.minor-label {
  grid-row: 3; grid-column: 1;
  font-family: 'Michroma', sans-serif;
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  padding: 6px 8px 6px 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-decoration: none;
}

/* Ensure no underlines on any links */
a {
  text-decoration: none;
}

a .minor-label {
  text-decoration: none;
}



/* Center column: same styling for top (primary) and bottom (tools) menus */

.nav {
  display: flex; flex-wrap: wrap; gap: 18px;
  padding: 6px 40px;
}
.nav a {
  text-decoration: none;
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  letter-spacing: .5px;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.nav a:hover { color: var(--blue); }
/* Optional: subtle focus ring for keyboard nav */

.primary { grid-row: 1; grid-column: 2; }
.tools   { grid-row: 3; grid-column: 2; }

/* Right column: unified box spanning all rows */
.lang-box {
  grid-row: 1 / 4; grid-column: 3;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; 
  flex-direction: column;
  align-items: center; 
  justify-content: center;
  padding: 12px 6px;
  gap: 80%;
  align-self: stretch;
}

.lang {
  display: flex; 
  align-items: center; 
  justify-content: center;
}
.lang select {
  appearance: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
  outline: none;
}
.lang select:focus { border-color: var(--blue); }

/* Content & Footer */
.content.box { margin-top: 22px; padding: 26px; }
.content .kicker { font-family: 'Michroma', sans-serif; letter-spacing: 3px; text-transform: uppercase; font-size: 12px; color: rgba(255,255,255,0.75); margin-bottom: 10px; }
.content h1 { 
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 4vw, 40px); 
  margin-bottom: 10px; 
}
.content p { margin: 10px 0 0; font-size: 15px; color: rgba(255,255,255,0.8); }

footer.box { margin-top: 22px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 16px 18px; align-items: center; }
.copy { font-size: 12px; color: rgba(255,255,255,0.65); }
.foot-right { display: flex; gap: 18px; align-items: center; }
.foot-right .dot { width: 8px; height: 8px; background: var(--blue); display: inline-block; }

/* Responsiveness */
@media (max-width: 980px) {
  .hdr {
    grid-template-columns: 1fr;
    grid-template-rows: auto 2px auto auto 2px auto auto; /* add row for lang box */
    column-gap: 0;
  }
  /* Reflow left column */
  .brand { grid-row: 1; grid-column: 1; }
  .minor-label { grid-row: 3; grid-column: 1; }
  /* First midline for left block */
  .midline { grid-row: 2; grid-column: 1; }
  /* Center block below */
  .primary { grid-row: 4; grid-column: 1; }
  /* Add a second line between primary and tools on mobile */
  .midline.mobile-2 { display: block; grid-row: 5; grid-column: 1; height: 2px; background: var(--blue); }
  .midline { background: var(--blue); }
  .tools { grid-row: 6; grid-column: 1; }
  .lang-box { 
    grid-row: 7; grid-column: 1; 
    flex-direction: row;
    justify-content: start; 
    margin-top: 8px;
  }
}


/* Enhanced link styles for the theme */
a {
  text-decoration: none;
  color: var(--blue);
  transition: all 0.3s ease;
  position: relative;
}

a:hover {
  color: #00E5FF;
}

/* Table links should be more subtle */
.system-table a,
.system-table-responsive a {
  color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 1px;
}

.system-table a:hover,
.system-table-responsive a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* Equipment specific styles */
.equipment-item {
  max-width: 1200px;
  margin: 0 auto;
}

.equipment-header {
  text-align: center;
  margin-bottom: 40px;
}

.equipment-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.equipment-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 2px solid var(--border-color);
}

.equipment-pricing {
  margin-top: 20px;
  padding: 20px;
}

.equipment-pricing h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--text-light);
  text-align: center;
}

.pricing-grid {
  display: grid;
  gap: 12px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 3px;
    border: 1px solid var(--line);
    transition: all 0.3s ease;
}

.price-item:hover {
    background: rgba(1, 152, 215, 0.1);
    border-color: var(--blue);
}

.duration {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.price {
  color: var(--text-light);
  font-weight: 400;
  font-size: 0.9rem;
}

.equipment-description {
  margin-bottom: 30px;
}

.equipment-cta {
  text-align: center;
}

.equipment-category-section {
  margin-bottom: 40px;
}

.equipment-category-section:last-child {
  margin-bottom: 0;
}

.equipment-category-section h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-light);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 8px;
}

/* Responsive design */
@media (max-width: 768px) {
    .equipment-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .equipment-left-column {
        order: -1;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .system-form::before,
    .system-form::after {
        display: none;
    }
}

/* Hero section with video background - boxed 21:9 format */
.hero-section {
  margin-top: 22px;
}

.hero-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit; /* Inherit the border radius from parent box */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: inherit; /* Inherit the border radius from parent box */
}

.hero-content {
  text-align: center;
  color: white;
  max-width: 600px;
  z-index: 1;
}

.hero-content .kicker {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  font-size: clamp(10px, 2.5vw, 12px);
}

.hero-content h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 0 0 16px 0;
  color: white;
  line-height: 1.2;
}

.hero-content p {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.4;
}

/* Section utilities */
.section-intro {
  margin-bottom: 40px;
}

.section-header {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  margin-bottom: 30px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue);
  color: var(--text);
}

.text-center {
  text-align: center;
}

/* Project grid layout */
.project-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.project-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  margin: 0 0 16px 0;
  color: var(--text);
  font-size: 1.4rem;
}

.project-content p {
  margin: 16px 0;
  flex-grow: 1;
}

.project-tags {
  margin: 12px 0 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.feature-list li {
  padding: 8px 0;
  position: relative;
  padding-left: 20px;
  color: var(--muted);
}

.feature-list li::before {
  content: "•";
  color: var(--blue);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Process grid */
.process-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 40px;
}

.process-item {
  text-align: center;
  padding: 24px 16px;
}

.process-number {
  width: 50px;
  height: 50px;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin: 0 auto 20px auto;
  font-family: 'Michroma', sans-serif;
}

.process-item h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  margin: 0 0 12px 0;
  color: var(--text);
}

.process-item p {
  color: var(--muted);
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    margin-top: 12px; /* Reduce top margin */
  }
  
  .hero-video-container {
    aspect-ratio: 21 / 9;
    height: 25vh; /* Adjusted height for wider aspect ratio */
    max-height: 200px;
    min-height: 140px;
  }
  
  .hero-overlay {
    padding: 16px;
  }
  
  .hero-content {
    max-width: 90%;
  }
  
  .hero-content .kicker {
    margin-bottom: 4px;
  }
  
  .hero-content h1 {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
    margin: 0 0 6px 0;
  }
  
  .hero-content p {
    font-size: clamp(0.8rem, 3.5vw, 0.95rem);
    line-height: 1.2;
  }
  
  /* Reduce spacing between sections on mobile */
  .content.box {
    margin-top: 16px;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .process-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .project-content {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    margin-top: 8px; /* Even less top margin */
  }
  
  .hero-video-container {
    height: 22vh; /* Smaller direct height for ultra-wide */
    max-height: 160px;
    min-height: 120px;
  }
  
  .hero-overlay {
    padding: 10px;
  }
  
  .hero-content h1 {
    font-size: clamp(1.2rem, 7vw, 1.6rem);
    margin: 0 0 4px 0;
  }
  
  .hero-content p {
    font-size: clamp(0.75rem, 4vw, 0.85rem);
  }
  
  .hero-content .kicker {
    margin-bottom: 2px;
  }
  
  /* Further reduce section spacing */
  .content.box {
    margin-top: 12px;
  }
}

/* Before/After Slider - Dark theme styling */
.before-after-container {
  margin: 40px 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.before-after-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  cursor: ew-resize;
  user-select: none;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.before-after-slider::before,
.before-after-slider::after {
  content: "";
  position: absolute;
  pointer-events: none;
  width: 20px;
  height: 20px;
  z-index: 3;
}

.before-after-slider::before {
  left: -2px;
  top: -2px;
  background:
    linear-gradient(var(--blue), var(--blue)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) 0 0 / 2px 100% no-repeat;
}

.before-after-slider::after {
  right: -2px;
  bottom: -2px;
  background:
    linear-gradient(var(--blue), var(--blue)) 100% 100% / 100% 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) 100% 100% / 2px 100% no-repeat;
}

.before-image,
.after-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.1s ease;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--blue);
  cursor: ew-resize;
  z-index: 2;
  transform: translateX(-50%);
  transition: background-color 0.3s ease;
}

.slider-handle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--blue);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slider-handle::after {
  content: "⟷";
  position: absolute;
  top: 50%;
  left: 50%;
  color: white;
  font-size: 12px;
  font-weight: bold;
  transform: translate(-50%, -50%);
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.before-after-slider:hover .slider-handle,
.before-after-slider.active .slider-handle {
  background: #00E5FF;
}

.before-after-slider:hover .slider-handle::before,
.before-after-slider.active .slider-handle::before {
  background: #00E5FF;
}

.slider-caption {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.caption-before,
.caption-after {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.caption-before:hover,
.caption-after:hover {
  background: rgba(1, 152, 215, 0.1);
  border-color: var(--blue);
  color: var(--text);
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
  color: rgba(255, 255, 255, 0.7);
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
  color: var(--blue);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid rgba(0, 0, 0, 0.95);
}

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: rgba(1, 152, 215, 0.1);
  color: var(--blue);
  padding-left: 20px;
}

/* Mobile dropdown adjustments */
@media (max-width: 768px) {
  .dropdown-menu {
    min-width: 180px;
    left: -20px;
  }

  .dropdown-menu::before {
    left: 40px;
  }

  .dropdown-menu a {
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .before-after-container {
    margin: 20px 0;
  }

  .before-after-slider {
    aspect-ratio: 4 / 3;
  }

  .before-after-slider::before,
  .before-after-slider::after {
    display: none;
  }

  .slider-handle::before {
    width: 24px;
    height: 24px;
  }

  .slider-caption {
    font-size: 0.8rem;
    margin-top: 8px;
  }

  .caption-before,
  .caption-after {
    padding: 6px 8px;
  }
}

/* Project image styles for bubble content */
.bubble-content .project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 16px;
  border-radius: 3px;
  border: 1px solid var(--line);
}

.bubble-content .project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bubble:hover .project-image img {
  transform: scale(1.05);
}

/* Project tags styling */
.project-tags {
  font-size: 0.8rem;
  color: var(--blue);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  font-weight: 400;
}

/* Entertainment grid layout - reusable for directory pages */
.entertainment-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  margin-top: 40px;
}

.entertainment-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.entertainment-card:hover {
  transform: translateY(-5px);
}

.entertainment-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.entertainment-image img,
.entertainment-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.entertainment-card:hover .entertainment-image img,
.entertainment-card:hover .entertainment-video {
  transform: scale(1.05);
}

.entertainment-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.entertainment-content h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  margin: 0 0 16px 0;
  color: var(--text);
  font-size: 1.3rem;
}

.entertainment-content p {
  margin: 0 0 20px 0;
  flex-grow: 1;
  line-height: 1.6;
}

.entertainment-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.highlight-tag {
  background: rgba(1, 152, 215, 0.15);
  color: var(--blue);
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
  border: 1px solid rgba(1, 152, 215, 0.3);
  transition: all 0.3s ease;
}

.highlight-tag:hover {
  background: rgba(1, 152, 215, 0.25);
  border-color: var(--blue);
}

.entertainment-content .system-btn {
  margin-top: auto;
  align-self: flex-start;
  margin-left: 0;
  margin-right: 0;
}

/* Technical services layout - reusable for service category pages */
.technical-services {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.service-category {
  padding: 0;
  overflow: hidden;
}

.category-header {
  background: var(--blue);
  color: white;
  padding: 16px 24px;
  margin: 0;
}

.category-header h3 {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

/* Enhanced service content layout */
.service-content {
  padding: 24px;
}

.service-content p {
  margin: 0 0 20px 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.service-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tag {
  background: rgba(1, 152, 215, 0.15);
  color: var(--blue);
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
  border: 1px solid rgba(1, 152, 215, 0.3);
  transition: all 0.3s ease;
}

.service-tag:hover {
  background: rgba(1, 152, 215, 0.25);
  border-color: var(--blue);
}

/* Reference grid for testimonials/case studies */
.reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.reference-item {
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: all 0.3s ease;
  position: relative;
}

.reference-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--blue);
  transition: all 0.3s ease;
}

.reference-item:hover {
  background: rgba(1, 152, 215, 0.1);
  border-color: var(--blue);
  transform: translateY(-3px);
}

.reference-item:hover::before {
  background: var(--accent-color);
  width: 6px;
}

.reference-item h4 {
  margin: 0 0 12px 0;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
}

.reference-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Event types grid */
.event-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.event-type {
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: all 0.3s ease;
  position: relative;
}

.event-type::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--blue);
  transition: all 0.3s ease;
}

.event-type:hover {
  background: rgba(1, 152, 215, 0.1);
  border-color: var(--blue);
  transform: translateY(-3px);
}

.event-type:hover::before {
  background: var(--accent-color);
  width: 6px;
}

.event-type h4 {
  margin: 0 0 12px 0;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
}

.event-type p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Responsive adjustments for entertainment grid */
@media (max-width: 768px) {
  .entertainment-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .entertainment-image {
    height: 180px;
  }
  
  .entertainment-content {
    padding: 20px;
  }
  
  .entertainment-highlights {
    margin-bottom: 20px;
  }
  
  .highlight-tag {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  /* Technical services responsive */
  .technical-services {
    gap: 20px;
  }
  
  .service-content {
    padding: 20px;
  }
  
  .category-header {
    padding: 14px 20px;
  }
  
  .category-header h3 {
    font-size: 1.1rem;
  }
  
  .reference-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .reference-item {
    padding: 20px;
  }

  .service-highlights {
    margin-top: 16px;
  }
  
  .event-types {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .event-type {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .entertainment-image {
    height: 160px;
  }
  
  .entertainment-content {
    padding: 16px;
  }
  
  .entertainment-content h3 {
    font-size: 1.1rem;
  }

  .service-content {
    padding: 16px;
  }
  
  .category-header {
    padding: 12px 16px;
  }
  
  .reference-item {
    padding: 16px;
  }
  
  .service-tag {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
  
  .event-type {
    padding: 16px;
  }
}

.services-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 40px;
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.service-content {
  padding: 24px;
  flex-grow: 1;
}

.service-content h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  margin: 0 0 16px 0;
  font-size: 1.3rem;
}

.service-content p {
  margin: 0 0 20px 0;
  line-height: 1.6;
}

/* Reference grid for selected references */
.reference-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 40px;
}

.reference-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.reference-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.reference-card:hover img {
  transform: scale(1.05);
}

.reference-content {
  padding: 24px;
}

.reference-content h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  margin: 0 0 12px 0;
  font-size: 1.2rem;
}

.reference-content p {
  margin: 0;
  color: var(--muted);
}

/* Placeholder for more references */
.reference-placeholder {
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  font-size: 2rem;
  color: var(--blue);
}

.reference-placeholder span {
  font-size: 3rem;
  margin-bottom: 8px;
}

.reference-placeholder p {
  font-size: 1rem;
  color: var(--text);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .services-grid,
  .reference-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-image,
  .reference-card img {
    height: 180px;
  }

  .reference-placeholder {
    height: 180px;
  }
}

/* Language Dropdown - Specific styling to differentiate from main menu dropdowns */
.nav .dropdown.language-selector {
  position: relative;
  margin-left: auto; /* Push to right side of nav */
}

.nav .dropdown.language-selector .dropdown-toggle {
  background: rgba(1, 152, 215, 0.1);
  border: 1px solid rgba(1, 152, 215, 0.3);
  border-radius: 3px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  color: var(--blue);
}

.nav .dropdown.language-selector .dropdown-toggle:hover {
  background: rgba(1, 152, 215, 0.2);
  border-color: var(--blue);
  color: #00E5FF;
}

.nav .dropdown.language-selector .dropdown-arrow {
  color: var(--blue);
  font-size: 8px;
  margin-left: 4px;
}

.nav .dropdown.language-selector:hover .dropdown-arrow {
  color: #00E5FF;
}

.nav .dropdown.language-selector .dropdown-menu {
  min-width: 120px;
  right: 0;
  left: auto; /* Align to right edge instead of left */
  background: rgba(0, 0, 0, 0.98);
  border: 1px solid rgba(1, 152, 215, 0.3);
  box-shadow: 0 4px 20px rgba(1, 152, 215, 0.2);
}

.nav .dropdown.language-selector .dropdown-menu::before {
  right: 20px;
  left: auto;
  border-bottom-color: rgba(0, 0, 0, 0.98);
}

.nav .dropdown.language-selector .dropdown-menu a {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(1, 152, 215, 0.1);
}

.nav .dropdown.language-selector .dropdown-menu a:hover {
  background: rgba(1, 152, 215, 0.15);
  color: var(--blue);
  padding-left: 12px; /* Don't indent like main dropdowns */
}

/* Mobile adjustments for language selector */
@media (max-width: 768px) {
  .nav .dropdown.language-selector {
    margin-left: 0;
    margin-top: 8px;
  }
  
  .nav .dropdown.language-selector .dropdown-menu {
    right: auto;
    left: 0;
  }
  
  .nav .dropdown.language-selector .dropdown-menu::before {
    right: auto;
    left: 20px;
  }
}

/* Gallery Styles with Hover Tooltips */
.gallery-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 0 10px 0;
  color: var(--text-light);
}

.gallery-overlay p {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  margin: 0;
  text-align: center;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

/* Mobile adjustments for gallery */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .gallery-overlay h3 {
    font-size: 1rem;
  }
  
  .gallery-overlay p {
    font-size: 0.8rem;
  }
}

/* Contribution Tags Grid */
.contribution-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 20px;
}

.contribution-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 16px 20px;
  text-align: center;
  transition: opacity 0.3s ease;
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
}

.contribution-tag:hover {
  opacity: 0.8;
  border-color: var(--primary-color);
}

/* Mobile adjustments for contributions */
@media (max-width: 768px) {
  .contribution-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .contribution-tag {
    padding: 12px 16px;
    font-size: 0.8rem;
  }
}

/* Single Row Header Overrides */

/* Single-row header layout */
header.box.single-row {
  padding: 12px 14px;
}

.hdr-single {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

/* Logo section */
.hdr-single .brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 6px 8px 4px 6px;
}

.hdr-single .brand .logo {
  width: 200px;
  object-fit: contain;
}

/* Section label */
.hdr-single .minor-label {
  flex-shrink: 0;
  font-family: 'Michroma', sans-serif;
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Main navigation */
.nav.single-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 6px 20px;
  flex-grow: 1;
}

/* Tools navigation */
.nav.tools-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 6px 20px;
  flex-shrink: 0;
}

/* Language selector positioning */
.hdr-single .language-selector {
  flex-shrink: 0;
  margin-left: auto;
}

/* Language selector styling (inherit from main styles) */
.hdr-single .dropdown.language-selector .dropdown-toggle {
  background: rgba(1, 152, 215, 0.1);
  border: 1px solid rgba(1, 152, 215, 0.3);
  border-radius: 3px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  color: var(--blue);
}

.hdr-single .dropdown.language-selector .dropdown-toggle:hover {
  background: rgba(1, 152, 215, 0.2);
  border-color: var(--blue);
  color: #00E5FF;
}

.hdr-single .dropdown.language-selector .dropdown-menu {
  min-width: 120px;
  right: 0;
  left: auto;
  background: rgba(0, 0, 0, 0.98);
  border: 1px solid rgba(1, 152, 215, 0.3);
  box-shadow: 0 4px 20px rgba(1, 152, 215, 0.2);
}

.hdr-single .dropdown.language-selector .dropdown-menu::before {
  right: 20px;
  left: auto;
  border-bottom-color: rgba(0, 0, 0, 0.98);
}

.hdr-single .dropdown.language-selector .dropdown-menu a {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(1, 152, 215, 0.1);
}

.hdr-single .dropdown.language-selector .dropdown-menu a:hover {
  background: rgba(1, 152, 215, 0.15);
  color: var(--blue);
  padding-left: 12px;
}

/* Navigation links styling */
.nav.single-nav a,
.nav.tools-nav a {
  text-decoration: none;
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  letter-spacing: .5px;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.nav.single-nav a:hover,
.nav.tools-nav a:hover {
  color: var(--blue);
}

/* Mobile responsiveness */
@media (max-width: 1200px) {
  .hdr-single {
    gap: 15px;
  }
  
  .nav.single-nav,
  .nav.tools-nav {
    gap: 15px;
    padding: 6px 15px;
  }
  
  .nav.single-nav a,
  .nav.tools-nav a {
    font-size: 13px;
  }
}

@media (max-width: 980px) {
  .hdr-single {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .hdr-single .brand {
    justify-content: center;
  }
  
  .hdr-single .minor-label {
    justify-content: center;
    text-align: center;
  }
  
  .nav.single-nav,
  .nav.tools-nav {
    justify-content: center;
    padding: 6px 10px;
  }
  
  .hdr-single .language-selector {
    margin-left: 0;
    align-self: center;
  }
}

@media (max-width: 768px) {
  .hdr-single {
    gap: 10px;
  }
  
  .nav.single-nav,
  .nav.tools-nav {
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .nav.single-nav a,
  .nav.tools-nav a {
    font-size: 12px;
  }
  
  .hdr-single .minor-label {
    font-size: 13px;
    letter-spacing: 2px;
  }
}

@media (max-width: 600px) {
  .hdr-single .brand .logo {
    width: 160px;
  }
  
  .nav.single-nav,
  .nav.tools-nav {
    gap: 10px;
  }
  
  .nav.single-nav a,
  .nav.tools-nav a {
    font-size: 11px;
    letter-spacing: .3px;
  }
  
  .hdr-single .minor-label {
    font-size: 12px;
    letter-spacing: 1.5px;
    padding: 4px 6px;
  }
}