/* CSV
0d1b2a,1b263b,415a77,778da9,e0e1dd,5c415d
*/

/* CSS CUSTOM PROPERTIES (COLOR VARIABLES) */
:root {
    /* Primary Colors */
    --color-primary: #3a1c6b;
    --color-primary-dark: #914294;
    --color-primary-light: #87d0ce;
    
    /* Text Colors */
    --color-text-dark: #4b4b4b;
    --color-text-light: #e0e1dd;
    --color-text-white: #ffffff;
    --color-text-black: #000000;
    --color-text-gray: #8285a0;
    --color-text-light-gray: #999;
    
    /* Background Colors */
    --color-bg-white: #ffffff;
    --color-bg-black: #000000;
    --color-bg-popup: #3f6bad;
    
    /* Accent Colors */
    --color-accent-gold: #C89933;
    --color-accent-orange: #F24C00;
    --color-accent-blue: #2d69c2;
    --color-accent-yellow: #F7C548;
    --color-accent-purple: #6056bd;
    --color-accent-green: #8ad594;
    --color-accent-red: #FF6B6C;
    --color-accent-light-yellow: #ffd024;
    --color-accent-purple-light: #7161EF;
    
    /* Social Media Colors */
    --color-social-blue: #2d69c2;
    --color-social-yellow: #F7C548;
    --color-social-purple: #6056bd;
    --color-social-green: #8ad594;
    --color-social-red: #FF6B6C;
}

/* FONTS */
@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-Bold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-SemiBold.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-LightItalic.ttf") format("truetype");
    font-weight: 300;
    font-style: italic;
}

/* General */
html {
    scroll-behavior: smooth;
}

body {
    background: var(--color-primary);
    margin: 0;
    width: 100%;
}

a {
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

ul {
    list-style-type: none;
}

h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 28pt;
    text-transform: uppercase;
    line-height: 24pt;
    color: var(--color-primary);
}

h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14pt;
    text-transform: capitalize;
    color: var(--color-text-dark);
}

h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 9pt;
    text-transform: uppercase;
    color: var(--color-text-dark);
}

h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 12pt;
    text-transform: uppercase;
    color: var(--color-text-dark);
    line-height: 5pt;
}

p {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 12pt;
    line-height: 1.7;
    color: var(--color-text-dark);
}

/***********************************/
/***                             ***/
/***         Navigation          ***/
/***                             ***/
/***********************************/

.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 8vh;
    float: right;
    display: grid;
    background: var(--color-primary);
    grid-template-columns: 2fr 4fr;
    z-index: 999;
}

.nav-home {
    float: left;
    width: 20vw;
    height: 20px;
    padding-top: 3vh;
    margin-left: 7.5vw;

    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

.nav-home a {
    color: white;
    font-size: 20pt;
    text-align: center;
    border: 3px solid transparent;
}

.nav-home a:hover {
    border: 3px solid white;
}

#nav-list {
    padding-top: 2vh;
    background: rgba(83, 84, 99, 0);
}

.nav-list-elements{
    float: right;
    display: grid;
    grid-template-columns: repeat(4,8vw);
    grid-gap: 20px;
    margin-right: 7.5vw;
}

.nav-list-elements a {
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 12pt;
    text-align: center;
    border: 1px solid transparent;
}

.nav-list-elements li a:hover {
    border: 1px solid white;
}

.burger{
    display: none;
}

.burger-menu {
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    padding: 0;
    width: 40px;
    height: 40px

}
.line {
    fill: none;
    stroke: white;
    stroke-width: 6;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.line1 {
    stroke-dasharray: 60 207;
    stroke-width: 6;
}
.line2 {
    stroke-dasharray: 60 60;
    stroke-width: 6;
}
.line3 {
    stroke-dasharray: 60 207;
    stroke-width: 6;
}
.opened .line1 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 6;
}
.opened .line2 {
    stroke-dasharray: 1 60;
    stroke-dashoffset: -30;
    stroke-width: 6;
}
.opened .line3 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 6;
}



/***********************************/
/***                             ***/
/***          Content            ***/
/***                             ***/
/***********************************/

.content{
    margin-top: 9vh;
    margin-left: 7.5vw;
    width: 85vw;
    background: var(--color-bg-white);

    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:    'landing-left landing-right'
                            'contact contact'
                            'publications publications';
}

.content-left-side {
    grid-area: landing-left;
    height: 92vh;
}

.content-left-side h1{
    padding-top: 5vh;
    padding-left: 10%;
    padding-right: 10%;
}

.content-left-side p{
    padding-left: 10%;
    padding-right: 10%;
}

.content-left-side p a {
    text-decoration: none;
    font-size: inherit;
    border: none;
    display: inline;
    color: var(--color-accent-gold);
}

