/* Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #0d571d;
    --secondary-color: #0d571d;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-color: #6c757d;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --modal-bg: rgba(0, 0, 0, 0.6);
}

html { scroll-behavior: smooth; }
body { background-color: #f9f9f9; color: var(--dark-color); line-height: 1.6; }

/* Header & Nav */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

nav {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    margin-right: 10px;
}

.nav-links { display: flex; list-style: none; gap: 30px; margin: 0;}
.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--primary-color); }
.admin-link { color: #dc3545 !important; }

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Hero / Hakkımda */
.hakkım { margin-top: 80px; padding: 100px 0; }
.about-content { display: flex; gap: 50px; align-items: center; }
.about-img { flex: 1; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; height: auto; display: block; }
.about-text { flex: 1; }
.about-text h1 { color: var(--primary-color); font-size: 2.5rem; margin-bottom: 20px; }
.about-text p { font-size: 1.1rem; }

/* Butonlar */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 15px;
}
.btn:hover { background-color: #0a4015; transform: translateY(-2px); color: white; }
.btn-add { background-color: #198754; }
.btn-add:hover { background-color: #157347; }

/* Teknik Deneyimler */
.skills-section { background-color: rgb(146, 176, 146); padding: 80px 0; }
.skills-section h2, .skills-section p { color: white; }
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.skill-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    text-align: center;
}
.skill-card:hover { transform: translateY(-10px); }
.skill-icon { font-size: 40px; color: var(--primary-color); margin-bottom: 20px; }
.skill-card h3 { color: var(--primary-color); margin-bottom: 10px; }

/* --- PROJELER BÖLÜMÜ --- */
.projects-section { padding: 80px 0; background-color: #e9ecef; }
.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}
.project-card:hover { transform: translateY(-5px); }

/* Çoklu Resim Galerisi */
.project-gallery {
    height: 220px;
    overflow-x: auto;
    display: flex;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}
.project-gallery::-webkit-scrollbar { height: 6px; }
.project-gallery::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.project-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.project-info { padding: 20px; flex-grow: 1; }
.project-info h3 { color: var(--primary-color); font-size: 1.4rem; margin-bottom: 10px; }
.project-info p { color: #555; font-size: 0.95rem; }

/* Silme Butonu */
.delete-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px;
    width: 100%;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}
.delete-btn:hover { background-color: #bb2d3b; }

/* İletişim */
#contact { background-color: rgb(159, 175, 159); padding: 80px 0; color: white; }
.contact-container { display: flex; gap: 50px; margin-top: 30px; }
.contact-info, .contact-form { flex: 1; }
#contact p { color: white; }
.contact-item { display: flex; align-items: center; margin-bottom: 25px; }
.contact-icon {
    width: 50px; height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-right: 15px; color: var(--primary-color); font-size: 20px;
}
.contact-item h3 { color: var(--primary-color); margin-bottom: 5px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; color: var(--dark-color);}
.form-group input, .form-group textarea {
    width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px;
}

/* Footer */
footer { background-color: rgb(29, 26, 26); color: white; padding: 40px 0; text-align: center; }
.social-links { display: flex; justify-content: center; gap: 20px; margin: 20px 0; }
.social-links a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; transition: 0.3s;
}
.social-links a:hover { background-color: var(--primary-color); transform: translateY(-3px); }
.copyright { color: rgba(255, 255, 255, 0.7); font-size: 14px; }

/* Modals */
.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: var(--modal-bg);
    animation: fadeIn 0.5s;
}
.modal-content {
    background-color: white; margin: 5% auto; padding: 30px;
    border-radius: 10px; width: 90%; max-width: 500px;
    text-align: center; position: relative; animation: slideIn 0.5s;
}
.close {
    position: absolute; right: 20px; top: 10px; font-size: 28px;
    cursor: pointer; color: var(--gray-color);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links {
        position: fixed; top: 80px; left: -100%;
        width: 100%; height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column; align-items: center; padding-top: 40px;
        transition: 0.3s; box-shadow: var(--shadow);
    }
    .nav-links.active { left: 0; }
    .about-content, .contact-container { flex-direction: column; }
}