/* ================================
   COLOR VARIABLES - CUSTOMIZE HERE
================================ */
:root {
  --color-text: #ecfff2;
  --color-text-secondary: #b8ccc0;
  --color-text-muted: #8a9d92;
  --color-bg-primary: #0c100d;
  --color-bg-secondary: #161816;
  --color-border: #313b34;
  --color-primary: #1fae39;
  --color-accent: #3cb6c9;}

/* ================================
   BASE STYLES
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--color-bg-primary);
  color: var(--color-text);
  line-height: 1.6;
}

.layout-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 320px;
  background: var(--color-bg-secondary);
  padding: 2rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--color-border);
}

.sidebar h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.tagline {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

.specialty-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.specialty-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(31, 174, 57, 0.12);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.specialty-badge:hover {
  background: rgba(31, 174, 57, 0.2);
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.specialties-section,
.contact-section {
  margin-bottom: 2rem;
}

.specialties-section h2,
.contact-section h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.contact-section a {
  color: var(--color-accent);
  text-decoration: none;
}

.contact-section a:hover {
  text-decoration: underline;
}

.footer {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}

.footer a {
  color: var(--color-accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.modal-content a {
  color: var(--color-accent);
  text-decoration: none;
}

.modal-content a:hover {
  text-decoration: underline;
}

/* Gallery */
.gallery-masonry {
  flex: 1;
  padding: 2rem;
  column-count: 4;
  column-gap: 1rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  background: var(--color-bg-secondary);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-4px);
}

.gallery-item img {
  width: 100%;
  display: block;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

/* Image Modal */
.image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-modal-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

.image-caption {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--color-bg-secondary);
  border-radius: 8px;
  color: var(--color-text);
  font-size: 1rem;
  max-width: 600px;
  text-align: center;
  display: none;
}

/* Loading Spinner */
#imageModal::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 1002;
}

#imageModal.loading::before {
  opacity: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Navigation Arrows */
.nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text);
  transition: all 0.2s;
  z-index: 1001;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav-arrow:hover {
  background: rgba(107, 155, 209, 0.8);
  border-color: var(--color-accent);
  transform: translateY(-50%) scale(1.1);
}

.nav-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.nav-arrow-prev {
  left: 2rem;
}

.nav-arrow-next {
  right: 2rem;
}

.nav-arrow svg {
  width: 24px;
  height: 24px;
}

/* License Modal */
.modal-box {
  background: var(--color-bg-secondary);
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
  font-size: 1.5rem;
  color: var(--color-text);
}

.modal-close {
  font-size: 2rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--color-text);
}

.modal-content {
  padding: 1.5rem;
}

.modal-content h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.modal-content ul {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 1400px) {
  .gallery-masonry {
    column-count: 2;
    padding: 1rem;
  }
}

@media (min-width: 1401px) and (max-width: 1800px) {
  .gallery-masonry {
    column-count: 3;
  }
}

@media (min-width: 1801px) {
  .gallery-masonry {
    column-count: 4;
  }
}

@media (max-width: 768px) {
  .layout-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-arrow {
    width: 40px;
    height: 40px;
  }

  .nav-arrow-prev {
    left: 1rem;
  }

  .nav-arrow-next {
    right: 1rem;
  }

  .nav-arrow svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .sidebar {
    padding: 1.5rem;
  }

  .sidebar h1 {
    font-size: 1.5rem;
  }

  .modal-box {
    max-height: 80vh;
  }

  .nav-arrow {
    width: 36px;
    height: 36px;
  }

  .nav-arrow-prev {
    left: 0.5rem;
  }

  .nav-arrow-next {
    right: 0.5rem;
  }
}

img {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  pointer-events: auto;
}