.content-left-side p a:hover {
    border: none;
    background: none;
}

.content-right-side {
    grid-area: landing-right;
    height: 92vh;
}

.content-left-side-buttons {
    margin-left: 0;
    margin-top: 5vh;
    padding-left: 10%;
    padding-right: 10%;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.content-left-side-button {
    padding: 10px;
    font-size: 20pt;
    color: var(--color-accent-gold);
    border: 3px solid var(--color-accent-gold);
    text-decoration: none;
    display: inline-block;
}

.content-left-side-button:hover {
    background: var(--color-accent-gold);
    border: 3px solid var(--color-accent-gold);
    color: white;
}

.content-right-portrait{
    height: 100%;
    width: 100%;
    object-fit: cover;
    margin: auto auto;
}

/***********************************/
/***                             ***/
/***          Contact            ***/
/***                             ***/
/***********************************/
#contact {
    scroll-margin-top: 12vh;
}

.content-contact {
    padding-top: 5vh;
    grid-area: contact;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    background: var(--color-primary);
}

.content-contact h1{
    padding-left: 5vw;
    line-height: 1.2em;
    color: var(--color-text-white);
    margin:0;
}

.content-contact p{
    margin: 0;
    padding-left: 5vw;
    color: var(--color-text-white);
}

.content-contact-sns{
    display: grid;
    grid-template-columns: 6fr 1fr 1fr 1fr 2fr;
    grid-gap: 2vw;
    align-items: center;
    justify-items: center;

}

.content-contact-sns-icon {
    width: 100%;
}

#content-contact-mail {
    width: 20vh;
    float: left;
    margin: 0 auto;
    padding-top: 5vh;
}

#content-contact-mail {
    display: inline;
    justify-self: center;
    margin-left: 5vw;
    padding: 10px;
    font-size: 12pt;
    text-transform: uppercase;
    color: var(--color-text-white);
    border: 2px solid var(--color-text-white);
}

#content-contact-mail:hover{
    background: var(--color-bg-white);
    color: var(--color-text-gray);
}

/***********************************/
/***                             ***/
/***       Publications          ***/
/***                             ***/
/***********************************/
.project-container {
    margin: 0;
    width: 90%;
    height: 90%;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

.wrapper {
    padding-left: 10%;
    padding-top: 50px;
    width: 90%;
    height: 100%;
}

#publications{
    scroll-margin-top: 5vh;
}

.content-publications {
    display: block;
    margin-top: 10vh;
    width: 75vw;
    padding-left: 5vw;
    padding-bottom: 5vh;
    grid-area: publications;
}

.content-publications h1{
    padding-bottom: 2.5vh;
}

.content-publication-pub {
    display: block;
    width: 75vw;
    margin:0;
    padding-bottom: 5vh;
}

.content-publication-pub hr{
    width: 75vw;
    margin-left: -0.5vw;
    margin-bottom: 10px;
    color: var(--color-text-gray);
}

.content-publication-pub h2 {
    line-height: 1.2em;
    margin:0;
}

.content-publication-pub p {
    line-height: 1.2em;
}

.content-publication-pub a {
    text-transform: uppercase;
    padding: 2px;
    float: left;
    color: var(--color-primary-dark);
    border: 2px solid var(--color-primary-dark);
}

.content-publication-pub a:hover {
    color: var(--color-text-white);
    background: var(--color-primary-dark);
}

.content-publication-pub-proceedings{
    font-style: italic;
    font-size: 11pt;
}

.template {
    display: none;
}


/***********************************/
/*                                 */
/*            PROJECTS             */
/*                                 */
/***********************************/

.button-back a {
    text-decoration: none;
    color: var(--color-text-white);
    height: auto;
    padding: 10px;
    border-radius: 4px;
    background: var(--color-accent-orange);
    font-size: 1.2em;
}


.button-back {
    position: absolute;
    top: 45%;
    left: 20px;
}

.button-back a:hover{
    background: var(--color-bg-black);
}

.grid-container {
    position: relative;
    display: grid;
    height: 90vh;

    grid-template-columns: 0.5fr 0.5fr 1fr 2fr 1fr 0.5fr 0.5fr;
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    grid-template-areas:    "f-1 f-1 f-2 f-2 f-3 f-3 f-3"
                            "f-1 f-1 f-2 f-2 f-4 f-4 f-4"
                            "f-5 f-5 f-5 title f-4 f-4 f-4"
                            "f-5 f-5 f-5 f-7 f-7 f-7 f-7"
                            "f-6 f-6 f-6 f-7 f-7 f-7 f-7";
}

.frame {
    position: relative;
    text-align: center;
    width: 100%;
    font-size: 20pt;
    border-radius: 4px;
    box-sizing: border-box;
}

