/* ============================================
   KATERYNA HUT — Portfolio Styles
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg: #F5EFE6;
  --primary: #111111;
  --accent: #C1121F;
  --secondary: #6B4F3A;
  --light-gray: #D9D9D9;
  --white: #FAFAF8;
  --font-heading: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Playfair Display', serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader__inner {
  text-align: center;
}

.loader__text {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--white);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.loader__bar {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.3);
  margin: 1.5rem auto 0;
  border-radius: 2px;
  overflow: hidden;
}

.loader__progress {
  width: 0%;
  height: 100%;
  background: var(--white);
  border-radius: 2px;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  transition: background 0.4s, backdrop-filter 0.4s;
}

.nav--scrolled {
  background: rgba(245, 239, 230, 0.9);
  backdrop-filter: blur(12px);
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  transition: color 0.3s;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-switcher {
  display: flex;
  gap: 0.25rem;
}

.lang-btn {
  background: none;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  color: var(--secondary);
  transition: all 0.3s;
}

.lang-btn.active {
  color: var(--primary);
  border-color: var(--primary);
}

.lang-btn:hover {
  color: var(--accent);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s;
}

.nav__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__links {
  text-align: center;
}

.mobile-menu__links li {
  margin-bottom: 1.5rem;
}

.mobile-menu__links a {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.mobile-menu__links a:hover {
  color: var(--accent);
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
}

.hero__red-block {
  flex: 1;
  background: var(--accent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 4rem 3rem;
  position: relative;
}

.hero__title-wrap {
  margin-bottom: 2rem;
}

.hero__name {
  font-family: var(--font-heading);
  line-height: 0.9;
  color: var(--white);
}

.hero__name-line {
  display: block;
}

.hero__name-line:first-child {
  font-size: clamp(4rem, 10vw, 9rem);
}

.hero__name-line:last-child {
  font-size: clamp(5rem, 14vw, 13rem);
  color: var(--bg);
  -webkit-text-stroke: 2px var(--white);
  text-stroke: 2px var(--white);
  paint-order: stroke fill;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-top: 1rem;
}

.hero__quote {
  margin-top: auto;
  max-width: 400px;
}

.hero__quote p {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.hero__scroll span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.hero__scroll-line {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.4);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--white);
  animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.hero__image-wrap {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero__image {
  height: 90vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
}

/* ---------- ABOUT ---------- */
.about {
  display: flex;
  min-height: 100vh;
  padding: 8rem 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 10vw, 10rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.about__image-col {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3rem;
  position: relative;
}

.about__image-wrapper {
  position: relative;
  width: 80%;
  max-width: 450px;
}

.about__image {
  width: 100%;
  position: relative;
  z-index: 2;
}

.about__image-accent {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 60%;
  height: 60%;
  background: var(--accent);
  z-index: 1;
}

.about__text-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 4rem 0 2rem;
}

.about__title {
  color: var(--accent);
  margin-bottom: 2.5rem;
}

.about__bio p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--primary);
  margin-bottom: 1.25rem;
  max-width: 520px;
}

.about__languages {
  margin-top: 2rem;
}

.about__lang-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.about__lang-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border: 1px solid var(--secondary);
  color: var(--secondary);
  letter-spacing: 0.03em;
}

/* ---------- EDUCATION ---------- */
.education {
  padding: 8rem 4rem;
  position: relative;
  overflow: hidden;
}

.education__title {
  color: var(--accent);
  margin-bottom: 4rem;
}

.education__timeline {
  max-width: 800px;
  margin-left: auto;
  position: relative;
  padding-left: 2rem;
}

.education__timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--light-gray);
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
  align-items: flex-start;
}

.timeline-item__dot {
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(calc(-50% + 1px));
  z-index: 2;
}

.timeline-item__year {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--secondary);
  min-width: 140px;
  flex-shrink: 0;
}

.timeline-item__content {
  flex: 1;
}

.timeline-item__name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.timeline-item__desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--secondary);
}

/* ---------- AWARDS ---------- */
.awards {
  background: var(--accent);
  padding: 8rem 4rem;
}

.awards__title {
  color: var(--bg);
  margin-bottom: 4rem;
}

.awards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
}

.award-card {
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255,255,255,0.2);
  transition: transform 0.3s, border-color 0.3s;
}

.award-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.5);
}

.award-card__year {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--bg);
  opacity: 0.4;
  display: block;
  margin-bottom: 1rem;
}

