/* Shared styles. The site needs no framework or build step. */
@font-face {
  font-family: Roboto;
  src: url('/assets/fonts/roboto.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Roboto;
  src: url('/assets/fonts/roboto-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto Slab';
  src: url('/assets/fonts/roboto-slab.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --surface: #fff;
  --page-background: #e5e5e5;
  --text: #3c4858;
  --heading: #2d3359;
  --muted: #999;
  --link: #7d14ff;
  --nav-text: #555;
  --footer: #323437;
  --shadow: 0 16px 24px 2px #00000024, 0 6px 30px 5px #0000001f, 0 8px 10px -5px #0003;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--page-background); color: var(--text); font: 300 14px/1.618 Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--link); text-decoration: none; }
a:hover { color: #66ccff; }
a:focus-visible, button:focus-visible { outline: 3px solid #66ccff; outline-offset: 5px; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; vertical-align: middle; }
p { margin: 0 0 10px; }
[hidden] { display: none !important; }
.icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; vertical-align: -0.125em; }
.icon-home { width: 1.125em; }
.icon-file-text { width: .75em; }
.icon-github { width: .96875em; }
.icon-linkedin, .icon-address-book, .icon-user { width: .875em; }
.icon-graduation-cap, .icon-sitemap { width: 1.25em; }
.icon-chevron-up { width: .625em; }
.container { width: 1170px; max-width: 100%; margin: 0 auto; padding: 0 15px; }
.skip-link { position: fixed; left: 15px; top: -80px; z-index: 200; padding: 12px 20px; color: var(--text); background: var(--surface); }
.skip-link:focus { top: 10px; }
/* Header stays readable as the home photograph scrolls away. */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; background: var(--surface); box-shadow: 0 1px 10px #0003; transition: background-color .3s, box-shadow .3s; }
.navigation { display: flex; justify-content: space-between; align-items: center; min-height: 70px; }
.brand { display: block; flex-shrink: 0; }
.brand img { width: 50px; height: 50px; }
.nav-links { display: flex; }
.nav-links a { display: block; padding: 15px; color: var(--nav-text); font-size: 12px; font-weight: 400; line-height: 20px; text-transform: uppercase; }
.nav-links .icon { font-size: 20px; margin-right: 4px; vertical-align: -3px; }
.nav-links a[aria-current='page'] { color: var(--link); }
.nav-links a:hover { color: #66ccff; }
.site-header.is-top { background: transparent; box-shadow: none; }
.is-top .navigation { min-height: 85px; padding-top: 15px; }
.is-top .nav-links a { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; padding: 15px; color: var(--nav-text); }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 4px 0; background: currentColor; }
/* Home */
.hero { position: relative; display: flex; align-items: center; min-height: 650px; height: 90vh; overflow: hidden; color: #fff; }
.hero-background { position: absolute; inset: 0; background: linear-gradient(#0008, #0008), url('/assets/images/hero.jpg') center / cover; filter: blur(1.5px) brightness(.85); }
.hero-content { position: relative; padding: 20px 30px 0; filter: brightness(1.3); }
.hero h1 { font: 700 67px/1.4 Roboto, Helvetica, Arial, sans-serif; margin: 0 0 20px; }
.subtitle { font: 300 18px/1.618 'Roboto Slab', Georgia, serif; margin: 10px 0 60px; }
.button { display: inline-block; padding: 21px 44px; border-radius: 50px; background: #7200ff; color: #fff; font-size: 14px; line-height: 20px; font-weight: 400; text-transform: uppercase; box-shadow: 0 2px 2px #7200ff24, 0 3px 1px -2px #7200ff33, 0 1px 5px #7200ff1f; transition: background-color .2s; }
.button:hover, .button:focus { background: #5e00eb; color: #fff; box-shadow: none; }
.home-content { position: relative; margin: -60px 30px 0; background: var(--surface); border-radius: 6px 6px 0 0; box-shadow: var(--shadow); }
.section { padding: 65px 0; }
.section-title { margin: 20px 0 10px; text-align: center; color: var(--heading); font: 700 37px/1.618 'Roboto Slab', Georgia, serif; }
.about { padding-bottom: 20px; }
.profile { display: grid; grid-template-columns: 5fr 7fr; width: 585px; max-width: 100%; margin: 40px auto 36.65px; }
.profile-photo { padding: 0 15px; }
.profile-photo img { width: 100%; border-radius: 6px; box-shadow: 0 16px 38px -12px #0009, 0 4px 25px #0000001f, 0 8px 10px -5px #0003; }
.profile-content { padding: 0 20px 15px; }
.card-title { margin: 10px 0; color: var(--heading); font: 700 18px/1.4 'Roboto Slab', Georgia, serif; }
.category { margin: 10px 0; color: var(--muted); font-size: 12px; line-height: 1.618; font-weight: 500; text-transform: uppercase; }
.description { color: var(--muted); }
.social-links { display: flex; margin-left: -12px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; padding: 12px; margin: 10px 1px; width: 44px; height: 44px; font-size: 20px; color: #999; }
.social-links a[href*='linkedin'] { color: #0976b4; }
.social-links a:hover { opacity: .7; }
.skills { position: relative; background: linear-gradient(#0008, #0008), url('/assets/images/skills.jpg') center top / cover; color: #efefef; }
.section-intro { width: 750px; max-width: 100%; margin: auto; text-align: center; }
.skills .section-title { color: #fff; }
.skills p { margin: 10px 0 15px; font-size: 18px; line-height: 1.618; }
.testimonials { padding-bottom: 10px; }
.section-description { text-align: center; margin: 10px 0 15px; font-size: 18px; line-height: 27px; color: var(--muted); }
.testimonial-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 0 30px; }
.testimonial { width: 360px; max-width: 100%; margin: 30px 0; text-align: center; }
.avatar { display: block; width: 100px; height: 80px; margin: 0 auto; }
.avatar img { width: 100px; height: 100px; transform: translateY(-20px); border-radius: 50%; box-shadow: 0 16px 38px -12px #0009, 0 4px 25px #0000001f, 0 8px 10px -5px #0003; }
.testimonial-content { padding: 15px 5px; margin-top: 15px; }
.testimonial blockquote { margin: 0 0 10px; font-size: 14px; line-height: 1.618; font-weight: 300; }
/* Content remains visible without JavaScript or when reduced motion is requested. */
@media (min-width: 769px) and (prefers-reduced-motion: no-preference) {
  [data-reveal].reveal-pending { opacity: 0; transform: translateX(-35px); }
  [data-reveal] { transition: opacity 1.25s ease-out, transform 1.25s ease-out; }
}
.site-footer { background: var(--footer); color: #999; padding: 30px 0 18px; }
.footer-content { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; min-height: 52px; }
.footer-content nav { display: flex; gap: 30px; }
.footer-content a { color: #fff; font-size: 12px; font-weight: 500; text-transform: uppercase; }
.footer-content a:hover { color: #66ccff; }
.footer-content p { margin: 15px 0; }
.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; width: 50px; height: 50px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: #999; font-size: 24px; box-shadow: 0 2px 5px #0004; }
.back-to-top:hover { color: #fff; background: #858585; }
@media (prefers-color-scheme: dark) {
  :root { --surface: #222; --page-background: #222; --text: #fff; --heading: #fff; --muted: #fff; --link: #66ccff; --nav-text: #fff; --footer: #222; }
}
@media (max-width: 1199px) and (min-width: 992px) {
  .container { width: 970px; }
  .section-intro { width: 616.667px; }
  .profile { width: 485px; }
  .testimonial { width: 293.333px; }
}
@media (max-width: 991px) {
  .container { width: 750px; }
  .hero { height: 100vh; }
  .hero-content { text-align: center; }
  .hero h1 { font-size: 36px; }
  .profile { width: 375px; display: block; text-align: center; }
  .profile-photo img { width: 100px; height: 100px; }
  .profile-content { padding: 15px 20px; }
  .profile .description { display: none; }
  .social-links { justify-content: center; margin-left: 0; }
  .testimonial { width: 345px; }
  .section-intro { width: 720px; }
}
@media (max-width: 768px) {
  .container { width: 100%; }
  .navigation, .is-top .navigation { min-height: 70px; padding-top: 0; flex-wrap: wrap; }
  .site-header:not(.menu-ready) { position: relative; background: var(--surface); }
  .menu-toggle:not([hidden]) { display: block; }
  .nav-links { width: 100%; background: var(--surface); padding: 10px 0; }
  .nav-links a, .is-top .nav-links a { color: var(--nav-text); }
  .nav-links a[aria-current='page'] { color: var(--link); }
  .menu-ready .nav-links { display: none; }
  .menu-ready .nav-links.is-open { display: block; }
  .hero { min-height: 600px; }
  .hero-content { padding: 20px 45px 0; }
  .home-content { margin: 0 15px; }
  .section-title { font-size: 24px; }
  .section .container { padding: 0 25px; }
  .profile { width: 50%; }
  .profile-content { padding-inline: 5px; }
  .card-title { font-size: 18px; }
  .testimonial { width: calc(50% - 15px); }
  .footer-content { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .home-content { margin: 0; border-radius: 0; }
  .testimonial { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  :root { --surface: white; --page-background: white; --text: black; --heading: black; --muted: #333; --link: #333; }
  .site-header, .site-footer, .back-to-top, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  a { color: inherit; }
}
.cv-body { background: var(--surface); }
.not-found { padding: 15vh 0; background: var(--surface); text-align: center; font-size: 18px; }
