:root {
  --main: #111111;
  --bg: #000000;
  --text: #d7d7d7;
  --accent: #ffffff;
  /* --muted: #888888; */
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--bg);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg);
  transition: opacity 0.75s, visibility 0.75s;
  z-index: 4;
}
.loader-hidden{
    opacity: 0;
    visibility: hidden;
}

header, footer {
  background: var(--main);
}

header {
  position: sticky;
  top: 0;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  z-index: 2;
  overflow-x: hidden;
}

/* Burger nav bar starts */
.mobile-container {
  position: sticky;
  width: 100%;
  top: 0;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  z-index: 2;
  overflow-x: hidden;
}

.topnav {
  overflow: hidden;
  background-color: var(--main);
  position: relative;
}

.topnav #myLinks {
  display: none;
}

.topnav a {
  color: white;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  display: block;
}



.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.active {
  background-color: var(--main);
  color: var(--text);
}

.topnav a.icon {
  display: block;
  position: absolute;
  right: 10%;
  top: 20%;          
  background: transparent;         /* remove solid black box */
  color: white;                    /* color of the bars */
  font-size: 20px;                 /* size of the bars */
}

/* Burger nav bar ends */

footer {
  padding-left: 2%;
  padding-right: 2%;
  padding: 3rem;
}

.button {
  border-radius: 3px;
  color: var(--main);
  height: 30px;
  width: 320px;
  background-color: var(--text);
  display: flex;
  align-self: center;
  justify-content: center;
  transition: 0.3s;
}

.button:hover{
  background-color: var(--main);
  color: var(--text);
}

.contact-cta {
  transition: 0.3s;
}

.contact-cta:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* socials */
.social{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.social ul {
  display: flex;
  gap: 1.5vw;
}

.social ul li a {
  display: block;
  color: var(--text);
  width: 7vw;
  height: 7vw;
  max-width: 80px;
  max-height: 80px;
  min-width: 45px;
  min-height: 45px;
}

.social li {
  transition: 0.5s;
  justify-content: space-between;
  list-style-type: none;
}

.social-button svg {
  fill: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4vw;
  height: 4vw;
  min-width: 50px;
  max-width: 50px;
}

.social-button:hover {
  background: var(--ahover);
  transform: translateY(-3px);
  /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); */
  color: var(--accent);
}

.social-button {
  width: 2vw;
  height: 2vw;
  border-radius: 50%;
  backdrop-filter: blur(8px);
  /* border: 1px solid rgba(255, 255, 255, 0.2); */
  transition: all 0.3s ease;

}
/* socials */

.nav-wrap {
  display: flex;
  justify-content: space-around;
  max-width: 1920px;
}

.logo {
  flex-grow: 2;
  justify-content: center;
  padding-left: 15%;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
}

nav a {
  text-decoration: none;
  color: var(--text);
  margin: 0 1.2rem;
  font-weight: 600;
  transition: 0.5s;
}

nav a:hover {
  color: var(--accent);
}

/* call to action */
nav a.cta {
  color: var(--muted);
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1920px;
  height: 70vh;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.hero-media video, .hero-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  border: none;
}

.hero-work {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 4rem 0;
}

.hero-media-work video, .hero-work img {
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
  width: 100px;
}

.section {
  padding: 3rem 0;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.proj {
  background: #f0f0f0;
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.proj:hover {
  transform: translateY(-5px);
}

.contact-strip {
  text-align: center;
  padding: 2rem;
  border-radius: 1rem;
}

.contact-strip a {
  color: var(--muted);
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  margin: 0 0.5rem;
}

footer {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

/* MEDIA QUIRIES */

@media only screen and (max-width: 767px) {
    .nav-wrap {
        display: none;
    }
    .button {
        font-size: 15px;
        height: 29px;
        width: 290px;
    }
  }

  @media only screen and (min-width: 768px) {
    .mobile-container {
        display: none;
    }

  }