:root {
  color-scheme: dark;
  font-family: "Space Grotesk", system-ui, sans-serif;
  background-color: #0f1014;
  --text: #f5f6f7;
  --muted: rgba(245, 246, 247, 0.7);
  --border: rgba(255, 255, 255, 0.05);
  --accent: #ff3b3b;
  --card: rgba(255, 255, 255, 0.02);
  --card-border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #191c22, #0b0d11 55%);
  color: var(--text);
  line-height: 1.6;
}

header {
  padding: 1.25rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1500;
}

.subnav {
  padding: 0.5rem 5vw;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.01), transparent);
  flex-wrap: wrap;
}

.breadcrumb-links {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.crumb {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
}

.crumb:hover {
  color: var(--accent);
}

.sep {
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0.25rem;
}

.crumb.current {
  color: var(--accent);
  font-weight: 700;
}

.logo {
  letter-spacing: 0.2em;
  font-weight: 700;
  color: #f4f5f6;
}

nav a {
  margin-left: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--accent);
}

/* Dropdown nav styles */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-item>a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 0.25rem 0.4rem;
  display: inline-block;
  font-weight: 600;
}

.nav-item .dropdown-menu {
  /* hidden by default but kept in layout for smoother transition */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #0f1014;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.35rem 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  z-index: 1200;
  transform: translateY(-6px);
  transition: opacity 200ms ease 300ms, transform 200ms ease 300ms, visibility 0s linear 500ms;
}

.nav-item .dropdown-menu li {
  list-style: none;
}

.nav-item .dropdown-menu a {
  display: block;
  padding: 0.45rem 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.nav-item .dropdown-menu a:hover {
  color: var(--accent);
}

.nav-item.dropdown:hover>.dropdown-menu,
.nav-item.dropdown:focus-within>.dropdown-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 150ms ease 0s, transform 150ms ease 0s, visibility 0s linear 0s;
}

/* Calsy page helpers */
.field-stack label {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Make selects visually consistent */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(1em + 2px), calc(100% - 13px) calc(1em + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

nav a.active,
nav a[aria-current="page"] {
  background-color: var(--accent);
  color: #f5f6f7;
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
}

.hero {
  padding: 4rem 5vw 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.8rem, 3.5vw, 4rem);
  margin-bottom: 1rem;
}

.hero span {
  color: var(--accent);
  font-weight: 600;
}

.hero p {
  max-width: 540px;
  color: rgba(245, 246, 247, 0.82);
}

.cta-group {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff645a);
  color: #0f1014;
  box-shadow: 0 10px 25px rgba(255, 59, 59, 0.25);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text);
  position: relative;
}

.btn-secondary.active {
  border: 1px solid var(--accent);
  background: rgba(255, 59, 59, 0.1);
  color: #fff;
}

.machine-nav-toggles {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.machine-nav-toggles .btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
  border-radius: 8px;
}



.btn:hover {
  transform: translateY(-2px);
}

