/* Fonts */
@font-face {
  font-family: 'ComfortaaRegular';
  src: url('../font/Comfortaa-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ComfortaaLight';
  src: url('../font/Comfortaa-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ComfortaaBold';
  src: url('../font/Comfortaa-Bold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
/* ---------------------------- */

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

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-family: 'ComfortaaRegular';
    color: #fff;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(35deg, #201030 8%, #24345d 40%, #105c87 60%, #0086a8 80%, #06b0bd 90%, #5bdac8 100%);
    z-index: -1;
}

a {
    text-decoration: none;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(35deg, #201030 8%, #24345d 40%, #105c87 60%, #0086a8 80%, #06b0bd 90%, #5bdac8 100%);
    z-index: -1;
}

.main-content {
    position: absolute;
    width: 100%;
    padding: 100px 0 100px 0;
}
/* ---------------------------- */

/* Mouse Spotlight */
.spotlight {
    position: fixed;
    inset: 0;
    background: radial-gradient(
        600px at 50% 50%,
        rgba(91, 218, 200, 0.15),
        transparent 80%
    );
}
/* ---------------------------- */

/* Language Picker */
.language-selector {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-left: auto;
}
.language-selector button {
    font-family: 'ComfortaaBold';
    font-size: 12px;
    color: rgb(145, 175, 255);
    border: none;
    background: none;
    padding: 4px 16px;
    cursor: pointer;
    text-align: center;
    justify-content: center;
}
.language-options {
    display: none;
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
}
.language-options button {
    display: block;
    padding: 10px;
    width: 100px;
}
.language-options button:hover {
    background: rgba(0, 0, 0, 0.75);
}
.language-selector:hover .language-options {
    display: block;
}
/* --------------------------- */

/* Header */
header {
    position: fixed;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

header .logo {
    padding-left: 30px;
}

header .logo a {
    font-size: 24px;
    font-family: 'ComfortaaBold';
    color: #fff;
    outline: none;
    text-decoration: none;
}

header nav {
    padding-right: 30px;
    box-sizing: border-box;
}

header nav ul {
    display: flex;
    list-style: none;
    padding-left: 0;
}

.nav-item {
    display: inline-block;
    font-family: 'ComfortaaBold';
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 5px 0;
    margin: 0 10px;
    border: 3px solid transparent;
    transition: opacity 0.5s ease;
    outline: none;
    text-decoration: none;
}

.logo img {
    max-height: 40px;
}

.navbar {
    cursor: pointer;
    display: none;
    margin-right: 30px;
}

.navbar div {
    transition: all 0.5s ease;
    width: 30px;
    height: 3px;
    margin: 5px 0;
    background: #fff;
}

.nav-item.active:before {
    content: "< ";
    opacity: 0; /* Başlangıçta görünmez */
    animation: fadeInBefore 1s forwards; /* 1 saniye süren animasyon */
}

.nav-item.active:after {
    content: " />";
    opacity: 0; /* Başlangıçta görünmez */
    animation: fadeInAfter 1s forwards; /* 1 saniye süren animasyon */
}

@keyframes fadeInBefore {
    from {
        opacity: 0;
        transform: translateX(-10px); /* Hafif bir kaydırma */
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInAfter {
    from {
        opacity: 0;
        transform: translateX(10px); /* Hafif bir kaydırma */
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* ---------------------------- */

/* Page Load Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    backdrop-filter: brightness(0.4) blur(4px);
    -webkit-backdrop-filter: brightness(0.4) blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

#loading-spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-block;
    border-top: 3px solid #FFF;
    border-right: 3px solid transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/* --------------------------- */

/* Loading Animation */
#loading-container { /* Yüklenme animasyonu 'loading-container' içerisinde olmalıdır. */
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
    z-index: 3;
}

.lds-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid #fff;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #fff transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/* --------------------------- */

/* Scroll Down */
.scroll-down {
    width: 2em;
    height: 2em;
    left: 50%;
    cursor: pointer;
    background-color: transparent;
    position: absolute;
    border-width: 0 0.1em 0.1em 0;
    border-style: solid;
    border-color: antiquewhite;
    animation: scrolldown 1.2s ease-in-out infinite 0.15s;
    transform: translateY(0%) rotate(45deg);
    margin-top: 20px;
}

@keyframes scrolldown {
    0%{
        transform: translateY(20%) rotate(45deg);
        opacity: 0.7;
    }
    50%{
        transform: translateY(0%) rotate(45deg);
        opacity: 0.2;
    }
    100%{
        transform: translateY(20%) rotate(45deg);
        opacity: 0.7;
    }
}
/* --------------------------- */

/* 404 & 403 Error Page */
.error-container {
    overflow-x: hidden;
    width: 100%;
}

.error-content {
    font-size: 60px;
    font-weight: bold;
    text-align: center;
}

.error-content a {
    text-decoration: none;
    color: #fff;
}
/* ---------------------------- */

/* Animated Letter */
.animated-letter {
    font-family: 'ComfortaaRegular';
    font-size: 38px;
    font-weight: bold;
}

.animated-letter span:hover {
    cursor: pointer;
    color: #70ead8;
    display: inline-block;
    animation: rubberBand 0.5s alternate;
}

@keyframes rubberBand {
    0%{
        transform: scaleX(1);
    }
    40%{
        transform: scaleX(1.12) scaleY(0.75);
    }
    55%{
        transform: scaleX(0.85) scaleY(1);
    }
    65%{
        transform: scaleX(1.09) scaleY(0.85);
    }
    75%{
        transform: scaleX(0.9)  scaleY(1);
    }
    90%{
        transform: scaleX(1.05) scaleY(0.95);
    }
    100%{
        transform: scaleX(1) scaleY(1);
    }
}
/* ---------------------------- */

/* Home Container */
.home-container {
    display: block;
    width: 50%;
    height: 100vh;
    padding-top: 100px;
    text-align: left;
    h1 {
        font-size: 38px;
        margin: 0 0 4px 0;
    }
    h2 {
        font-size: 22px;
        margin: 0.5em 0 2em 0;
        width: fit-content;
        color: #b8cbff;
    }
    p {
        font-size: 18px;
        margin: 0;
        padding: 0;
        line-height: 2;
    }
    a {
        color: #7a9dff;
        font-weight: bold;
        text-decoration: none;
    }
    a:hover {
        color: #b8cbff;
    }
}
/* ---------------------------- */

/* About Container */
.about-container {
    padding: 100px 0 100px 0;
    overflow: hidden;
}
/* ---------------------------- */

/* Tab List */
.tab-list {
    padding: 100px 0 40px 0;
}

.tab-list button {
    font-weight: bold;
    min-width: 60px;
    color: #b8cbff;
    background: rgba(32, 16, 48, 0.75);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 10px;
    margin: 4px;
    transition: color 500ms ease, background 500ms ease;
}

.tab-list button:hover {
    color: #201030;
    background: rgba(184, 203, 255, 0.25);
}

.tab-list button.active {
    color: #201030;
    background: rgba(184, 203, 255, 0.50);
}
/* ---------------------------- */

/* Projects Container */
.projects-container {
    max-width: 75%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 0 100px 0;
}

.project-card {
    background: rgba(32, 16, 48, 0.35);
    border-radius: 10px;
    padding: 32px 32px 16px 32px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    transition: transform 200ms ease, box-shadow 200ms ease;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    display: block;
}

.project-card.hidden {
    display: none;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.project-card .title {
    color: #b8cbff;
    font-size: 16px;
    font-weight: bold;
    padding-bottom: 6px;
}

.project-card .content {
    color: #fff;
    font-size: 14px;
    padding-bottom: 12px;
}

.project-card .requirements {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-card .requirements span {
    background-color: rgba(32, 16, 48, 0.25);
    color: #b8cbff;
    font-size: 12px;
    border-radius: 16px 1px 16px 1px;
    padding: 12px;
}
/* ---------------------------- */

/* Contact Form */
#contact {
    padding: 100px 0 40px 0;
}
#contact h2, #contact h4, #contact p {
    margin: 0;
}
#contact form input[type=text],
#contact form input[type=email],
#contact form textarea {
    width: 100%;
    margin: 0 0 10px 0;
    padding: 20px;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 16px;
    font-family: 'ComfortaaRegular';
    outline: none;
    box-sizing: border-box;
}
#contact form input[type=text]::placeholder,
#contact form input[type=email]::placeholder,
#contact form textarea::placeholder {
    color: #aaa;
}
#contact form input[type=text]:focus,
#contact form input[type=email]:focus,
#contact form textarea:focus {
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
#contact form input[type=text]:hover,
#contact form input[type=email]:hover,
#contact form textarea:hover {
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
#contact form textarea {
    resize: vertical;
    min-height: 100px;
    box-sizing: border-box;
}
.contact-container {
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    margin: 20px;
    padding: 30px;
    border: none;
    border-radius: 0.75em;
    background: rgba(32, 16, 48, 0.25);
    text-align: left;
    box-sizing: border-box;
}
.contact-form {
    width: 60%;
}
.contact-info {
    width: 35%;
    text-align: left;
    padding: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    margin: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}
#contact h2 {
    color: #fff;
    margin-bottom: 1.5rem !important;
}
/* --------------------------- */

/* Socials */
.socials {
    margin-top: 32px;
}
.socials a {
    margin-right: 8px;
}
.social-svg {
    fill: #fff;
}
.social-svg:hover {
    fill: #b8cbff;
}
/* --------------------------- */

/* Keyboard Button Animation */
.keyboard-click-button {
    margin: 0 0 10px 0;
    padding: 20px;
    background: rgba(32, 16, 48, 0.6);
    border: none;
    border-radius: 0.5em;
    color: #b8cbff;
    outline: none;
    cursor: pointer;
    font-family: 'ComfortaaRegular';
    -webkit-box-shadow: 0 4px rgba(32, 16, 48, 0.7);
    box-shadow: 0 4px rgba(32, 16, 48, 0.7);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.keyboard-click-button:active {
    -webkit-box-shadow: 0 2px rgba(32, 16, 48, 0.8);
    box-shadow: 0 2px rgba(32, 16, 48, 0.8);
    -webkit-transform: translateY(2px);
    -ms-transform: translateY(2px);
    transform: translateY(2px);
}

.keyboard-click-button:hover {
    background: rgba(32, 16, 48, 0.7);
}
/* --------------------------- */

/* Terminal Cursor Animation */
#terminal-cursor {
    animation: blink 0.6s infinite alternate;
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    50.01% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}
/* ---------------------------- */

/* Mobile Settings */
@media only screen and (max-width: 900px) {
    .contact-container {
        flex-direction: column;
    }
    .contact-form,
    .contact-info {
        width: 100%;
        margin: 0 0 20px 0;
    }
    .contact-info {
        border-top: 2px solid rgba(255, 255, 255, 0.1);
        border-left: none;
    }
}

@media only screen and (max-width: 800px) {
    .navbar {
        display: block;
    }

    header nav {
        position: absolute;
        padding-left: 30px;
        width: 100%;
        left: -100%;
        top: 70px;
        width: 100%;
        background: rgba(0, 0, 0, 0.3);
        transition: 300ms ease;
    }

    header #nav-check:checked ~ nav {
        left: 0;
    }

    header #nav-check:checked ~ .navbar #line1 {
        transform-origin: left center;
        transform: rotate(45deg);
        margin-bottom: 10px;
    }

    header #nav-check:checked ~ .navbar #line2 {
        opacity: 0;
    }

    header #nav-check:checked ~ .navbar #line3 {
        transform-origin: left center;
        transform: rotate(-45deg);
    }

    header nav ul {
        display: block;
    }

    .nav-item {
        margin: 5px 0;
    }

    .animated-letter {
        font-size: 28px;
    }

    .home-container {
        width: 65%;
        h2 {
            font-size: 18px;
        }
        p {
            font-size: 16px;
        }
    }

    .error-content {
        font-size: 42px;
    }
}
/* ---------------------------- */