/*RESET CSS START*/
@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');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}

:root {
    --bg-color: #080808;
    --second-bg-color: #131313;
    --text-color: #fff;
    --main-color: #008cff;
}

html {
    font-size: 60%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}
span {
    color: var(--main-color);
}

section {
    min-height: 100vh;
    padding: 14rem 12% 10rem;
}
/*RESET CSS END*/

/*--HEADER START--*/

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 8%;
    background-color: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Header, navbar ve menü ikonunun overlay'in üzerinde tıklanabilir olması için daha yüksek z-index */
    z-index: 20;
}

.logo {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.05);
    color: var(--main-color);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.navbar a {
    font-size: 1.6rem;
    color: var(--text-color);
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 2px solid transparent;
}

.navbar a:hover,
.navbar a:active {
    color: var(--main-color);
    border-bottom-color: var(--main-color);
}

.lang-switcher {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border-radius: 2rem;
    padding: 0.3rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.lang-btn {
    padding: 0.5rem 1.2rem;
    font-size: 1.3rem;
    font-weight: 600;
    background: transparent;
    color: rgba(255,255,255,0.6);
    border: none;
    border-radius: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--text-color);
}

.lang-btn.active {
    background: var(--main-color);
    color: var(--text-color);
    box-shadow: 0 2px 15px rgba(0, 140, 255, 0.4);
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--main-color);
    display: none;
}
/*--HEADER END--*/


/*--HOME START--*/

.home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8rem;
    position: relative;
}

.home-content{
    display: flex;
    flex-direction: column;
    align-items: baseline;
    justify-content: center;
    text-align: left;
    margin-top: 3rem;
}

.home-content h1 {
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1.1;
}

.home-content h3 {
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: clamp(2rem, 4vw, 3.5rem);
    overflow-wrap: break-word;
    word-break: break-word;
}

.home-img {
    flex-shrink: 0;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.home-img::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--main-color) 0%, transparent 50%, var(--main-color) 100%);
    opacity: 0.15;
    filter: blur(40px);
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.02); }
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(1.1); }
}

.home-img img {
    width: min(42vw, 420px);
    max-width: 100%;
    position: relative;
    z-index: 1;
    border-radius: 50%;
    box-shadow: 
        0 0 30px rgba(0, 140, 255, 0.3),
        0 0 60px rgba(0, 140, 255, 0.2),
        0 25px 50px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-img img:hover {
    box-shadow: 
        0 0 40px var(--main-color),
        0 0 80px rgba(0, 140, 255, 0.4),
        0 0 120px rgba(0, 140, 255, 0.2),
        0 30px 60px rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

.home-content p {
    font-size: clamp(1.3rem, 2vw, 1.5rem);
    font-weight: 500;
    line-height: 1.8;
    max-width: 100%;
}

.social-icons 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: 300ms ease-in-out;
}

.social-icons a:hover {
    color: var(--text-color);
    transform: scale(1.3) translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: black;
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 300ms ease-in-out;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--main-color);
}

.btn-group{
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.text-animation{
    font-weight: 600;
}

#typewriter {
    color: var(--main-color);
}

.cursor {
    display: inline-block;
    width: 0;
    border-left: 2px solid var(--main-color);
    margin-left: 2px;
    height: 0.9em;
    vertical-align: middle;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}




/*--HOME END--*/

/*MEDIA QUERIES START*/

/* ---------------------- RESPONSIVE ------------------------ */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
    section {
        padding: 12rem 9% 10rem;
    }
    .home {
        gap: 6rem;
    }
    .navbar {
        gap: 2rem;
    }
}

@media (max-width: 1100px) {
    .header {
        padding: 2rem 5%;
    }
    .navbar {
        gap: 1.5rem;
    }
    .navbar a {
        font-size: 1.5rem;
    }
    .lang-btn {
        padding: 0.4rem 1rem;
        font-size: 1.2rem;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .header {
        padding: 2rem 5%;
    }

    section {
        padding: 12rem 5% 6rem;
    }

    .home {
        flex-direction: column;
        gap: 4rem;
        text-align: center;
        padding-top: 4rem;
    }

    .home-content {
        align-items: center;
        text-align: center;
    }

    .home-content p {
        text-align: center;
    }

    .home-img {
        order: -1;
        margin-top: 20rem;
        animation: 5s ease-in-out infinite;
    }

    .home-img img {
        width: min(45vw, 240px);
        margin-top: 0;
    }

    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, var(--second-bg-color) 0%, var(--bg-color) 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        padding: 8rem 2rem 3rem;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10;
        box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    }

    .navbar.active {
        right: 0;
    }

    .navbar a {
        margin: 0;
        font-size: 1.8rem;
        padding: 1.2rem 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .navbar a:last-of-type {
        border-bottom: none;
    }

    .lang-switcher {
        margin-top: 2rem;
        padding: 1rem 0.5rem;
        border-top: 1px solid rgba(255,255,255,0.08);
        width: 100%;
        justify-content: center;
    }

    .menu-overlay.active {
        display: block;
    }

    #menu-icon {
        display: block;
        cursor: pointer;
        z-index: 11;
        position: relative;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
        max-width: 250px;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 1.2rem 2rem;
    }

    .social-icons {
        justify-content: center;
    }
}

/* Mobil */
@media (max-width: 576px) {
    html {
        font-size: 52%;
    }

    .header {
        padding: 1.5rem 4%;
    }

    section {
        padding: 12rem 4% 4rem;
    }

    .home {
        gap: 3rem;
        padding-top: 5rem;
    }

    .home-content h1 {
        font-size: clamp(3.2rem, 12vw, 5rem);
    }

    .home-img {
        margin-top: 4rem;
    }

    .home-img img {
        width: min(50vw, 200px);
    }

    /* Mobilde imlecin hizasını metinle tam ortalamaya çalış */
    .cursor {
        height: 0.8em;
        vertical-align: middle;
    }

    /* Mobilde butonların ışıkları üst üste binmesin diye daha yumuşak glow ve ekstra boşluk */
    .btn-group {
        gap: 1.2rem;
        max-width: 260px;
    }

    .btn {
        box-shadow: 0 0 16px rgba(0, 140, 255, 0.7);
    }

    .btn:hover {
        box-shadow: 0 0 26px rgba(0, 140, 255, 0.9);
    }

    .navbar {
        width: 85%;
        max-width: none;
    }

    .social-icons a {
        width: 4rem;
        height: 4rem;
        font-size: 2.2rem;
        margin: 2rem 1rem 2rem 0;
    }
}

/* Çok dar ekranlar */
@media (max-width: 380px) {
    html {
        font-size: 50%;
    }
    .home-content h1 {
        font-size: 2.8rem;
    }
    .logo {
        font-size: 1.8rem;
    }
}

/* PC'de imleci biraz daha kalın tut */
@media (min-width: 992px) {
    .cursor {
        border-left-width: 3px;
    }
}

/* Yatay overflow önleme */
body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------------------- RESPONSIVE ------------------------ */

/*MEDIA QUERIES END*/
