/* Hero section + left floating side menu, carried over unchanged from
   index1.html. Rules below are copied verbatim from the original
   assets/css/style.css (MyResume v4.7.0) and the Bootstrap 5.1.3 classes the
   markup uses, so the hero renders exactly as it does there. Load after
   styles.css. */

/* ---------- Bootstrap 5.1.3 classes used by the hero markup ---------- */
#hero .container {
  width: 100%;
  padding-right: var(--bs-gutter-x, 0.75rem);
  padding-left: var(--bs-gutter-x, 0.75rem);
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 576px) {
  #hero .container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  #hero .container {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  #hero .container {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  #hero .container {
    max-width: 1140px;
  }
}
@media (min-width: 1400px) {
  #hero .container {
    max-width: 1320px;
  }
}

#header .navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.d-flex {
  display: flex !important;
}

.flex-column {
  flex-direction: column !important;
}

.justify-content-center {
  justify-content: center !important;
}

@media (min-width: 1200px) {
  .d-xl-none {
    display: none !important;
  }
}

/* ---------- Inherited context the hero had in the original page ---------- */
/* (style.css "General" + Bootstrap reboot defaults for body, h1, button) */
#header,
#hero,
.mobile-nav-toggle {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #272829;
}

#hero h1 {
  font-family: "Raleway", sans-serif;
  letter-spacing: normal;
  font-variation-settings: normal;
  text-wrap: wrap;
}

#hero p {
  text-wrap: wrap;
}

#header a,
#hero a {
  text-decoration: none;
}

.mobile-nav-toggle {
  margin: 0;
  text-transform: none;
  -webkit-appearance: button;
}

/* style.css "Sections General" — applies to #hero as a <section> */
#hero {
  padding: 60px 0;
  overflow: hidden;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}
/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 9997;
  transition: all 0.5s;
  padding: 15px;
  overflow-y: auto;
}
@media (max-width: 992px) {
  #header {
    width: 300px;
    background: #fff;
    border-right: 1px solid #e6e9ec;
    left: -300px;
  }
}

@media (min-width: 992px) {
  #main {
    margin-left: 100px;
  }
}
/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation
*/
.nav-menu {
  padding: 0;
  display: block;
}
.nav-menu * {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-menu > ul > li {
  position: relative;
  white-space: nowrap;
}
.nav-menu a, .nav-menu a:focus {
  display: flex;
  align-items: center;
  color: #45505b;
  padding: 10px 18px;
  margin-bottom: 8px;
  transition: 0.3s;
  font-size: 15px;
  border-radius: 50px;
  background: #f2f3f5;
  height: 56px;
  width: 100%;
  overflow: hidden;
  transition: 0.3s;
}
.nav-menu a i, .nav-menu a:focus i {
  font-size: 20px;
}
.nav-menu a span, .nav-menu a:focus span {
  padding: 0 5px 0 7px;
  color: #45505b;
}
@media (min-width: 992px) {
  .nav-menu a, .nav-menu a:focus {
    width: 56px;
  }
  .nav-menu a span, .nav-menu a:focus span {
    display: none;
    color: #fff;
  }
}
.nav-menu a:hover, .nav-menu .active, .nav-menu .active:focus, .nav-menu li:hover > a {
  color: #fff;
  font-style: oblique;
  background: #000000;
}
.nav-menu a:hover span, .nav-menu .active span, .nav-menu .active:focus span, .nav-menu li:hover > a span {
  color: #9b805a;
}
.nav-menu a:hover, .nav-menu li:hover > a {
  width: 100%;
  color: #fff;
}
.nav-menu a:hover span, .nav-menu li:hover > a span {
  display: block;
}

/**
* Mobile Navigation
*/
.mobile-nav-toggle {
  position: fixed;
  right: 10px;
  top: 10px;
  z-index: 9998;
  border: 0;
  background: none;
  font-size: 28px;
  transition: all 0.4s;
  outline: none !important;
  line-height: 0;
  cursor: pointer;
  border-radius: 50px;
  padding: 5px;
}
.mobile-nav-toggle i {
  color: #45505b;
}

.mobile-nav-active {
  overflow: hidden;
}
.mobile-nav-active #header {
  left: 0;
}
.mobile-nav-active .mobile-nav-toggle {
  color: #fff;
  background-color: #0563bb;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 100vh;
  background: url("../img/hero-bg.jpg") top right no-repeat;
  background-size: cover;
  position: relative;
}
@media (min-width: 992px) {
  #hero {
    padding-left: 160px;
  }
}
#hero:before {
  content: "";
  background: rgba(255, 255, 255, 0.8);
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
}
#hero h1 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
  line-height: 56px;
  color: #000000;
}
#hero p {
  color: #000000;
  margin: 15px 0 0 0;
  font-size: 26px;
  font-family: "Poppins", sans-serif;
}
#hero p span {
  color: #0563bb;
  letter-spacing: 1px;
}
#hero .social-links {
  margin-top: 30px;
}
#hero .social-links a {
  font-size: 50px;
  display: inline-block;
  color: #000;
  line-height: 1;
  margin-right: 20px;
  transition: 0.3s;
}
#hero .social-links a:hover {
  color: #0563bb;
}
@media (max-width: 992px) {
  #hero {
    text-align: center;
  }
  #hero h1 {
    font-size: 32px;
    line-height: 36px;
  }
  #hero p {
    margin-top: 10px;
    font-size: 20px;
    line-height: 24px;
  }
}

/* Keep the hero above the page's paper-grain overlay (body::before, z-index
   100) so its colours match the original exactly. */
