:root {
  --bg-color: #ffffff;
  --text-color: #333;
  --nav-bg: rgba(0, 0, 0, 0.8);
  --nav-text: white;
  --section-bg: #f8f9fa;
  --card-bg: white;
  --card-shadow: rgba(0, 0, 0, 0.05);
  --hover-bg: #eff1f3;
}

[data-theme="dark"] {
  --bg-color: #1a1a1a;
  --text-color: #f5f5f5;
  --nav-bg: rgba(0, 0, 0, 0.9);
  --nav-text: #ffffff;
  --section-bg: #2a2a2a;
  --card-bg: #333;
  --card-shadow: rgba(0, 0, 0, 0.2);
  --hover-bg: #444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation */
nav {
  position: fixed;
  width: 100%;
  background-color: var(--nav-bg);
  backdrop-filter: blur(10px);
  padding: 1.2rem;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  gap: 2rem;
}

.nav-logo {
  height: 40px;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 100%;
  width: auto;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.nav-logo:hover img {
  transform: scale(1.05);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--nav-text);
  margin: 5px 0;
  transition: 0.3s;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 3rem;
  align-items: center;
}

.social-icon {
  display: flex;
  align-items: center;
  color: var(--nav-text);
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

.social-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

nav a {
  color: var(--nav-text);
  text-decoration: none;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 0.5rem 0;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--nav-text);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--nav-text);
}

.theme-toggle svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sun-icon {
  display: none;
}

[data-theme="dark"] .sun-icon {
  display: block;
}

[data-theme="dark"] .moon-icon {
  display: none;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 1rem;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("img/Jelusick 1.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-image {
  max-width: 50%;
  min-width: 400px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.1));
  animation: fadeIn 1.5s ease-out;
  object-fit: contain;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Content Sections */
main .content {
  padding: 8rem 2rem;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-color);
  transition: background-color 0.3s ease;
}

main .content:nth-child(even) {
  background-color: var(--section-bg);
}

main .content-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 4rem;
  align-items: center;
}

main .reverse .content-container {
  flex-direction: row-reverse;
}

main .content-image {
  width: 50%;
  max-width: 600px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 15px 30px var(--card-shadow);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

main .content-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.02),
    rgba(0, 0, 0, 0.1)
  );
  pointer-events: none;
}

main .content-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px var(--card-shadow);
}

main .content-text {
  flex: 1;
}

main .content-text p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: var(--text-color);
  line-height: 1.8;
}

/* About Hero Section */
.about-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("img/Jelusick 2.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-content {
  text-align: center;
  color: white;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  padding-top: 4rem;
}

.hero-text {
  font-size: 1.2rem;
  line-height: 1.8;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-text p {
  margin-bottom: 1.5rem;
}

/* Equipment Section */
.equipment {
  padding: 6rem 2rem;
  background: linear-gradient(to bottom, var(--bg-color), var(--section-bg));
}

.equipment-container {
  max-width: 1200px;
  margin: 0 auto;
}

.equipment-category {
  margin-bottom: 3rem;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--card-shadow);
  overflow: hidden;
}

/* Category Toggle */
.category-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.category-toggle:hover {
  background-color: var(--hover-bg);
}

.category-toggle h2 {
  margin: 0;
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.category-toggle .toggle-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-toggle .toggle-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.category-toggle.active .toggle-icon svg {
  transform: rotate(180deg);
}

/* Category Content */
.category-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.category-content.active {
  max-height: 3000px;
  transition: max-height 1s ease-in;
}

.category-image {
  width: 100%;
  height: 400px;
  position: relative;
  overflow: hidden;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-image:hover img {
  transform: scale(1.05);
}

.placeholder-image {
  background-color: var(--section-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-image span {
  color: var(--text-color);
  opacity: 0.5;
  font-style: italic;
  font-size: 1.1rem;
}

/* Subcategories */
.equipment-subcategory {
  padding: 0 2rem 2rem;
}

.subcategory-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-color);
  transition: all 0.3s ease;
  border-radius: 12px;
}

.subcategory-toggle:hover {
  background-color: var(--hover-bg);
}

.subcategory-toggle h3 {
  font-size: 1.8rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.subcategory-toggle .toggle-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subcategory-toggle .toggle-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.subcategory-toggle.active .toggle-icon svg {
  transform: rotate(180deg);
}

.subcategory-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.5rem;
}

.subcategory-content.active {
  max-height: 2000px;
  transition: max-height 0.5s ease-in;
}

/* Equipment Lists */
.equipment-grid {
  padding: 1.5rem 0;
}

.equipment-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.equipment-list li {
  padding: 1rem 1.5rem;
  background-color: var(--section-bg);
  border-radius: 8px;
  color: var(--text-color);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 3rem;
}

.equipment-list li::before {
  content: "→";
  position: absolute;
  left: 1.5rem;
  color: var(--text-color);
  opacity: 0.7;
}

.equipment-list li:hover {
  transform: translateX(10px);
  background-color: var(--hover-bg);
}

.placeholder {
  color: var(--text-color);
  opacity: 0.6;
  font-style: italic;
  text-align: center;
  padding: 2rem;
  background-color: var(--section-bg);
  border-radius: 8px;
}

/* Gallery Section */
.gallery-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("img/Jelusick 1.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 60vh;
}

.gallery {
  padding: 6rem 2rem;
  background: var(--bg-color);
}

.gallery-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/2;
  box-shadow: 0 8px 20px var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px var(--card-shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Contact Section */
.contact-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("img/Jelusick 1.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 60vh;
}

.contact {
  padding: 6rem 2rem;
  background: var(--bg-color);
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--card-shadow);
}

.contact-info {
  text-align: center;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.contact-details {
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}

.contact-details p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  line-height: 1.6;
}

.contact-details strong {
  display: inline-block;
  min-width: 80px;
  color: var(--text-color);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.active img {
  transform: scale(1);
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  border: 2px solid white;
  transition: all 0.3s ease;
}

.close-lightbox:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

/* Footer */
footer {
  background-color: var(--nav-bg);
  color: var(--nav-text);
  text-align: center;
  padding: 2rem;
  position: relative;
}

footer p {
  font-size: 1rem;
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1050px) {
  .hero-image {
    max-width: 85%;
    min-width: 500px;
  }

  .category-toggle h2 {
    font-size: 2rem;
  }

  .subcategory-toggle h3 {
    font-size: 1.5rem;
  }

  main .content-container {
    gap: 3rem;
  }

  main .content-text p {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .hero {
    background-attachment: scroll;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .category-toggle {
    padding: 1.5rem;
  }

  .category-toggle h2 {
    font-size: 1.8rem;
  }

  .category-image {
    height: 300px;
  }

  .equipment-subcategory {
    padding: 0 1rem 1rem;
  }

  .equipment-list {
    grid-template-columns: 1fr;
  }

  main .content {
    padding: 4rem 1.5rem;
  }

  main .content-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  main .reverse .content-container {
    flex-direction: column;
  }

  main .content-image {
    width: 100%;
    margin-bottom: 1rem;
  }

  main .content-text p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-image {
    min-width: 400px;
    max-width: 95%;
    padding: 0.5rem;
  }

  nav a {
    font-size: 1rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .category-toggle h2 {
    font-size: 1.5rem;
  }

  .subcategory-toggle h3 {
    font-size: 1.3rem;
  }

  .category-image {
    height: 250px;
  }

  main .content {
    padding: 3rem 1rem;
  }
}
