/*
Template Name: Me — TimeSoft
*/

/* -- Google Fonts -- */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap");

/* -- CSS Reset -- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0; padding: 0; border: 0;
  font-size: 100%; font: inherit; vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section { display: block; }
body { line-height: 1; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  box-sizing: border-box;
  margin: 0;
}

a, a:hover {
  text-decoration: none;
  border: none;
  border-style: none;
  box-shadow: none;
}

/* -- Animations -- */
@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* -- Base -- */
html {
  background-color: #141414;
}

body.page-template-page-fullsingle-me {
  height: 100vh;
  background-color: #141414;
  font-family: 'Inter', 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 34px;
  line-height: 54px;
  letter-spacing: -0.3px;
  color: #999999;
  background-image: url("../../images/background.jpg");
  background-position: center center;
  background-size: cover;
}

body.page-template-page-fullsingle-me p {
  margin-bottom: 28px;
  color: #999999;
}

@media (max-width: 900px) {
  body.page-template-page-fullsingle-me {
    font-size: 30px;
    line-height: 48px;
  }
}

/* -- Layout -- */
.fs-me {
  padding: 10vh 10vw;
  overflow: hidden;
  position: absolute;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 500px) {
  .fs-me {
    padding: 6vh 6vw;
    text-align: left;
  }
}

.fs-me .me-content {
  height: 80vh;
  display: flex;
  flex-direction: column;
}

@media (max-width: 500px) {
  .fs-me .me-content {
    height: 88vh;
  }
}

/* -- Logo -- */
.logo {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  animation: fadein 1s ease;
}

@media (max-width: 400px) {
  .logo {
    align-self: flex-start;
  }
}

.logo img {
  max-width: 320px;
  height: auto;
}

@media (max-width: 480px) {
  .logo img {
    max-width: 170px;
  }
}

/* -- Bio -- */
.bio {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadein 2s ease;
  letter-spacing: -0.4px;
  /* Smart wrapping: max 23em naturally breaks text beautifully on larger screens */
  max-width: min(100%, 820px);
  /* Fluid typography: grows from 22px to 38px depending on screen width */
  font-size: clamp(22px, 3vw + 10px, 38px);
  line-height: clamp(34px, 4.5vw + 16px, 60px);
  font-weight: 600;
  color: #cccccc;
}

@media (max-width: 900px) {
  .bio {
    max-width: 90%;
  }
}

@media (max-width: 600px) {
  .bio {
    max-width: 100%;
  }
}

.bio a {
  color: #CCCCCC;
  font-weight: 600;
  transition: color 0.2s, text-shadow 0.2s;
}