.award-card__placement {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.award-card__placement--gold {
  color: #FFD700;
}

.award-card__placement--silver {
  color: #C0C0C0;
}

.award-card__name {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}

/* ---------- GALLERY ---------- */
.gallery {
  padding: 8rem 4rem;
  position: relative;
}

.gallery__title {
  color: var(--accent);
  margin-bottom: 3rem;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 1rem;
}

.gallery__item {
  overflow: hidden;
  position: relative;
  border: 3px solid var(--accent);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item--tall {
  grid-row: span 2;
}

.gallery__item--wide {
  grid-column: span 2;
}

/* ---------- EXPERIENCE ---------- */
.experience {
  padding: 8rem 4rem;
}

.experience__title {
  color: var(--accent);
  margin-bottom: 3rem;
}

.experience__stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 4rem;
  padding: 2rem 0;
  border-top: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
}

.stat__label {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
}

.stat__divider {
  width: 1px;
  height: 50px;
  background: var(--light-gray);
}

.experience__category {
  margin-bottom: 3rem;
}

.experience__cat-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--light-gray);
}

.experience__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.exp-card {
  padding: 1.5rem;
  background: var(--white);
  border-left: 3px solid var(--accent);
  transition: transform 0.3s;
}

.exp-card:hover {
  transform: translateX(4px);
}

.exp-card__period {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.exp-card__name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.exp-card__desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--secondary);
}

/* ---------- CONTACT ---------- */
.contact {
  display: flex;
  min-height: 80vh;
}

.contact__image-col {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--primary);
}

.contact__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  filter: grayscale(30%);
}

.contact__content-col {
  flex: 1;
  background: var(--accent);
  padding: 6rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact__title {
  color: var(--bg);
  margin-bottom: 1rem;
}

.contact__cta {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2.5rem;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.contact__link {
  display: flex;
  flex-direction: column;
  color: var(--white);
  font-size: 0.95rem;
  transition: opacity 0.3s;
}

.contact__link:hover {
  opacity: 0.8;
}

.contact__label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.15rem;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  max-width: 400px;
}

.contact__input,
.contact__textarea {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.85rem 1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.3s;
  outline: none;
}

.contact__input::placeholder,
.contact__textarea::placeholder {
  color: rgba(255,255,255,0.5);
}

.contact__input:focus,
.contact__textarea:focus {
  border-color: var(--white);
}

.contact__textarea {
  resize: vertical;
  min-height: 100px;
}

.contact__submit {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--accent);
  border: none;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  align-self: flex-start;
}

.contact__submit:hover {
  background: var(--bg);
  transform: translateY(-2px);
}

.contact__social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.contact__social:hover {
  color: var(--white);
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--light-gray);
}

.footer p {
  font-size: 0.8rem;
  color: var(--secondary);
}

.footer__credit {
  font-size: 0.75rem;
}

/* ---------- GSAP Animation Helpers ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
}

.clip-reveal {
  clip-path: inset(100% 0 0 0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav { padding: 1rem 2rem; }

  .hero {
    flex-direction: column;
    min-height: auto;
  }

  .hero__red-block {
    padding: 8rem 2rem 3rem;
    min-height: 60vh;
  }

  .hero__image-wrap {
    min-height: 50vh;
  }

  .hero__image {
    height: 50vh;
  }

  .about {
    flex-direction: column;
    padding: 5rem 0;
  }

  .about__image-col {
    padding: 0 2rem;
    margin-bottom: 3rem;
  }

  .about__text-col {
    padding: 0 2rem;
  }

  .section-title {
    font-size: clamp(3rem, 8vw, 6rem);
  }

  .awards__grid {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }

  .gallery__item--tall {
    grid-row: span 2;
  }

  .experience__stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .stat__divider {
    display: none;
  }

  .contact {
    flex-direction: column;
  }

  .contact__image-col {
    height: 40vh;
  }

  .contact__content-col {
    padding: 4rem 2rem;
  }

  .education {
    padding: 5rem 2rem;
  }

  .experience {
    padding: 5rem 2rem;
  }

  .gallery {
    padding: 5rem 2rem;
  }

  .footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 2rem;
  }
}

@media (max-width: 600px) {
  .hero__name-line:first-child {
    font-size: 3.5rem;
  }

  .hero__name-line:last-child {
    font-size: 5rem;
  }

  .hero__red-block {
    padding: 7rem 1.5rem 2rem;
  }

  .section-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }

  .gallery__item--wide {
    grid-column: span 2;
  }

  .timeline-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .experience__cards {
    grid-template-columns: 1fr;
  }

  .experience__stats {
    flex-direction: column;
    align-items: flex-start;
  }

  .about__image-wrapper {
    width: 100%;
  }

  .contact__form {
    max-width: 100%;
  }
}
