/* #region || ------- CSS RESET ------- */
*, *::before, *::after {
    box-sizing: border-box;
} 

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section { 
	display: block;
}
body {
	line-height: 1.5;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* #endregion || ------- CSS RESET ------- */

/* #region || ------- Variables ------- */
:root {
    --black: #000000;
    --white: #ffffff;
    --pri: #263A5A;
    --sec: #AFCEE6;
    --accent: #BF2928;
    --greybg: #F5F5F5;
    --dkaccent: #A02222;
}
/* #endregion || ------- Variables ------- */

/* #region || Skip Link Styles */
#skip {
	position: absolute;
	left: -10000px;
    /*
	top: -500px;
	height: 1px;
	width: 1px;
	overflow: hidden;
    */
    display: inline-block;
    padding: .375rem .75rem;
    line-height: 1;
    font-size: 1.2rem;
    background-color: var(--white);
    color: black;
}
#skip:not(:focus) {
    height: 0;
    width: 0;
    overflow: hidden;
    white-space:nowrap;
}
#skip:focus {
    left: 0;
    top: 0;
    height: auto;
    width: auto;
    background-color: var(--white);
    z-index: 999999;
}
.sr-only {
    position: absolute;
    left: -10000px;
    top: auto;
    height: 1px;
    width: 1px;
    overflow: hidden;    
}
/* #endregion || Skip Link Styles */

/* #region || ------- General Styles ------- */
html {
    font-family: aviano-flare, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.2em;
    box-sizing: border-box;
    color: var(--pri);
    line-height: 1.6;
	height: 100%;
	display: grid;
}
body {
    margin: 0 auto;
    background-color: var(--greybg);
    font-family: all-round-gothic, sans-serif;
    font-weight: 400;
    display: grid;
    grid-template-areas:
    "header"
    "main"
    "footer";
    grid-template-rows: auto auto auto;
}
header {
    grid-area: header;
    height: 85px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
main {
    grid-area: main;
    margin: 0 auto;
    display: grid;
}
a { 
    text-decoration: none;
    color: var(--pri);
}
a:focus, button:focus, input:focus, textarea:focus, select:focus {
	outline: 4px solid var(--dkaccent);
}
h1, h2, h3, h4, h5 {
    margin: 10px;
}
h2 {
    font-family: aviano-flare, sans-serif;
    font-weight: 700;
    font-size: 24pt;
    color: var(--dkaccent);
}
h3, h4, h5 {
    font-family: all-round-gothic, sans-serif;
    font-weight: 600;
}
#logo {
    margin: 0 25px;
    font-family: aviano-flare, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 36pt;
}
li {
    list-style-type: none;
}
p {
    padding: 10px;
}
nav {
    max-width: 100%;
}
nav li {
    /*text-transform: uppercase;*/
    padding: 10px 18px 18px;
}
nav a:hover, nav a:focus-within {
    color: var(--dkaccent);
    font-weight: 700;
}
.container {
    display: flex;
    align-items: center;
    margin: 0 5vmin;
    gap: 20px;
}
/* ------- Back to top button ------- */
#back-to-top {
	display: none;
	position: fixed;
	bottom: 40px;
    /*
	right: 40px;
    */
    right: 20px;
    height: 50px;
    width: 50px;
	padding-top: 10px;
	color: var(--greybg);
	border-radius: 25px; /*was 15px*/
	background-color: var(--pri);
	box-shadow: 0px 2px 3px rgb(255 255 255 / 0.6);
	transition: all .3s ease-in-out;
	z-index: 1000;
	cursor: pointer;
	border-style: inset;
    text-align: center;
    overflow: hidden;
	/*max-width: 120px;*/
	/*font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;*/
}
#back-to-top:hover, back-to-top:focus-within {
    /*outline: 3px solid var(--dkaccent);*/
    background-color: var(--accent);

}
#back-to-top.show {
	display: block;
	opacity: 1;
}
/* ------- CONTACT PAGE ------- */
.contact-page {
    width: 100%;
    max-width: 960px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* ------- FOOTER ------- */
footer {
    grid-area: footer;
    display: flex;
    justify-content: end;
    margin-top: 50px;
}
footer img {
    padding-right: 15px;
}
/* ------- FOOTER END ------- */
/* #endregion || ------- General Styles ------- */

/* #region || ------- General Classes ------- */
.hide {
    visibility: hidden;
    height: 0px;
    margin: 0px;
}
.active {
    text-decoration: underline;
    font-weight: 700;
}
strong {
    font-weight: 700;
}
/* #endregion || ------- General Classes ------- */

/* #region || ------- Mobile First ------- */
/* ------- LOGO (Mobile) ------- */
#full {
    display: none;
}
#initials {
    display: block;
}
/* ------- LOGO END (Mobile) ------- */