.bio a:hover {
  color: #FFFFFF;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* -- Social Network -- */
.network {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  animation: fadein 3s ease;
  margin-top: auto;
}

.network ul {
  animation: fadein 3s ease;
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}

.network ul li {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Icon button */
.network ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  cursor: pointer;
  transition: transform 0.2s;
}

.network ul li a:hover {
  transform: translateY(-2px);
}

.network ul li a .svg-icon {
  padding: 0 4px; /* remove top/bottom padding, keep horizontal */
  width: 46px;
  height: 46px;
  margin: 0;
  display: block;
}

/* LinkedIn (different viewBox) */
.network ul li a svg:not(.svg-icon) {
  width: 26px;
  height: 26px;
  display: block;
}

.network ul li a .svg-icon path,
.network ul li a .svg-icon polygon,
.network ul li a .svg-icon rect {
  fill: #999999;
  transition: fill 0.2s;
}

.network ul li a svg:not(.svg-icon) path {
  transition: fill 0.2s;
}

.network ul li a:hover .svg-icon path,
.network ul li a:hover .svg-icon polygon,
.network ul li a:hover .svg-icon rect {
  fill: #FFFFFF;
}

.network ul li a:hover svg:not(.svg-icon) path {
  fill: #FFFFFF !important;
}

.network ul li a .svg-icon circle {
  stroke: #999999;
  stroke-width: 1;
}

/* Label under icon */
.network ul li > .credit {
  color: #cccccc;
  font-size: 9px;
  line-height: 1;
  opacity: 0.8;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-align: center;
  margin-top: -4px; /* pull label up towards the icon */
}

.network ul li > .credit p {
  font-size: 9px;
  line-height: 1;
  color: #cccccc;
  margin: 0;
}

/* -- Copyright -- */
.credit {
  font-size: 12px;
  line-height: 14px;
  margin-bottom: 0;
  margin-top: 32px;
  animation: fadein 4s ease;
}

.credit p.copyright {
  font-size: 12px;
  line-height: 14px;
  font-weight: 400;
  opacity: 0.7;
  color: #cccccc;
}

.credit p.copyright a {
  color: #ffffff;
  font-weight: 500;
  transition: color 0.2s, text-shadow 0.2s;
}

.credit p.copyright a:hover {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

/* -- Video mode -- */
body.page-template-page-fullsingle-me.me-video {
  background-image: none;
}

body.page-template-page-fullsingle-me.me-video .me-video-container {
  overflow: hidden;
  position: absolute;
  z-index: 0;
  width: 100vw;
  height: 100vh;
}

body.page-template-page-fullsingle-me.me-video video.video {
  object-fit: cover;
  object-position: 50% 50%;
  width: 100%;
  height: 100%;
}

body.page-template-page-fullsingle-me.me-video .video-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

body.page-template-page-fullsingle-me.me-video .video-container {
  position: relative;
  overflow: hidden;
  height: 56.25vw;
  width: 100vw;
}

@media (max-aspect-ratio: 16 / 9) {
  body.page-template-page-fullsingle-me.me-video .video-container {
    height: 100vh;
    width: 177.7777777778vh;
  }
}

body.page-template-page-fullsingle-me.me-video .video-container iframe,
body.page-template-page-fullsingle-me.me-video .video-container object,
body.page-template-page-fullsingle-me.me-video .video-container embed {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}

/* Dark overlay across full .fs-me — original style */
body.page-template-page-fullsingle-me.me-video .fs-me {
  background-color: rgba(0, 0, 0, 0.58);
}

/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 600px) {
  .fs-me {
    padding: 5vh 6vw;
    text-align: center;
  }

  .fs-me .me-content {
    height: 90vh;
    justify-content: space-between;
    align-items: center;
  }

  /* Logo centered */
  .logo {
    align-self: center;
  }

  /* Bigger text on mobile */
  body.page-template-page-fullsingle-me {
    font-size: 28px;
    line-height: 44px;
  }

  /* Note: font-size relies on fluid clamp() rule in main .bio block */
  .bio {
    max-width: 100%;
    text-align: center;
    margin: 20px 0;
  }

  /* Compact icon buttons */
  .network ul {
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .network ul li a {
    width: 48px;
    height: 48px;
  }

  .network ul li a .svg-icon {
    height: 30px;
  }

  .network ul li a svg:not(.svg-icon) {
    height: 30px;
  }

  .network ul li > .credit {
    font-size: 9px;
  }

  /* Remove extra space between ul and copyright on mobile */
  .credit p.copyright {
    font-size: 12px;
    line-height: 18px;
    margin-top: 0;
  }
}

@media (max-width: 380px) {
  body.page-template-page-fullsingle-me {
    font-size: 24px;
    line-height: 38px;
  }

  /* Font handled by fluid typography in main block */
  .bio {
    padding: 0 10px;
  }

  .logo img {
    max-width: 150px;
  }

  .network ul li a {
    width: 48px;
    height: 48px;
  }

  .network ul li a .svg-icon {
    width: 32px;
    height: 32px;
  }

  .credit p.copyright {
    font-size: 11px;
    line-height: 16px;
    margin-top: 28px;
  }
}
