:root {
    --background-color: #ffffff;
    --nav-color : #000000;
    --nav-link-color : #ffffff;
    --card-title-color : #1b1f8d;
    --card-title-text-color : #fff;
    --flash-text-background-color : #c82cce;
    --flash-text-color : #fff;
    --button-text-color : #fff;
    --button-background-color : #3d239f;
    --button-hover-color : #6046bb;
    --footer-bg-color : #0b0b0b;
    --footer-fg-color : #f7f1d4;
    --footer-link-color : #5b42f9;  
    /* --panel-action-background-color : #25213c; */
    --panel-action-background-color : #000;
    --preformatted-text-background-color : #e0e0e0;
    --panel-alt-background-color : #696969;
    --panel-alt-text-color :#fff;

    --response-box-color : #d8d7c5;
    --response-box-text-color : #000;
    /* links  */
    --cta-link-dark : #fff;

    --muted-text-color : #5c5c5c;

    /* logo text colors  */
    --aiam-letter-1 : #000;
    --aiam-letter-2 : #03bef5;
    --aiam-letter-3 : #01648b;
    --aiam-letter-4 : #0082ae;

}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    /* outline: 1px solid red; */
}

html {
    scroll-behavior: smooth;
}

html, body {
    /* font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; */
    /* font-size: 20px; */
    background: var(--background-color);
    --sans: 'Inter', system-ui, 'Segoe UI', Roboto, sans-serif;
    /* --sans: system-ui, 'Segoe UI', Roboto, sans-serif;
    --heading: system-ui, 'Segoe UI', Roboto, sans-serif; */
    font: 18px/145% var(--sans);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    width: 100%;
    height: 100%;
}

textarea {
    border-radius: 10px;
    padding: 6px;
    resize: none;
}

table {
    border-collapse: collapse;
    width: 100%;
}

table th,
table td {
    padding: 6px;
}

.hidden {
    display: none;
}

.nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: var(--nav-color);
    height: 60px;
    color: var(--nav-link-color);
}

.nav p {
    font-size: 1.5rem;
    margin: 10px;
    font-weight: bold;
}

#profile-page .nav p {
    font-size: 1rem;
}

#profile-page .nav p:first-child {
    font-size: 1.5rem;
}

.nav ul {
    display: flex;
    flex-direction: row;
    list-style-type: none;
}

.nav ul li {
    padding: 2px 4px;
}

.nav a:active,
.nav a:visited,
.nav a {
    text-decoration: none;
    color: var(--nav-link-color);   
}

header {
    /* min-height: 100vh; */
}

header.project-page {
    height: 100%;
}

header.project-page .page-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

header.project-page .page-nav .banner {
    /* width: 50%; */
    width: 100%;
    height: 100%;
    min-height: 300px;
    background-image: url('./assets/hero-image.jpg');
    background-size: cover;
    background-position: center;
}


header.project-page .page-nav .nav {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--nav-color);
}

header.project-page .page-nav .nav  ul {
    padding-left: 10px;
}

header .hero-section {
    width: 1280px;
    margin: auto;
}

header .banner {
    /* width: 1280px;
    height: 400px; */
    width: 1280px;
    height: 300px;
}

header .project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

header h1 {
    color: var(--flash-text-color);
    background-color: var(--flash-text-background-color);
    padding: 12px;
    width: 100%;
}

header h2 {
    text-align: center;
    text-transform: uppercase;
    color: var(--muted-text-color);
    margin: 12px 0;
}

/* LINKS  */

a.cta-link {
    text-decoration: none;
    text-align: center;
    width: 100%;
    color: var(--cta-link-dark);
}


/* BUTTONS  */

button.btn,
a.btn {
    border-radius: 6px;
    text-decoration: none;
    color: var(--button-text-color);
    background-color: var(--button-background-color);
    display: flex;
    justify-content: center;
    padding: 6px;
    max-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.685);
    margin: 10px 0;
    font-size: 1.25rem;
    cursor: pointer;
    border: none;
    transition: box-shadow .5s ease-in-out, background-color .5s ease-in-out;
}

button.btn:hover,
a.btn:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.685);
    background-color: var(--button-hover-color);
    transition: box-shadow .5s ease-in-out, background-color .5s ease-in-out;
}

button.btn.loading,
a.btn.loading {
    pointer-events: none;
    opacity: 0.8;
    position: relative;
    color: transparent; /* hide original text */
}

/* Spinner */
button.btn.loading::after,
a.btn.loading::after {
    content: "";
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--button-text-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;

    position: absolute;
    left: 8px;
}

/* Optional: Loading text */
button.btn.loading::before,
a.btn.loading::before {
    content: "Loading...";
    position: absolute;
    top: 8px;
    color: var(--button-text-color);
    font-size: 0.9rem;
}

/* Spinner animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* LAYOUT COMPONENTS  */

main .panel {
    margin: 10px auto;
    padding: 10px;
}


.card {
    margin: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

    /* This cuts the top-left corner */
    /* clip-path: polygon(
        30px 0,     
        100% 0,
        100% 100%,
        0 100%,
        0 30px     
    ); */


    /* filter: box-shadow(0 4px 12px rgba(0, 0, 0, 0.15)); */
}

.card .title {
    background-color: var(--card-title-color);
    color: var(--card-title-text-color);
    clip-path: polygon(
        0 0,
        calc(100% - 30px) 0,  /* stop before cut */
        100% 30px,            /* diagonal cut */
        100% 100%,
        0 100%
    );
    padding: 6px;
}

