/* General Style */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

header {
    background-color: #24292e;
    color: white;
    text-align: center;
    padding: 1rem;
    position: relative;
}

header h1 {
    margin: 0.3rem 0;
    font-weight: 600;
}

header p {
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

#menuToggle {
    position: absolute;
    left: 1rem;
    top: 1rem;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Sidebar Menu */
#sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    width: 250px;
    height: 100%;
    background-color: #24292e;
    color: white;
    overflow-y: auto;
    transition: left 0.3s ease;
    z-index: 1000;
    padding-top: 3rem;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

#sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sidebar li {
    padding: 0.75rem 1.2rem;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
    margin: 0.2rem 0;
    transition: background 0.2s, transform 0.2s;
}

#sidebar li:hover {
    background-color: #3a3f44;
    transform: translateX(5px);
}

#sidebar a {
    color: white;
    text-decoration: none;
    display: block;
}

#sidebar .category {
    font-weight: 500;
    letter-spacing: 0.5px;
}

#sidebar .divider {
    height: 1.5rem; /* boşluk yüksekliği */
    list-style: none;
    pointer-events: none; /* fareyle etkileşimi kapatır */
}

/* Overlay */
#overlay {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 900;
}

/* Main Content */
main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1rem;
}

section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    padding: 1rem;
    margin-bottom: 2rem;
    transition: transform 0.2s;
}

/* Projects */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.project {
    background-color: #f9f9fb;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.project p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #555;
}

#loading {
    font-style: italic;
    text-align: center;
    color: #666;
}

/* Email Link */
.email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #24292e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.email-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
}

.email-link:hover {
    color: #0366d6;
}

.email-link:hover svg {
    transform: translateY(-2px);
}

/* Footer */
footer {
    text-align: center;
    margin: 2rem 0;
    font-size: 0.9rem;
    color: #666;
}