/* ==========================================================================
   Veronika Eik - Digital Illustration Portfolio
   Style Sheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400&family=EB+Garamond:ital,wght@0,400..700;1,400..700&display=swap');

:root {
  --bg-color: #ffffff;
  --text-color: #3a2e2b;
  --text-muted: #7a6c67;
  --text-light: #9c8e89;
  --accent-color: #5c4a45;
  --border-color: #e6dfdb;
  
  --font-typewriter: 'Courier Prime', Courier, monospace;
  --font-serif: 'EB Garamond', Garamond, Georgia, serif;
  
  --max-width: 1350px;
  --content-padding: 24px;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-color);
}

body {
  font-family: var(--font-typewriter);
  line-height: 1.7;
  letter-spacing: 0.05em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6, nav, button, .text-uppercase {
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.12em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s ease, color 0.25s ease;
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Wrapper */
.site-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

main.main-content {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px var(--content-padding) 60px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  padding: 25px var(--content-padding) 15px;
  text-align: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.signature-container {
  display: inline-block;
  margin-bottom: 12px;
}

.signature-logo {
  max-width: 140px;
  height: auto;
  margin: 0 auto;
  filter: contrast(105%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.signature-container:hover .signature-logo {
  transform: scale(1.03);
  opacity: 0.85;
}

/* Main Navigation */
.main-nav {
  margin-top: 5px;
  position: relative;
}

.menu-toggle {
  display: none;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 30px;
}

.nav-item {
  display: inline-block;
}

.nav-link {
  font-family: var(--font-typewriter);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-color);
  padding: 4px 2px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: var(--text-color);
  transition: width 0.25s ease, left 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  left: 0;
}

.nav-link.active {
  font-weight: 700;
}

/* ==========================================================================
   View Sections (Single Page Architecture)
   ========================================================================== */
.view-section {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.view-section.active {
  display: block;
  opacity: 1;
}

/* Section Titles */
.section-title {
  font-size: 1.05rem;
  text-align: center;
  margin-bottom: 45px;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background-color: var(--text-muted);
  margin: 12px auto 0;
  opacity: 0.5;
}

/* ==========================================================================
   Home Page View
   ========================================================================== */
.home-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 20px;
}

.home-hero-figure {
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  cursor: pointer;
}

.home-hero-img {
  width: 100%;
  height: auto;
  max-height: 68vh;
  object-fit: contain;
  margin: 0 auto;
  transition: transform 0.4s ease;
}

.home-hero-figure:hover .home-hero-img {
  transform: scale(1.01);
}

.home-hero-caption {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ==========================================================================
   Gallery Views (Illustration, Linework, Rough Work)
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 55px 40px;
  padding: 10px 0;
  align-items: stretch;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  height: 100%;
}

.gallery-img-wrapper {
  width: 100%;
  height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  background-color: transparent;
}

.gallery-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: block;
}

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

.gallery-info {
  margin-top: 20px;
  text-align: center;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
}

.gallery-title {
  font-family: var(--font-typewriter);
  font-size: 0.82rem;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: color 0.25s ease;
  line-height: 1.4;
}

.gallery-item:hover .gallery-title {
  color: var(--accent-color);
}

/* ==========================================================================
   Collaboration View
   ========================================================================== */
.collaboration-container {
  max-width: 950px;
  margin: 0 auto;
}

.collab-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
}

.collab-img-wrapper {
  cursor: pointer;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collab-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.collab-img-wrapper:hover .collab-img {
  transform: scale(1.02);
}

.collab-content {
  font-family: var(--font-typewriter);
}

.collab-title {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.collab-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.collab-description {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-color);
  text-transform: none;
}

/* ==========================================================================
   About View
   ========================================================================== */
.about-container {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.about-bio {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-color);
  margin-bottom: 40px;
  text-transform: none;
}

.about-details {
  font-family: var(--font-typewriter);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   Contact View & Form (Sending to veronika.eik@email.cz)
   ========================================================================== */
.contact-container {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}

.contact-intro {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 35px;
  text-transform: none;
  line-height: 1.8;
}

.contact-direct-email {
  color: var(--text-color);
  text-decoration: underline;
  font-family: var(--font-typewriter);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: left;
  margin-bottom: 35px;
  background: var(--bg-color);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-typewriter);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.form-input,
.form-textarea {
  font-family: var(--font-typewriter);
  font-size: 0.88rem;
  color: var(--text-color);
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.25s ease;
  width: 100%;
}

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

.contact-submit-btn {
  font-family: var(--font-typewriter);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--bg-color);
  background-color: var(--text-color);
  border: 1px solid var(--text-color);
  padding: 14px 28px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
  align-self: center;
  margin-top: 10px;
}

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

.contact-email-fallback {
  margin-top: 10px;
}

.contact-email-link {
  display: inline-block;
  font-family: var(--font-typewriter);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 10px 20px;
  border: 1px dashed var(--border-color);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.contact-email-link:hover {
  border-color: var(--text-color);
  color: var(--text-color);
  opacity: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 35px var(--content-padding);
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-contact-link {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  position: relative;
  transition: color 0.25s ease;
}

.footer-contact-link:hover {
  color: var(--text-color);
  opacity: 1;
}

.artstation-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.artstation-link:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.artstation-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ==========================================================================
   Lightbox Modal View
   ========================================================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.96);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 40px 20px;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.lightbox-caption {
  margin-top: 20px;
  font-family: var(--font-typewriter);
  font-size: 0.85rem;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: transparent;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  font-family: var(--font-typewriter);
  font-size: 1.5rem;
  padding: 15px;
  transition: opacity 0.25s ease;
  z-index: 1010;
  user-select: none;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 0.6;
}

.lightbox-close {
  top: 25px;
  right: 35px;
  font-size: 1.8rem;
}

.lightbox-prev {
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .site-header {
    padding: 20px 15px 10px;
  }
  
  .signature-logo {
    max-width: 120px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-typewriter);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-color);
    background: transparent;
    border: 1px solid var(--text-color);
    padding: 7px 18px;
    margin: 5px auto 0;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
  }

  .menu-toggle:hover,
  .menu-toggle.active {
    background-color: var(--text-color);
    color: var(--bg-color);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 18px 0 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-link {
    font-size: 0.85rem;
    padding: 6px;
  }

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

  .gallery-img-wrapper {
    height: 320px;
  }
  
  .collab-card {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .collab-img-wrapper {
    height: auto;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .gallery-img-wrapper {
    height: 350px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 12px;
  }
}
img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}