:root {
    --main-background-color: #161616;
    --main-text-color: #9ba1a5;
    --main-text-hover-color: #ffffff;
    --highlight-text-color: #ffffff;
    --card-background: #202021;
    --glass-color: 70, 70, 70;
    --second-glass-color: 51, 51, 51;
}

body.light-mode {
    --main-background-color: #f2f3f5;
    --main-text-color: #161616;
    --main-text-hover-color: #000000;
    --highlight-text-color: #000000;
    --card-background: #e3e3ea;
    --glass-color: 200, 200, 200;
    --second-glass-color: 130, 130, 130;
}

@font-face {
    font-family: cubano;
    src: url("../fonts/cubano.ttf");
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    line-height: 30px;
    box-sizing: border-box;
    text-decoration: none;
    scroll-behavior: smooth;
    scroll-padding: 120px;
}

::-webkit-scrollbar {
    width: 0px;
}

::-moz-selection {
    color: #000000;
    background-color: rgb(144, 26, 228);
}

::selection {
    color: #000000;
    background-color: rgb(144, 26, 228);
}

body {
    background-color: var(--main-background-color);
    color: var(--main-text-color);
    display: flex;
    justify-content: center;
}

header {
    position: fixed;
    top: 30px;
    width: 80%;
    max-width: 720px;
    height: 60px;
    background: rgba(var(--glass-color), 0.2);
    backdrop-filter: blur(7px);
    border: 1px solid rgba(var(--glass-color), 0.18);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: 20px;
    z-index: 1000;
}

header a {
    height: 100%;
    display: flex;
    align-items: center;
}

header img {
    height: 80%;
    object-fit: contain;
    filter: drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.15));
}


body.light-mode header img {
    filter: invert(.8);
}

header ul {
    list-style-type: none;
    display: flex;
    gap: 10px;
}

header ul li a {
    font-size: 16px;
    color: #6e6e6e;
    text-decoration: none;
    transition: all .2s ease-in-out;
}

header ul li a:hover {
    color: var(--main-text-color);
}

main {
    padding-top: 120px;
    max-width: 720px;
}

@media screen and (max-width: 800px) {
    main {
        padding-inline: 4%;
    }

    .header-nav {
        display: none;
    }

    header::after {
        content: 'me@meren.com.tr';
        font-size: 14px;
        color: #6e6e6e;
        line-height: normal;
    }
}

.page-load-anim .gradient {
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    position: fixed;
    top: 0;
    background: radial-gradient(circle, rgba(22, 22, 22, 0) 0%, rgba(22, 22, 22, 1) var(--p));
}

.page-load-anim {
    width: 100%;
    height: 100dvh;
    background-color: #121212;
    position: fixed;
    z-index: 9000;
}

.page-load-anim * {
    font-family: "Courier", 'Courier New', monospace;
    font-size: 20px;
    line-height: 30px;
}

.page-load-anim p {
    margin: 0;
    word-wrap: break-word;
    font-size: 20px;
    line-height: 30px;
    color: var(--main-text-color)c0;
}

.page-load-anim span {
    font-size: 20px;
    line-height: 30px;
    position: fixed;
    top: var(--line);
    left: 50%;
    transform: translateX(-50%);
    color: var(--main-text-color)c0;
    background-color: #121212;
    z-index: 9900;
    transition: color .2s ease-in-out;
    animation: page-load-anim .3s ease-in-out 1600ms forwards;
    padding-inline: 2px;
}

.page-load-anim span i {
    font-style: normal;
    text-transform: lowercase;
    color: var(--main-text-color)c0;
}

@keyframes page-load-anim {
    0% {
        top: var(--line);
    }

    100% {
        top: -60px;
    }
}

section {
    margin-bottom: 60px;
}

.hero-section h1 {
    font-family: cubano, sans-serif;
    font-size: 64px;
    line-height: 1;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--highlight-text-color);
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.socials .social {
    background-color: var(--card-background);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-text-color);
    transition: all .2s ease-in-out;
}

.socials .social:hover {
    color: var(--main-text-hover-color);
    transform: translateY(-2px);
}

.social.social-detail {
    width: auto;
    padding-inline: 12px;
    font-size: 14px;
}

.social.social-detail i {
    margin-right: 8px;
}

@media screen and (max-width: 800px) {
    .hero-section h1 {
        font-size: 32px;
    }

    .hero-section p {
        font-size: 15px;
    }
}

@media screen and (max-width: 400px) {
    .hero-section p {
        font-size: 15px;
        line-height: 1.5;
    }
}

.heading {
    font-size: 24px;
    font-weight: 400;
    font-family: cubano, sans-serif;
    text-align: center;
    color: var(--highlight-text-color);
}

.subheading {
    color: #aaa;
    margin-top: 4px;
    text-align: center;
    font-size: 16px;
    line-height: normal;
}


.all-projects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

@media screen and (max-width: 800px) {
    .all-projects {
        grid-template-columns: 1fr;
    }
}

.projects-section .projects-image {
    padding-bottom: 56%;
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    transition: scale 0.2s ease-in-out;
}

.projects-section .projects-image:hover {
    scale: 98%;
}

.projects-title {
    color: var(--highlight-text-color);
    margin-top: 10px;
    font-family: cubano;
}

.projects-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.projects-meta .projects-category {
    font-size: 14px;
    background-color: rgb(144, 26, 228, .2);
    color: rgb(144, 26, 228);
    padding: 2px 6px;
    border-radius: 8px;
}

.projects-meta .projects-date {
    font-size: 14px;
    line-height: normal;
}

.projects-desc {
    font-size: 16px;
    line-height: 1.5;
    display: none;
}