.frame a{
    text-transform: uppercase;
    font-size: 16pt;
    font-weight: 400;
    letter-spacing: 4px;
    line-height: 24pt;
    height: 100%;
    width: 100%;
}

.f-3 {
    color: white;
}

.f-3 h2 {
    color: white;
}

.f-1 {
    grid-area: f-1;
    background: var(--color-accent-blue);
}

.f-2 {
    grid-area: f-2;
    background: var(--color-accent-yellow);
}

.f-2:hover {
    border: 5px solid var(--color-text-white);
}

.f-2 a {
    text-align: left;
    padding-left: 2vw;
    padding-top: 2vw;
    color: inherit;
    text-decoration: none;
}

.f-3 {
    grid-area: f-3;
}

.f-3 h2{
    width: 100vw;
    margin: 0;
    position: absolute;
    text-align: left;
    float: left;
    bottom: 0;
    left: 0;
    letter-spacing: 4px;
    line-height: 40px;
    text-transform: uppercase;
}

.f-4 {
    grid-area: f-4;
    background: var(--color-accent-purple);
}

.f-4 a {
    text-align: left;
    padding-left: 2vw;
    padding-top: 2vw;
    color: inherit;
    text-decoration: none;
    color: var(--color-text-white);
}


.f-4:hover {
    border: 5px solid var(--color-text-white);
}

.f-5 {
    grid-area: f-5;
    background: var(--color-accent-green);
}

.f-6 {
    grid-area: f-6;
}

.f-6 a p {
    position: absolute;
    bottom: 0;
    right: 0;
    float: right;
    font-size: 9pt;
    letter-spacing: 2px;
    font-weight: 400;
    color: var(--color-text-white);
    text-align: right;
}

.f-6 a p:hover {
    color: var(--color-accent-light-yellow);
}

.f-7 {
    grid-area: f-7;
    background: var(--color-accent-red);
}


.title {
    display: flex;
    grid-area: title;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    background: var(--color-bg-black);
    border-radius: 4px;
}



#title-text {
    width: 100%;
    margin: 0 auto;

    font-size: 16pt;
    font-weight: 400;
    text-align: center;
    letter-spacing: 4px;

    color: var(--color-text-white);
}

/***********************************/
/*                                 */
/*        CURRICULUM VITAE         */
/*                                 */
/***********************************/

.cv-content {
    margin-top: 9vh;
    margin-left: 7.5vw;
    width: 85vw;
    background: var(--color-bg-white);
}

.cv-content h1 {
    padding-top: 5vw;
    width: 100%;
    text-align: center;
}

#cv-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 90%;
    margin: 0 auto;
    padding-bottom: 10vh;
}

#cv-wrapper h2 {
    text-transform: uppercase;
    width: 80%;
    text-align: right;
    align-self: end;
    font-size: 2em;
}

#cv-left-side {
    width: 100%;
    height: 100%;
}

#cv-right-side {
    width: 100%;
    height: 100%;
}

.cv-time-line-element {
    display: grid;
    grid-template-columns: 1fr 4fr;
}

.cv-date {
    position: relative;
    rotate: -45deg;
    padding-right: 20%;
    padding-top: 50%;
    font-weight: 600;
    text-align: right;
}

.cv-date-element {
    width: 80%;
    border-left: solid 2px var(--color-bg-black);
    padding-left: 2vw;
}

#cv-download-pdf {
    width: 80%;
    padding-left: 10%;
    padding-bottom: 2em;
}

#cv-download-pdf a{
    text-transform: uppercase;
    padding: 2px;
    width: 15em;
    margin: 0 auto;
    color: var(--color-primary-dark);
    border: 2px solid var(--color-primary-dark);
}

#cv-download-pdf a:hover{
    color: var(--color-text-white);
    background: var(--color-primary-dark)
}

.cv-time-line-element h3{
    font-size: 1.4em;
}

.cv-activities{
    width: 100%;
    padding-bottom: 5em;
}

.cv-activities>*{
    width: 80%;
    margin: 0 auto;
    padding-bottom: 1em;
}

.cv-activities-h2 {
    text-transform: uppercase;
    font-size: 2em;
}

.cv-activities-act>*{
    width: 100%;
    margin: 0 auto;
}

.cv-activities-act p{
    line-height: 1.2;
    padding-bottom: 2em;
}

.cv-activities-act hr {
    width: 100%;
}

.cv-activities-act-link{
    position: relative;
    display: inline-block;
    float: left;
    padding-bottom: 1em;
    width: auto;
}

.cv-activities-act-link a {
    position: inherit;
    width: 100%;
    display: block;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    border: 2px solid var(--color-primary-dark);
}

