* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --primary-color: #ff6347;
    --secondary-color: #0065F8;
    --background-color: #04052b;
    --secondary-background-color: #121430;
    --third-color: #00CAFF;
    --blackHalfTransparent: rgba(0, 0, 0, 0.5);
    --whiteHalfTransparent: rgba(255, 255, 255, 0.5);
    --active-color: #00FF00;
}


body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    scroll-behavior: smooth;
}


.mainMusic {
    position: fixed;
    width: 10rem;
    height: 50px;
    bottom: 10px;
    right: 10px;
    z-index: 1000;
    opacity: 0.5;

}

.nav {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 1000;
    gap: 2rem;
}

#navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    /* Siyah */
}

.navLink {
    color: white;
    text-decoration: none;
    padding: 1.5rem 15px;
    font-size: .8rem;
    text-transform: uppercase;
    transition: .2s;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 0 0 1rem 1rem;
    border: 1px solid transparent;
}

.navLink:hover {
    background-color: transparent;
    border-radius: 5px;
    border: 1px solid var(--background-color);
}

.logo img {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 1rem;
}

.logo {
    position: static;
    width: 60px;
    display: flex;
    align-items: center;
}

.logo img:hover {
    transform: scale(1.1);
    transition: .2s;
    border-bottom: .5px solid var(--background-color);
}

.main {
    width: 100%;
    padding: 20px;
    text-align: center;
    background: url("https://wallpaperaccess.com/full/8245057.jpg");
    background-size: cover;
    height: 120vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-attachment: fixed;
    transition: .2s;

}

