/* style.css */
:root {
    --primary-color: #1a1a1a;
    --text-color: #333333;
    --text-muted: #666666;
    --bg-color: #ffffff;
    --accent-blue: #4285F4;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Genel Link Stili */
a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2a5bb8;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    overflow-y: scroll; /* Sayfalar arası geçişte scrollbar kaynaklı genişlik kaymasını önler */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Navbar */
.header {
    width: 100%;
    padding: 24px 60px;
    position: relative;
    z-index: 10;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-color);
}

.logo-icon {
    color: var(--accent-blue);
    font-size: 1.4rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    pointer-events: none; /* Mouse eventleri arkadaki tsParticles'a gitsin */
}

.hero-content {
    text-align: center;
    pointer-events: auto; /* Yazılar seçilebilsin ve tıklanabilsin */
    padding: 40px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero h1 span {
    font-weight: 600;
}

.hero p {
    font-size: 1.6rem;
    color: var(--text-color);
    font-weight: 300;
}

/* Alt Sayfalar (Subpages) Genel Düzen */
.page-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Kartların yüksekliğini içeriğe göre ayarlar, ekranı doldurmasını engeller */
    padding: 60px 20px;
    position: relative;
    z-index: 1;
    pointer-events: none; /* Mouse eventleri arkadaki tsParticles'a gitsin */
}

.content-wrapper {
    max-width: 1000px;
    width: 100%;
    pointer-events: auto; /* Yazılar ve formlar tıklanabilsin */
    background: rgba(255, 255, 255, 0.2); /* Daha saydam arka plan */
    backdrop-filter: blur(8px); /* Hafif buzlu cam etkisi */
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.content-wrapper h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.content-wrapper > p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
    text-align: justify;
}

/* Projeler Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: rgba(255, 255, 255, 0.3); /* Daha saydam */
    backdrop-filter: blur(6px);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.project-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 0.95rem;
    text-align: justify;
}

.btn-text {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.btn-text:hover {
    color: #1a73e8;
}

/* Hakkımda (About) */

.about-card {
    background: rgba(255, 255, 255, 0.7); /* Cam efekti için hafif şeffaf */
    backdrop-filter: blur(15px); /* Arka planı bulanıklaştırarak yazıyı öne çıkarır */
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 800px;
    text-align: justify;
}

/* Yetenekler Bölümü Başlığı */
.skills-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.skills-section h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* Grid Yapısı */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}

.skill-category h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category h4 i {
    color: var(--accent-blue); /* İkon rengi */
    font-size: 1.1rem;
}

/* Etiketler (Tags) */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: rgba(66, 133, 244, 0.08); /* Yumuşak bir mavi arka plan */
    color: var(--accent-blue);
    padding: 7px 15px;
    border-radius: 12px; /* Tam yuvarlak yerine modern "squircle" hava */
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(66, 133, 244, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

/* Hover Efekti: Etiketlerin üzerine gelince renk değiştirir ve yukarı zıplar */
.skill-tag:hover {
    background: var(--accent-blue);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.3);
    border-color: var(--accent-blue);
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .about-card {
        padding: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr; /* Mobilde tek sütun */
        gap: 1.5rem;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
}

/* İletişim Formu (Contact) */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-left: 4px;
}

.form-group input,
.form-group textarea {
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    background: rgba(255, 255, 255, 0.4); /* Yarı saydam */
    color: var(--text-color);
    backdrop-filter: blur(4px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

.form-group input:hover,
.form-group textarea:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 1);
}

.form-group input:focus,
.form-group textarea:focus {
    background: #ffffff;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.15), 0 4px 12px rgba(0,0,0,0.05);
}

.contact-form .btn-primary {
    grid-column: 1 / -1;
    border: none;
    cursor: pointer;
    justify-content: center;
    padding: 16px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 16px;
    margin-top: 10px;
    background: linear-gradient(135deg, #4b8df7, #8e58ed); /* Bir ton koyu mavi-mor geçişi */
    color: #fff;
    box-shadow: 0 4px 15px rgba(75, 141, 247, 0.35);
    width: 100%;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(75, 141, 247, 0.5);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #3878e3, #7b46d9); /* Hover için hafif koyulaştırılmış hali */
}

.contact-form .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    grid-column: 1 / -1;
    padding: 16px;
    border-radius: 12px;
    margin-top: 16px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Proje Detay Sayfası */
.project-detail-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.back-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    display: inline-block;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #1a73e8;
    text-decoration: underline;
}

.project-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.2;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.project-gallery {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.project-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.project-description {
    margin-top: 16px;
}

.project-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: var(--primary-color);
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.95rem;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .header {
        padding: 20px;
    }
    .navbar {
        flex-direction: column;
        gap: 20px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    .content-wrapper {
        padding: 30px 20px;
    }
    .content-wrapper h2 {
        font-size: 2rem;
    }
    .contact-form {
        grid-template-columns: 1fr;
    }
}
