/*
    DEMO STYLE
*/
@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";

/* Variables */
:root {
    --bg-color: #000000;
    --bg-gradient: #260508;
    --component-bg-highlight: rgba(0,0,0,0);
    --main-font-color: #E3E2DF;
    --highlight-color: #ED0200;
    --dark-highlight-color: #79100E;
    --grad-orange-color: #E94200;
    --hover-color: #F1F1F1;
    --link-color: #ED0200;
    --card-bg-color: #283042;
    --project-border-color: #FFFF4500;
    --timeline-orange-color: #ff4d0c;
    --timeline-point-color: rgba(237, 2, 0, 0.2);
}


/* ---------------------------------------------------
    PAGE STYLE
----------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: calc(14px + (20 - 14) * ((100vw - 300px) / (1600 - 300)));
    line-height: calc(1.3em + (1.5 - 1.2) * ((100vw - 300px)/(1600 - 300)));
    font-weight: 300;
    color: var(--main-font-color);

    background: radial-gradient(113.22% 146.02% at 86.35% 100%, var(--bg-gradient) 0%, var(--bg-color) 100%);
    background-size: 400% 400%;
    animation: updatebg 5s ease-in-out infinite;
}

/* Background design animation */
@keyframes updatebg {
    0% {
        background-position: 0 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    scroll-snap-align: center;

    text-align: left;

    min-height: 100vh;
    padding: 25px 5%;
}

/* ---------------------------------------------------
    COMPONENT STYLE
----------------------------------------------------- */
a {
    color: var(--link-color);
}

a:hover {
    text-decoration: none;
    color: var(--hover-color);
}

strong {
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--highlight-color);
}


/* ---------------------------------------------------
    GLOBAL CLASS STYLES
----------------------------------------------------- */
.card {
    border: none;
}

.container {
    align-items: center;
    padding-left: 0px;
    padding-right: 0px;
    max-width: 100%;
    max-width: -webkit-fill-available;
    max-width: -moz-available;
}

.fa {
    color: var(--highlight-color);
}

.material-icons,
.icon-text {
    vertical-align: middle;
}

.row {
    height: 100%;
}

.section-header {
    width: 90%;
    text-align: left;
}

.section-header h1 {
    /*background: -webkit-linear-gradient(45deg, var(--highlight-color) 0%, var(--dark-highlight-color) 100%);*/
    /*-webkit-background-clip: text;*/
    /*-webkit-text-fill-color: transparent;*/
}

.teletype {
    font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", "Lucida Console", Monaco, monospace;
}

/* ---------------------------------------------------
    SIDEBAR AND NAVBAR STYLE
----------------------------------------------------- */
.sidebar {
    height: 100%;
    width: 85px;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: var(--bg-color);
    transition: 0.5s;
    overflow-x: hidden;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.sidebar a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
}

#sidenavbar .material-icons {
    padding-bottom: 3px;
    margin-right: 30px;
}

@media screen and (max-width: 1156px) {
    .sidebar {
        display: none;
    }

    #content {
        margin-left: auto;
        margin-right: auto;
        align-self: center;
        width: 95%;
    }
}


@media screen and (min-width: 1156px) {
    #content {
        margin-left: 85px;
    }
}

/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */
#content {
    transition: margin-left 0.5s;
}

/* ---------------------------------------------------
    ABOUT STYLE
----------------------------------------------------- */
#about .btn-group {
    width: 90%;
    border-radius: 25px;
    padding: 40px 0;
}

#about .btn {
    font-weight: 400;
    width: unset;
}

.about-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    height: 100vh;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-self: center;
    width: 50%;
    flex: 1;
}

.about-image {
    background: url(./resources/Deepayan-outline.png) no-repeat center center/contain;
    flex: 1;
}

