/* Temel Sıfırlamalar ve Göz Alıcı Renk Değişkenleri */
:root {
    --bg-color: #06060c;
    --card-bg: #0e0e1e;
    --primary: #8a70ff;
    --primary-glow: rgba(138, 112, 255, 0.6);
    --secondary: #00f2fe;
    --secondary-glow: rgba(0, 242, 254, 0.4);
    --text-color: #f5f5f7;
    --text-muted: #a0a0b0;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Dinamik Uzay Arkaplanı */
.space-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Göz Alıcı Vurgu - Neon Yazı Efekti */
.glow-text {
    text-shadow: 0 0 15px var(--primary-glow);
}

/* Navigasyon */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(6, 6, 12, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    color: var(--secondary);
    text-shadow: 0 0 10px var(--secondary-glow);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary);
    text-shadow: 0 0 8px var(--secondary-glow);
}

/* Mobil Menü Butonu (Burger) */
.burger {
    display: none;
    cursor: pointer;
    z-index: 101;
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    margin: 6px;
    transition: all 0.3s ease;
}

/* Hero Bölümü */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -1px;
}

.highlight {
    color: var(--primary);
}

.subtitle {
    font-size: 1.6rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 400;
}

/* Rozet Vurgusu */
.experience-badge {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(138, 112, 255, 0.08);
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-size: 0.95rem;
    margin-bottom: 35px;
    color: var(--text-color);
    box-shadow: 0 0 20px rgba(138, 112, 255, 0.15);
}

/* Göz Alıcı Buton */
.glow-btn {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--primary), #6c5ce7);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px var(--primary-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glow-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(138, 112, 255, 0.8);
}

/* Göz Alıcı Müzik Çalar Butonu */
.music-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--card-bg);
    border: 1px solid var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 0 15px var(--primary-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.music-player:hover {
    transform: scale(1.1);
    border-color: var(--secondary);
    box-shadow: 0 0 20px var(--secondary-glow);
}

.music-player i {
    color: var(--text-color);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.music-player:hover i {
    color: var(--secondary);
}

/* Müzik Spektrum Çubukları (Çalarken Oynayan Animasyon) */
.music-bars {
    display: none;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    width: 20px;
    height: 15px;
    position: absolute;
}

.bar {
    width: 3px;
    height: 2px;
    background-color: var(--secondary);
    border-radius: 2px;
}

/* Müzik Aktifken Klasları */
.music-playing .music-bars {
    display: flex;
}

.music-playing #musicIcon {
    display: none;
}

.music-playing .bar:nth-child(1) { animation: bounce 0.5s ease infinite alternate; }
.music-playing .bar:nth-child(2) { animation: bounce 0.8s ease infinite alternate 0.2s; }
.music-playing .bar:nth-child(3) { animation: bounce 0.6s ease infinite alternate 0.4s; }

/* Genel Bölüm Ayarları */
section {
    padding: 120px 0;
}

section h2 {
    font-size: 2.6rem;
    margin-bottom: 50px;
    text-align: center;
    font-weight: 700;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 12px auto 0 auto;
    border-radius: 2px;
}

/* Hakkımda Bölümü */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    background: var(--card-bg);
    padding: 12px 22px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    font-weight: 500;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.skill-tag:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
    transform: translateY(-2px);
    color: var(--secondary);
}

/* Projeler Bölümü */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    min-height: 240px;
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(138, 112, 255, 0.15);
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.project-info p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tech span {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 12px;
    border-radius: 4px;
    margin-right: 8px;
    color: var(--secondary);
    border: 1px solid rgba(0, 242, 254, 0.1);
}

/* İletişim Bölümü */
.contact {
    text-align: center;
}

.contact p {
    color: var(--text-muted);
    margin-bottom: 35px;
    font-size: 1.1rem;
}

.contact-item {
    display: inline-block;
    font-size: 1.2rem;
    color: var(--text-color);
    text-decoration: none;
    background: var(--card-bg);
    padding: 18px 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.2);
    transform: scale(1.02);
}

.social-media {
    margin-top: 40px;
}

.social-media a {
    color: var(--text-muted);
    font-size: 2.2rem;
    margin: 0 20px;
    transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
    display: inline-block;
}

.social-media a:hover {
    transform: translateY(-5px);
}

.social-media a[title="GitHub"]:hover {
    color: #fff;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.6));
}

.social-media a[title="Instagram"]:hover {
    color: #f77737;
    filter: drop-shadow(0 0 8px rgba(247,119,55,0.6));
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* TAM MOBİL UYUM VE RESPONSIVE DESTEĞİ */
@media screen and (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-content h1 {
        font-size: 3.2rem;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0;
        background-color: rgba(6, 6, 12, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-links li {
        margin: 25px 0;
        opacity: 0;
    }
    
    .burger {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.6rem;
    }
    
    .subtitle {
        font-size: 1.25rem;
    }
    
    section {
        padding: 80px 0;
    }
    
    section h2 {
        font-size: 2.1rem;
    }

    .contact-item {
        padding: 15px 24px;
        font-size: 1rem;
        word-break: break-all;
    }

    .music-player {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
}

/* Navigasyon Tetikleyici Klaslar */
.nav-active {
    transform: translateX(0%);
}

/* Burger Çizgi Dönüşümleri */
.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.toggle .line2 { opacity: 0; }
.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

/* Rozet Nabız Animasyonu */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(138, 112, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(138, 112, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(138, 112, 255, 0); }
}

/* Spektrum Çubuk Animasyonu */
@keyframes bounce {
    0% { height: 3px; }
    100% { height: 16px; }
}

.animate-pulse {
    animation: pulse 2s infinite;
}