/* ================================
   ANDY TAC PORTFOLIO
================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  background: #0a0a0a;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ================================
   NAVIGATION
================================ */

nav {
  width: 100%;
  height: 80px;
  padding: 0 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;

  position: fixed;
  top: 0;
  left: 0;

  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);

  z-index: 1000;
}

.logo {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 3px;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav a {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: opacity .3s ease;
}

nav a:hover {
  opacity: .5;
}


/* ================================
   HERO
================================ */

.hero {
  min-height: 100vh;
  padding: 120px 7% 70px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero h1 {
  font-size: clamp(65px, 12vw, 170px);
  font-weight: 500;
  letter-spacing: -7px;
  line-height: .82;
}

.hero-subtitle {
  margin-top: 35px;

  font-size: 12px;
  letter-spacing: 4px;

  text-transform: uppercase;
  color: #999;
}


/* ================================
   PAGE HEADER
================================ */

.page-header {
  padding: 180px 7% 80px;
}

.page-header h1 {
  font-size: clamp(55px, 9vw, 120px);
  font-weight: 400;
  letter-spacing: -4px;
}

.page-header p {
  margin-top: 20px;
  color: #888;
  max-width: 600px;
}


/* ================================
   HOME CATEGORIES
================================ */

.portfolio {
  padding: 80px 7% 150px;
}

.section-label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 40px;
}

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

.category {
  position: relative;
  height: 65vh;
  min-height: 450px;
  overflow: hidden;
  background: #161616;
}

.category img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform .7s ease,
              opacity .7s ease;
}

.category:hover img {
  transform: scale(1.035);
  opacity: .75;
}

.category-title {
  position: absolute;
  bottom: 35px;
  left: 35px;

  font-size: clamp(25px, 3vw, 45px);
  font-weight: 400;
  letter-spacing: -1px;

  z-index: 2;
}


/* ================================
   GALLERY
================================ */

.gallery-section {
  padding: 30px 7% 130px;
}

.gallery-title {
  margin: 70px 0 30px;

  font-size: 28px;
  font-weight: 400;
  letter-spacing: -1px;
}

.gallery {
  columns: 3;
  column-gap: 12px;
}

.gallery img {
  width: 100%;
  display: block;

  margin-bottom: 12px;

  cursor: pointer;

  transition:
    opacity .3s ease,
    transform .3s ease;
}

.gallery img:hover {
  opacity: .8;
}


/* ================================
   ABOUT
================================ */

.about {
  padding: 160px 7%;
  max-width: 1000px;
}

.about-label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #777;
}

.about p {
  margin-top: 35px;

  font-size: clamp(25px, 3vw, 42px);
  line-height: 1.3;

  color: #ccc;
}


/* ================================
   CONTACT
================================ */

.contact {
  min-height: 75vh;
  padding: 120px 7%;

  display: flex;
  flex-direction: column;
  justify-content: center;

  border-top: 1px solid #222;
}

.contact-small {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #777;
}

.contact h2 {
  margin-top: 25px;

  font-size: clamp(50px, 8vw, 110px);
  font-weight: 400;
  line-height: .95;

  letter-spacing: -5px;
}

.contact-links {
  margin-top: 45px;

  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-links a {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;

  border-bottom: 1px solid #555;
  padding-bottom: 5px;
}

.contact-links a:hover {
  opacity: .5;
}


/* ================================
   FOOTER
================================ */

footer {
  padding: 35px 7%;

  display: flex;
  justify-content: space-between;

  border-top: 1px solid #222;

  color: #555;
  font-size: 11px;
  letter-spacing: 1px;
}


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

@media (max-width: 800px) {

  nav {
    height: 65px;
    padding: 0 5%;
  }

  .logo {
    font-size: 15px;
  }

  nav ul {
    gap: 13px;
  }

  nav a {
    font-size: 10px;
  }

  .hero {
    padding-left: 5%;
    padding-right: 5%;
  }

  .hero h1 {
    letter-spacing: -4px;
  }

  .categories {
    grid-template-columns: 1fr;
  }

  .category {
    height: 65vh;
  }

  .gallery {
    columns: 2;
  }

  .page-header {
    padding-left: 5%;
    padding-right: 5%;
  }

  .gallery-section {
    padding-left: 5%;
    padding-right: 5%;
  }

  footer {
    padding-left: 5%;
    padding-right: 5%;
  }
}


/* ================================
   SMALL PHONE
================================ */

@media (max-width: 500px) {

  nav ul {
    gap: 9px;
  }

  .gallery {
    columns: 1;
  }

  .category {
    min-height: 500px;
  }

  .contact h2 {
    letter-spacing: -3px;
  }

}
