/* Root variables and base styles */
:root {
  --bg: #0d0d0d;
  --fg: #ffffff;
  --accent: #FF1454;
  --font: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--fg);
  line-height: 1.8;
  background-color: #232222;
  background-image:
    repeating-linear-gradient(45deg,
      rgba(186, 186, 186) 0px,
      rgba(138, 138, 138) 1px,
      #343131 1px,
      #d4d4d4 9px),
    repeating-linear-gradient(-45deg,
      rgba(210, 210, 210) 0px,
      rgba(121, 121, 121) 1px, 
      #828282 2px, 
      #040404 8px);


  background-size: 11px;
  background-blend-mode: overlay;
  color: white;
}

/* Typography */
h1 {
  font-size: 3rem;
  color: var(--fg);
  letter-spacing: 0.05em;
  font-weight: 700;
}

h2 {
  font-size: 1.75rem;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
}

h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #aaa;
  text-transform: uppercase;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

strong {
  color: var(--accent);
}

a {
  color: var(--accent);
  text-decoration: underline;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--fg);
}

blockquote {
  font-size: x-large;
  margin: 1em;
  text-align: center;
  font-style: oblique;
}

/* Utility */
.visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Content container */
.content-container {
  width: 93%;
  background-color: #f4f4f4;
  border: 10px solid #000;
  padding: 10px;
  margin: 0;
}

.header-footer-content {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Header & Navigation */
header {
  padding-top: 3%;
  text-align: center;
}

.header-content {
  font-family: 'Courier', sans-serif;
  border-radius: 20px 20px 0 0;
  border-bottom: none;
  padding-bottom: 0;
  background-color: #d2d2d2;
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.logo {
  width: 100px;
  height: auto;
}

.logo-text {
  color: #000;
  text-align: left;
  font-size: 1.3em;
  padding-left: 0.8em;
}

.nav-list {
  display: flex;
  padding: 0;
  gap: 2em;
  list-style: none;
  justify-content: right;
}

.nav-list li a {
  text-decoration: none;
  color: black;
  font-weight: bold;
}

.nav-list li a:hover,
.dropdown-menu li a:hover,
#mobile-navigation li a:hover {
  text-decoration: underline;
}

.amp-knob {
  max-width: 50px;
  height: auto;
  margin: 0 auto;
  display: flex;
  transform-origin: center;
}

/* Dropdown menu */
.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #e8e8e8ed;
  list-style: none;
  padding: 0;
  margin: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
  z-index: 1000;
}

.dropdown-menu li {
  padding: 5px 10px;
}

.dropdown-menu li a {
  text-decoration: none;
  color: #000;
}

.dropdown-menu.visible {
  display: block;
}

/* Mobile navigation */
.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

#mobile-menu-overlay {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999;
  transition: opacity 0.3s ease;
}

#mobile-menu-overlay.visible {
  visibility: visible;
  opacity: 1;
}

#mobile-navigation {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100%;
  background-color: #fff;
  z-index: 1000;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
  padding: 20px;
  overflow-y: auto;
  text-align: left;
  transition: right 0.3s ease, opacity 0.3s ease;
}

#mobile-navigation.visible {
  visibility: visible;
  opacity: 1;
  right: 0;
}

#mobile-navigation li {
  margin: 20px 0;
}

#mobile-navigation a {
  text-decoration: none;
  font-size: 18px;
  color: #000;
}

/* Main Content */
.main-content {
  background-color: #000;
  box-shadow: inset 0 0 4px 3px white;
}

/* Footer */
footer {
  padding-bottom: 3%;
  text-align: center;
}

.footer-content {
  font-family: 'Courier', sans-serif;
  background-color: #d2d2d2;
  color: #000;
  border-radius: 0 0 20px 20px;
  border-top: none;
}

.social-links {
  text-align: center;
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  padding: 0 8px;
}

.social-links a {
  text-decoration: none;
  font-size: 24px;
  color: #333;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--accent)
}

svg {
  width: 24px;
  height: 24px;
}

/* Hero */
.hero,
.hero-inverted {
  display: flex;
  justify-content: space-between;
  align-content: center;
}

.hero {
  background-color: black;
}

.hero-inverted {
  color: black;
  background: linear-gradient(241deg, #ffffffde, white);
  padding: 1em;
  border-radius: 2px;
  margin-top: 1em;
  box-shadow: 1px 12px 6px 5px rgba(0, 0, 0, 0.1);
}

.hero-image {
  width: 50%;
  padding: 0 1em;
}

/* Buttons */
a.button {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background-color: var(--accent);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  transition: background 0.3s ease;
  font-weight: bold;
  margin-bottom: 4px;
}

a.button:hover {
  background-color: var(--fg);
  color: var(--accent);

}

/* Highlight blocks */
.highlight {
  background: #1a1a1a;
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  margin-top: 1.5rem;
  border-radius: 4px;
}

/* Lists */
ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  margin-bottom: 0.75rem;
}

/* Sections */
section {
  padding: 1rem 2rem;
  margin: 2rem 0;
}

/* Gallery */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
}

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


/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
}

/* Background image effects */
.image-background {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  justify-content: center;
  align-items: center;
  margin-bottom: 2em;
}

.fade-image {
  position: relative;
  width: 100%;
}

.background-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/index/equipment.webp') no-repeat center center/cover;
  -webkit-mask-image: linear-gradient(to left, black 30%, transparent 100%);
  mask-image: linear-gradient(to left, black 30%, transparent 100%);
  z-index: 1;
}

.content {
  position: relative;
  z-index: 2;
}

.emc-logo {
  width: 330px;
  height: auto;
}

/* Responsive tweaks */
@media (max-width: 1080px) {
  .content-container {
    border-width: 8px;
  }

  .header-content {
    align-items: center;
  }

  .mobile-menu-button {
    display: flex;
    justify-content: right;
    align-items: end;
    background-color: transparent;
  }

  #desktop-navigation {
    display: none;
  }

  .logo-text {
    font-size: 1em;
  }

  .hero,
  .hero-inverted {
    flex-direction: column;
    align-items: center;
  }

  .hero-image {
    width: 100%;
    padding: 0;
  }

  #pricing {
    text-align: center;
    padding: 0;
  }
}

@media (max-width: 715px) {
  .content-container {
    border-width: 4px;
  }

  .nav-list a {
    font-size: clamp(0.7rem, 1.5vw, 1rem);
    letter-spacing: 2px;
  }

  .logo-text {
    display: none;
  }

  .emc-logo {
    width: 250px;
  }

  .background-mask {
    mask-image: (to left, black 1%, transparent 85%);
  }

  body {
    background-size: auto;
  }

  .image-background {
    background-position: 30%;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
  }
}