/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    /* Varsayılan (Koyu) Tema Değişkenleri */
    --bg-color: #0f0f16;
    --second-bg-color: #1a1a2e;
    --text-color: #ededed;
    --main-color: #00adb5;
    --hover-color: #393e46;
    --card-bg: rgba(255, 255, 255, 0.05);
    /* Yarı saydam beyaz */
    --border-color: rgba(255, 255, 255, 0.1);
    --font-family: 'Poppins', sans-serif;
}

/* Açık Tema Sınıfı */
body.light-mode {
    --bg-color: #f0f2f5;
    --second-bg-color: #ffffff;
    --text-color: #333333;
    --main-color: #008c94;
    --hover-color: #e4e6eb;
    --card-bg: rgba(0, 0, 0, 0.05);
    --border-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: var(--font-family);
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Navigasyon Barı */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 9%;
    background: rgba(15, 15, 22, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.9);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
}

.logo span {
    color: var(--main-color);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
    transition: .3s;
}

.nav-links a:hover {
    color: var(--main-color);
}

.btn-contact {
    padding: 0.5rem 1.5rem;
    background: var(--main-color);
    border-radius: 2rem;
    color: var(--bg-color) !important;
    font-weight: 600 !important;
    transition: 0.3s ease;
}

body.light-mode .btn-contact {
    color: #fff !important;
}

.btn-contact:hover {
    box-shadow: 0 0 10px var(--main-color);
}

/* Hamburger Menü Stilleri */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 101;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-color);
    border-radius: 3px;
}

/* Hero Section */
section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
}

.hero-content h3 {
    font-size: 2rem;
    font-weight: 700;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.3;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content h2 span {
    color: var(--main-color);
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.6;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--main-color);
    margin: 0 1rem 2rem 0;
    transition: .5s ease;
}

.social-icons a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--main-color);
}

body.light-mode .social-icons a:hover {
    color: #fff;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background: var(--main-color);
    border-radius: 2rem;
    box-shadow: 0 0 10px var(--main-color);
    font-size: 1.2rem;
    color: var(--bg-color);
    font-weight: 600;
    transition: .5s ease;
}

body.light-mode .btn {
    color: #fff;
}

.btn:hover {
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
}

body.light-mode .btn:hover {
    color: var(--main-color);
}

.hero-img img {
    width: 25vw;
    animation: floatImage 4s ease-in-out infinite;
    border-radius: 50%;
    border: 5px solid var(--main-color);
    box-shadow: 0 0 30px var(--main-color);
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

.heading {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
}

/* Hakkımda */
.about {
    background: var(--second-bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

.about-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    max-width: 800px;
    text-align: center;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
}

.stat-item h4 {
    font-size: 2rem;
    color: var(--main-color);
}

/* Yetenekler */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--card-bg);
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    cursor: pointer;
    min-height: 220px;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--main-color);
    box-shadow: 0 0 15px rgba(0, 173, 181, 0.3);
    background: var(--card-bg);
}

.skill-card i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Yetenek Seviyesi ve Bar Tasarımı (GÜNCELLENDİ) */
.skill-level-container {
    width: 100%;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Sola yaslı veya center olabilir, burada kart ortalı olduğu için barı kapsayıcıya göre ayarlayacağız */
    gap: 5px;
}

.skill-text {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.9;
    align-self: center;
    /* Metni ortala */
    font-weight: 300;
}

.skill-bar {
    width: 100%;
    height: 4px;
    /* İnce çizgi istendiği için yüksekliği azalttım */
    background-color: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 2px;
}

.skill-progress {
    height: 100%;
    background-color: var(--main-color);
    border-radius: 2px;
    width: 0;
    transition: width 1s ease-out;
}

/* Kart hover olduğunda barın parlaması için */
.skill-card:hover .skill-progress {
    box-shadow: 0 0 10px var(--main-color);
}

/* Projeler */
.projects {
    background: var(--second-bg-color);
    transition: background 0.3s ease;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: 0.4s ease;
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: scale(1.02);
    border-color: var(--main-color);
}

.project-content-wrapper {
    margin-bottom: 20px;
}

.project-content-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags span {
    background: rgba(0, 173, 181, 0.15);
    color: var(--main-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 173, 181, 0.1);
}

.links a {
    color: var(--text-color);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    transition: 0.3s;
}

.links a:hover {
    color: var(--main-color);
}

/* Footer */
footer {
    background: var(--bg-color);
    padding: 4rem 9% 2rem;
    border-top: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.footer-col p {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.7;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.95rem;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--main-color);
    opacity: 1;
    padding-left: 5px;
}

.footer-social-links {
    display: flex;
    gap: 1rem;
}

.footer-social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 1.1rem;
    transition: 0.3s ease;
}

body.light-mode .footer-social-links a {
    background: rgba(0, 0, 0, 0.1);
}

.footer-social-links a:hover {
    background: var(--main-color);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Tema Değiştirici */
.theme-switcher {
    display: flex;
    gap: 10px;
    background: var(--card-bg);
    padding: 5px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.theme-switcher button {
    background: transparent;
    border: none;
    color: var(--text-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}

.theme-switcher button:hover {
    background: var(--hover-color);
    opacity: 1;
}

.theme-switcher button.active {
    background: var(--main-color);
    color: #fff;
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 173, 181, 0.4);
}

/* Animasyonlar */
.hidden-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s;
}

.show-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 991px) {
    .navbar {
        padding: 1.5rem 4%;
    }

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

    footer {
        padding: 4rem 4% 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(15, 15, 22, 0.95);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateY(-100%);
        transition: transform 0.4s ease-in-out;
        z-index: 99;
    }

    body.light-mode .nav-links {
        background: rgba(255, 255, 255, 0.95);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.5rem;
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) a {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) a {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) a {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) a {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(5) a {
        transition-delay: 0.5s;
    }


    .hero {
        flex-direction: column-reverse;
    }

    .hero-img img {
        width: 60vw;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}