:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --font-main: "Roboto", Arial, sans-serif;
  --font-heading: "Playfair Display", Georgia, serif;
  --sidebar-width: 280px;
  --sidebar-width-small: 250px;
  --sidebar-bg: #2c3e50;
  --sidebar-text: #ecf0f1;
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -var(--sidebar-width);
  width: var(--sidebar-width);
  height: 100%;
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  z-index: 1000;
  transition: all var(--transition-speed) ease;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sidebar.active {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
  color: var(--sidebar-text);
  margin: 0;
  font-family: var(--font-heading);
}

.close-menu {
  cursor: pointer;
  font-size: 1.2rem;
  transition: color 0.2s ease;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-menu:hover {
  color: var(--accent-color);
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
}

.sidebar-nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-nav a {
  display: block;
  padding: 15px 20px;
  color: var(--sidebar-text);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.sidebar-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent-color);
}

.menu-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  background-color: var(--primary-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle:hover {
  background-color: var(--accent-color);
}

.content-wrapper {
  transition: margin-left var(--transition-speed) ease;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  padding: 40px 0;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
}

h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary-color);
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary-color);
}

h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 30px 0 15px;
}

p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #444;
}

.container {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.intro {
  font-size: 1.2rem;
  color: var(--dark-color);
  margin-bottom: 30px;
}

.highlight {
  color: var(--accent-color);
  font-weight: bold;
}

.metal-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.metal-card {
  background-color: var(--light-color);
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.metal-card h3 {
  color: var(--secondary-color);
  margin-top: 0;
}

.section-divider {
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    var(--secondary-color),
    transparent
  );
  margin: 40px 0;
}

.cta-section {
  background-color: var(--primary-color);
  color: white;
  padding: 40px;
  border-radius: 8px;
  text-align: center;
  margin: 40px 0;
}

.cta-section h2 {
  color: white;
  border-bottom: none;
}

.cta-section p {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 25px;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #c0392b;
}

footer {
  text-align: center;
  padding: 30px 0;
  margin-top: 50px;
  color: #777;
  font-size: 0.9rem;
  border-top: 1px solid #eee;
}

@media (min-width: 1200px) {
  .sidebar {
    left: 0;
    box-shadow: none;
  }

  .content-wrapper {
    margin-left: var(--sidebar-width);
    padding: 20px 40px;
  }

  .menu-toggle {
    display: none;
  }

  .close-menu {
    display: none;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .sidebar {
    left: 0;
    box-shadow: none;
    width: var(--sidebar-width);
  }

  .content-wrapper {
    margin-left: var(--sidebar-width);
    padding: 20px 30px;
  }

  .menu-toggle {
    display: none;
  }

  .close-menu {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .sidebar {
    left: -var(--sidebar-width);
    width: var(--sidebar-width);
  }

  .content-wrapper {
    margin-left: 0;
    padding: 20px;
  }

  .menu-toggle {
    display: flex;
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.9rem;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .sidebar {
    left: -var(--sidebar-width);
    width: var(--sidebar-width-small);
  }

  .sidebar.active {
    left: 0;
    width: var(--sidebar-width-small);
  }

  .content-wrapper {
    margin-left: 0;
    padding: 15px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.7rem;
    margin: 30px 0 15px;
  }

  .container {
    padding: 20px;
  }

  .metal-section {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 575px) {
  .sidebar {
    left: -100%;
    width: 85%;
  }

  .sidebar.active {
    left: 0;
  }

  .content-wrapper {
    margin-left: 0;
    padding: 15px 10px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
    margin: 25px 0 15px;
  }

  h3 {
    font-size: 1.3rem;
  }

  .container {
    padding: 15px;
  }

  .metal-section {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    top: 15px;
    left: 15px;
    width: 35px;
    height: 35px;
  }

  .sidebar-nav a {
    padding: 12px 15px;
    font-size: 0.95rem;
  }

  .cta-section {
    padding: 25px 15px;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

@media (max-width: 320px) {
  .sidebar {
    width: 90%;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  p {
    font-size: 1rem;
  }

  .container {
    padding: 12px;
  }
}

section {
  scroll-margin-top: 30px;
  padding: 10px 0;
}

.sidebar-nav a.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--accent-color);
  border-left: 4px solid var(--accent-color);
}

@media (orientation: landscape) and (max-height: 500px) {
  .sidebar {
    overflow-y: scroll;
  }

  .sidebar-nav a {
    padding: 10px 15px;
  }

  .menu-toggle {
    top: 10px;
    left: 10px;
  }
}

.gallery-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  overflow-y: auto;
}

.gallery-container {
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  color: #fff;
}

.gallery-close {
  font-size: 30px;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s;
}

.gallery-close:hover {
  color: #f0c14b;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

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

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

.modal-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

.modal-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  box-sizing: border-box;
  transform: translateY(-50%);
}

.modal-prev,
.modal-next {
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s;
}

.modal-prev:hover,
.modal-next:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  .gallery-container {
    padding: 30px 10px;
  }

  .modal-nav {
    padding: 0 10px;
  }

  .modal-prev,
  .modal-next {
    width: 40px;
    height: 40px;
    font-size: 30px;
  }
}

.external-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dotted var(--secondary-color);
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.external-link:hover {
  color: var(--accent-color);
  border-bottom: 1px solid var(--accent-color);
}
