@import url('https://fonts.googleapis.com/css2?family=Istok+Web:ital,wght@0,400;0,700;1,400;1,700&family=Sen:wght@400..800&display=swap');
:root{
    --font-title: 'Sen', sans-serif;
    --font-paragraph: 'Istok Web', sans-serif;
    --font-clr-title: #7567BE;
    --font-clr-subtitle: #C2BCDF;
    --bg-color: #2D2553;
    --font-clr-body: #FFFFFF;
    --border-clr: #7567BE;
    --cta-clr: #F5FFA1;
    --sky-blue: #31A8FF;
    --coral: #FF7262;
    --violet: #6A33EC;
    --black: #000000;
    --light-blue: #24ACF2;
    --deep-violet: #7411F6;
    --ocean-blue: #00759D;
    --magenta: #9E2C6B;
}
html, body{
    height: 100%;
}
html{
    scroll-behavior: smooth;
}
.mail-button{
    position: fixed;
    right: 40px;           
    bottom: 40px;          
    width: 60px;           
    height: 60px;
    background-color: var(--cta-clr);
    border-radius: 100px;  
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.2s, background-color 0.2s;
}
.mail-button svg{
    width: 70%;
    height: 70%;
    fill: var(--bg-color);
}
.mail-button:hover, .mail-button:focus{
    transform: scale(1.1);
    background-color: var(--violet);
}
.mail-button:focus{
    box-shadow:  0 0 0 2px var(--border-clr);
}
.mail-button:hover svg, .mail-button:focus svg{
    fill: var(--font-clr-subtitle);
}
header nav ul{
    list-style: none; 
    margin: 0; 
    padding: 0; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
}
header nav ul li{
    text-align: right;
}
header nav ul li a{
    text-decoration: none;
    color: var(--font-clr-subtitle);
    font-family: var(--font-title);
    font-weight: 500;
    white-space: nowrap;
}
header nav ul li:last-child a{
    color: var(--cta-clr);
}
/* Burger menu */
header{
    width: 100%;
    display: flex;
    flex-direction: column;
}
.menu-toggle{
    all: unset;
    display: none;
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}
.menu-toggle span{
    width: 22px;
    height: 2px;
    background: var(--font-clr-subtitle);
    display: block;
}
header nav .main-menu{
    align-items: flex-end;
}
header nav .main-menu li{
    text-align: right;
}
body{
    background-color: var(--bg-color);
    padding: 50px 100px;
}
h2{
    font-family: var(--font-title);
    color: var(--font-clr-title);
    text-transform: uppercase;
    margin-bottom: 40px;

}
h3{
    font-family: var(--font-title);
    color: var(--font-clr-subtitle);
    margin-bottom: 20px;
}
h4, a{
    font-family: var(--font-paragraph);
    color: var(--font-clr-body);
}
p{
    font-family: var(--font-paragraph);
    color: var(--font-clr-body);
    margin: 0;
    line-height: 1.4;
}
main > section{
    margin-bottom: 100px;
}
.photoshop{
    color: var(--sky-blue);
}
.figma{
    color: var(--coral);
}
.canva{
    color: var(--violet);
}
.capcut{
    color: var(--black);
}
.vs-code{
    color: var(--light-blue);
}
.bootstrap{
    color: var(--deep-violet);
}
.wordpress{
    color: var(--ocean-blue);
}
.elementor{
    color: var(--magenta);
}
.tool-card{
    display: grid;
    grid-template-columns: repeat(auto-fit, 140px);
    gap: 40px;
    justify-content: flex-start;
    margin-top: 40px;
    margin-bottom: 20px;
}
.tool-card > div{
    height: 100px;
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-clr);
    border-radius: 3px;
    overflow: visible;
}
.tool-card h4{
    margin: 0;
    line-height: 1.4;
} 
.img-container{
    width: 70px;
    height: 70px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-container img{
    width: 80%;
    height: 80%;
    object-fit: contain;
    display: block;
}
.tool-card.languages-card > div{
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--font-clr-body);
}
.tool-card.languages-card{
    margin-top: 20px;
}
.tool-card.languages-card > div:nth-child(1){
    background-image: url("../img/skills/html.webp");
}
.tool-card.languages-card > div:nth-child(2){
    background-image: url("../img/skills/css.webp");
}
.tool-card.languages-card > div:nth-child(3){
    background-image: url("../img/skills/javascript.webp");
}
.tool-card.languages-card > div{
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.tool-card.languages-card > div::before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
.tool-card.languages-card h4{
    z-index: 1;
}
#my-skills .tool-card{
    margin-bottom: 40px;
}#my-values{
    display: flex;
    flex-direction: column;
    width: 70%;
}
#my-values div{
    display: flex;
    align-items: stretch;
    margin-bottom: 20px;
}
#my-values h3{
    color: var(--font-clr-body);
    margin: 0;
    line-height: 1.4;
    min-width: 200px;
    text-align: center;
    align-content: center;
    border-left: 1px solid transparent;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    text-transform: uppercase;
}
#my-values > div:nth-of-type(1) > h3{
    background-color: var(--sky-blue);
}
#my-values > div:nth-of-type(2) > h3{
    background-color: var(--coral);
}
#my-values > div:nth-of-type(3) > h3{
    background-color: var(--violet);
}
#my-values > div:nth-of-type(4) > h3{
    background-color: var(--light-blue);
}
#my-values > div:nth-of-type(5) > h3{
    background-color: var(--deep-violet);
}
#my-values > div:nth-of-type(6) > h3{
    background-color: var(--ocean-blue);
}
#my-values > div:nth-of-type(7) > h3{
    background-color: var(--magenta);
}
#my-values p{
    flex: 1;
    margin: 0;
    line-height: 1.6;
    border: 1px solid var(--border-clr);
    border-left: none;
    text-align: start;
    padding: 10px 20px;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}
