/* ==========================================================================
   Brazauskas — main stylesheet
   Rankomis parašytas CSS, atkartojantis originalų Tailwind + Framer Motion
   dizainą, be jokio build žingsnio.
   ========================================================================== */

:root {
  --ink: #050505;
  --surface: #0d0d0d;
  --line: #1e1e1e;
  --paper: #f5f4f2;
  --muted: #8a8a8a;
  --faint: #4d4d4d;
  --accent: #b9a06a;
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: 'Poppins', sans-serif;
  --font-hero: 'Avenir Next', Avenir, 'Poppins', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes lineIn {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 1; transform: scaleX(1); }
}
@keyframes bounceDot {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  text-align: center;
}

.hero-firstname {
  font-family: var(--font-hero);
  font-size: 1.25rem;
  font-weight: 200;
  letter-spacing: 0.2em;
  color: var(--paper);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-premium) forwards;
}

.hero-name {
  font-family: var(--font-hero);
  font-size: 15vw;
  font-weight: 200;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin: 0;
  opacity: 0;
  animation: fadeUp 1.1s var(--ease-premium) 0.15s forwards;
}

.hero-line {
  margin-top: 1.5rem;
  height: 1px;
  width: 6rem;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transform: scaleX(0);
  animation: lineIn 1.2s var(--ease-premium) 0.6s forwards;
}

.hero-tagline {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 1s var(--ease-premium) 0.85s forwards;
}

.hero-cta {
  appearance: none;
  background: none;
  margin-top: 5rem;
  width: 11rem;
  border: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
  text-align: center;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  animation: fadeUp 1s var(--ease-premium) 1.1s forwards;
  transition: letter-spacing 0.35s var(--ease-premium), color 0.35s var(--ease-premium), border-color 0.5s var(--ease-premium);
}
.hero-cta:hover {
  letter-spacing: 0.15em;
  color: var(--accent);
  border-color: var(--accent);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  opacity: 0;
  animation: fadeIn 1s ease 1.6s forwards;
}
.hero-scroll-dot {
  width: 1px;
  height: 2rem;
  background: var(--line);
  animation: bounceDot 2.2s ease-in-out infinite;
}

@media (min-width: 640px) {
  .hero-firstname { font-size: 1.5rem; }
  .hero-name { font-size: 9vw; }
  .hero-line { width: 8rem; }
  .hero-tagline { font-size: 1rem; }
  .hero-cta { margin-top: 6rem; width: 13rem; }
  .hero-scroll { display: block; }
}
@media (min-width: 768px) {
  .hero-name { font-size: 7rem; }
}
@media (min-width: 1024px) {
  .hero-name { font-size: 8rem; }
}

/* --------------------------------------------------------------------
   Scroll-reveal (whileInView pakaitalas)
   -------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-premium), transform 0.9s var(--ease-premium);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.15s; }
.reveal-delay-3 { transition-delay: 0.2s; }

/* --------------------------------------------------------------------
   Section shared
   -------------------------------------------------------------------- */
.section {
  scroll-margin-top: 2.5rem;
  padding: 4.5rem 1.5rem;
}
@media (min-width: 640px) {
  .section { padding: 5.5rem 1.5rem; }
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--accent);
}

.section-heading {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 200;
  color: var(--paper);
}
@media (min-width: 640px) {
  .section-heading { font-size: 2.25rem; }
}

/* --------------------------------------------------------------------
   About
   -------------------------------------------------------------------- */
.about-grid {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  gap: 4rem;
}
@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
  }
}

.about-portrait {
  order: 1;
  margin: 0 auto;
  width: 100%;
  max-width: 24rem;
  border: 1px solid var(--line);
}
@media (min-width: 768px) {
  .about-portrait { margin: 0; }
}
.about-portrait img {
  aspect-ratio: 3 / 4;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
}

.about-bio {
  order: 2;
  text-align: center;
}
@media (min-width: 768px) {
  .about-bio { text-align: left; }
}
.about-bio p {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
}
@media (min-width: 640px) {
  .about-bio p { font-size: 1rem; }
}

.gallery {
  margin: 3rem auto 0;
  max-width: 64rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .gallery { gap: 1rem; }
}
@media (min-width: 768px) {
  .gallery { margin-top: 4rem; }
}
.gallery-item {
  overflow: hidden;
  border: 1px solid var(--line);
}
.gallery-item img {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
  transition: transform 0.7s var(--ease-premium);
}
.gallery-item:hover img {
  transform: scale(1.05);
}

/* --------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------- */
.contact-header {
  margin: 0 auto 2.5rem;
  max-width: 36rem;
  text-align: center;
}
.contact-sub {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--muted);
}
@media (min-width: 640px) {
  .contact-sub { font-size: 1rem; }
}

.contact-form {
  margin: 0 auto;
  width: 100%;
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.field label .req {
  color: var(--accent);
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
  color: var(--paper);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.5s var(--ease-premium);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea {
  resize: none;
}

.submit-wrap {
  padding-top: 1rem;
}
.btn-submit {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 1px solid var(--line);
  padding: 1rem;
  background: none;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper);
  cursor: pointer;
  transition: border-color 0.5s var(--ease-premium), color 0.5s var(--ease-premium), letter-spacing 0.35s var(--ease-premium);
}
@media (min-width: 640px) {
  .btn-submit { width: 18rem; }
}
.btn-submit:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  letter-spacing: 0.15em;
}
.btn-submit:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.form-status {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s var(--ease-premium), transform 0.6s var(--ease-premium);
}
.form-status.visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.form-status.success { color: var(--accent); }
.form-status.error { color: #f87171; }
.form-status svg { width: 1rem; height: 1rem; flex-shrink: 0; }

.contact-info {
  margin: 3.5rem auto 0;
  display: flex;
  width: 100%;
  max-width: 36rem;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 3.5rem;
  text-align: center;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .contact-links { flex-direction: row; gap: 4rem; }
}
.contact-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.5s var(--ease-premium);
}
.contact-links a:hover { color: var(--accent); }
.contact-links svg { width: 1rem; height: 1rem; }

.socials {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.socials a {
  color: var(--muted);
  transition: color 0.5s var(--ease-premium), transform 0.4s var(--ease-premium);
  display: inline-flex;
}
.socials a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}
.socials svg { width: 1.25rem; height: 1.25rem; }

/* --------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.site-footer p {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--faint);
}
