* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --bg-color: #080808;
    --bg-second-color: #131313;
    --text-color: #fff;
    --main-color: #609966;
}

html {
    font-size: 60%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* NAVBAR START */

.header {
    left: 0;
    right: 0;
    position: fixed;
    width: 100%;
    padding: 4rem 12% 4rem;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.logo {
    font-size: 4rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.1);
}

span {
    color: var(--main-color);

}

.logo span {
    text-shadow: 0 0 25px var(--main-color);
}

.navbar a {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 5rem;
    font-weight: 500;
    transition: 0.3 ease;
    border-bottom: 3x solid transparent;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--main-color);
    display: none;
}
 /* NAVBAR END */

 /* HOME START */
 
section {
    min-height: 100vh;
    padding: 10rem 12% 10rem;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15rem;
}

.home-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    margin-top: 5rem;
}

.home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}

.home-content h3 {
    font-size: 3rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.home-img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img {
    width: 25vw;
    position: relative;
    top: 1.5rem;
    cursor: pointer;
    transition:
        transform 0.4s ease,
        filter 0.4s ease;
    border-radius: 12%;
    filter: drop-shadow(0 0 12px rgba(0, 255, 80, 0.45));
}

.home-img img:hover {
    transform: scale(1.12);
    filter: drop-shadow(0 0 20px rgba(0, 255, 80, 0.75));
}

.home-content p {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 1000px;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background-color: transparent;
    border: 2px solid var(--main-color);
    font-size: 2.5rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease-in-out;
}

.social-media a:hover {
    color: var(--text-color);
    background-color: var(--main-color);
    transform: scale(1.4) translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
}

.text-animation {
    font-size: 34px;
    font-weight: 500;
    min-width: 280px;
}

.text-animation span {
    position: relative;
}

.text-animation span::before {
    content: "Front-end Developer'ım";
    color: var(--main-color);
    animation: words 20s infinite;
}

.text-animation span::after {
    content: "";
    background-color: var(--bg-color);
    position: absolute;
    height: 100%;
    width: calc(100% + 12px);
    right: -12px;
    border-left: 3px solid var(--bg-color);
    animation: cursor 0.6s infinite, typing 4s steps(22) infinite;
}

/* ANIMATION TEXT START */

@keyframes cursor {
    to {
        border-left: 2px solid var(--main-color);
    }
}

@keyframes words {

    0%,
    19% {
        content: "Front-end Developer";
    }

    20%,
    39% {
        content: "Game Developer";
    }

    40%,
    59% {
        content: "Front-end Developer";
    }

    60%,
    79% {
        content: "Game Developer";
    }

    80%,
    100% {
        content: "Junior Developer";
    }
}

@keyframes typing {

    0% {
        width: calc(100% + 12px);
    }

    5% {
        width: calc(100% + 12px);
    }

    30% {
        width: 0;
    }

    80% {
        width: 0;
    }

    95% {
        width: calc(100% + 12px);
    }

    
    100% {
        width: calc(100% + 12px);
    }
}
/* ANIMATION TEXT END */

/* EDUCATION START */

.heading {
    font-size: 8rem;
    text-align: center;
    margin: 5rem 0;
}

.education {
    background-color: var(--bg-second-color);
    padding: 100px 15px;
}

.timeline-items {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.timeline-items::before {
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: var(--main-color);
    left: calc(50% - 1px);
}

.timeline-item {
    margin-bottom: 40px;
    width: 100%;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 30px);
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 30px);
}

.timeline-dot {
    height: 21px;
    width: 21px;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color);
    position: absolute;
    left: calc(50% - 8px);
    border-radius: 50%;
    top: 10px;
}

.timeline-date {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 6px 0 15px;
}

.timeline-content {
    background-color: var(--bg-color);
    border: 3px solid var(--main-color);
    padding: 30px 50px;
    border-radius: 4rem;
    box-shadow: 0 0 10px var(--main-color);
    cursor: pointer;
    transition: 0.3s ease-in;
}

.timeline-content:hover {
    box-shadow: 0 0 25px var(--main-color);
    transform: scale(1.05);
}

.timeline-content h3 {
    font-size: 20px;
    color: #fff;
    margin: 0 0 10px;
    font-weight: 500;
}

.timeline-content p {
    font-size: 16px;
    color: #fff;
    line-height: 22px;
    font-weight: 300;
}

/* EDUCATION END */

/* SCROLLBAR START */

::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
    border-radius: 4rem;
}

::-webkit-scrollbar-track {
    background-color: var(--bg-color);
    width: 50px;
}

/* SCROLLBAR END */

/*SERVİCES START */

