html {
  --scroll-behavior: smooth;
  scroll-behavior: smooth;
}

/* Variables provided by /css/design-system.css */

body {
  font-family: 'Open Sans', serif;
  padding-top: 54px;
  color: var(--muted);
}

@media (min-width: 992px) {
  body {
    padding-top: 0;
    padding-left: 17rem;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Saira Extra Condensed', serif;
  font-weight: 700;
  color: var(--brand-dark);
}


h1, h2{
  text-transform: uppercase;
}

h1 {
  font-size: 6rem;
  line-height: 5.5rem;
}

h2 {
  font-size: 3.5rem;
}

.subheading {
  text-transform: uppercase;
  font-weight: 500;
  font-family: 'Saira Extra Condensed', serif;
  font-size: 1.35rem;
}

.list-social-icons a {
  color: var(--cyan);
}

.list-social-icons a:hover {
  color: var(--accent);
}

.list-social-icons a .fa-lg {
  font-size: 1.75rem;
}

.list-icons {
  font-size: 3rem;
}

.list-icons .list-inline-item i:hover {
  color: var(--accent);
}

#sideNav .navbar-nav .nav-item .nav-link {
  font-weight: 600;
  text-transform: uppercase;
}

@media (min-width: 992px) {
  #sideNav {
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 17rem;
    height: 100vh;
  }
  #sideNav .navbar-brand {
    display: flex;
    margin: auto auto 0;
    padding: 0.5rem;
  }
  #sideNav .navbar-brand .img-profile {
    max-width: 10rem;
    max-height: 10rem;
    border: 0.5rem solid rgba(255, 255, 255, 0.2);
  }
  #sideNav .navbar-collapse {
    display: flex;
    align-items: flex-start;
    flex-grow: 0;
    width: 100%;
    margin-bottom: auto;
  }
  #sideNav .navbar-collapse .navbar-nav {
    flex-direction: column;
    width: 100%;
  }
  #sideNav .navbar-collapse .navbar-nav .nav-item {
    display: block;
  }
  #sideNav .navbar-collapse .navbar-nav .nav-item .nav-link {
    display: block;
  }
}

/* Mobile navbar - ensure collapsed menu doesn't take full height */
@media (max-width: 991px) {
  #sideNav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
  }
  #sideNav .navbar-collapse {
    max-height: calc(100vh - 54px);
    overflow-y: auto;
  }
  #sideNav .d-lg-none { display: block; }
  #sideNav .d-none.d-lg-block { display: none; }
}

section.resume-section {
  border-bottom: 1px solid #dee2e6;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

section.resume-section .resume-item .resume-date {
  min-width: none;
}

@media (min-width: 768px) {
  section.resume-section {
    min-height: 100vh;
  }
  section.resume-section .resume-item .resume-date {
    min-width: 18rem;
  }
}

@media (min-width: 992px) {
  section.resume-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

.bg-primary {
  background-color: var(--brand) !important;
}

.text-primary {
  color: var(--brand) !important;
}

a {
  color: var(--brand);
}

a:hover, a:focus, a:active {
  color: var(--accent);
}

/* Coin Flip Animation */
#profileCoin {
  position: relative;
  width: 10rem;
  height: 10rem;
  cursor: pointer;
  -webkit-perspective: 800px;
  -moz-perspective: 800px;
  perspective: 800px;
}

#profileCoin.flipping {
  pointer-events: none;
}

.coin-side {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 0.3rem solid #333;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transition: -webkit-transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  -moz-transition: -moz-transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Strong outer shadow */
.coin-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(0, 0, 0, 0.4),
    inset 0 -3px 6px rgba(0, 0, 0, 0.5),
    inset 0 3px 6px rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

/* Glossy shine overlay */
.coin-side::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1) 25%, transparent 65%);
  pointer-events: none;
}

.coin-front {
  -webkit-transform: rotateY(0deg) translateZ(20px);
  -moz-transform: rotateY(0deg);
  transform: rotateY(0deg) translateZ(20px);
  z-index: 2;
}

.coin-back {
  -webkit-transform: rotateY(180deg) translateZ(20px);
  -moz-transform: rotateY(180deg);
  transform: rotateY(180deg) translateZ(20px);
  z-index: 1;
}

#profileCoin.flipped .coin-front {
  -webkit-transform: rotateY(180deg) translateZ(20px);
  -moz-transform: rotateY(180deg);
  transform: rotateY(180deg) translateZ(20px);
  z-index: 1;
}

#profileCoin.flipped .coin-back {
  -webkit-transform: rotateY(360deg) translateZ(20px);
  -moz-transform: rotateY(360deg);
  transform: rotateY(360deg) translateZ(20px);
  z-index: 2;
}

@media (min-width: 992px) {
  #sideNav .navbar-brand #profileCoin {
    width: 10rem;
    height: 10rem;
  }
}

/* Nav scroll-reveal — mobile only */
@media (max-width: 991px) {
  #sideNav {
    --nav-duration: 2400ms;
    --nav-hide-duration: 800ms;
    z-index: 1030; /* Match Bootstrap .fixed-top; explicit so this block is self-contained */
    transform: translateY(-100%);
    transition: transform var(--nav-hide-duration) cubic-bezier(0.4, 0, 1, 1);
    will-change: transform;
  }

  /* Fill the overshoot region above the nav so the bounce doesn't expose the page background */
  #sideNav::before {
    content: '';
    position: fixed;
    top: -100vh;
    left: 0;
    right: 0;
    height: 100vh;
    background-color: var(--brand);
    pointer-events: none;
  }

  #sideNav.nav-visible {
    transform: translateY(0);
    transition: transform var(--nav-duration) cubic-bezier(0.22, 1.8, 0.36, 1);
  }

  @media (prefers-reduced-motion: reduce) {
    #sideNav,
    #sideNav.nav-visible {
      transition: none;
    }
  }
}