/* ------- NAVIGATION (Mobile) ------- */
nav {
    z-index: 1000;
    font-size: 2em;
    transition: all .5s ease-in-out;
}
nav ul {
    text-align: center;
    overflow: hidden;
    max-height: 0;
    z-index: 100;
    position: absolute;
    left: 0;
    right: 0;
    top: 60px;
    /*color: var(--sec);*/
    background-color: #ffffffF0;
    transition: all .5s ease-in-out;
}
#menutext {
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    padding-right: 20px;
    color: var(--pri);
    font-size: 2em;
}
#dropdown:checked ~ ul {
    max-height: 80vh;
}
#dropdown {
    display:none;
}
/* ------- NAVIGATION END (Mobile) ------- */

/* ------- CASE STUDY GALLERY (Mobile) ------- */
.container {
    flex-direction: column;
    margin: 0 5vmin;
    gap: 20px;
}
.card {
    transition: all .5s ease-in;
    position: relative;
    margin: 30px;
}
.card_title {
    color: var(--pri);
    background: var(--sec);
    min-width: 100%;
    text-align: center;
    position: absolute;
    white-space: nowrap;
    top: calc(85%);
    padding: 10px 0;
    outline: 4px solid var(--black);
}
.card img {
    width: 100%;
    object-fit: cover;
    /*transition: all .5s ease-in-out;*/
    outline: 4px solid var(--black);
    outline-offset: 0;
}
.card:hover .card_title, .card:focus-within .card_title {
    color: var(--dkaccent);
    background-color: var(--greybg);
}
.card:hover img, .card:focus-within img {
    outline: 4px solid var(--pri);
}
#in-progress {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 20px;
}
#in-progress h3 {
    text-align: center;
    font-size: 1.5em;
    margin-top: 30px;
}
#in-progress img {
    width: 100%;
    outline: 3px solid var(--black);
    margin-top: 30px;
}
.label {
    color: var(--pri);
    background: var(--sec);
    min-width: 50%;
    height: auto;
    text-align: center;
    font-size: 1.5em;
    white-space: nowrap;
    outline: 4px solid var(--black);
    /*transition: all .3s ease-in-out;*/
    margin: 0 auto;
    border-radius: 25px;
}
/* ------- CASE STUDY GALLERY END (Mobile) ------- */

/* ------- ABOUT (Mobile) ------- */
/*#profile_img {
    height: 300px;
}*/
.profile_header {
    position: relative;
    z-index:1;
    height: 150px;
    display: flex;
    justify-content: center;
    background-color: var(--sec);
    border-radius: 20px 20px 0 0;
}
.profile_header .profile_picture {
    padding: 5px;
    background: var(--sec);
    border-radius: 100%;
    height: 180px;
    width: auto;
    transform: translateY(20%);
}
.profile_card {
    max-width: 350px;
    min-height: auto;
    background: var(--pri);
    box-shadow: inset 0 0 0 300px rgba(255,255,255,.07);
    border-radius: 20px;
    grid-column: 1 / span 1;
    grid-row: 2;
}
.profile_card .blur_box:after{
    content: '';
    min-width: 350px;
    min-height: auto;
    background: inherit;
    box-shadow: inset 0 0 0 300px rgba(255,255,255,.07);
    filter: blur(50%);
    position: absolute;
}
.profile_info {
    position: relative;
    z-index: 1;
    padding-top: 1.1rem;
}
.profile_info .occupation {
    color: var(--sec);
    text-align: center;  
    z-index: 1;
    margin-top: 25px;
}
.cert_tabs {
    padding-top: 1rem;
    display: flex;
    /*text-align: center;*/
    color: var(--white);
    justify-content: space-evenly;
}
.skills_cloud {
    margin: 0 auto;
    padding: .6em;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    justify-content: center;
    z-index: 1;
    max-width: 600px;
}
.skills_cloud li {
    
    color: var(--white);
    box-shadow: 0 0 0 1px var(--pri);
    padding: 5px 10px;
    margin: 7px 3px;
    opacity: .7;
    border-radius: 100px;
    font-size: 12px;
    /*transition: opacity .4 ease-in-out;*/
    cursor: pointer;
    
}
.buttons {
    display: flex;
    position: relative;
    z-index: 1;
}
.buttons .button {
    align-self: stretch;
    width: 50%;
    border: none;
    color: var(--white);
    font-size: 16px;
    font-weight: bold;
}
#bio {
    /*display: grid;
    grid-template-rows: 80px repeat(4, auto);*/
   /* display: flex;
    flex-direction: column;*/
    padding: 0 35px;
    margin: 0 auto;
}
#bio p {
    margin-bottom: 20px;
}
#page_title {
    grid-row: 1 / span 1;
}
#bio_img {
    grid-row: 3 / span 1;
    /*align-self: center;*/
    margin: 50px auto 20px auto;
}
#profile_img {
    width: 300px;
    height: auto;
    border-radius: 15%;
    /*border: 5mm outset var(--pri);*/
}
#statement {
    grid-row: 2 / span 1;
    margin-bottom: 20px;
}
#certs {
    margin-bottom: 20px;
}
#about {
    grid-row: 4 / span 1;
    margin-bottom: 20px;
}
#list {
    grid-row: 5 / span 1;
    margin-bottom: 20px;
}
/* ------- ABOUT END (Mobile) ------- */