.card .body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card .footer {
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* MAIN PAGE STYLES  */

.panel {
    max-width: 1260px;
    margin: 10px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.panel a ,
.panel a:visited,
.panel a:active
{
    text-decoration: none;

}

.panel.vert {
    padding: 10px;
    width: 96%;
}

.panel h2,
.panel h3,
.panel p {
    margin: 10px 0;
}

.panel h3,
.panel h2 {
    color: var(--muted-text-color);
}

.panel li {
    margin-left: 40px;
}

.panel-70-30,
.panel-40-60,
.panel-30-70 {
    display: flex;
    flex-direction: row;
    width: 96%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    
}

.panel.action-panel {
    background: var(--panel-action-background-color);
    border-radius: 10px;
}


.panel-30-70 .left {
    width: 30%;
}

.panel-30-70 .right {
    width: 70%;
}

.panel-40-60 .left {
    width: 40%;
}

.panel-40-60 .right {
    width: 60%;
}

.panel-70-30 .left {
    width: 70%;
}

.panel-70-30 .right {
    width: 30%;
}

.panel .panel-image {
    max-width: 400px;
    /* margin: auto;  */
}

.panel .embedded-document {
    background-color: var(--panel-alt-background-color);
    color: var(--panel-alt-text-color);
    border-radius: 10px;
    padding: 10px;
}

.panel .embedded-document h2,
.panel .embedded-document h3 {
    color: var(--panel-alt-text-color);
    font-weight: bold;
}


.panel .embedded-document table td,
.panel .embedded-document table th {
    border: var(--panel-alt-text-color) solid 1px;
}

.panel .img-container {
    margin: 10px 0;
}

.left {
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 10px;
    text-align: center;
}

.right {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.preformatted-text {
    width: 100%;
    overflow-x: scroll ;
    text-align: left;
    background-color: var(--preformatted-text-background-color);
    border-radius: 10px;
    padding: 10px;
}

.preformatted-text code {
    overflow-x: scroll;
}

.response-box {
    background-color: var(--response-box-color);
    color: var(--response-box-text-color);
    border-radius: 10px;
    padding: 12px;
    height: 200px;
    display: flex;
}

.response-box .output {
    overflow-y: auto;
    height: 100%;
    padding-right: 4px;
}

.img-text-group {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.img-text-group .img-container {
    width: 60px;
    height: 80px;
    margin-right: 10px;
}

/* PAGE STYLES  */

/* profile page  */
#interview .panel .right {
    background-color: var(--panel-alt-background-color);
    border-radius: 10px;
    color: var(--panel-alt-text-color);
}


/* Projects page  */
#projects .card {
        width: 96%;
        margin: 0 10px;
        display: flex;
        flex-direction: row;
        margin: 10px auto;
    }

 #projects  .card .title {
        width: 20%;
        clip-path: none;
        font-weight: bold;
    }

#projects    .card-image {
        width: 30%;
    }

#projects    .card .body {
        width: 60%;
    }


/* MEDIA QUERIES  */

@media (max-width: 1280px) {
    header .project-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    header.project-page .page-nav .banner {
        background-image: url('./assets/id_pattern.jpg');
    }

    header .hero-section {
        width: 100%;
    }

    header .banner {
        width: 100%;
    }

    header h1 {
        line-height: 1;
    }

    header .banner h1.hidden {
        display: block;
    }

    header .banner h1 {
        background-color: #00000012;
        font-size: 4rem;
        text-align: center;
    }

    header .banner h1 span:first-child {
        color: var(--aiam-letter-1);
    }

    header .banner h1 span:nth-child(2) {
        color: var(--aiam-letter-2);
    }

    header .banner h1 span:nth-child(3) {
        color: var(--aiam-letter-4)
    }    

    header .banner h1 span:nth-child(4) {
        color: var(--aiam-letter-4);
    }

    .card {
        width: 96%;
        margin: 0 10px;
        display: flex;
        flex-direction: row;
        margin: 10px 0;
    }

    .card .title {
        width: 20%;
        clip-path: none;
        font-weight: bold;
    }

    .card-image {
        width: 30%;
    }

    .card .body {
        width: 60%;
    }

    .cta {
        width: 100%;
    }
}


@media (max-width : 700px) {
    #projects .card {
        flex-direction: column;
    }
 
    #projects .card .title,
    #projects .card .card-image,
    #projects .card .body,
    #projects .card .title,
    .card .title,
    .card .card-image,
    .card .body,
    .card .title {
        width: 100%;
    }
}

@media (max-width: 650px) {
    header.project-page .page-nav {
        display: flex;
        flex-direction: column;
    }

    header.project-page .page-nav .banner {
        height: 300px;
    }

    .panel h2 {
        text-align: center;
    }

    .panel .left {
        align-items: center;
    }

    .panel-70-30, .panel-40-60, .panel-30-70 {
        flex-direction: column;
        
    }

    .panel-70-30 .left, .panel-40-60 .left, .panel-30-70 .left,
    .panel-70-30 .right, .panel-40-60 .right, .panel-30-70 .right {
        width: 100%;
    }


}

/* FOOTER STYLES  */

footer {
    color: var(--footer-fg-color);
    background-color: var(--footer-bg-color);
    padding: 20px;
}

footer .row {
    display: flex;
    flex-direction: row;
}

footer .row .col {
    display: flex;
    flex-direction: column;
}

footer .row .col.col-3 {
    width: 33%;
}

footer .row .col.col-1 {
    width: 100%;
}

footer a:visited,
footer a:active,
footer a {
    text-decoration: none;
    color: var(--footer-link-color);
}

footer img {
    width: 60px;
    height: 60px;
    padding: 10px;
}



footer .centered {
    text-align: center;
    width: 100%;
}