.cv-activities-act-link a:hover{
    color: var(--color-text-white);
    background: var(--color-primary-dark)
}

.cv-activities-act li{
    line-height: 1.4;
    list-style: circle;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    margin: 0 auto;
}

.cv-activities-act li b{
    font-weight: 600;
}

/* Publications */
#cv-publications{
    width: 100%;
}

#cv-publications>*{
    width: 80%;
    margin: 0 auto;
}

#cv-publications hr {
    width: 100%;
}

#cv-publications-end{
    width: 80%;
}

#cv-pub-h2 {
    margin-top: 5vh;
    text-transform: uppercase;
    font-size: 2em;
}

/***********************************/
/*                                 */
/*     DARK PATTERN CHEATSHEET     */
/*                                 */
/***********************************/

#dp-nav{
    padding-left: 10vw;
    padding-top: 20px;
    width: 30vw;
    display: none;
}

#dp-nav-wrapper {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    width: 100%;
    align-items: start;
    justify-items: start;
}

.dp-button {
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    padding: 5px;
    cursor: pointer;
    float: right;
}

.dp-button:hover{
    background: var(--color-primary-light);
}

#dp-nav-button{
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.4em;
    padding-left: 10vw;
}


#dp-nav-counter {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 1em;
    padding-right: 5vw;
    text-align: right;
}

#dp-nav-button:hover {
    cursor: pointer;
}

#dp-nav a{
    color: var(--color-text-black);
    text-decoration: none;
    padding-top: 5px;
    transition: 0.5s;
}

#dp-nav a:hover{
    padding-left: 10px;
    font-weight: bold;
}


#dp-popup {
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    overflow-y: hidden;
    background: rgba(255,255,255,0.6);
    visibility: hidden;
    z-index: 999;
}

#dp-popup-inner{
    height: 70vh;
    width: 70vh;
    overflow-y: scroll;
    margin: 7.5% auto;
    background: var(--color-bg-white);
    border-radius: 15px;
    filter: drop-shadow(0px 0px 20px rgba(135, 208, 206, 0.43));
    z-index: 1000;
}

#dp-popup-inner a {
    text-decoration: none;
    color: var(--color-accent-purple-light);
}

#dp-popup-inner img {
    width: 90%;
    filter: drop-shadow(0px 0px 10px rgba(98, 0, 38, 0.05));
    padding-top: 10px;
    padding-left: 5%;
    padding-bottom: 40px;
}

.innerCloseButton {
    position: absolute;
    right: 32px;
    top: 32px;
    width: 32px;
    height: 32px;
    opacity: 0.5;
}

.innerCloseButton:hover {
    opacity: 1;
    cursor: pointer;
}

.innerCloseButton:before, .innerCloseButton:after {
    position: absolute;
    left: 15px;
    content: ' ';
    height: 33px;
    width: 3px;
    border-radius: 5px;
    background-color: var(--color-bg-black);
}

.innerCloseButton:before {
    transform: rotate(45deg);
}

.innerCloseButton:after {
    transform: rotate(-45deg);
}

#dp-popup-inner-content {
    width: 90%;
    height: auto;
    background: var(--color-bg-white);
    margin: 0 auto;
    padding-top: 8vh;
}

#dp-popup-inner-content h2 {
    font-weight: 600;
    font-size: 1.8em;
}

#wrapper-dark-pattern{
    display: inline-block;
    width: 100vw;
    min-height: 92vh;
    margin-top: 8vh;
    padding-bottom: 5vh;
    background: var(--color-bg-white);
}

#wrapper-dark-pattern h1{
    padding-top: 5vh;
    padding-left: 5vw;
    padding-right: 5vw;
    color: var(--color-text-black);
    text-transform: none;
    letter-spacing: 0.05em;
    font-weight: 600;
}

#wrapper-dark-pattern p{
    padding-left: 5vw;
    padding-right: 5vw;
    padding-bottom: 5vh;
}
#wrapper-dark-pattern a{
    display: inline-block;
    color: var(--color-accent-gold);
}

#wrapper-dark-pattern a:hover{
    text-decoration: underline;
}

.dp-grid {
    display: grid;
    position: relative;
    width: 85vw;
    float: right;
    right: 5vw;
    margin: 0 auto;
    grid-template-rows: repeat(auto-fill,1fr);
    grid-gap: 4vw;
}

.dp-group {
    display: grid;
    position: relative;
    grid-template-columns: repeat(auto-fill, minmax(14%,1fr));
    grid-auto-rows: minmax(auto, 120px);
    width: 100%;
    grid-gap: 2vw;
}

.dp-group-title{
    position: absolute;
    grid-row: 1/-1;
    width: auto;
    height: 100%;
    left: -5vw;
    rotate: -90deg;
}