/* -------  CASE STUDIES (Mobile) ------- */ 
#case_container {
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto auto auto;
    padding: 15px;
}
#images {
    grid-row: 2 / span 1;
}
#info {
    grid-row: 3 / span 1;
}
.link {
    color: var(--dkaccent);
    font-size: 1.5em;
}
.image_card {
    margin: 15px 0 15px auto;
}
div #images_flat img {
    width: 90%;
    padding: 15px;
}
div .image_card img {
    max-width: 90vw;
    margin: 15px auto;
}
.image_meta {
    text-align:end;
    margin-bottom: 25px;
    margin-right: 25px;
} 
/* -------  CASE STUDIES END (Mobile) ------- */
/* ------- CONTACT ------- */
.inline-two {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.button-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}
.btn-primary {
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.6rem;
    background: var(--pri);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.btn-primary:hover, btn-primary:focus-within {
    color: var(--dkaccent);
    background: var(--sec);
}
.response-time {
    font-size: 0.82rem;
}
.small-print {
    font-size: 0.78rem;
    color: var(--pri);
    margin: 50px auto;
    line-height: 1.5;
    width: 75%;
}
/* #endregion || ------- Mobile First ------- */

/* #region || ------- Medium 768px ------- */
@media screen and (min-width: 768px) {
body {
	min-height: 100vh;
    grid-template-rows: auto auto auto;
}
/* LOGO */
#full {
    display: block;
    font-size: .65em;
}
#initials {
    display: none;
}
/* NAVIGATION 768px */
nav {
    position: absolute;
    justify-self: end;
    font-size: 1.5em;
    top: 0;
/*    right: 80px; */
}
nav ul {
    display: flex;
    overflow: visible;
    justify-content: end;
    background-color: var(--greybg);
    top: 0;
}
#dropdown, #menutext  {
    display: none;
}
/* NAVIGATION 768px END */

/* CONTAINER 768px */
.container {
    flex-direction: row;
    justify-content: center;
    margin: 10vmin;
    transform: skew(5deg);
}
.card {
    flex: 1;
    height: 30vmin;
    position: relative;
}
.card_title {
    color: var(--dkaccent);
    padding: 0.5em;
    height: 0;
    width: 0;
    top: 100%;
    position: absolute;
    font-size: 1em;
    visibility: hidden;
    z-index: -5;
}
.card img {
    height: 100%;
}
.card:hover, .card:focus-within {
    flex-grow: 15;
}
.card:hover .card_title, .card:focus-within .card_title {
    text-align: center;
    top: calc(100% - 2em);
    color: var(--dkaccent);
    background-color: var(--greybg);
    /*font-size: 2em;*/
    height: auto;
    width: 100%;
    padding: 10px 0px;
    visibility: visible;
    z-index: 500;
    /*transition: all .3s ease-in;*/
}
.card:hover img, .card:focus-within img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*transition: all .2s ease-in;*/
    filter: grayscale(0);
    outline-offset: 0;
}
.card:not(:nth-child(5)) {
    margin-right: 1em;
}
.container:has(.card:hover)
        .card:not(:hover) {
            filter: blur(4px) grayscale(100%);
}
/* CONTAINER 768px END */

