/* 
   Halil Akmazpınar - Kişisel Portfolyo CSS Dosyası
   YBS Dönem Sonu Sınav Uygulaması
*/

/* --- Değişkenler ve Tema Tanımları (Ödev Renk Paleti) --- */
:root {
    --primary-color: #0097a7;
    /* Mavi-Turkuaz arası ana renk */
    --primary-hover: #006064;
    /* Butonların hover rengi */
    --bg-light: #f4fbfb;
    /* Açık turkuaz arka plan tonu */
    --bg-white: #ffffff;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --border-color: #e5e7eb;
    --shadow-sm: 0 2px 8px rgba(0, 151, 167, 0.05);
    /* Yumuşak gölge */
    --shadow-md: 0 10px 30px rgba(0, 151, 167, 0.08);
    /* Kart gölgesi */
    --border-radius: 12px;
    /* Öğrenci projesi için sade köşe yumuşatması */
    --transition: all 0.25s ease-in-out;
}

/* --- Temel Sıfırlamalar (Reset) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    animation: fadeIn 0.8s ease-out forwards;
}

/* --- Genel Konteyner Yapısı --- */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buton Tasarımları --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 500;
    font-size: 15px;
    border-radius: 30px;
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 151, 167, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 12px;
}

.btn-secondary:hover {
    background-color: rgba(0, 151, 167, 0.05);
    transform: translateY(-2px);
}

/* --- Navigasyon Arayüzü --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.nav-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* --- Bölüm Başlıkları ve Dekorasyonları --- */
.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    color: #1e293b;
    margin-bottom: 8px;
}

.title-underline {
    width: 48px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto 48px auto;
    border-radius: 2px;
}

/* --- Kahraman (Hero) Bölümü --- */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
    background: radial-gradient(circle at top right, rgba(0, 151, 167, 0.1), transparent 50%),
        radial-gradient(circle at bottom left, rgba(0, 96, 100, 0.05), transparent 50%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    padding: 0 24px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 16px 0;
    color: var(--text-main);
}

.hero-content .highlight {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.badge {
    background-color: rgba(0, 151, 167, 0.1);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
}

/* --- Hakkımda Bölümü --- */
.about-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 17px;
    color: #475569;
    margin-bottom: 24px;
    line-height: 1.8;
}

/* --- Yetenekler Bölümü --- */
.skills-section {
    padding: 80px 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.skill-card {
    background-color: var(--bg-white);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.skill-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.html-css-icon,
.python-icon,
.csharp-icon,
.sql-icon {
    color: var(--primary-color);
    background-color: rgba(0, 151, 167, 0.05);
}

.skill-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.skill-card p {
    font-size: 15px;
    color: var(--text-muted);
}

/* --- Projeler Bölümü --- */
.projects-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--bg-white);
    border: 1.5px solid rgba(230, 235, 245, 0.8);
    border-radius: var(--border-radius);
    padding: 36px 30px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 151, 167, 0.05);
    border-color: rgba(0, 151, 167, 0.15);
}

.project-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.project-content p {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.7;
}

.project-tag {
    display: inline-block;
    background-color: rgba(0, 151, 167, 0.08);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

/* --- İletişim Bölümü --- */
.contact-section {
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.contact-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 20px;
}

.info-item strong {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
}

.info-item span {
    font-size: 16px;
    color: var(--text-main);
    font-weight: 500;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 151, 167, 0.15);
}

/* --- Footer & Sosyal Medya İkonları Tasarımı --- */
.footer {
    background-color: var(--bg-white);
    padding: 35px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer p {
    font-size: 14px;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-icon {
    color: var(--text-muted);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* --- Mobil Uyumlu Medya Sorguları --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .contact-wrapper {
        padding: 24px;
    }
}