.dp-group-title h2{
    text-align: center;
    text-transform: none;
    font-size: 1.2em;
    line-height: 0.5em;
}

.dp-group-title h3 {
    text-align: center;
    text-transform: none;
    font-style: italic;
    font-size: 1em;
    line-height: 0.5em;
}

.dp-group-title h3 a{
    display: inline-block;
    color: var(--color-accent-gold);
}

.dp-item {
    display: table;
    text-align: center;
    box-sizing: border-box;
    border-radius: 4px;
    border: solid 2px var(--color-bg-black);
    height: 100%;
    z-index: 0;
}

.dp-item:hover {
    z-index: 10;
    border-radius: 8px;
    transform: scale(1.15);
    transition-duration: 0.1s;
    transform-origin: center;
    filter: drop-shadow(0 0 0.75rem rgba(126, 144, 159, 0.53));
    border: solid 4px var(--color-text-white);
    cursor: pointer;
}

.dp-item h2{
    color: var(--color-text-white);
    display: table-cell;
    vertical-align: middle;
    padding-left: 5%;
    padding-right: 5%;
}

.dp-group-1 > div{
    background: var(--color-accent-purple-light);
    border: none;
}

.node {
    stroke: var(--color-text-white);
    stroke-width: 1.5px;
    cursor: pointer;
}
.link {
    stroke: var(--color-text-light-gray);
    stroke-opacity: 0.6;
}

/***********************************/
/*                                 */
/*            IMPRESS              */
/*                                 */
/***********************************/

#impress-content {
    width: 40%;
    min-height: 85vh;
    margin: 0 auto;
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 4px;
}

#impress-content h3 p a{
    color: var(--color-text-white)
}


.impress .button-back{
    position: fixed;
    color: var(--color-text-white);
}


/***********************************/
/*                                 */
/*             MOBILE              */
/*                                 */
/***********************************/

/***********************************/
/***           INDEX             ***/
/***********************************/


@media only screen and (max-width: 1200px) {
    .sticky-nav {
        display: grid;
        grid-template-columns: 3fr 1fr;
        height: 8vh;
        align-items: center;
        z-index: 999;
    }

    .nav-home {
        width: 30vw;
        align-self: center;
        height: 100%;
    }

    .nav-home a{
        font-size: 1.8em;
    }

    #nav-list {
        width: 50vw;
        float: right;
        padding-right: 2vw;
    }

    .nav-list-elements{
        width: 100%;
        margin-right: 0;
        grid-template-columns: repeat(4, 10vw);
    }
    .nav-list-elements li{
        min-width: 120px;
    }

    .content {
        margin-left: 7.5vw;
        margin-top: 8vh;
    }

    .content-left-side {
        height: fit-content;
    }

    .content-right-side {
        height: 80vh;
    }

    .content-left-side h1 {
        font-size: 20pt;
    }

    .content-left-side p {
        font-size: 11pt;
    }

    .content-left-side-buttons {
        margin-left: 0;
        padding-left: 10%;
        padding-right: 10%;
        gap: 15px;
    }
    
    .content-left-side-button {
        font-size: 16pt;
    }

    #publications{
        scroll-margin-top: 10vh;
    }

}

@media only screen and (max-width: 1000px) {
    .nav-home {
        float: left;
        margin-left: 2vw;
        width: 60vw;
    }

    .nav-home a {
        float: left;
        font-size: 1.2em;
        line-height: 1em;
        padding-top: 1vh;
    }

    .nav-list-elements{
        display: grid;
        grid-template-columns: none;
        grid-template-rows: repeat(4,1fr);
        grid-gap: 5vh;
        padding-top: 20vh;
        width: 30vw;
        margin: 0 auto;
    }

    #nav-list {
        display: none;
        position: absolute;
        width: 100vw;
        height: 100vh;
        top: 0;
        float: none;
        background: var(--color-text-gray);
        transition: transform 250ms ease-in;
    }

    .nav-list-elements {
        width: 100%;
        margin: 0 auto;
    }

    .nav-list-elements a {
        font-size: 14pt;
    }

    .burger {
        display: block;
        position: absolute;
        right: 5vw;
        height: 8vh;
        top: 0;
        z-index: 999;
    }

    .burger-menu {
        position: relative;
        height: 8vh;
        top: 2vh;
    }

    .content {
        width: 100vw;
        margin-left: 0;
        margin-top: 8vh;
    }

}

