/* FONT */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  --red: #c4001a;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --radius: 16px;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.visible {
  opacity: 1;
}

body.fade-out {
  opacity: 0;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar a {
  text-decoration: none;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 500;
  transition: 0.2s;
}

.navbar a:hover,
.navbar a.active {
  background: var(--red);
  color: white;
}

/* TITLE */
.title {
  text-align: center;
  margin-top: 60px;
  font-size: 38px;
  font-weight: 600;
}

.line {
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 15px auto 30px;
}

/* TEXT */
p {
  max-width: 600px;
  margin: auto;
  text-align: center;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

/* PROFILE */
.profile-img {
  width: 220px;
  display: block;
  margin: 30px auto;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.gallery-item {
  height: 260px;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.modal.open {
  display: flex;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--radius);
  cursor: default;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}

/* ŠIPKY */
.arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: white;
  cursor: pointer;
  padding: 10px;
  user-select: none;
  z-index: 10000;
  transition: 0.2s;
}

.arrow:hover {
  color: var(--red);
}

.arrow.left {
  left: 20px;
}

.arrow.right {
  right: 20px;
}

/* FOOTER */
.footer {
  margin-top: 80px;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.3s;
}

.icon {
  font-size: 16px;
  transition: 0.3s;
}

.footer a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--red);
  transition: width 0.3s ease;
}

.footer a:hover {
  color: var(--red);
}

.footer a:hover::after {
  width: 100%;
}

.footer a:hover .icon {
  transform: translateY(-2px);
}

/* MODAL CAPTION */
.modal-caption {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.03em;
  text-align: center;
  pointer-events: none;
  z-index: 10001;
}