.intro {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.intro h1 {
    color: var(--background-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
}


.animateText {
    animation: shake 2s infinite;
    z-index: 9999;
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
        color: black;
    }

    50% {
        transform: translate(0, -10px) rotate(-1deg);
        color: white;
        text-shadow: 2px 10px 10px black;
    }

    100% {
        transform: translate(1px, -1px) rotate(0deg);
        color: black;
    }
}

.main p {
    font-size: 1.2rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 10px;
}

.footer {
    text-align: center;
    padding: 20px;
    background-color: var(--secondary-background-color);
    color: white;
    position: relative;
    bottom: 0;
    width: 100%;
    transition: .2s;
    text-transform: uppercase;
    font-size: .8rem;
}

.footerLinks {
    margin: 15px 0;
    transition: .2s;
}

.footer p {
    margin: 0;
}

.footer a {
    color: var(--secondary-color);
    text-decoration: none;
    padding: 1rem;
    transition: .2s;
    border-radius: 10px;
}

.footer a:hover {
    color: black;
    background-color: var(--third-color);
}

.active {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    color: var(--active-color);
    z-index: 10;
}

.aboutMain {
    width: 100%;
    height: 120vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 50px;
    gap: 50px;
    background: url("/src/img/wallpaper2.jpg") repeat center center/cover fixed;
    color: white;

}

.aboutIntro {
    max-width: 600px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 1rem;
}

.aboutIntro h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.aboutIntro p {
    font-size: 1rem;
    line-height: 1.6;
}

.aboutIntro .certificatesBTN {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: transparent;
    border: 1px solid var(--background-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: .2s;
}

.aboutIntro .certificatesBTN:hover {
    background-color: var(--background-color);
}

.aboutImg img {
    max-width: 400px;
    border-radius: 50%;
}

.aboutImg {
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 15px 15px rgb(19, 21, 32);
}

.aboutImgItem {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: aqua;
    border-radius: 50%;
    box-shadow: 0 1px 15px aqua;
    animation: rotateAround 5s linear infinite;
}

.aboutImgItem2 {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: blue;
    box-shadow: 0 0 15px blue;
    border-radius: 50%;
    animation: rotateAround2 5s linear infinite;
    z-index: 999;
}

@keyframes rotateAround {
    0% {
        transform: rotate(0deg) translateY(-200px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateY(-200px) rotate(-360deg);
    }
}

@keyframes rotateAround2 {
    0% {
        transform: rotate(0deg) translateX(-200px) rotate(0deg);
    }

    100% {
        transform: rotate(-360deg) translateX(-200px) rotate(360deg);
    }
}


.certificates {
    width: 100%;
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px;
    gap: 20px;
    background: url("https://wallpaperaccess.com/full/785654.gif") repeat center center/cover fixed;
    color: black;
}

.certificatesContainer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}


.certificatesBox {
    width: 300px;
    height: 300px;
    padding: 20px;
    background-color: transparent;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgb(12, 52, 255);
    transition: .2s;
    background-color: var(--background-color);
    color: white;
}

.certificatesBox img {
    width: 100%;
    height: 70%;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.certificatesBox h2 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.certificatesBox p {
    font-size: .8rem;
    line-height: 1.4;
}

.certificatesBox:hover {
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 6px 12px white;
}




.skillMain {
    width: 100%;
    height: 120vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px;
    gap: 20px;
    background-color: var(--background-color);
    color: white;
}

.skillIntro {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.skillIntro h1 {
    width: 100%;
    display: block;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.skillIntro ul {
    width: 100%;
    list-style-type: none;
    font-size: 1rem;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.skillIntro li {
    width: 80%;
    margin: 1rem;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgb(12, 52, 255);
    color: #fff;
}

.skillIntro li:hover {
    background-color: transparent;
    transition: .2s;
    box-shadow: 0 6px 12px white;
}

.works {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px;
    gap: 20px;
    background-color: var(--secondary-background-color);
    color: white;
}

.worksMain {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.workCard {
    width: 30%;
    padding: 20px;
    background-color: transparent;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgb(12, 52, 255);
    transition: .2s;
    position: relative;
}

.workCard:hover {
    background-color: transparent;
    box-shadow: 0 6px 12px white;
}

.workCard h2 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.workCard p {
    font-size: .8rem;
    line-height: 1.4;
}

.workCard a {
    background-color: green;
    text-decoration: none;
    border-radius: 5px;
    color: black;
    padding: 10px;
    position: absolute;
    right: 1rem;
}

.workCard a:hover {
    color: white;
}

.workCard img {
    width: 100%;
    height: 50%;
    border-radius: 5px;
    margin-bottom: 10px;
    object-fit: cover;
}


.zoomImage:hover {
    cursor: pointer;
    transform: scale(1.05);
    transition: .2s;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    animation: zoom 0.3s;
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

.caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 20px;
}

@keyframes zoom {
    from {
        transform: scale(0.5);
    }

    to {
        transform: scale(1);
    }
}


.mainContact {
    width: 100%;
    height: 120vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px;
    gap: 20px;
    background: url("https://wallpaperaccess.com/full/2707460.jpg") no-repeat center center/cover fixed;
    color: white;
}

.contactForm {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
}

.contactForm input,
.contactForm textarea {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
}

.contactForm button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: rgb(12, 52, 255);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: .2s;
}

.contactForm button:hover {
    background-color: rgb(111, 164, 225);
}

.contactForm label {
    font-size: 1rem;
    margin-bottom: 5px;
}

.social {
    margin-top: 20px;
}

.socialLinks {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.socialLink {
    color: white;
    font-size: 2rem;
    padding: 1rem;
    transition: .5s;
    background-color: var(--background-color);
    border-radius: 50%;
}

.socialLinkText {
    display: none;
    text-align: center;
}

.socialLink:hover {
    color: var(--third-color);
    transform: rotate3d(-1, 0, 0, 25deg);
}

.socialLink:hover .socialLinkText {
    display: flex;
    position: absolute;
    bottom: -5px;
    font-size: .8rem;
    margin-top: .5rem;
    color: white;
    transition: .5s;
    text-align: center;
}

@media (max-width: 768px) {

    .aboutMain,
    .skillMain,
    .works,
    .mainContact {
        flex-direction: column;
        padding: 20px;
    }

    .aboutImg img {
        max-width: 200px;
    }

    .workCard {
        width: 100%;
    }
}


@media screen and (max-width: 768px) {
    .nav {
        width: 100%;
    }

    .navbar {
        width: 100%;
        justify-content: center;
        gap: 5px;
        text-align: center;
    }

    .navLink {
        padding: 1.4rem 5px;
        font-size: .6rem;
    }

    .logo {
        width: 40px;
        transform: scale(1.1);
    }

    .aboutMain {
        height: auto;
        font-size: .6rem;
    }

    .aboutImg img {
        display: none;
    }

    .certificatesBTN {
        padding: 8px 15px;
        font-size: .9rem;
    }

    .certificates {
        height: auto;
    }

    .certificatesBox {
        width: 200px;
        height: auto;
        padding: 10px;
    }

    .skillMain {
        height: auto;
    }

    .skillIntro {
        flex-direction: column;
    }

    .skillIntro h1 {
        font-size: 1rem;
    }

    .skillIntro ul {
        font-size: .8rem;
    }

    .skillIntro li {
        margin: .5rem;
        padding: .5rem;
    }

    .works {
        height: auto;
    }

    .workCard {
        width: 100%;
    }

    .mainContact {
        height: auto;
    }

    .footer {
        display: none;
    }
    
    .aboutImgItem, .aboutImgItem2{
        display: none;
    }


}