@media only screen and (max-width: 900px) {
    .content-left-side-buttons {
        margin-left: 0;
        padding-left: 10%;
        padding-right: 10%;
        gap: 10px;
    }
    
    .content-left-side-button {
        padding: 5px;
        margin-top: 2vh;
    }

    .content-contact {
        grid-template-rows: 1fr;
    }

    .content-contact-sns {
        grid-template-columns: repeat(3,1fr);
        grid-template-rows: repeat(3,1fr);
        padding-bottom: 5vh;
    }

    .content-contact-sns p {
        grid-column-start: 1;
        grid-column-end: 5;
    }

    .content-contact-sns-icon {
        width: 100%;
    }

    #content-contact-mail{
        grid-column-start: 1;
        grid-column-end: 5;
    }
}

@media only screen and (max-width: 700px) {
    .content{
        grid-template-areas:    "landing-right"
                                "landing-left"
                                "contact"
                                "publications";
    }

    .content p{
        font-size: 11pt;
        line-height: 14pt;
    }

    .content-left-side {
        width: 95vw;
        margin-left: 5vw;
        padding-bottom: 5vh;
    }

    .content-left-side h1 {
        width: 90vw;
        padding-left:0;
        padding-top: 0;
    }

    .content-left-side p {
        width: 90vw;
        padding-left: 0;
    }
    .content-left-side-buttons {
        margin-left: 0;
        padding-left: 0;
        padding-right: 0;
        gap: 8px;
    }
    
    .content-left-side-button {
        margin-top: 2vh;
    }

    .content-right-side {
        width: 100vw;
        height: 35vh;
    }

    .content-contact {
        margin-top: 0;
    }

    .content-contact h1 {
        padding-bottom: 2vh;
    }

    .content-contact-sns {
        padding-right: 2vh;
        width: 80%;
        padding-left: 10%;
    }

    .content-contact-sns-icon {
        width: 100%;
    }

    #publications {
        width: 90vw;
    }

    .content-publications {
        width: 90vw;
        margin-top: 0;
    }

    .content-publication-pub {
        width: 90vw;
    }

    .content-publication-pub hr{
        width: 90vw;
    }

    .content-publication-pub h2{
        font-size: 12pt;
    }
}

@media only screen and (max-width: 480px){
    .content-left-side {
        width: 95vw;
        margin-left: 2.5vw;
    }

    .content-left-side-buttons {
        margin-left: 0;
        padding-left: 0;
        padding-right: 0;
        gap: 5px;
    }
    
    .content-left-side-button {
        font-size: 14pt;
        padding: 5px;
    }
    .content-right-side {
        height: 30vh;
    }
}


@media only screen and (max-width: 1200px) {

    /***********************************/
    /*             INDEX               */
    /***********************************/

    #title-text {
        height: 30px;
        padding-top: 12px;
        font-size: 14pt;
    }

    .grid-container {
        display: grid;
        grid-template-columns: 0.5fr 0.5fr 1fr 2fr 1fr 0.5fr 0.5fr;
        grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
        grid-template-areas:    "f-1 f-1 f-1 f-2 f-3 f-3 f-3"
                                "f-1 f-1 f-1 f-2 f-4 f-4 f-4"
                                "f-5 f-5 f-5 title f-4 f-4 f-4"
                                "f-5 f-5 f-5 f-7 f-7 f-7 f-6"
                                "f-5 f-5 f-5 f-7 f-7 f-7 f-6";

    }
}




@media only screen and (max-width: 1000px) {

    /***********************************/
    /*            PROJECTS             */
    /***********************************/

    .title{
        width: 100%;
    }

    #title-text {
        width: 100%;
        height: 30px;
        font-size: 2.4em;
    }

    .grid-container {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
        grid-template-areas:    ". title title title ."
                                "f-1 f-1 f-2 f-2 f-2"
                                "f-1 f-1 f-2 f-2 f-2"
                                "f-1 f-1 f-2 f-2 f-2"
                                "f-3 f-3 f-4 f-4 f-4"
                                "f-3 f-3 f-4 f-4 f-4"
                                "f-5 f-5 f-5 f-7 f-7"
                                "f-5 f-5 f-5 f-7 f-7"
                                "f-5 f-5 f-5 f-6 f-6"
                                "f-5 f-5 f-5 f-6 f-6";
    }

    .f-3 h2 {
        font-size: 1.2em;
        line-height: 1.2em;
    }

    .button-back {
        left: -2vw;
        rotate: -90deg;
        width: 8vh;
    }

    .button-back a {
        font-size: 1.6em;
        text-align: center;
        width: 100%;
        padding: 0;
    }

    .f-3 h2 {
        font-size: 3vw;
        line-height: 4vw;
        letter-spacing: 2px;
        font-weight: 300;
    }

    .f-6 a p{
        font-size: 3vw;
        line-height: 4vw;
        letter-spacing: 2px;
        font-weight: 300;
    }

    /***********************************/
    /*            IMPRESS              */
    /***********************************/

    .impress-impress{
        margin-top: 10vh;
    }
    #impress-content {
        width: 67%;
    }
    #impress-content p h2 {
        color: var(--color-text-white)
    }
}