.services {
    background-color: var(--bg-color);
    color: black;
}

.services h2 {
    color: #fff;
    margin-bottom: 5rem;
}

.services-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 2.5rem;
}

.service-box {
    background-color: var(--main-color);
    height: 300px;
    border-radius: 3rem;
    border: 5px solid transparent;
    cursor: pointer;
    transition: 0.4s ease-in-out;
    text-decoration: none;
    color: inherit;
}

.service-box:hover {
    background-color: #fff;
    color: black;
    border: 5px solid var(--main-color);
    transform: scale(1.03);
}

.service-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    max-height:  none;
    justify-content: left;
    align-items: baseline;
    padding: 5rem 5rem;
}

.service-info h4 {
    font-weight: 800;
    font-size: 3rem;
    line-height: 2;
}

.service-info p {
    font-size: 1.8rem;
    font-weight: 600;
    max-height: 100px;
    line-height: 1.7;
    margin: auto;
}

/* SERVICES END */

/* FOOTER START */

.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: var(--bg-second-color);
}

.footer .social {
    text-align: center;
    padding-bottom: 150px;
    color: var(--main-color);
}

.footer .social a {
    font-size: 25px;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    width: 42px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3s ease-in-out;
}

.footer .social a:hover {
    transform: scale(1.2) translateY(-10px);
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    color: black;
}

.footer ul {
    margin: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;
}

.footer ul li a {
    color: #fff;
    border-bottom: 3px solid transparent;
}

.footer ul li a:hover {
    border-bottom: 3px solid var(--main-color);
    color: var(--main-color);
}

.footer ul li {
    display: inline-block;
    padding: 0 15px;
}

.footer .copyright {
    margin-top: 50px;
    text-align: center;
    color: #fff;
    font-size: 16px;
}

.contact-intro {
    text-align: center;
    color: #fff;
    font-size: 21px;
    margin-bottom: 25px;
}

/* FOOTER END */

/********************* MEDIA QUERIES START *********************/


/* TABLET */

@media (max-width: 992px) {

    #menu-icon {
        display: block;
        font-size: 3rem;
        cursor: pointer;
    }

    .navbar {
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;

        background: rgba(0, 0, 0, 0.95);

        display: flex;
        flex-direction: column;
        text-align: center;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);

        transition: all 0.4s ease;
    }

    .navbar.active {
        max-height: 400px;
        opacity: 1;
        transform: translateY(0);
    }

    .navbar a {
        padding: 1.5rem 0;
        font-size: 2rem;
        margin: 0;
    }

    .home {
        flex-direction: column;
        text-align: center;
    }

    .home-img {
        margin-bottom: 2rem;
        margin-top: 5rem;
    }

    .home-img img {
        width: 40vw;
    }

    .services-items {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .service-info p {
        font-size: 1.8rem;
    }

    .service-box {
        margin-top: 1rem;
        width: 100%;
        height: auto;
    }
    .service-info{
        padding: 2rem;
    }
}

/* MOBILE PHONE */

@media (max-width: 769px) {
    .home-img {
        margin-top: 6rem;
    }

    .home-img img {
        width: 60vw;
    }

    .home-content {
        margin-top: -75px;
    }

    .heading {
        font-size: 5rem;
        text-align: center;
        margin: 7rem 0;
        padding-top: 0;
    }

    .timeline-dot {
        display: none;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding: 0 !important;
    }

    .timeline-items::before {
        display: none;
    }

    .timeline-content {
        width: 100%;
        max-width: 100%;
        padding: 20px;
        text-align: left;
    }

    .timeline-content p {
        margin: 0 !important;
        width: 100%;
    }

}
/* LARGE TABLET */

@media (max-width: 1285px) {
    .service-info h4 {
        margin-top: -25px;
        white-space: nowrap;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .service-info p {
        line-height: 1.4;
        margin-top: 10px;
    }

    .services-items {
        justify-content: center;
    }
}

/* SMALL PHONE */

@media (max-width: 475px) {

    .home-content h1{
        font-size: 3.5rem;
    }
    .home-content h3{
        font-size: 2rem;
    }
    .home-content p{
        font-size: 1.3rem;
    }
    .timeline-content p{
        font-size: 1.3rem;
    }
    .service-box {
        height: auto;
        width: 100%;
        border-radius: 2rem;
    }

    .service-info {
        padding: 2rem;
        text-align: left;
    }

    .service-info h4 {
        font-size: 2.2rem;
        white-space: nowrap;
    }

    .service-info p {
        font-size: 1.2rem;
        line-height: 1.4;   
    }
    .logo{
        font-size: 3rem;
    }

}