/* ABOUT 768px */
#bio {
    grid-column: 2 / span 1;
    grid-row: 3 / span 3;
    /*display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 80px auto auto auto auto;
    /*gap: 25px;
    column-gap: 50px;*/
}
#page_title {
    grid-column: 1 / span 2;
    grid-row: 1;
}
#bio_img {
    grid-column:  2 / span 1;
    grid-row: 3 / span 2;
}
#statement {
    grid-column: 1 / span 2;
}
#about {
    grid-column: 1 / span 1;
    grid-row: 3 / span 2;
}
#sevensix, #nineninetwo {
    grid-column: 1 / span 2;
}
#certs {
    grid-column: 1 / span 1;
    grid-row: 7 / span 1;
}
#list {
    grid-column: 2 / span 1;
    grid-row: 7 / span 1;
    background-color: var(--sec);
    border-radius: 25px;
    padding: 15px;
}
#list h3 {
    text-align: center;
}
#list ul {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    padding: 0;
    justify-content: space-evenly;
}
#work-exp {
    grid-column: 1 / span 2;
    grid-row: 8 / span 1;
    text-align: center;
}
/* ABOUT 768px END */

/* CASE STUDIES 768px */
#case_container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
}
#case_header {
    grid-row: 1 / span 1;
    grid-column: 1 / span 3;
}
#info {
    grid-row: 3 / span 1;
    grid-column: 1 / span 1;
    align-self: start;
    background-color: var(--sec);
    color: var(--black);
    padding: 25px;
    border-radius: 25px;
}
#images {
    grid-column: 1 / span 3;
    grid-row: 2;
    text-align: center;
    max-width: 100%;
}
#images img {
    outline: 3px solid var(--dkaccent);
    max-width: 90vw;
   /* margin: 0 auto;*/
   max-width:100%;
}
/* CASE STUDIES 768px END */

/* CONTACT PAGE 768px */
    .contact-card,
    .info-card {
    margin: 2.5rem 2.25rem;
    }
}
.contact-card h2 {
    font-size: 1.8em;
    margin-bottom: 0.75rem;
    letter-spacing: 0.03em;
    font-family: all-round-gothic, sans-serif;
}
.contact-card p.lead {
    font-size: 0.98rem;
    max-width: 34rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}
.contact-card .small-note {
    font-size: 0.85rem;
    margin-bottom: 1.75rem;
}
.contact-page {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: stretch;
}
.contact-card,
.info-card {
    background-color: var(--greybg);
    border-radius: 1.5rem;
    padding: 2rem 1.75rem;
    box-shadow: 0 10px 10px rgba(15, 23, 42, 0.8);
}
/* Form styles */
.contact-form {
    display: grid;
    gap: 1.2rem;
}
.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
label {
    font-size: 0.9rem;
}
input,
textarea,
select {
    background-color: var(--pri);
    border-radius: 0.9rem;
    border: 1px solid var(--sec);
    padding: 0.7rem 0.9rem;
    font: inherit;
    color: var(--greybg);
    outline: none;
    transition: all 0.6s ease;
}
input::placeholder, textarea::placeholder {
    color: var(--greybg);
}
textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.5;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--accent);
    transform: translateY(-1px);
    background-color: var(--sec);
    color: var(--pri);
}
.inline-two {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}
/* CONTACT PAGE END 768px */
/* #endregion || ------- Medium 768px ------- */

/* #region || ------- Large 992px ------- */
@media screen and (min-width: 992px) {
    #in-progress {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 50px auto auto;
    }
    #in-progress h3 {
        grid-column: 1 / span 2;
        grid-row: 1 / span 1;
    }
    #in-progress img:nth-child(2) {
        width: 95%;
        grid-column: 1 / span 1;
        grid-row: 2 / span 1;
    }
    #in-progress img:nth-child(4) {
        width: 95%;
        height: auto;
        grid-column: 2 / span 1;
        grid-row: 2 / span 1;
    }
    #in-progress p:nth-child(2) {
        grid-column: 1 / span 1;
        grid-row: 3 / span 1;
    }
    #in-progress p:nth-child(4) {
        grid-column: 2 / span 1;
        grid-row: 3 / span 1;
        height: auto;
    }
}
/* #endregion || ------- Large 992px ------- */

/* #region || ------- XLarge 1200px max ------- */
@media screen and (min-width: 1200px) {
body, header {
    max-width: 1200px;
}
/*#full {
    font-size: 1em;
}*/
#bio_img {
    grid-row: 3 / span 3;
}
#sevensix {
    grid-column: 1 / span 1;
}
#case_container {
    grid-template-columns: 1fr 1fr 1fr;
}
#info {
    grid-row: 2 / span 1;
    grid-column: 3 / span 1;
}
#images {
    grid-column: 1 / span 2;
    grid-row: 2 / span 1;
    text-align: right;
    margin: 20px;
}

}
/* #endregion || ------- XLarge 1200px max ------- */