.hero-card {
  padding: 2rem;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.hero-card h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat {
  font-size: 1.9rem;
  font-weight: 600;
}

.stat small {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section {
  padding: 3.5rem 5vw;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section h2 {
  margin-bottom: 0.8rem;
  font-size: 2rem;
}

.page-header {
  max-width: 720px;
  margin-bottom: 2rem;
  z-index: 1;
  /* Reset the z-index so it doesn't overlap the main header's mobile menu */
  display: block;
  /* Reset display flex from generic header */
  border-bottom: none;
  padding: 0;
}

.page-header h1 {
  font-size: clamp(2.5rem, 3.6vw, 3.5rem);
  margin-bottom: 0.75rem;
}

.page-header .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
}

.page-header .lede {
  color: rgba(245, 246, 247, 0.8);
  margin-bottom: 0;
}

.event-search-panel {
  margin-bottom: 2.5rem;
  padding: 1.75rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.event-search-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.form-control {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  padding: 0.85rem 1rem;
  min-width: 220px;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.15);
}

.form-help {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.section p {
  margin: 0 0 1.25rem;
  max-width: 760px;
  color: rgba(245, 246, 247, 0.78);
}

.machines-search,
.services-search {
  margin: 3rem 0 2rem;
  padding: 1.75rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}

.machines-search__bar,
.services-search__bar {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.machines-search__label,
.services-search__label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.machines-search__input,
.services-search__input {
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-size: 1rem;
  transition: border 150ms ease;
}

.machines-search__input:focus,
.services-search__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.15);
}

.machines-search__intro,
.services-search__intro {
  margin: 0;
  color: rgba(245, 246, 247, 0.75);
}

.machines-search__status,
.services-search__status {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.machines-grid,
.services-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.35rem;
}

.machine-card,
.service-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 220px;
}

.machine-card__features,
.service-card__features {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.machine-card__footer,
.service-card__footer {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}

.machine-card__link,
.service-card__link {
  text-decoration: none;
  font-weight: 600;
  color: var(--accent);
}

.machines-catalogue {
  margin-bottom: 2.5rem;
}

.machines-catalogue__intro h2 {
  margin: 0;
  font-size: 1.9rem;
}

.machines-catalogue__intro p {
  margin: 0.35rem 0 0;
  color: rgba(245, 246, 247, 0.75);
}

.machines-catalogue__list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.machines-catalogue__category {
  padding: 1.75rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.machines-catalogue__category h3 {
  margin: 0;
  font-size: 1.4rem;
}

.machines-catalogue__category p {
  margin: 0.35rem 0 0;
  color: rgba(245, 246, 247, 0.68);
}

.machines-catalogue__cards {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.machines-search-results {
  margin-top: 2rem;
  padding: 1.75rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.machines-search-results__header h2 {
  margin: 0;
  font-size: 1.65rem;
}

.machines-search-results__header p {
  margin: 0.35rem 0 0;
  color: rgba(245, 246, 247, 0.73);
}

.machines-empty,
.services-empty,
.machines-error,
.services-error {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: rgba(255, 59, 59, 0.8);
}

.machines-empty,
.services-empty {
  color: rgba(255, 255, 255, 0.7);
}

.product-types {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.product-types li {
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.3rem;
}

.card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--card-border);
  padding: 1.5rem;
  border-radius: 16px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border 0.3s ease, transform 0.3s ease;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.card p {
  color: rgba(245, 246, 247, 0.72);
  margin-bottom: 0.4rem;
}

.card strong {
  color: var(--accent);
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
}

.event-section {
  margin-bottom: 2.5rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.section-meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.event-detail {
  max-width: 1000px;
  margin: 0 auto 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.event-detail h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 0.25rem;
}

.event-detail .event-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.event-detail .event-meta-grid strong {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.event-detail .event-meta-grid p {
  margin: 0.25rem 0 0;
  font-weight: 600;
}

.event-detail .event-overview ul {
  margin: 0;
  padding-left: 1.25rem;
  color: rgba(255, 255, 255, 0.78);
}

.event-detail .event-overview li {
  margin-bottom: 0.6rem;
}

.event-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.event-card {
  padding: 1.75rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.event-card-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.5rem;
}

.event-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.4rem;
}

.event-description {
  flex: 1;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1rem;
}

.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.event-tags span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}

.event-card .btn {
  align-self: flex-start;
}

.event-empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

.event-detail .image-gallery {
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.event-detail .image-gallery h3 {
  margin-top: 0;
}

.gallery-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-card {
  border-radius: 16px;
  overflow: hidden;
  background: #111216;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.gallery-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.gallery-card figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.instagram-link {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.instagram-link:hover {
  text-decoration: underline;
}

.event-detail .section-meta {
  margin-top: 1rem;
}

.blog-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  padding: 1.75rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.blog-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

.blog-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.4rem;
}

.blog-description {
  flex: 1;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1rem;
}

/* Video Section Styles */
.video-section {
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  border: 1px solid var(--card-border);
}

.video-section h2 {
  margin-bottom: 1.5rem !important;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.video-item h4 {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.blog-category {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.65rem;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.blog-tags span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}

.timeline {
  margin-top: 2rem;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.timeline-item {
  position: relative;
  padding-left: 1rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #0f1014;
}

footer {
  padding: 2.5rem 5vw 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 2rem;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
}

footer .tagline {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(245, 246, 247, 0.7);
}

.contact-card {
  background: linear-gradient(145deg, rgba(255, 59, 59, 0.15), rgba(255, 59, 59, 0));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.5rem;
  max-width: 320px;
}

/* Footer layout */
.footer-left,
.footer-center,
.footer-right {
  min-width: 220px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  /* allow content to grow without height cap */
}

.footer-nav h4,
.footer-center h4 {
  margin: 0 0 0.6rem 0;
  font-size: 1.05rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-nav ul,
.machines-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li,
.machines-list li {
  margin: 0.45rem 0;
  color: rgba(255, 255, 255, 0.86);
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-center .machines-list li {
  font-weight: 500;
}

.footer-right .logo {
  margin-bottom: 0.5rem;
}

.footer-brand-card {
  border-radius: 18px;
  padding: 1.25rem;
  background: linear-gradient(135deg, #ff3b3b, #ff6f5d);
  color: #0f1014;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-brand-card span {
  font-size: 1.3rem;
}

.footer-brand-card p {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}

/* Footer-specific contact card should fill its column */
footer .footer-right .contact-card {
  width: 100%;
  max-width: none;
}

.footer-right .tagline {
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.copyright {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

a {
  color: var(--text);
}

/* Slideshow container */
.slideshow-container {
  max-width: 100%;
  position: relative;
  margin: auto;
  overflow: hidden;
}

.slide {
  display: none;
}

.slide img {
  vertical-align: middle;
  height: 60vh;
  object-fit: cover;
  filter: brightness(0.7);
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.3);
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 2rem;
  padding: 8px 12px;
  position: absolute;
  bottom: 40px;
  width: 100%;
  text-align: center;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background-color: #717171;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.dot.active,
.dot:hover {
  background-color: var(--accent);
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: .4
  }

  to {
    opacity: 1
  }
}

/* Intro Section */
.intro {
  text-align: center;
  padding: 4rem 5vw;
}

.intro h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.intro p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Why Us Section */
.why-us {
  padding: 4rem 5vw;
  background: rgba(255, 255, 255, 0.02);
}

.why-us h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.2rem;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.why-us-item {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.01);
  transition: transform 0.3s ease;
}

.why-us-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.why-us-item .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.why-us-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.why-us-item p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* Machines Category Section */
.machines-category {
  padding: 4rem 5vw;
}

.machines-category h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.machines-category>.container>p {
  text-align: center;
  color: var(--accent);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

.machines-grid-home {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.machine-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 200px;
  text-align: center;
}

.machine-btn:hover {
  background: var(--accent);
  color: #0f1014;
  border-color: var(--accent);
  transform: translateY(-3px);
}

.machine-btn.secondary {
  border-style: dashed;
  background: transparent;
}

.machine-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-color: var(--text);
}

/* Major Services Section */
.major-services {
  padding: 4rem 5vw;
  background: rgba(255, 255, 255, 0.02);
}

.major-services h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.2rem;
}

.services-grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card-home {
  display: block;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
}

.service-card-home:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
}

.service-card-home h3 {
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.service-card-home p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Social Media Section */
.social-media {
  padding: 3rem 5vw;
  text-align: center;
}

.social-media h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  color: white;
  transition: transform 0.3s ease;
  min-width: 150px;
}

.social-link:hover {
  transform: translateY(-3px) scale(1.05);
}

.social-link.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.facebook {
  background: #1877f2;
}

.social-link.youtube {
  background: #ff0000;
}

/* Our Websites Section */
.our-websites {
  padding: 3rem 5vw;
  text-align: center;
  background: rgba(255, 255, 255, 0.01);
}

.our-websites h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.websites-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Left align rectangles within the block */
  gap: 1.25rem;
  margin: 0;
}

.website-link {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  /* Fully rounded rectangle */
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  min-width: 320px;
  text-align: left;
  /* Left align text inside the rectangle */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.website-link:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #0f1014;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 59, 59, 0.3);
}

/* Mobile Navigation Styles */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text);
  position: relative;
  transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--text);
  left: 0;
  transition: all 0.3s ease-in-out;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* Hamburger active state */
.menu-toggle.active .hamburger {
  background-color: transparent;
}

.menu-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  /* Reset nav layout for mobile */
  header nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: #0f1014;
    border-bottom: 1px solid var(--border);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s ease-out;
    z-index: 1000;
    pointer-events: none;
  }

  header nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .nav-item {
    width: 100%;
  }

  nav a {
    margin-left: 0;
    font-size: 1.1rem;
    display: block;
    width: 100%;
  }

  /* Mobile Dropdowns */
  .nav-item.dropdown .dropdown-menu {
    display: none !important;
  }

  .nav-item .dropdown-menu a {
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 1rem;
  }

  .nav-item .dropdown-menu a:hover {
    color: var(--accent);
    border-left-color: var(--accent);
  }
}

/* Product Tabs Styles */
.product-tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.product-tab-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.3s, border-color 0.3s;
  font-family: inherit;
  font-weight: 600;
  white-space: nowrap;
}

.product-tab-btn:hover {
  color: rgba(255, 255, 255, 0.9);
}

.product-tab-btn.active {
  color: white !important;
  border-color: white !important;
  background: none !important;
  background-color: transparent !important;
}

.product-tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.product-tab-content.active {
  display: block;
  background: none !important;
  background-color: transparent !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Machine Types Grid Styles */
.machine-types-grid {
  display: grid;
  gap: 2rem;
  margin-top: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .machine-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .machine-types-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.type-list {
  line-height: 1.8;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.type-list li {
  margin-bottom: 0.5rem;
}

.type-list a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.type-list a:hover {
  color: var(--accent);
}

.type-header {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}

/* Social Media Button Styles */
.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  transform: translateY(-3px);
  color: #fff;
}

.social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(220, 39, 67, 0.3);
}

/* Fixed LinkedIn Button CSS */
.social-link.linkedin {
  background: #0077b5;
  border-color: #0077b5;
  color: #fff;
}

.social-link.linkedin:hover {
  background: #005582;
  border-color: #005582;
  box-shadow: 0 10px 20px rgba(0, 119, 181, 0.3);
}

.social-link.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 10px 20px rgba(24, 119, 242, 0.3);
}

.social-link.youtube:hover {
  background: #ff0000;
  border-color: #ff0000;
  box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3);
}

.social-link.pinterest:hover {
  background: #e60023;
  border-color: #e60023;
  box-shadow: 0 10px 20px rgba(230, 0, 35, 0.3);
}

/* ==============================
   Product Page Styles (Shared)
   ============================== */

.product-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.product-section h2 {
  color: var(--accent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.specs-table th,
.specs-table td {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.specs-table th {
  background: rgba(255, 255, 255, 0.05);
  width: 30%;
  color: var(--accent);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.slider-placeholder {
  background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
  height: 400px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.product-tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.product-tab-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.product-tab-btn.active {
  background: rgba(255, 59, 59, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

.product-tab-content {
  display: none;
}

.product-tab-content.active {
  display: block;
}
