/* ============================================================
   VLADYSLAVA PEKUR — PORTFOLIO
   style.css
   ------------------------------------------------------------
   Sections:
   1.  Variables & Reset
   2.  Custom Cursor
   3.  Navigation
   4.  Hero
   5.  About (Über mich)
   6.  Projects (Projekte)
   7.  Skill Bars
   8.  Internship (Praktikum)
   9.  Contact (Kontakt)
   10. Footer
   11. Utilities & Animations
   12. Responsive
============================================================ */


/* ── 1. Variables & Reset ─────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black:      #0a0a0a;
  --white:      #fafafa;
  --grey-light: #f2f2f0;
  --grey-mid:   #9a9a9a;
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  cursor: none;
}


/* ── 2. Custom Cursor ─────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--black);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
}

body:has(a:hover) .cursor,
body:has(button:hover) .cursor {
  width: 20px;
  height: 20px;
  mix-blend-mode: difference;
}


/* ── 3. Navigation ────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 60px;
  mix-blend-mode: difference;
  transition: padding 0.4s ease, background 0.4s ease;
}

nav.nav-scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  mix-blend-mode: normal;
  padding: 16px 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.05em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  position: relative;
  transition: opacity 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.nav-active::after {
  width: 100%;
}

/* Mobile burger */
#burger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: none;
  z-index: 200;
}

#mobileMenu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

#mobileMenu.open { display: flex; }

#mobileMenu a {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.3s;
}

#mobileMenu a:hover { opacity: 0.5; }


/* ── 4. Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  background: var(--black);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.38;
  mix-blend-mode: luminosity;
  filter: grayscale(100%) contrast(1.1);
  z-index: 0;
  transition: transform 0.1s linear;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 30% 60%, rgba(0,0,0,0.7) 0%, transparent 70%),
    linear-gradient(160deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px;
}

.hero-number {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  font-family: var(--serif);
  font-size: clamp(120px, 20vw, 220px);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  animation: float 6s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 60px 80px;
  max-width: 900px;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 24px;
  animation: fadeUp 1s ease 0.2s both;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(56px, 9vw, 120px);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  animation: fadeUp 1s ease 0.4s both;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
}

.hero-subtitle {
  font-family: var(--sans);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 48px;
  animation: fadeUp 1s ease 0.6s both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 36px;
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease;
  animation: fadeUp 1s ease 0.8s both;
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.hero-cta:hover { color: var(--white); }
.hero-cta:hover::before { transform: translateX(0); }

.hero-cta span,
.hero-cta-arrow { position: relative; z-index: 1; }

.hero-cta-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.hero-cta:hover .hero-cta-arrow { transform: translateX(6px); }

.hero-scroll {
  position: absolute;
  right: 60px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  animation: fadeUp 1s ease 1.2s both;
}

.hero-scroll span {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}


/* ── 5. About (Über mich) ─────────────────────────────────── */
section { padding: 120px 60px; }

.section-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.section-label::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--grey-mid);
}

#ueber-mich {
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.about-title {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.about-title em { font-style: italic; font-weight: 400; }

.about-text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  color: #444;
  margin-bottom: 24px;
  max-width: 440px;
}

.info-block { margin-bottom: 48px; }

.info-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 10px;
}

.info-value {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--black);
  line-height: 1.5;
}

.traits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.trait {
  padding: 8px 20px;
  border: 1px solid #ddd;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: default;
}

.trait:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #ddd 20%, #ddd 80%, transparent);
  margin: 0 60px;
}


/* ── 6. Projects (Projekte) ───────────────────────────────── */
#projekte { background: var(--grey-light); }

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 70px;
}

.projects-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.projects-title em { font-style: italic; font-weight: 400; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.project-card {
  background: var(--white);
  padding: 50px 44px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease;
  cursor: default;
}

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

.project-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.project-card:hover::before { transform: scaleX(1); }

.project-num {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 400;
  font-style: italic;
  color: var(--grey-mid);
  margin-bottom: 28px;
}

.project-icon {
  font-size: 1.8rem;
  margin-bottom: 20px;
  display: block;
  filter: grayscale(1);
}

.project-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: #666;
  line-height: 1.75;
}

.project-status {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid #ddd;
  color: var(--grey-mid);
}

.project-status.active {
  border-color: var(--black);
  color: var(--black);
}


/* ── 7. Skill Bars ────────────────────────────────────────── */
.skills-section { margin-top: 70px; }

.skill-bar-wrap { margin-bottom: 24px; }

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.skill-bar-name {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
}

.skill-bar-pct {
  font-size: 0.72rem;
  color: var(--grey-mid);
}

.skill-bar-track {
  height: 2px;
  background: #e5e5e5;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: var(--black);
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ── 8. Internship (Praktikum) ────────────────────────────── */
#praktikum {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

#praktikum .section-label        { color: rgba(255,255,255,0.3); }
#praktikum .section-label::after { background: rgba(255,255,255,0.2); }

.praktikum-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.praktikum-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 32px;
}

.praktikum-title em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
}

.praktikum-text {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,0.55);
}

.date-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 44px;
  backdrop-filter: blur(10px);
}

.date-label {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}

.date-value {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 32px;
  line-height: 1.4;
}

.date-sep {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 32px;
}

.date-duration {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
}

.date-duration strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-top: 8px;
}


/* ── 9. Contact (Kontakt) ─────────────────────────────────── */
#kontakt {
  background: var(--white);
  text-align: center;
  padding: 140px 60px;
}

.kontakt-eyebrow {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 28px;
}

.kontakt-title {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 100px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 48px;
  color: var(--black);
}

.kontakt-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--grey-mid);
}

.kontakt-email {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--grey-mid);
  text-decoration: none;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #ddd;
  padding-bottom: 4px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.kontakt-email:hover {
  color: var(--black);
  border-color: var(--black);
}

/* Contact Form */
.contact-form {
  max-width: 540px;
  margin: 50px auto 0;
  text-align: left;
}

.form-group { margin-bottom: 28px; }

.form-group label {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid #ddd;
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--black);
  outline: none;
  transition: border-color 0.3s ease;
  cursor: none;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--black); }

.form-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: none;
  transition: opacity 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.form-btn:hover   { opacity: 0.8; }
.form-btn:disabled { opacity: 0.5; }


/* ── 10. Footer ───────────────────────────────────────────── */
footer {
  padding: 40px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
}

.footer-name {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--grey-mid);
}

.footer-copy {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ccc;
}


/* ── 11. Utilities & Animations ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50%       { transform: translateY(-52%) translateX(8px); }
}

@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}


/* ── 12. Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  nav               { padding: 24px 30px; }
  nav.nav-scrolled  { padding: 16px 30px; }
  .nav-links        { display: none; }
  #burger           { display: block; }

  section           { padding: 80px 30px; }
  .divider          { margin: 0 30px; }

  #ueber-mich       { grid-template-columns: 1fr; gap: 60px; }
  .projects-grid    { grid-template-columns: 1fr; }
  .praktikum-grid   { grid-template-columns: 1fr; gap: 50px; }

  .hero-content     { padding: 0 30px 60px; }
  .hero-number      { display: none; }
  .hero-scroll      { right: 30px; }

  footer {
    padding: 30px;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
