@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&family=Montserrat:wght@400;600;700;800&display=swap');

:root {
  --text-light: #f6f3ed;
  --footer-bg: #0a1628;
  --overlay: rgba(0, 0, 0, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

/* header */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem clamp(1rem, 4vw, 3rem);
}

.brand {
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  width: 28px;
  padding: 4px;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
}

.desktop-nav { display: none; }

#menu-toggle { display: none; }

.mobile-nav {
  position: fixed;
  top: 0; right: -100%;
  width: 75%; height: 100vh;
  background: rgba(10, 22, 40, 0.98);
  transition: right 0.3s ease;
  padding: 5rem 2rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav a {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#menu-toggle:checked ~ .mobile-nav { right: 0; }

@media (min-width: 768px) {
  .hamburger { display: none; }
  .mobile-nav { display: none; }
  .desktop-nav {
    display: flex;
    gap: 2rem;
  }
  .desktop-nav a {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
  }
}

/* hero */
.hero {
  min-height: 100vh;
  background: url('/images/hero-bg.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 7rem 1.5rem 0;
  position: relative;
}

.hero h1 {
  font-size: clamp(1.3rem, 4.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.hero-brand {
  font-size: clamp(2.2rem, 9vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.hero-sub {
  max-width: 620px;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  line-height: 1.7;
  margin-bottom: 2rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.head-render {
  width: min(280px, 60vw);
  margin-top: auto;
  margin-bottom: 1.5rem;
  transform: translateY(1rem);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.35));
}

/* projects section */
.projects-section {
  background: url('/images/hero-bg.jpg') center/cover no-repeat;
  padding: clamp(3rem, 8vw, 5rem) 1.5rem;
  text-align: center;
}

.projects-section h2 {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
}

@media (min-width: 640px) {
  .project-grid { grid-template-columns: repeat(3, 1fr); }
}

.project-card {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}

.project-card:hover { transform: translateY(-4px); }

.project-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 2px solid var(--text-light);
  border-radius: 999px;
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: background 0.2s ease, color 0.2s ease;
  background: rgba(0,0,0,0.25);
}

.btn:hover { background: var(--text-light); color: #1a1a1a; }

/* footer */
footer {
  background: var(--footer-bg);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.footer-links a {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-social {
  margin-bottom: 1rem;
}

.footer-social a {
  margin: 0 0.5rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* page title banner */
.page-banner {
  min-height: 45vh;
  background: url('/images/hero-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 2rem;
}

.page-banner h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* about page */
.about-page {
  background: url('/images/about-bg.png') center/cover no-repeat;
  background-attachment: fixed;
}

.about-content {
  padding: 3rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.about-block {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.about-block h2 {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.about-block p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.about-block p:last-child { margin-bottom: 0; }

.positions { list-style: none; }
.positions li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(246, 243, 237, 0.2);
}
.positions li:last-child { border-bottom: none; }

/* contact form */
.contact-section {
  padding: 3rem 1.5rem 5rem;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.contact-section h2 {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.contact-sub {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  text-align: left;
  padding: 0 0.5rem;
}

.contact-form .full { grid-column: 1 / -1; }

.contact-form label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  font-weight: 700;
  opacity: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(246, 243, 237, 0.4);
  border-radius: 8px;
  color: var(--text-light);
  padding: 0.85rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--text-light);
  background: rgba(0, 0, 0, 0.7);
}

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

.contact-form button {
  grid-column: 1 / -1;
  justify-self: center;
  background: var(--text-light);
  color: #1a1a1a;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 2.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.contact-form button:hover { opacity: 0.9; }

.form-status {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.9rem;
}
.form-status.ok { color: #90ee90; }
.form-status.err { color: #ff9999; }

/* portfolio collections */
.collections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

@media (min-width: 640px) {
  .collections { grid-template-columns: repeat(2, 1fr); }
}

.collection {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}

.collection:hover { transform: translateY(-4px); }

.collection img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.collection .meta {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  padding: 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
}

/* project detail */
.project-detail {
  background: url('/images/hero-bg.jpg') center/cover no-repeat;
  background-attachment: fixed;
  padding: 6rem 1.5rem 3rem;
}

.project-detail-inner {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 2rem;
}

.project-detail h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-align: center;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.project-meta-grid .meta-item {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  padding: 1rem;
}

.project-meta-grid h2 {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.4rem;
}

.project-desc {
  margin-bottom: 2rem;
  line-height: 1.7;
}

.project-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .project-gallery { grid-template-columns: repeat(2, 1fr); }
}

.project-gallery img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.project-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-nav .btn { margin-top: 0; }