@media only screen and (max-width: 840px) {
    .grid-container {
        display: grid;
        grid-gap: 4vw;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
        grid-template-areas:    ". title title title title"
                                "f-1 f-1 f-2 f-2 f-2"
                                "f-1 f-1 f-2 f-2 f-2"
                                "f-1 f-1 f-2 f-2 f-2"
                                "f-3 f-3 f-4 f-4 f-4"
                                "f-3 f-3 f-4 f-4 f-4"
                                "f-5 f-5 f-5 f-7 f-7"
                                "f-5 f-5 f-5 f-7 f-7"
                                "f-5 f-5 f-5 f-6 f-6"
                                "f-5 f-5 f-5 f-6 f-6";
    }

    #title-text {
        font-size: 5vw;
    }

    .button-back {
        position: absolute;
        rotate: 0deg;
        top: 0;
        left: 0;
    }
}



/***********************************/
/*     DARK PATTERNS CHEATSHEET    */
/***********************************/
@media only screen and (max-width: 1600px) {
    .dp-group-title {
        left: -7vw;
    }
    .dp-item h2{
        font-size: 1em;
    }
}

@media only screen and (max-width: 1200px) {
    #dp-nav-wrapper {
        grid-template-columns: 3fr 2fr;
    }

    .dp-group {
        grid-template-columns: repeat(auto-fill, minmax(18%,1fr));
    }
}

@media only screen and (max-width: 1000px) {
    .dp-grid {
        grid-gap: 6vw;
    }

    .dp-group {
        grid-template-columns: repeat(auto-fill, minmax(23%,1fr));
    }
    .dp-group-title h2 {
        text-transform: none;
        font-size: 1rem;
        line-height: 0.5;
    }
    .dp-group-title h3 {
        text-transform: none;
        font-size: 0.8rem;
        line-height: 0.2;
    }
}

@media only screen and (max-width: 800px) {
    #dp-nav{
        width: 60vw;
    }

    .dp-group {
        grid-template-columns: repeat(auto-fill, minmax(30%,1fr));
    }

    .dp-group-title{
        position: relative;
        display: inline-block;
        rotate: 0deg;
        height: 100%;
        width: auto;
        left: 0;
    }
    .dp-group-title h2 {
        text-align: left;
        text-transform: none;
        font-size: 1.4em;
        line-height: 1em;
    }
    .dp-group-title h3 {
        text-align: left;
        text-transform: none;
        font-size: 1.2em;
        line-height: 1.2em;
    }

    #dp-popup-inner {
        margin-top: 20vh;
    }
}

@media only screen and (max-width: 600px) {
    #dp-nav-counter{
        padding-right:7.5vw;
    }
    #wrapper-dark-pattern h1 {
        font-size: 1.4em;
    }
    .dp-grid {
        right:7.5vw;
    }
    .dp-group {
        grid-template-columns: repeat(auto-fill, minmax(48%,1fr));
    }

    .dp-group-title h2 {
        font-size: 1.4em;
    }

    #dp-popup-inner{
        width: 97%;
    }

    #dp-popup-inner-content{
        width: 95%;
        padding-left: 1%;
        padding-right: 1%;
    }
    #dp-popup-inner-content h1{
        font-size: 1.3em;
    }
}

@media only screen and (max-width: 600px) {
    .dp-group-title h2 {
        font-size: 1.2em;
    }
    .dp-group-title h3 {
        font-size: 1em;
    }
}


/***********************************/
/*         CURRICULUM VITAE        */
/***********************************/
@media only screen and (max-width: 1000px) {
    #cv-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .cv-date{
        padding-top: 30%;
        padding-right: 0;
    }
}

@media only screen and (max-width: 600px) {
    .cv-content {
       width: 100vw;
        margin-left: 0;
        padding-top: 5vh;
    }

    .cv-content h1 {
        padding: 0;
    }

    #cv-wrapper {
        width: 100%;
    }
}

@media only screen and (max-width: 500px) {
    .cv-time-line-element p{
        font-size: 0.8rem;
    }

    .cv-time-line-element h3{
        font-size: 1.1rem;
    }
}

/* Privacy Popup Styles */
.privacy-popup {
    position: fixed;
    bottom: -15vh;
    left: 0;
    right: 0;
    height: 15vh;
    background: var(--color-bg-popup);
    color: var(--color-text-light);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: bottom 0.5s ease-in-out;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.privacy-popup.show {
    bottom: 0;
}

.privacy-popup-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    position: relative;
}

.privacy-popup-content p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14pt;
    margin: 0;
    text-align: center;
    color: var(--color-text-light);
}