#hero {
  z-index: 101;
}

/* Inline SVG icons replace the icon fonts: give them the sizes the
   template gave its <i> icons, and swap the menu button's icon by state. */
.nav-menu a .icon {
  font-size: 20px;
}
.mobile-nav-toggle .icon-close,
.mobile-nav-active .mobile-nav-toggle .icon-open {
  display: none;
}
.mobile-nav-active .mobile-nav-toggle .icon-close {
  display: inline-block;
}

/* Copy-email button in the social links: looks like the icon links. */
#hero .social-links .copy-email--icon {
  font-size: 50px;
  display: inline-block;
  color: #000;
  line-height: 1;
  margin: 0 20px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  vertical-align: baseline;
  cursor: pointer;
  transition: 0.3s;
}
#hero .social-links .copy-email--icon:hover {
  color: #0563bb;
}

/* ---------- Dark theme for the hero and side menu ----------
   Light mode keeps the original template rules above unchanged. Dark mode
   maps every template colour onto the site's palette tokens (styles.css):
   dark veil, --ink text, --accent instead of the template blues and gold,
   --paper-3 pills for the menu (--accent when hovered or active), and a --paper drawer on mobile.
   The no-JS fallback follows the OS setting. */
:root[data-theme="dark"] #hero:before {
  background: var(--page-veil);
}
:root[data-theme="dark"] #hero h1,
:root[data-theme="dark"] #hero p,
:root[data-theme="dark"] #hero .social-links a,
:root[data-theme="dark"] #hero .social-links .copy-email--icon,
:root[data-theme="dark"] .mobile-nav-toggle {
  color: var(--ink);
}
:root[data-theme="dark"] #hero p span,
:root[data-theme="dark"] #hero .social-links a:hover,
:root[data-theme="dark"] #hero .social-links .copy-email--icon:hover {
  color: var(--accent);
}
@media (max-width: 992px) {
  :root[data-theme="dark"] #header {
    background: var(--paper);
    border-right-color: var(--line);
  }
}
:root[data-theme="dark"] .nav-menu a,
:root[data-theme="dark"] .nav-menu a:focus {
  color: var(--ink-2);
  background: var(--paper-3);
}
:root[data-theme="dark"] .nav-menu a span,
:root[data-theme="dark"] .nav-menu a:focus span {
  color: var(--ink-2);
}
:root[data-theme="dark"] .nav-menu a:hover,
:root[data-theme="dark"] .nav-menu .active,
:root[data-theme="dark"] .nav-menu .active:focus,
:root[data-theme="dark"] .nav-menu li:hover > a {
  color: var(--accent-ink);
  background: var(--accent);
}
:root[data-theme="dark"] .nav-menu a:hover span,
:root[data-theme="dark"] .nav-menu .active span,
:root[data-theme="dark"] .nav-menu .active:focus span,
:root[data-theme="dark"] .nav-menu li:hover > a span {
  color: var(--accent-ink);
}
:root[data-theme="dark"] .mobile-nav-active .mobile-nav-toggle {
  color: var(--accent-ink);
  background-color: var(--accent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #hero:before {
    background: var(--page-veil);
  }
  :root:not([data-theme="light"]) #hero h1,
  :root:not([data-theme="light"]) #hero p,
  :root:not([data-theme="light"]) #hero .social-links a,
  :root:not([data-theme="light"]) #hero .social-links .copy-email--icon,
  :root:not([data-theme="light"]) .mobile-nav-toggle {
    color: var(--ink);
  }
  :root:not([data-theme="light"]) #hero p span,
  :root:not([data-theme="light"]) #hero .social-links a:hover,
  :root:not([data-theme="light"]) #hero .social-links .copy-email--icon:hover {
    color: var(--accent);
  }
  @media (max-width: 992px) {
    :root:not([data-theme="light"]) #header {
      background: var(--paper);
      border-right-color: var(--line);
    }
  }
  :root:not([data-theme="light"]) .nav-menu a,
  :root:not([data-theme="light"]) .nav-menu a:focus {
    color: var(--ink-2);
    background: var(--paper-3);
  }
  :root:not([data-theme="light"]) .nav-menu a span,
  :root:not([data-theme="light"]) .nav-menu a:focus span {
    color: var(--ink-2);
  }
  :root:not([data-theme="light"]) .nav-menu a:hover,
  :root:not([data-theme="light"]) .nav-menu .active,
  :root:not([data-theme="light"]) .nav-menu .active:focus,
  :root:not([data-theme="light"]) .nav-menu li:hover > a {
    color: var(--accent-ink);
    background: var(--accent);
  }
  :root:not([data-theme="light"]) .nav-menu a:hover span,
  :root:not([data-theme="light"]) .nav-menu .active span,
  :root:not([data-theme="light"]) .nav-menu .active:focus span,
  :root:not([data-theme="light"]) .nav-menu li:hover > a span {
    color: var(--accent-ink);
  }
  :root:not([data-theme="light"]) .mobile-nav-active .mobile-nav-toggle {
    color: var(--accent-ink);
    background-color: var(--accent);
  }
}

/* ---------- Fit the rest of this page around the fixed side menu ---------- */
@media (min-width: 992px) {
  .site-footer {
    margin-left: 100px;
  }
}

/* Theme toggle floats top-right now that the top bar is gone; on smaller
   screens it sits left of the mobile menu button. */
.theme-toggle--floating {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 9996;
  background: var(--paper);
}
@media (max-width: 1199.98px) {
  .theme-toggle--floating {
    right: 64px;
  }
}