#about-me{
    width: 70%;
}
#about-me div{
    display: flex;
    flex-direction: row;
    gap: 50px;
}
#about-me img{
    width: auto;
    height: 250px;
}
#my-inspirations > p{
    width: 70%;
}
#my-inspirations > div{
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 125px;
    align-items: stretch;
}
#my-inspirations > div > div{
    position: relative;
    display: grid;
    grid-template-rows: auto auto 1fr;   
    border: 1px solid var(--border-clr);
    border-radius: 3px;
    padding-top: 140px; 
    overflow: visible;
    text-align: start;
}
#my-inspirations img{
    width: 250px;
    height: auto;
    position: absolute;
    inset-inline: 0;
    margin-left: auto;
    margin-right: auto;
    top: -125px;
    z-index: 1;
}
#my-inspirations h3{
    text-transform: uppercase;
    margin-top: 40px;
    margin-bottom: 40px;
}
#my-inspirations h4{
    background-color: var(--border-clr);
    width: 100%;
    text-align: center;
    line-height: 1.4;
    padding: 5px 0;
    margin: 0;
    z-index: 2;
}
#my-inspirations a{
    text-decoration: none;
}
#my-inspirations > div > div p{
    margin: 0;
    padding: 20px;
}
#contact{
    width: 70%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
#contact > h2{
    width: 100%;
}
.contact-layout{
    display: flex;
    width: 100%;
    gap: 100px; 
    align-items: stretch;
}
.contact-text{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.intro-contact{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.intro-contact > p{
    width: 100%;
}
.contact-cta{
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding: 7px 14px;
    background-color: var(--cta-clr);
    border: 1px solid var(--cta-clr);
    border-radius: 20px;
    margin-top: 25px;
}
.contact-cta > svg{
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: var(--bg-color);
}
.contact-cta > a{
    color: var(--bg-color);
    font-weight: 600;
    text-decoration: none;
}
.contact-img{
    flex: 1;
    display: flex;
    align-items: center;
}
.contact-img > img{
    width: 150px;
    height: auto;
    display: block;
    background: var(--font-clr-subtitle);
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 100px 100px 0px 0px;
}
#footer{
    margin-top: 150px;
    padding-top: 40px;
    background-color: var(--bg-color);
    color: var(--font-clr-body);
    font-family: var(--font-paragraph);
    border-top: 1px solid var(--border-clr);
}
#footer > div > section:first-of-type {
    margin-bottom: 80px;
}
#footer > div > section:last-of-type{
    margin-bottom: 0;
}
#footer > div{
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
#footer > div > section:first-of-type{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}
#footer > div > section:first-of-type > div:first-child{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}
#footer > div > section:first-of-type > div:first-child p:first-child{
    margin: 0;
    font-family: var(--font-title);
    color: var(--font-clr-title);
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
#footer > div > section:first-of-type > div:first-child p:last-child{
    margin: 0;
    font-size: 16px;
    color: var(--font-clr-subtitle);
}
#footer > div > section:first-of-type > div:last-child{
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
#footer > div > section:first-of-type svg{
    width: 18px;
    height: 18px;
    fill: var(--font-clr-subtitle);
}
#footer > div > section:first-of-type a[href^="mailto"], #footer > div > section:last-of-type nav a, #footer > div > section:last-of-type > div a{
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}
#footer > div > section:first-of-type a[href^="mailto"]{
    color: var(--font-clr-body);
}
#footer > div > section:last-of-type nav a{
    color: var(--font-clr-body);
    font-size: 13px;
    font-family: var(--font-paragraph);
}
#footer > div > section:last-of-type > div a{
    color: var(--font-clr-subtitle);
}
#footer > div > section:first-of-type a[href^="mailto"]::after, #footer > div > section:last-of-type nav a::after, #footer > div > section:last-of-type > div a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 100%;
    transform-origin: left;
    transform: scaleX(0);
    background-color: var(--cta-clr);
    transition: transform 0.2s ease-out;
}
#footer > div > section:first-of-type a[href^="mailto"]:hover, #footer > div > section:last-of-type nav a:hover, #footer > div > section:last-of-type > div a:hover{
    color: var(--cta-clr);
}