.colorized-text {
    background: -webkit-linear-gradient(45deg, var(--highlight-color) 0%, var(--grad-orange-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media screen and (max-width: 1156px) {
    .about-image {
        display: none
    }
    .about-content {
        width: 100%;
    }

    #about .btn-group {
        width: 100%;
    }
}


/* ---------------------------------------------------
    EDUCATION STYLE
----------------------------------------------------- */
.edu-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 90%;
}

/*** DEGREE STYLE ***/
.edu-card {
    width: 40%;
    text-align: center;
    background-color: var(--dark-highlight-color);
    color: var(--main-font-color);
    border-radius: .4rem;
}

.edu-card img {
    width: 50%;
    background-color: var(--dark-highlight-color);
}

.edu-card-body {
    background-color: var(--dark-highlight-color);
    border: none;
    margin-top: 0;
    margin-left: 1.1rem;
    margin-right: 1.1rem;
    margin-bottom: 1.1rem;
    padding: 0;
    border-radius: .5rem;
}

.edu-card-text {
    margin-top: -4rem;
}


.edu-card-img {
    transform: translateY(-4rem);
}

.university {
    font-size: 1.7rem;
    line-height: 1.1em;
    font-weight: 500;
}

.degree {
    font-size: 1.3rem;
    font-weight: 500;
}

.focus {
    font-weight: 500;
}
/*** END DEGREE STYLE ***/

/*** COURSEWORK STYLE ***/
.accordion {
    padding: 40px;
    width: 60%;
    overflow-y: auto;
}

/* Horizontal line */
.collapsible-link::before {
    content: '';
    width: 14px;
    height: 2px;
    background:  var(--main-font-color);
    position: absolute;
    top: calc(50% - 1px);
    right: 1rem;
    display: block;
    transition: all 0.3s;
}

/* Vertical line */
.collapsible-link::after {
    content: '';
    width: 2px;
    height: 14px;
    background:  var(--main-font-color);
    position: absolute;
    top: calc(50% - 7px);
    right: calc(1rem + 6px);
    display: block;
    transition: all 0.3s;
}

.collapsible-link[aria-expanded='true']::after {
    transform: rotate(90deg) translateX(-1px);
}

.collapsible-link[aria-expanded='true']::before {
    transform: rotate(180deg);
}
.course-card {
    background-color: var(--card-bg-color);
    border-radius: .4rem!important;
    margin-bottom: 1rem;
}

.course-card-body {
    font-size: 1.1rem;
    font-weight: 300;
}

.course-card-header {
    font-size: 1.1rem;
    text-decoration: none;
    background-color: var(--card-bg-color);
}

.course-card-header a {
    color: var(--main-font-color);
    padding-right: 2.5rem;
}
.course-card-header a:hover {
    text-decoration: none;
    color: var(--main-font-color);
}
/*** END COURSEWORK STYLE ***/


@media screen and (max-width: 1200px) {
    .edu-container {
        flex-direction: column;
        margin-top: 5rem;
    }

    .edu-card {
        width: 90%;
    }

    .accordion {
        width: 100%;
    }
}

/* ---------------------------------------------------
    EXPERIENCE STYLE
----------------------------------------------------- */
.timeline {
    position: relative;
    margin: 50px  auto;
    padding: 40px 0;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: var(--main-font-color);
}

.timeline ul {
    margin: 0;
    padding: 0;
}

.timeline ul li {
    list-style: none;
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}

.timeline ul li:nth-child(odd) {
    float: left;
    text-align: right;
    clear: both;
    padding-right: 15px;
}

.timeline ul li:nth-child(even) {
    float: right;
    text-align: left;
    clear: both;
    padding-left: 15px;
}

.content {
    padding-bottom: 20px;
}

.timeline ul li:nth-child(odd):before {
    content: '';
    position: absolute;
    right: -6px;
    width: 10px;
    height: 10px;
    background: var(--highlight-color);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--timeline-point-color);
}

.timeline ul li:nth-child(even):before {
    content: '';
    position: absolute;
    left: -4px;
    width: 10px;
    height: 10px;
    background: var(--highlight-color);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--timeline-point-color);
}

