/*! HTML5 Boilerplate v9.0.0-RC1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
:root {
  --mettalic-gold: #d5af34;
  --deep-gold: #a67c00;
  --light-gold: #f3d494;
  --gold-gradient: linear-gradient(45deg, var(--mettalic-gold) 15%, var(--light-gold) 20%, var(--mettalic-gold) 35%, var(--deep-gold) 45%, var(--mettalic-gold) 55%, var(--light-gold) 65%, var(--mettalic-gold) 80%, var(--deep-gold) 90%);
}

@keyframes scaleUp {
  0% { scale: 1; }
  100% { scale: 1.2; }
}

@keyframes scaleDown {
  0% { scale: 1.2; }
  100% { scale: 1; }
}

@keyframes opacityUp {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes intoView {
  0% {
   transform: translateY(175px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.into-view {
  animation: intoView linear forwards;
  animation-timeline: view() ;
  animation-range: 0% 35%
}

@media (hover: none) {
  .btn:hover {
    color: var(--bs-btn-color) !important;
    background-color: var(--bs-btn-bg) !important;
    border-color: var(--bs-btn-border-color) !important;
  }
}

.dsr-btn {
  color: black;
  background-color: var(--mettalic-gold);
  border: 2px solid var(--deep-gold);
  &:hover {
    background-color: var(--light-gold);
  }
}

.construction {
  position: relative;
  overflow: hidden;
  &::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/under-construction.svg');
    background-repeat: repeat-x;
    background-position: center;
    transform: rotate(45deg) scale(4); 
    pointer-events: none; 
    z-index: 10;
    @media screen and (min-width: 768px) {
      transform: rotate(25deg) scale(3);
    }
    @media screen and (min-width: 1200px) {
      transform: rotate(25deg) scale(2);
    }
  }
}

a {
  text-decoration: none;
}

body {
  .back-to-top-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 48px;
    opacity: 0;
    cursor: pointer;
    z-index: 100;
    animation-name: opacityUp linear forwards;
    animation-timeline: scroll();
    animation-range: entry;
    &:hover {
      /* animation: scaleUp 0.2s ease-in forwards; */
    }
  }
  hr {
    border-top: 1px solid #333;
  }
}

.navbar {
  background-color: var(--mettalic-gold);
  .nav-logo {
    width: 40px;
  }
  .navbar-collapse {
    justify-content: space-between;
    .social-icons {
      .navbar-nav {
        flex-direction: row;
        align-items: center;
        
      }
      .nav-item {
        margin: 10px;
      }
    }
  }
}

header {
  position: relative;
  background-color: black;
  overflow: hidden;
  .container {
    max-width: 960px;
  }
  .hero {
    display: block;
    height: 550px;
    
    @media screen and (min-width: 1200px) {
      height: 700px;
    }
    .hero-logo {
      position: absolute;
      top: 160px;
      left: 50%;
      transform: translateX(-50%);
      width: 350px;
      z-index: 10;
      @media screen and (min-width: 1200px) {
        top: 200px;
        width: 450px;
      }
    }
    .hero-team {
      position: absolute;
      top: 5px;
      left: 50%;
      transform: translateX(-50%);
      width: 675px;
      z-index: 5;
      @media screen and (min-width: 768px) {
        width: 800px;
      }
      @media screen and (min-width: 1200px) {
        width: 1050px;
      }
    }
    .hero-team-shadow {
      position: absolute;
      top: 20px;
      left: 52%;
      transform: translateX(-50%);
      width: 725px;
      z-index: 3;
      opacity: 0.3;
      @media screen and (min-width: 1200px) {
        width: 950px;
      }
    }
  }
  .gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 1) 100%);
    z-index: 100;
  }
  .hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    mask-image: radial-gradient(circle, black 25%, transparent 100%);
  }
}

nav {
  background-color: black;
  .cta {
    padding: 25px 0;
    z-index: 20;
  }
}

section {
  padding: 30px 0;
  &:nth-child(even) {
    background-image: url('../img/concrete-texrure.webp');
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 
    inset 0 15px 10px -10px rgba(0, 0, 0, 0.5),
    inset 0 -15px 10px -10px rgba(0, 0, 0, 0.5); 
    h2 {
      text-align: right;
    }
    hr.title-hr {
      margin-left: auto;
      margin-right: 0;
    }
  }
  hr.title-hr {
    border-top: 1px solid #333;
    width: 30%;
  }
  &#services {
    position: relative;
    .card {
      opacity: 0;
      height: calc(100% - 25px);
      margin-bottom: 50px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      transition: scale 0.3s ease, box-shadow 0.3s ease;
      &:not(.no-hover):hover {
        scale: 1.02;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
      }
    }
    .last-card {
      border: none;
      box-shadow: none;
      .work-img {
        width: 120%;
        position: absolute;
        inset: 20px 0 0 0;
      }
    }
  }
  &#tutorials {
    .yt-video {
      display: flex;
      justify-content: center;
      align-items: center;
      max-width: 640px;
      aspect-ratio: 16/9;
      background-color: black;
      margin: 10px auto;
      border-radius: 10px;
      opacity: 0.5;
      .yt-logo {
        width: 75px;
      }
    }
  }
  &#reviews {
    .review {
      margin-bottom: 30px;
      border: none;
    }
    .five-stars {
      width: 50%;
    }
  }
}

footer {
  background-color: black;
  color: white;
  text-align: center;
  padding: 30px 0;
  .navbar-nav {
    text-align: left;
  }
  .row > div:first-child {
    border-bottom: 1px solid #333;
    @media screen and (min-width: 768px) {
      border: none;
    }
  }
  .social-icons {
    .navbar-nav {
      text-align: left;
      margin: 0;
    }
    .nav-item {
      list-style: none;
    }
  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

