/**********************  
Fonts
***********************/

@import url('https://fonts.googleapis.com/css2?family=TikTok+Sans:opsz,wght@12..36,300&display=swap');

:root {
  --background-dark: #636363;
  --background-white: #0a0a0a;
  --text-color: #f1f1f1;
  --text-color-white: #f1f1f1;
  --text-primary: 'TikTok Sans', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: inherit;
  /* cursor: none; */
}

html {
  box-sizing: border-box;
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--text-primary);
  color: var(--text-color);
  background: var(--background-white);
  font-weight: 400;
  font-size: 1rem;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

ul {
  list-style: none;
  padding: 0;
}

ul li a {
  text-decoration: none;
  color: #ffffff;
  transition: 0.2s;
}

img {
  display: block;
  width: 100%;
  border-radius: .4rem;
}

video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

.logo {
  color: #000;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

.navbar {
  z-index: 1;
}

/* ul .cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 1;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: 0.1s;
  pointer-events: none;
  border: 0px solid #ffffff00;
} */

/* ul li:hover ~ .cursor {
  transform: translate(-50%, -50%) scale(3);
  transition: 0.2s;
  opacity: .1;
  border: 10px solid #ffffff;
} */


.container {
  width: 90%;
  max-width: 1600px;
  margin: 0 auto;
}

.image-container {
  width: 100%;
}

.container-top {
  padding-top: 6rem;
}

.container-footer {
  width: 90%;
  max-width: 1600px;
  margin: auto;
  margin-bottom: 0;
}

.video-wrap {
  width: 100%;
  height: auto;
  max-width: 1600px;
}

.video {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  object-fit: cover;
}

/* .video-gallery {
  min-width: 100%;
  min-height: 100%;
  border-radius: 0rem;
  transition: all .2s ease;
} */

/* .video-gallery:hover {
  border-radius: 1.6rem;
} */

.video-wrap video {
  width: 100%;
  height: auto;
  border-radius: .4rem;
}

.video-corner {
  border-radius: 40px;
  overflow: hidden;
}

a {
  color: var(--text-color);
  text-decoration: none;
}

.underline-link {
  text-decoration: underline;
  opacity: .5;
  transition: .2s;
}

.underline-link:hover {
  text-decoration: underline;
  opacity: 1;
}

/* Styles for the "Back to Top" button */
#backToTopBtn {
    position: fixed; /* Keep button fixed on screen */
    bottom: 34px; /* Distance from bottom */
    right: 20px; /* Distance from right */
    z-index: 1000; /* Ensure it's above other content */
    opacity: 0; /* Initially hidden */
    transform: translateY(100px); /* Start off-screen below */
    /* Smooth transition for appearance and all transforms */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    cursor: pointer; /* Indicate it's clickable */
    display: flex; /* Use flexbox for centering text */
    align-items: center;
    justify-content: center;
    width: 60px; /* Fixed width for circle */
    height: 60px; /* Fixed height for circle */
    font-weight: 600; /* Medium bold font */
    font-size: 1.1em; /* Adjust font size for "TOP" */
    border-radius: 60px;  /* Make it circular */
    color: #fcfafaaa; /* Text color */
    font-weight: 300; /* Medium font weight */
    background-color: rgba(255, 255, 255, .3); /* Background color */
    border: 1px solid rgba(255, 255, 255, 0);
    /* 2. Apply the backdrop-filter for the blur effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari support */
    
}

/* Styles for when the button is visible */
#backToTopBtn.show {
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* Move to its final position */
}

/* Rotation when hovering over the button */
#backToTopBtn:hover {
    transform: translateY(0) rotate(360deg); /* Rotate 360 degrees on hover */
}

/* Rotation when clicking the button (resets to 0 degrees) */
#backToTopBtn.reset-rotate-on-click {
    transform: translateY(0) rotate(0deg); /* Rotate back to original position */
    transition: transform 0.5s ease-out; /* Smooth transition for reset */
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tab {
  background: #0f0f0f;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.1);
  padding: 8px 16px;
  border-radius: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: background .25s;
}

.tab:hover {
  background: rgb(32, 32, 32);
}

.tab.is-active {
  outline: 2px solid var(--accent);
}

/********************** 
Typograpghy
***********************/

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  /* color: var(--text-color); */
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  /* color: var(--text-color); */
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

h4 {
  font-size: 1rem;
  font-weight: 400;
}

p {
  font-size: 1.4rem;
  /* color: var(--text-color); */
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/********************** 
Navigation
***********************/

nav {
  min-height: 5vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0;
  /* position: fixed; */
}

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1.6rem;
}

.nav-links li {
  padding: 0;
}

.link-hover {
  opacity: 0.5;
  transition: .2s;
}

.link-hover:hover {
  opacity: 1;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 700;
}

/********************** 
Home
***********************/

.container-hero {
  margin-top: 2.2rem;
  margin-bottom: 4rem;
}

.hero {
  margin: 0rem 0;
}

.home-video-space {
  margin-bottom: 5rem;
  border-radius: 1.6rem;
}

.hero-text h1{
  font-size: 2.5rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
  animation-duration: 800ms;
  animation-delay: 200ms;
}

.home-hero {
  width: 100%;
  height: 100vh;
  max-width: 100%;
  position: fixed;
  z-index: -1;
  overflow: hidden;
}

.hero-video {
  animation-duration: 800ms;
  animation-delay: 400ms;
}

.hero-video-property {
  position: fixed;
  align-content: center;
  min-width: 100%; 
  min-height: 100%;
  object-fit:cover;
  border-radius: .1rem;
}

.hero-video-property-size {
  position: fixed;
  align-content: center;
  min-width: fit-content; 
  min-height: fill;
  object-fit: fit;
  border-radius: .1rem;
}