.close-popup-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.close-popup-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile responsiveness for popup */
@media only screen and (max-width: 768px) {
    .privacy-popup-content p {
        font-size: 12pt;
        padding-right: 40px;
    }
    
    .close-popup-btn {
        right: 10px;
        font-size: 20px;
    }
}

/* Impress page overrides: force text to white only on impress page */
.impress-wrapper {
    color: var(--color-text-white);
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.6;
}

.impress-wrapper p,
.impress-wrapper h1,
.impress-wrapper h2,
.impress-wrapper h3,
.impress-wrapper b,
.impress-wrapper strong,
.impress-wrapper li,
.impress-wrapper a {
    color: var(--color-text-white);
}

.impress-wrapper h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.impress-wrapper p {
    margin-bottom: 15px;
    text-align: justify;
}

.impress-wrapper a:hover,
.impress-wrapper a:visited,
.impress-wrapper a:active {
    color: var(--color-text-white);
}

/* Mobile responsiveness for impress page */
@media only screen and (max-width: 768px) {
    .impress-wrapper {
        padding: 20px 15px;
        max-width: 100%;
    }
    
    .impress-wrapper h3 {
        font-size: 16px;
    }
}

/* CV SECTION NAVIGATION */
.cv-section-nav {
    position: fixed;
    top: 8vh; /* Below main navigation - consistent with main nav height */
    left: 0;
    right: 0;
    background: var(--color-bg-white);
    border-bottom: 2px solid var(--color-primary);
    z-index: 998; /* Lower than main navigation */
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cv-nav-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.cv-nav-link {
    color: var(--color-text-dark);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 0;
    background: transparent;
}

.cv-nav-link:hover {
    background: transparent;
    color: var(--color-text-dark);
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.cv-nav-link.active {
    background: var(--color-primary);
    color: var(--color-text-white);
}

/* CV ACCORDION STYLES */
.cv-accordion-section {
    margin: 0 5% 20px 5%;
    width: 90%;
    border: none;
    border-radius: 0;
    overflow: hidden;
    background: var(--color-bg-white);
}

/* CV Section h4 styling */
.cv-accordion-section h4 {
    line-height: 1.4;
}

.cv-accordion-header {
    margin: 0;
    background: var(--color-primary);
    color: var(--color-text-white);
}

.cv-accordion-toggle {
    width: 100%;
    background: none;
    border: none;
    color: var(--color-text-white);
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0;
    transition: background-color 0.3s ease;
}

.cv-accordion-toggle:hover {
    background: transparent;
    outline: 2px solid var(--color-text-white);
    outline-offset: -6px;
}

.cv-accordion-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-feature-settings: normal;
    font-feature-settings: normal;
    font-family: monospace;
    font-style: normal;
    font-weight: normal;
    text-transform: none;
    -webkit-text-stroke: 0;
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
}

.cv-accordion-toggle[aria-expanded="true"] .cv-accordion-icon {
    transform: rotate(90deg);
}

.cv-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, padding 0.4s ease, transform 0.4s ease;
    background: var(--color-bg-white);
    opacity: 0;
    padding: 0;
    transform: translateY(20px);
}

.cv-accordion-content.open {
    max-height: none; /* Remove height restriction to show all content */
    opacity: 1;
    padding: 20px;
    transform: translateY(0);
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, padding 0.4s ease, transform 0.4s ease;
}

/* CV Content Spacing */
.cv-content {
    padding-top: calc(8vh + 60px); /* Space for main nav (8vh) + CV nav (60px) */
    padding-bottom: 60px; /* Bottom padding for breathing room */
}

/* Mobile Responsiveness for CV Navigation */
@media only screen and (max-width: 768px) {
    .cv-section-nav {
        top: 8vh;
        padding: 8px 0;
    }
    
    .cv-nav-list {
        gap: 10px;
        padding: 0 10px;
    }
    
    .cv-nav-link {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .cv-content {
        padding-top: 60px; /* Further reduced from 80px */
        padding-bottom: 40px;
    }
}

/* Extra small screens where CV nav breaks into multiple rows */
@media only screen and (max-width: 480px) {
    .cv-content {
        padding-top: 120px; /* Increased for multi-row navigation */
    }
    .cv-accordion-toggle {
        font-size: 16px;
        padding: 15px;
    }
    
    .cv-accordion-section {
        margin: 0 5% 15px 5%;
        width: 90%;
    }
}

/* Scroll to Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-text-white);
    border: 2px solid var(--color-text-white);
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-to-top-btn.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top-btn:active {
    transform: translateY(0);
}

/* Mobile responsiveness for scroll to top button */
@media only screen and (max-width: 768px) {
    .scroll-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
    
