/* diro0n — Minimal Portfolio */

:root {
  --bg: #161618;
  --bg-dark: #2A2A2A;
  --bg-muted: #7A7A7A;
  --text: #ffffff;
  --text-muted: #7A7A7A;
  --text-light: #ABABAB;
  --border: rgba(26, 26, 26, 0.1);
  --border-light: rgba(26, 26, 26, 0.06);
  --font: 'Inter', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition: 0.6s var(--ease);
  --header-h: 80px;
  --container: 1200px;
  --space-section: 160px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}

/* ---- Preloader ---- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), border-color var(--transition);
}

.header.scrolled {
  background: #2A2A2A;
  backdrop-filter: blur(12px);
  border-bottom: background-color: transparent;
}

.nav {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: var(--transition);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--bg-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--text);
}

.btn-full {
  width: 100%;
}

/* ---- Hero ---- */
.hero {
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 0px;
}

.hero-label {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
}

.hero-desc {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.8;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.reel-frame {
  aspect-ratio: 16 / 10;
  background: var(--bg-muted);
  overflow: hidden;
}

.reel-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--bg-dark);
}

.reel-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.reel-play:hover {
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.04);
}

.reel-caption {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.hero-stats {
  display: flex;
  gap: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--border-light);
}

.stat-value {
  display: block;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- Sections ---- */
.section {
  padding: var(--space-section) 0;
}

.section-intro {
  margin-bottom: 80px;
}

.section-label {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.lead {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  color: var(--text);
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 100px;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.about-details {
  padding-top: 8px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 15px;
}

.detail-label {
  color: var(--text-muted);
}

.detail-value {
  font-weight: 500;
  text-align: right;
}

/* ---- Work ---- */
.work-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.work-item {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: end;
}

.work-media {
  overflow: hidden;
}

.work-placeholder {
  aspect-ratio: 16 / 10;
  background: var(--tone, var(--bg-muted));
  transition: transform 1.2s var(--ease);
}

.work-item:hover .work-placeholder {
  transform: scale(1.02);
}

.work-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: start;
  padding-bottom: 8px;
}

.work-index {
  font-size: 13px;
  color: var(--text-light);
  padding-top: 4px;
}

.work-cat {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.work-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.work-desc {
  font-size: 15px;
  color: var(--text-muted);
}

.work-link {
  font-size: 20px;
  color: var(--text-light);
  padding-top: 4px;
  transition: color var(--transition), transform var(--transition);
}

.work-item:hover .work-link {
  color: var(--text);
  transform: translateX(4px);
}

/* ---- Skills ---- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 280px));
  gap: 120px;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
}

.skill-heading {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 40px;
}

.skill-list {
  list-style: none;
}

.skill-list li {
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 36px;
}

.skill-list li:last-child {
  margin-bottom: 0;
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.contact-links {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
  transition: color var(--transition);
  padding: 4px 0;
}

.contact-link:hover {
  color: var(--text-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-row {
  margin-bottom: 28px;
}

.form-row label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  transition: border-color var(--transition);
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--text);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--text-light);
}

.form-status {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
  min-height: 20px;
}

/* ---- Footer ---- */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border-light);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  :root {
    --space-section: 120px;
  }

  .container,
  .nav {
    padding: 0 32px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-reel {
    order: -1;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 80px;
    max-width: 280px;
  }

  .work-item {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-stats {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --space-section: 100px;
    --header-h: 64px;
  }

  .container,
  .nav {
    padding: 0 24px;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 32px 24px;
    gap: 24px;
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-110%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:first-child {
    transform: rotate(45deg) translate(2px, 3px);
  }

  .nav-toggle.active span:last-child {
    transform: rotate(-45deg) translate(2px, -3px);
  }

  .hero-stats {
    flex-direction: column;
    gap: 32px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .work-meta {
    grid-template-columns: auto 1fr;
  }

  .work-link {
    display: none;
  }
}

/* ---- Contacts (social cards) ---- */
.contacts-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 50px;
    padding-left: 20px;
    position: relative;
}

.social-card {
    display: block;
    text-decoration: none;
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    transform: scale(1);
    filter: blur(0px);
    position: relative;
    z-index: 1;
    flex: 1 1 260px;
    max-width: 320px;
}

.social-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    pointer-events: none;
}

.card-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.card-text {
    display: flex;
    flex-direction: column;
    color: white;
}

.profile-name {
    font-size: 1.1rem;
    font-weight: 500;
}

.social-icon {
    width: 30px;
    height: 30px;
    fill: white;
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .contacts-wrapper:hover .social-card {
        filter: blur(2px);
        transform: scale(0.9);
        opacity: 0.6;
    }

    .contacts-wrapper .social-card:hover {
        filter: blur(0px) !important;
        transform: scale(1.15) !important;
        opacity: 1 !important;
        background-color: #2a2a2a;
    }

    .contacts-wrapper .social-card:hover::before {
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .contacts-wrapper {
        flex-direction: column;
    }
    .social-card {
        max-width: 100%;
    }
}