.hero-text h2 {
  font-size: 1.4rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  animation-duration: 800ms;
  animation-delay: 400ms;
}

.hero-text a {
  font-size: 1.3rem;
  color: var(--text-color);
  text-decoration: none;
  /* padding-bottom: 0.3rem;
  border-bottom: 2px solid #000; */
}

.hero-link {
  animation-delay: 500ms;
}

/********************** 
Work Gallery
***********************/

.container-gallery {
  margin-top: 0;
  margin-bottom: 0;
}

.hero-text {
  font-size: 2rem;
  margin-top: 1rem;
  margin-bottom: 5rem;
}

.work-title {
  color: var(--text-color);
}

.gallery {
  display: grid;
  height: auto;
  grid-template-columns: repeat(1, 1fr);
  grid-gap: 2rem;
  row-gap: 2rem;
  margin-top: 1.5rem;
  margin-bottom: 5rem;
}

.gallery-item {
  position: relative;
  margin-bottom: 1rem;
  cursor: pointer;
  padding-bottom: 0%;
}

.gallery-image {
  margin-bottom: 0.7rem;
  border-radius: .4rem;
  opacity: 1;
  transition: all .2s ease;
  /* -webkit-transition: all 0.5s ease;
     -moz-transition: all 0.5s ease;
       -o-transition: all 0.5s ease;
      -ms-transition: all 0.5s ease;
          transition: all 0.5s ease; */

}

.gallery-image:hover {
  border-radius: 0rem;
  opacity: .8;
}

.gallery-title {
  position: relative;
  display: inline;
  font-size: 1.2rem;
  /* color: var(--text-color); */
  text-decoration: none;
  padding-bottom: 0.3rem;
}

.gallery-item__1 {
  animation-duration: 800ms;
  animation-delay: 200ms;
}

.gallery-item__2 {
  animation-duration: 800ms;
  animation-delay: 400ms;
}

.gallery-item__3 {
  animation-duration: 800ms;
  animation-delay: 600ms;
}

.gallery-item__4 {
  animation-duration: 800ms;
  animation-delay: 800ms;
}

.gallery-item__5 {
  animation-duration: 800ms;
  animation-delay: 1000ms;
}

/********************** 
Articles
***********************/

/* .dark-background {
background-color: #000;
} */

.article-container {
  max-width: 630px;
  margin: 0;
  padding: 3.5rem 0;
}

.work-header {
  padding-top: 2rem;
}

.work-title {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.work-category {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: darkgray;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-gap: .5rem;
}

.box-1,
.box-4 {
  grid-column: 1/2;
}

.work__related {
  padding-top: 6rem;
}

.article-title {
  font-size: 1.6rem;
  line-height: 1.1em;
  margin-bottom: 1rem;
}

.article-text {
  font-size: 1.2rem;
  margin-bottom: 0;
  line-height: 1.4em;
  color: lightgray;
}

.work-related-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/********************** 
About
***********************/

.about-container {
  padding-top: 2rem;
}

.about-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.article-text {
  max-width: 630px;
}
.about-image {
  display: block;
  width: 70%;
}

.about-link {
  font-size: 1.2rem;
  margin-top: 2rem;
}

/********************** 
Footer
***********************/

footer {
  display: flex;
  /* flex-direction: row; */
  justify-content: space-between;
  /* margin-top: auto; */
  /* padding: 1rem 0; */
}

.social-links {
  display: flex;
  /* margin: 0;
  padding: 0; */
  gap: 1rem;
}

.social-links li a {
  opacity: 1;
  transition: .2s;
}

.social-links li a:hover {
  opacity: 0.7;
}

/********************** 
Media Queries - Desktop
***********************/

@media screen and (min-width: 960px) {
  header {
    margin: 0;
  }

  .logo {
    width: 45px;
  }

  .nav-links a {
  font-size: 1.2rem;
  font-weight: 700;
  }

  .hero-text{
    font-size: 2.5rem;
    margin-top: 1rem;
    margin-bottom: 3rem;
    animation-duration: 800ms;
    animation-delay: 200ms;
  }

  .gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: .5rem;
    row-gap: 2rem;
  }

  img {
  display: block;
  width: 100%;
  border-radius: .4rem;
  }

  .video-wrap video {
  border-radius: .4rem;
  }
  
  .video-stroke {
  border-style: solid;
  border-width: 2px;
  border-color: #323232;
  border-radius: 2rem;
  }

  .work-title {
    font-size: 2.7rem;
    margin-bottom: 0.8rem;
  }

  .work-category {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: darkgray;
  }

  .article-container {
    /* width: 60%; */
    max-width: 700px;
    margin: 0;
    padding: 5rem 0;
  }

  .article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: .5rem;
  }

  .article-title {
    font-size: 1.8rem;
    line-height: 1.2em;
    margin-bottom: 1rem;
  }

  .article-text {
    font-size: 1.3rem;
    line-height: 1.3em;
    margin-bottom: 0;
    color: lightgray;
  }

  .box-1,
  .box-4 {
    grid-column: 1/3;
  }

  .about-section {
    margin-top: 12rem;
    display: flex;
    align-items: center;
  }

  .about-image {
    display: flex;
    width: 40%;
  }
  .about-text-field {
    width: 60%;
    max-width: 630px;
    padding-left: 3rem;
  }

  .about-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
  }

  .about-text {
    letter-spacing: 0.05rem;
    font-size: 1.3rem;
  }

  /* .social-links li {
    padding: 0 0.5rem;
  } */

  /* .social-links li:nth-child(3) {
    padding-right: 0;
  } */

  /* footer {
    padding-top: 2rem;
  } */
  
  
}