#footer > div > section:first-of-type a[href^="mailto"]:hover::after, #footer > div > section:last-of-type nav a:hover::after, #footer > div > section:last-of-type > div a:hover::after{
    transform: scaleX(1);
}
#footer > div > section:last-of-type {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}
#footer > div > section:last-of-type nav{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    order: 1;
}
#footer > div > section:last-of-type > div{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--font-clr-subtitle);
    order: 2;
    font-size: 13px;
}
#footer > div > section:last-of-type > div p{
    margin: 0;
}
#privacy-modal .modal {
    position: relative;
    max-width: 720px;
    width: 100%;
    max-height: 80vh;
    background-color: var(--bg-color);
    color: var(--font-clr-body);
    border-radius: 20px;
    border: 1px solid var(--border-clr);
    padding: 30px 20px 30px 30px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
}
#privacy-modal .modal > [data-close-modal] {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    color: var(--font-clr-body);
    font-family: var(--font-title);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s ease;
}
#privacy-modal .modal > [data-close-modal]:hover{
    color: var(--cta-clr);
}
#privacy-modal .modal-body {
    margin-top: 20px;
    padding-right: 40px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    scrollbar-width: thin;  
    scrollbar-color: var(--cta-clr) transparent; 
}
#privacy-modal .modal-body::-webkit-scrollbar{
    width: 10px;
}
#privacy-modal .modal-body::-webkit-scrollbar-track{
    background: rgba(255, 255, 255, 0.07);
    border-radius: 10px;
}
#privacy-modal .modal-body::-webkit-scrollbar-thumb{
    background: var(--cta-clr);
    border-radius: 20px;
}
#privacy-modal .modal-body::-webkit-scrollbar-thumb:hover{
    background: var(--cta-clr);
}
#privacy-modal h2{
    font-size: 20px;
    margin: 0;
}
#privacy-modal h3{
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}
#privacy-modal a{
    color: var(--cta-clr);
    text-decoration: none;
}
#privacy-modal a:hover{
    text-decoration: underline;
}
#privacy-modal{
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    font-family: var(--font-paragraph);
}
#privacy-modal[aria-hidden="false"]{
    display: flex;
}
#privacy-modal .modal-backdrop{
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}
body.modal-open{
    overflow: hidden;
}
#privacy-modal {
    z-index: 1100;
}
/* Tablet */
@media screen and (min-width: 769px) and (max-width: 1024px){
    body{
        padding: 32px 40px;
    }
    header nav ul{
        justify-content: center;
        gap: 50px;
    }
    .tool-card{
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    #my-values{
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    #my-values > div{
        flex: 1 1 calc(50% - 10px);
    }
    #my-values > div h3{
        font-size: 18px;
        padding: 0 10px;
        flex: 0 0 30%;
    }
    #my-values > div p{
        flex: 1;
    }
    #about-me{
        width: 100%;
        justify-content: center;
    }
    #about-me img{
        width: auto;
        height: 250px;
    }
    #my-inspirations > p{
        width: 100%;
    }
    #my-inspirations > div{
        display: grid;
        grid-template-columns: repeat(1, minmax(250px, 1fr));
        gap: 125px;
        margin-top: 125px;
        align-items: stretch;
    }
    #contact{
        width: 100%;
    }
    #footer > div > section:first-of-type{
    margin-bottom: 40px;
    }
    #footer > div > section:last-of-type{
        flex-direction: row;         
        justify-content: space-between;
        align-items: flex-end;
    }
    #footer > div > section:last-of-type nav{
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        flex: 1 1 60%;
    }
    #footer > div > section:last-of-type > div{
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        flex: 0 0 auto;
    }
}
/* Mobile */
@media screen and (min-width: 360px) and (max-width: 768px){
    body{
        padding: 32px;
        overflow-x: hidden;
    }
    .menu-toggle{
        display: flex;
    }
    header{
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    header nav .main-menu{
        display: none;
        flex-direction: column;
        gap: 8px;
        padding: 0;
        margin: 0;
        width: 100%;
    }
    body.nav-open{
        overflow: hidden;
    }
    body.nav-open header nav .main-menu{
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        left: 0; 
        height: 100vh;  
        padding: 30px;
        background-color: var(--bg-color);
        z-index: 999;
        overflow: hidden;
        gap: 10px;
    }
    header nav .main-menu li{
        flex: unset;
        width: 100%;
        text-align: left;
    }
    header nav .main-menu li a{
        display: block;
        width: 100%;
        padding: 6px 0;
        text-align: left;
    }
    body.nav-open .menu-toggle span:nth-child(1){
    transform: translateY(7px) rotate(45deg);
    }
    body.nav-open .menu-toggle span:nth-child(2){
        opacity: 0;
    }
    body.nav-open .menu-toggle span:nth-child(3){
        transform: translateY(-7px) rotate(-45deg);
    }
    .tool-card{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
        justify-content: center;
    }
    #my-values{
      flex-direction: column;
      width: 100%;
      justify-content: center;
   }
    #my-values div{
      flex-direction: column;
    }
    #my-values h3{
       flex: 1 1 100%;
       text-align: center;
       border-radius: 3px 3px 0 0;
       padding: 5px 10px;
    }
    #my-values p{
       border-top: 0;
       border-left: 1px solid var(--border-clr);
       border-radius: 0 0 3px 3px;
    }
    #about-me{
        width: 100%;
        justify-content: center;
    }
    #about-me > div{
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    #about-me img{
        width: auto;
        height: 200px;
    }
     #my-inspirations > div{
        grid-template-columns: 1fr;
        gap: 140px;
    }
    #my-inspirations > p {
        width: 100%;
    }
    #contact{
        width: 100%;
        align-items: center;
    }
    .contact-layout{
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 40px;
    }
    .contact-text{
        flex: unset;
        width: 100%;
        text-align: center;
        align-items: center;
    }
    .intro-contact > p{
        width: 100%;
        text-align: start;
    }
    .contact-cta{
        justify-content: center;
        width: 80%;
    }
    #footer > div > section:first-of-type{
        margin-bottom: 24px;
    }
    #footer > div > section:first-of-type > div:last-child{
        display: grid;    
        grid-template-columns: auto 1fr;
        row-gap: 6px;
        column-gap: 8px;
        align-items: center;
    }
    #footer > div > section:first-of-type > div:last-child > svg:first-of-type{
        grid-column: 1;
        grid-row: 1;
    }
    #footer > div > section:first-of-type > div:last-child > a{
        grid-column: 2;
        grid-row: 1;
    }
    #footer > div > section:first-of-type > div:last-child > svg:last-of-type{
        grid-column: 1;
        grid-row: 2;
    }
    #footer > div > section:first-of-type > div:last-child > p{
        grid-column: 2;
        grid-row: 2;
    }
    #footer > div > section:last-of-type{
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 20px;
        width: 100%;
    }
    #footer > div > section:last-of-type nav{
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        flex: unset;
        width: 100%;
    }
    #footer > div > section:last-of-type > div{
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        flex: unset;
        width: 100%;
    }
    #footer > div > section:first-of-type > div:last-child > span{
        display: none;
    }
    body.modal-open .menu-toggle{
        display: none;
    }
    #privacy-modal .modal{
        width: 70%;
        height: 70%;
    }
}