.section-footer {
    text-align: center;
    margin-top: 20px;
}

.view-more-btn {
    background-color: rgba(144, 26, 228, 0.436);
    color: rgb(171, 55, 255);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s ease-in-out;
    font-size: 14px;
    line-height: normal;
}

.view-more-btn:hover {
    background-color: rgba(144, 26, 228, 0.538);
    color: rgb(171, 55, 255);
    box-shadow: 0px 0px 15px 1px rgb(144 26 228 / 30%);
}

.education-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.education-list .education {
    background-color: var(--card-background);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    gap: 20px;
}

@media screen and (max-width: 350px) {
    .education-list .education {
        flex-direction: column;
    }
}

.education-list .education .education-icon {
    flex: 0 0 20%;
}

.education-list .education .education-icon img {
    width: 100%;
    border-radius: 12px;
}

.education-list .education-info .education-year {
    font-size: 15px;
    background-color: rgb(144, 26, 228, .2);
    color: rgb(144, 26, 228);
    padding: 2px 6px;
    border-radius: 8px;
    width: fit-content;
    line-height: normal;
    margin-bottom: 6px;
}

.education-list .education-info .education-degree {
    font-family: cubano;
    color: var(--highlight-text-color);
}

.education-list .education-info .education-desc {
    font-size: 14px;
    line-height: 1.5;
}


.certificate-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.certificate-list .certificate {
    background-color: var(--card-background);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    gap: 20px;
}

@media screen and (max-width: 350px) {
    .certificate-list .certificate {
        flex-direction: column;
    }
}

.certificate-list .certificate .certificate-icon {
    flex: 0 0 20%;
}

.certificate-list .certificate .certificate-icon img {
    width: 100%;
    border-radius: 12px;
}

.certificate-list .certificate-info .certificate-year {
    font-size: 15px;
    background-color: rgb(144, 26, 228, .2);
    color: rgb(144, 26, 228);
    padding: 2px 6px;
    border-radius: 8px;
    width: fit-content;
    line-height: normal;
    margin-bottom: 6px;
}

.certificate-list .certificate-info .certificate-degree {
    font-family: cubano;
    color: var(--highlight-text-color);
}

.certificate-list .certificate-info .certificate-desc {
    font-size: 14px;
    line-height: 1.5;
}

.references {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

@media screen and (max-width: 800px) {
    .references {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 460px) {
    .references {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

.references .reference {
    background-color: var(--card-background);
    border-radius: 18px;
    padding: 14px;
}

.reference .reference-image img {
    width: 100%;
    border-radius: 12px;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: top;
}

.reference .reference-name {
    font-family: cubano;
    color: var(--highlight-text-color);
}

.reference .reference-title {
    font-size: 16px;
    line-height: normal;
}

.reference .reference-contacts {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
}

.reference .reference-contact {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    line-height: normal;
    color: var(--main-text-color);
}

.reference .reference-contact i {
    font-size: 14px;
    line-height: normal;
}

.skills {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

@media screen and (max-width: 800px) {
    .skills {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media screen and (max-width: 350px) {
    .skills {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.skills .skill {
    background-color: var(--card-background);
    border-radius: 18px;
    padding: 16px;
    transition: transform .2s ease-in-out;
    aspect-ratio: 1;
}

.skills .skill:hover {
    transform: translateY(-2px);
}

.skills .skill-logo img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}



.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 40px 10px 40px;
    background: rgba(var(--second-glass-color), 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(var(--glass-color), 0.18);
    border-radius: 20px 20px 0 0;
}

.bottom-nav>*:not(.divider) {
    cursor: pointer;
}

.divider {
    width: 6px;
    background-color: #3a3a3a;
    border-radius: 50%;
    aspect-ratio: 1;
}

.language-selector {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(39, 39, 39, 0.6);
    backdrop-filter: blur(20px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    display: none;
}

.language-selector-inner {
    background: rgba(39, 39, 39, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(var(--glass-color), 0.18);
    width: 400px;
    min-height: 50%;
    border-radius: 12px;
    padding: 20px;
    animation: languageSelector .3s ease-in-out;
}

body.light-mode .language-selector-inner {
    background: rgb(255 255 255 / 100%);
}

body.light-mode .language-selector-inner ul li a:hover {
    background-color: rgb(239, 237, 237);
}

@keyframes languageSelector {
    from {
        transform: translateY(50%);
    }

    to {
        transform: translate(0);
    }
}

.language-selector-inner ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
}

.language-selector-inner ul li {
    width: 100%;
    height: 50px;
}

.language-selector-inner ul li a {
    display: flex;
    align-items: center;
    padding-inline: 10px;
    color: var(--main-text-color);
    width: 100%;
    height: 100%;
}

.language-selector-inner ul li a:hover {
    background: rgb(35, 35, 35);
    border-radius: 10px;
}

.back-to-top {
    position: fixed;
    right: 60px;
    bottom: 60px;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--highlight-text-color);
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: var(--card-background);
}

.update-alert {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 10px 20px;
    border-radius: 10px;
    background: rgba(var(--glass-color), 0.2);
    backdrop-filter: blur(7px);
    border: 1px solid rgba(var(--glass-color), 0.18);
    max-width: 300px;
    font-size: 16px;
    animation: update-alert .6s ease-in-out;
}

.update-alert b {
    font-size: 16px;
}

@keyframes update-alert {
    0% {
        bottom: -100px;
    }

    50% {
        bottom: 20px;
    }
    
    75% {
        background: rgba(var(--glass-color), 0.4);
    }
    
    100% {
        background: rgba(var(--glass-color), 0.2);
    }
}

/* REVIEWS */
