/* ===========================
   JOZEF KODA — Portfolio Site
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  --black: #0a0a0a;
  --white: #f5f3ef;
  --cream: #ede9e0;
  --gold: #c9a96e;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --nav-h: 70px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--black);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,169,110,0.15);
  transition: all 0.3s ease;
}

nav .logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}
nav .logo:hover { color: var(--gold); }

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

nav ul a {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(245,243,239,0.7);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}
nav ul a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
nav ul a:hover { color: var(--white); }
nav ul a:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}
.hamburger span {
  display: block;
  width: 24px; height: 1px;
  background: var(--white);
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1510 50%, #0a0a0a 100%);
}

.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: grayscale(20%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}

.hero-tag {
  font-size: 10px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(60px, 10vw, 120px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -2px;
  color: var(--white);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  margin-top: 32px;
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-subtitle span {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(245,243,239,0.5);
  position: relative;
}

.hero-subtitle span:not(:last-child)::after {
  content: '·';
  margin-left: 30px;
  color: var(--gold);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeUp 0.8s ease 1s forwards;
  cursor: pointer;
}

.hero-scroll span {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(245,243,239,0.4);
}

.hero-scroll .scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ── SECTIONS ── */
section {
  padding: 90px 60px;
}

.section-label {
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 50px;
}

/* ── PROJECTS GRID ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2px;
}

.project-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s;
  filter: brightness(0.75);
}

.project-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.5);
}

.project-card-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
}

.project-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  transform: translateY(5px);
  transition: transform 0.3s;
}

.project-card:hover .project-card-title { transform: translateY(0); }

.project-card-sub {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s 0.05s;
}

.project-card:hover .project-card-sub {
  opacity: 1;
  transform: translateY(0);
}

/* ── PROJECT DETAIL PAGE ── */
.page-header {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 60px;
  padding-left: 60px;
  padding-right: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 50px;
  transition: color 0.3s;
}
.back-link:hover { color: var(--gold); }
.back-link::before { content: '←'; font-size: 14px; }

.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 300;
  line-height: 1.0;
  max-width: 900px;
}

/* ── GALLERY ── */
.gallery {
  padding: 60px;
  columns: 3;
  column-gap: 3px;
}

.gallery img {
  width: 100%;
  display: block;
  margin-bottom: 3px;
  break-inside: avoid;
  transition: opacity 0.3s, transform 0.4s;
  cursor: zoom-in;
}

.gallery img:hover { opacity: 0.85; }

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.95);
  justify-content: center;
  align-items: center;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border: 1px solid rgba(201,169,110,0.2);
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  font-size: 32px;
  color: var(--white);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  background: none;
  border: none;
  line-height: 1;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 20px;
  width: 50px; height: 50px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover { opacity: 1; border-color: var(--gold); color: var(--gold); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ── ABOUT PAGE ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 300;
  line-height: 1.0;
  margin-bottom: 40px;
}

.about-text p {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(245,243,239,0.7);
  margin-bottom: 24px;
}

.about-text p strong {
  color: var(--white);
  font-weight: 500;
}

.about-image {
  position: relative;
}
.about-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.about-image::before {
  content: '';
  position: absolute;
  top: -15px; left: -15px;
  right: 15px; bottom: 15px;
  border: 1px solid rgba(201,169,110,0.3);
  z-index: -1;
}

/* ── CONTACT PAGE ── */
.contact-section {
  max-width: 700px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 100px) 60px 100px;
}

.contact-section h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 300;
  margin-bottom: 20px;
}

.contact-section .intro {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(245,243,239,0.65);
  margin-bottom: 50px;
}

.company-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 8px;
}

.specialties {
  font-size: 13px;
  color: rgba(245,243,239,0.5);
  line-height: 1.7;
  margin-bottom: 50px;
}

form { display: flex; flex-direction: column; gap: 20px; }

form input, form textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0;
  padding: 16px 20px;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  color: var(--white);
  transition: border-color 0.3s;
  outline: none;
  width: 100%;
}

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

form input::placeholder, form textarea::placeholder {
  color: rgba(245,243,239,0.3);
  letter-spacing: 1px;
  font-size: 11px;
  text-transform: uppercase;
}

form textarea { min-height: 150px; resize: vertical; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn:hover {
  background: var(--gold);
  color: var(--black);
}

/* ── FOOTER ── */
footer {
  padding: 50px 60px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

footer .footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(245,243,239,0.4);
}

footer p {
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(245,243,239,0.3);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  nav ul { display: none; }
  nav ul.open { display: flex; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; background: rgba(10,10,10,0.98); padding: 30px; gap: 24px; }
  .hamburger { display: flex; }
  section { padding: 60px 24px; }
  .gallery { columns: 2; padding: 24px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image { order: -1; }
  .page-header { padding: calc(var(--nav-h) + 40px) 24px 40px; }
  footer { padding: 40px 24px; }
  .contact-section { padding: calc(var(--nav-h) + 60px) 24px 60px; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 52px; }
  .gallery { columns: 1; }
  .projects-grid { grid-template-columns: 1fr; }
}

/* ── LOADING ANIMATION ── */
img.lazy { opacity: 0; transition: opacity 0.5s; }
img.loaded { opacity: 1; }

/* ── MOBILE NAV ── */
.nav-open .hamburger span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-open .hamburger span:nth-child(2) { opacity: 0; }
.nav-open .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }
