/* Global Ayarlar ve Reset */
* {
    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: #ffffff;
    --main-color: #00ffcc;
}


html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.4s ease, color 0.4s ease;
}

span {
    color: var(--main-color);
    transition: color 0.4s ease;
}

section {
    min-height: 100vh;
    padding: 10rem 12% 10rem;
}

/* Header Start */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 4rem 12% 4rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 400;
}

.logo span {
    text-shadow: 0 0 5px var(--main-color);
}

.nav-bar a {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 3rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

.logo:hover {
    transform: scale(1.1);
}

.nav-bar a.active,
.nav-bar a:hover {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--main-color);
    display: none;
    cursor: pointer;
}

/* Home Section */
.home {
    min-height: 100vh;
    padding: 8rem 9% 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    justify-content: center;
    text-align: left;
    margin-top: 3rem;
    max-width: 600px;
}

.home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.home-content h3 {
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 3.5rem;
}

.home-content p {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.7;
    max-width: 1000px;
}

.description p {
    margin-bottom: 2rem;
}

/* YAZI ANİMASYONU BÖLÜMÜ (GÜNCELLENDİ) */
.text-animation p {
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
    white-space: nowrap;
    /* Metnin alt satıra geçip animasyonu bozmasını engeller */
}

.text-animation span {
    position: relative;
    display: inline-block;
}

.text-animation span::before {
    content: "";
    color: var(--main-color);
    animation: words 20s infinite;
    /* Toplam süre 20 saniye */
}

.text-animation span::after {
    content: "";
    background-color: var(--bg-color);
    position: absolute;
    height: 100%;
    width: calc(100% + 8px);
    right: -8px;
    border-left: 3px solid var(--bg-color);
    /* typing animasyonu da words ile aynı olan 20s'ye ayarlandı */
    animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {


    0%,
    100% {
        border-left: 2px solid var(--main-color);
    }

    50% {
        border-left-color: transparent;
    }
}

/* Videodaki 5 kelimelik silinme/yazılma döngüsü */
@keyframes typing {

    10%,
    15%,
    30%,
    35%,
    50%,
    55%,
    70%,
    75%,
    90%,
    95% {
        width: 0;
    }

    5%,
    20%,
    25%,
    40%,
    45%,
    60%,
    65%,
    80%,
    85%,
    100% {
        width: calc(100% + 8px);
    }
}

@keyframes words {

    0%,
    20% {
        content: "Öğrenciyim";
    }

    21%,
    40% {
        content: "Veri Dünyasını Keşfediyorum";
    }

    41%,
    60% {
        content: "Paylaşıyorum";
    }

    61%,
    80% {
        content: "Sürekli Öğreniyorum";
    }

    81%,
    100% {
        content: "Öğrenciyim";
    }
}

/* YAZI ANİMASYONU BİTİŞ */

.social-icons {
    margin-bottom: 2rem;
}

.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);
    border-radius: 50%;
    font-size: 2.5rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 300ms ease-in-out;
}

.social-icons a:hover {
    background-color: var(--main-color);
    color: var(--text-color);
    box-shadow: 0 0 25px var(--main-color);
    transform: scale(1.3) translateY(-5px);
}

.btn-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-group a:nth-of-type(2) {
    background-color: black;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-of-type(2):hover {
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: black;
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    border: 2px solid transparent;
    color: black;
    font-weight: 600;
    font-size: 1.6rem;
    letter-spacing: 0.1rem;
    transition: 300ms ease-in-out;
    cursor: pointer;
    box-shadow: 0 0 25px var(--main-color);
}

.btn:hover {
    transform: scale (1.05);
    background: #00ffcc;
    /* Sizin neon camgöbeği renginiz */
    color: var(--bg-color);
    /* Koyu antrasit/siyah - Okunabilirliği maksimuma çıkarır */
    box-shadow: 0 0 50px var(--main-color);
}

/* Image Styles */
.home-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1/1;
    box-shadow: 0 0 25px var(--main-color);
    border: 4px solid var(--main-color);
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
    position: relative;
    top: 3rem;
    cursor: pointer;
}

.home-img img:hover {

    box-shadow: 0 0 25px var(--main-color),
        0 0 50px var(--main-color),
        0 0 100px var(--main-color);
}

/* Timeline Sections (Education, Projects, News, Blog, Resume) */
.education,
.news,
.contact {
    background: var(--second-bg-color);
    padding: 100px 15px;
    transition: background-color 0.4s ease;
}

.projects,
.blog,
.resume {
    background: var(--bg-color);
    padding: 100px 15px;
    transition: background-color 0.4s ease;
}

.heading {
    text-align: center;
    font-size: 5rem;
    margin: 4rem 0;
}

.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% + 3rem);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 3rem);
}

.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% - 0.8rem);
    border-radius: 50%;
    top: 10px;
}

.timeline-date {
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin: 6px 0 15px;
}

.timeline-content {
    background-color: var(--bg-color);
    border: 3px solid var(--main-color);
    padding: 30px 20px;
    border-radius: 4rem;
    box-shadow: 0 0 10px;
    transition: 0.3s ease;
    cursor: pointer;
}

.timeline-content:hover {
    box-shadow: 0 0 25px var(--main-color);
    transform: scale(1.05);
}

.timeline-content h3 {
    font-size: 20px;
    color: var(--text-color);
    margin: 0 0 10px;
    font-weight: 500;
}

.timeline-content p {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
}

/* --- Elegant Resume Cards --- */
.resume-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.resume-box {
    background: var(--second-bg-color);
    border: 1px solid rgba(0, 255, 204, 0.2);
    border-radius: 2rem;
    padding: 3rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.resume-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.resume-box:hover {
    transform: translateY(-5px);
    border-color: var(--main-color);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.15);
}

.resume-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.resume-top i {
    font-size: 3.5rem;
    color: var(--main-color);
    filter: drop-shadow(0 0 5px var(--main-color));
}

.resume-date {
    font-size: 1.4rem;
    color: var(--main-color);
    font-weight: 600;
    opacity: 0.8;
}

.resume-box h3 {
    font-size: 2.2rem;
    color: var(--text-color);
    font-weight: 700;
}

.resume-box p {
    font-size: 1.5rem;
    color: #cccccc;
    line-height: 1.7;
    font-weight: 300;
}

@media (max-width: 991px) {
    .resume-container {
        grid-template-columns: 1fr;
    }
}

/* --- News Cards 2x2 Grid --- */
.news-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    padding: 2rem;
    min-height: 200px;
}

.news-box {
    background: var(--main-color);
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: 0 0 15px var(--main-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--bg-color);
    text-decoration: none;
    /* Link içindeki text için */
}

.news-box:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px var(--main-color);
}

.news-box .news-source {
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.news-box h3 {
    font-size: 2.2rem;
    color: var(--bg-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.news-box p {
    font-size: 1.5rem;
    color: var(--bg-color);
    line-height: 1.5;
    font-weight: 400;
}

.loading-news {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem;
    color: var(--main-color);
}

.loading-news i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.loading-news p {
    font-size: 1.8rem;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .news-container {
        grid-template-columns: 1fr;
    }
}


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

::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
    border-radius: 4rem;
}

::-webkit-scrollbar-track {
    background-color: var(--bg-color);
    width: 50px;
}

/* Contact Section */
.contact h2 {
    margin-bottom: 3rem;
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    /* Gap between side-by-side elements */
}

.contact form .input-full {
    width: 100%;
}

.contact form .input-box input,
.contact form .input-full input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.8rem;
    color: var(--text-color);
    background: transparent;
    /* Or var(--bg-color) based on preference */
    border-radius: 0.8rem;
    margin: 0.7rem 0;
    border: 1px solid var(--main-color);
    box-shadow: 0 0 10px transparent;
    transition: 0.3s ease;
}

.contact form .input-box input {
    width: calc(50% - 0.75rem);
    /* two columns */
}

.contact form textarea {
    resize: none;
}

.contact form .input-box input::placeholder,
.contact form .input-full input::placeholder,
.contact form textarea::placeholder {
    color: #e0e0e0;
}

.contact form .input-box input:focus,
.contact form .input-full input:focus,
.contact form textarea:focus {
    box-shadow: 0 0 15px var(--main-color);
}

.contact form .btn {
    margin-top: 2rem;
    cursor: pointer;
    background-color: var(--main-color);
    color: black;
    font-weight: bold;
    border-radius: 4rem;
    /* Pill shape */
    border: none;
    padding: 1rem 2.8rem;
    font-size: 1.6rem;
    box-shadow: 0 0 15px var(--main-color);
}

.contact form .btn:hover {
    box-shadow: 0 0 25px var(--main-color);
    /* Stronger glow on hover */
}

/* Footer Section */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 7rem 15px 5rem;
    background-color: var(--bg-color);
    /* Clicks into the dark background */
}

.footer .social {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    gap: 20px;
    /* Even spacing horizontally */
}

.footer .social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background-color: transparent;
    border-radius: 50%;
    font-size: 24px;
    /* Default sized */
    color: #e0e0e0;
    /* Light gray base color */
    transition: all 0.3s ease;
    /* Smooth transition */
}

.footer .social a:hover {
    color: var(--main-color);
    transform: scale(1.1);
    /* Adding glowing cyan drop-shadow effect for icon */
    filter: drop-shadow(0 0 10px var(--main-color)) drop-shadow(0 0 20px var(--main-color));
}

.footer .list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 2.5rem;
}

.footer .list li a {
    color: var(--text-color);
    font-size: 1.8rem;
    border-bottom: 2px solid transparent;
    padding-bottom: 0.5rem;
    transition: 0.3s ease;
}

.footer .list li a:hover {
    color: var(--main-color);
    border-bottom: 2px solid var(--main-color);
}

.footer .copyright {
    margin-top: 4rem;
    text-align: center;
    font-size: 1.4rem;
    color: #b0b0b0;
    /* Hafif soluk, dikkat dağıtmayan bir gri */
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }

    .home {
        gap: 5rem;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 4%;
    }

    section {
        padding: 8rem 4% 8rem;
    }

    .home {
        padding: 8rem 4% 2rem;
        gap: 3rem;
    }
}

@media (max-width: 895px) {
    #menu-icon {
        display: block;
        cursor: pointer;
    }

    .nav-bar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 4%;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        border-bottom: 2px solid var(--main-color);
        display: none;
        flex-direction: column;
        transition: 0.3s ease;
    }

    .nav-bar.active {
        display: flex;
    }

    .nav-bar a {
        display: block;
        font-size: 2rem;
        margin: 1.5rem 0;
        text-align: center;
    }

    .home {
        flex-direction: column-reverse;
        margin: 5rem 4rem;
        text-align: center;
        padding-top: 10rem;
    }

    .home-content {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .home-content h3 {
        font-size: 2.6rem;


    }

    .home-content h1 {
        font-size: 8rem;
        margin-top: 3rem;
    }

    .home-content p {
        max-width: 600px;

    }

    .home-img img {
        width: 56vw;

    }

    .social-icons {
        margin: 1.5rem 0;
    }

    .social-icons a {
        margin: 0 0.5rem;
    }

    .btn-group {
        justify-content: center;
    }

    .timeline-items::before {
        left: 7px;
    }

    .timeline-item:nth-child(odd) {
        padding-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 3.5rem;
    }

    .timeline-dot {
        left: 0;
    }

    .contact form .input-box {
        flex-direction: column;
        gap: 0;
    }

    .contact form .input-box input {
        width: 100%;
    }
}

@media (max-width: 1285px) {
    html {
        font-size: 55%;
    }

    .services-container {
        padding-bottom: 7rem;
        grid-template-columns: repeat(2, 1fr);
        margin: 0 5rem;
        background-color: red !important;
    }
}

@media (max-width: 991px) {
    header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .timeline-items::before {
        left: 7px;
    }

    .timeline-item:nth-child(odd) {
        padding-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 37px;
    }

    .timeline-dot {
        left: 0;
    }

    .services {
        padding-bottom: 7rem;
    }

    .testimonials .wrapper {
        grid-template-columns: repeat(1, 1fr);
    }

    .contact form {
        flex-direction: column;
    }

    .news-container {
        grid-template-columns: 1fr;
        /* Mobilde tek sütun yap */
    }

    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width: 895px) {
    #menu-icon {
        display: block;
        cursor: pointer;
    }

    .nav-bar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        color: #ffffff;
    }

    .nvabar {
        position: absolute;
        top: 100%;
        right: 0;
        display: none;
        width: 50%;
        padding: 1rem 3%;
        background-color: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(20px);
        border-bottom-left-radius: 2rem;
        border-left: 2px solid var(--main-color);
        border-bottom: 2px solid var(--main-color);
    }
}

@media (max-width: 500px) {
    html {
        font-size: 50%;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .text-animation p {
        font-size: 24px;
        min-width: 240px;
    }

    .contact form .input-box input,
    .contact form .input-full input,
    .contact form textarea {
        padding: 1.2rem;
        font-size: 1.6rem;
    }
}

.home {
    gap: 5rem;
    width: 100%;
    margin: 0;
}

.home-content h1 {
    font-size: 5rem;
    margin-bottom: 5rem;
}

.home-content h3 {
    font-size: 3.5rem;
}

.text-animation span {
    display: block;
    font-size: 2.8rem;
    margin-bottom: 2.5rem;
}

/* --- Blog Cards 3-Column Grid --- */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 2rem;
}

.blog-card {
    background: var(--second-bg-color);
    /* Dark textured background fallback */
    border: 2px solid var(--main-color);
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: 0 0 15px transparent;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Slightly textured background effect using gradients */
.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 2px, transparent 2px, transparent 6px);
    pointer-events: none;
    z-index: -1;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px var(--main-color);
}

.blog-icon {
    font-size: 6rem;
    color: var(--main-color);
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px var(--main-color));
}

.blog-card h3 {
    font-size: 2.4rem;
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.blog-card p {
    font-size: 1.5rem;
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 3rem;
    flex-grow: 1;
}

.blog-card .btn {
    margin-top: auto;
    width: 80%;
}

/* Responsive constraints for blog container */
@media (max-width: 991px) {
    .blog-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-container {
        grid-template-columns: 1fr;
    }
}

/* --- Centered Project Cards --- */
.projects-grid {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.project-card {
    background: var(--second-bg-color);
    border: 1px solid rgba(0, 255, 204, 0.2);
    border-radius: 2.5rem;
    padding: 4rem;
    width: 100%;
    max-width: 900px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--main-color);
    box-shadow: 0 15px 40px rgba(0, 255, 204, 0.1);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.project-header i {
    font-size: 4.5rem;
    color: var(--main-color);
    filter: drop-shadow(0 0 8px var(--main-color));
}

.project-header h3 {
    font-size: 3rem;
    font-weight: 700;
}

.project-tag {
    background: rgba(0, 255, 204, 0.1);
    color: var(--main-color);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    margin-left: auto;
}

.project-content p {
    font-size: 1.6rem;
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: justify;
    font-weight: 300;
}

.project-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .project-card {
        padding: 2.5rem;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .project-tag {
        margin-left: 0;
    }
}