/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --text-light: #666666;
  --border-color: #e5e5e5;
  --hover-color: #333333;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* Minimal Navigation */
.minimal-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 20px 0;
}

.nav-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
  color: var(--text-color);
  letter-spacing: 2px;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.7;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

.nav-menu a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  opacity: 0.6;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 1px;
  background: var(--text-color);
  transition: all 0.3s ease;
}

/* Main Gallery */
.gallery-main {
  margin-top: 80px;
  padding: 0;
}

.gallery-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px;
  column-count: 4;
  column-gap: 20px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: relative;
}

.gallery-item:hover {
  opacity: 0.9;
}

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

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  margin: auto;
  display: block;
  cursor: default;
}

.modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: var(--text-color);
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  z-index: 2001;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.modal-close:hover {
  opacity: 0.5;
}

.modal-nav {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 20px;
}

.modal-prev,
.modal-next {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 60px;
  font-weight: 300;
  cursor: pointer;
  pointer-events: all;
  padding: 20px;
  transition: opacity 0.3s ease;
  line-height: 1;
}

.modal-prev:hover,
.modal-next:hover {
  opacity: 0.5;
}

/* Category Page Header */
.category-header {
  margin-top: 80px;
  padding: 60px 40px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.category-header h1 {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.category-header p {
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 300;
}

/* Category Gallery */
.category-gallery {
  padding: 0;
}

.category-gallery .gallery-container {
  margin-top: 0;
}

/* About Page */
.about-section {
  margin-top: 80px;
  padding: 80px 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.about-section img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  margin-bottom: 40px;
  border-radius: 0;
}

.about-section h2 {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.about-section p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 20px;
  letter-spacing: 0.3px;
  font-weight: 300;
}

/* Contact Page */
.contact-section {
  margin-top: 80px;
  padding: 80px 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-section h2 {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 50px;
}

.contact-section > p {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 1px;
  margin-bottom: 50px;
  text-transform: uppercase;
  font-weight: 300;
}

.contact-form {
  width: 100%;
}

.form-group {
  margin-bottom: 30px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-color);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  font-family: inherit;
  background: transparent;
  color: var(--text-color);
  transition: border-color 0.3s ease;
  letter-spacing: 0.3px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--text-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  width: 100%;
  padding: 15px 0;
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--text-color);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.btn-submit:hover {
  background: var(--text-color);
  color: var(--bg-color);
}

.contact-info {
  margin-top: 60px;
  text-align: center;
  padding-top: 60px;
  border-top: 1px solid var(--border-color);
}

.contact-info h3 {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 30px;
  color: var(--text-color);
}

.contact-info p {
  font-size: 13px;
  margin-bottom: 10px;
  color: var(--text-color);
  letter-spacing: 0.3px;
  font-weight: 300;
}

.contact-info a {
  color: var(--text-color);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.contact-info a:hover {
  opacity: 0.6;
}

/* Footer */
.footer {
  background: var(--bg-color);
  padding: 40px;
  text-align: center;
  border-top: 1px solid var(--border-color);
  margin-top: 80px;
}

.footer p {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 300;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.footer-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
  font-weight: 300;
}

.footer-links a:hover {
  opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .gallery-container {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .nav-wrapper {
    padding: 0 20px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: var(--bg-color);
    width: 100%;
    padding: 40px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: left 0.3s ease;
    align-items: flex-start;
    gap: 20px;
  }

  .nav-menu.active {
    left: 0;
  }

  .gallery-container {
    column-count: 2;
    padding: 20px;
  }

  .category-header {
    padding: 40px 20px;
  }

  .about-section,
  .contact-section {
    padding: 60px 20px;
  }

  .modal-close {
    top: 20px;
    right: 20px;
    font-size: 30px;
  }

  .modal-prev,
  .modal-next {
    font-size: 40px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .gallery-container {
    column-count: 1;
    padding: 20px;
  }

  .logo {
    font-size: 16px;
  }

  .about-section img {
    width: 200px;
    height: 200px;
  }
}