.timeline ul li:nth-child(odd) h3 {
    margin: 0;
    padding: 0;
    background: -webkit-linear-gradient(45deg, var(--highlight-color) 0%, var(--timeline-orange-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timeline ul li:nth-child(even) h3 {
    margin: 0;
    padding: 0;
    background: -webkit-linear-gradient(45deg, var(--timeline-orange-color) 0%, var(--highlight-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timeline ul li h4 {
    font-weight: 400;
    color: var(--highlight-color)
}

.timeline ul li h5 {
    font-weight: 400;
    color: var(--timeline-orange-color)
}

.timeline ul li p {
    margin: 10px 0 0;
    padding: 0;
}

@media screen and (max-width: 767px) {
    .timeline:before {
        left: 20px;
    }

    .timeline li:nth-child(even),
    .timeline li:nth-child(odd) {
        width: 100%!important;
        text-align: left!important;
        padding-left: 40px!important;
        padding-right: 0!important;
    }

    .timeline ul li h3 {
        background: -webkit-linear-gradient(45deg, var(--timeline-orange-color) 0%, var(--highlight-color) 100%)!important;
        -webkit-background-clip: text!important;
        -webkit-text-fill-color: transparent!important;
    }

    .timeline ul li:before {
        left: 16px!important;
    }
}


/* ---------------------------------------------------
    PROJECT STYLE
----------------------------------------------------- */
.project-card {
    width: 75%;
    max-width: 98rem;
    padding: 5rem;
    display: flex;
    align-items: center;
    text-align: left;
    border-radius: .8rem;
    border: 6px solid orangered;
    border-style: double;
    margin: 40px 0;
}

.project-card__award, .project-card__location {
    display: block;
    color: var(--main-font-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin: .5rem 0;
}

.project-card__btn {
    display: inline-block;
    padding: 1rem 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--main-font-color);
    background-image: linear-gradient(to right, var(--dark-highlight-color) 0%, var(--highlight-color) 100%);
    border-radius: .8rem;
    text-decoration: none;
}

.project-card__btn:hover {
    background-image: linear-gradient(to right, var(--highlight-color) 0%, var(--dark-highlight-color) 100%);
}

.project-card__presentation {
    min-width: 30rem;
    max-width: 30rem;
    height: 25rem;
}

.project-card__presentation_left {
    transform: translateX(-8rem);
}

.project-card__presentation_right {
    transform: translateX(8rem);
}

.project-card__presentation iframe {
    width: 100%;
    height: 100%;
    border-radius: .8rem;
    border: 2px solid var(--grad-orange-color);
}

.project-card__presentation::before {
    width: 100%;
    height: 100%;
    border-radius: .8rem;
}

.project-card__text {
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.7em;
    color: var(--main-font-color);
}

@media screen and (max-width: 1068px) {
    .project-card{
        max-width: 80rem;
    }

    .project-card__presentation {
        min-width: 25rem;
        max-width: 25rem;
    }
}

@media screen and (max-width: 1500px) {
    .project-card{
        padding: 2.5rem;
        flex-direction: column;
    }

    .project-card__presentation {
        min-width: 100%;
        max-width: 100%;
        transform: translate(0, -4rem);
    }
    .has-right div:first-child {
        order: 1;
    }
}

@media screen and (max-width: 860px) {
    .project-card__presentation {
        display: none;
    }

    .project-card__info {
        text-align: center;
    }
}

@media screen and (orientation:portrait) {
    .project-card{
        padding: 2.5rem;
        flex-direction: column;
    }

    .project-card__presentation {
        min-width: 100%;
        max-width: 100%;
        transform: translate(0, -2rem);
    }
}

/* ---------------------------------------------------
    SKILL STYLE
----------------------------------------------------- */
.btn-group {
    width: 75%;
    border-radius: 25px;
}


.btn {
    width: 20%;
    border-radius: 25px;
    border: 2px solid var(--main-font-color);
    color: var(--main-font-color);
}

.btn .fa {
    color: var(--main-font-color);
}

.no-click {
    pointer-events: none;
}

circle {
    stroke-width: 8px;
    stroke: var(--highlight-color);
    fill: var(--dark-highlight-color);
    /*animation: circle--animation 2s linear backwards;*/
}

circle p {
    vertical-align: middle;
    display: table-cell;
}

.skill-row {
    text-align: center;
}

.skill-container {
    width: 33.333%;
    float: left;
    text-align: center;
    display: flex;
    flex-direction: column;
}

svg {
    align-self: center;
}

@media screen and (max-width: 700px) {
    #skills .btn  {
        font-size: 0;
    }
    #skills .fa, .fab, .fas {
        font-size: initial;
    }
}

/* ---------------------------------------------------
    CONTACT STYLE
----------------------------------------------------- */
#contact {
    justify-content: center;
}

.contact-info {
    display: flex;
    width: 100%;
    max-width: 1200px;
    align-items: center;
    justify-content: center;
    padding: 10% 20px;
}

#contact .card {
    background-color: var(--component-bg-highlight);
    padding: 0 20px;
    margin: 0 10px;
    width: calc(25% - 20px);
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--main-font-color);
    cursor: pointer;
    border-radius: 15%;
}

#contact .card-icon {
    font-size: 40px;
    background-image: radial-gradient(var(--dark-highlight-color), var(--highlight-color));
    opacity: 0.9;
    width: 80px;
    height: 80px;
    text-align: center;
    line-height: 80px;
    border-radius: 50%;
    transition: 0.3s linear;
}

#contact .card i {
    color: var(--main-font-color);
}

#contact .card:hover i {
    background: none;
    color: var(--grad-orange-color);
    transform: scale(1.6);
}

#contact .card p {
    margin-top: 20px;
    font-weight: 300;
    letter-spacing: .05rem;
    max-height: 0;
    opacity: 0;
    transition: 0.3s linear;
}

#contact .card:hover p {
    max-height: 40px;
    opacity: 1;
}

@media screen and (max-width: 800px) {
    .contact-info {
        flex-direction: column;
    }

    #contact .card {
        width: 80%;
        max-width: 300px;
        margin: 10px 0;
    }
}