/* CSS Değişkenleri - Açık Mod */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #666666;
    --border-color: #e0e0e0;
    --accent-color: #000000;
    --accent-hover: #333333;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* CSS Değişkenleri - Koyu Mod */
[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --border-color: #333333;
    --accent-color: #ffffff;
    --accent-hover: #cccccc;
    --shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
    --shadow-lg: 0 4px 8px rgba(255, 255, 255, 0.15);
}

/* Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    font-weight: 400;
    letter-spacing: -0.01em;
    font-size: 14px;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem 1rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Tema Değiştirme Butonu */
.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: none;
}

.theme-toggle:hover {
    transform: scale(1.1);
    opacity: 0.7;
}

.theme-icon {
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

/* Ay ikonu (açık modda gösterilir) */
.moon-icon {
    display: block;
}

.sun-icon {
    display: none;
}

/* Koyu modda güneş ikonu gösterilir */
[data-theme="dark"] .moon-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: block;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(180deg);
}

/* Ana İçerik */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-top: 2rem;
}

/* Profil Bölümü */
.profile-section {
    margin-bottom: 2rem;
    align-self: flex-start;
}

.profile-image-container {
    position: relative;
    display: inline-block;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    transition: all 0.3s ease;
    box-shadow: none;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1)) grayscale(100%);
}

.profile-image:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.15)) grayscale(0%);
}

/* İsim Bölümü */
.name-section {
    margin-bottom: 2rem;
    align-self: flex-start;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.title {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: none;
}

/* Açıklama Bölümü */
.description-section {
    margin-bottom: 3rem;
    max-width: 600px;
    align-self: flex-start;
}

.description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.005em;
}

/* Linkler Bölümü */
.links-section {
    margin-bottom: 3rem;
    max-width: 600px;
    align-self: flex-start;
}

.links-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    text-transform: none;
}

.links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: none;
}

.link-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    border-color: var(--accent-color);
}

.link-text {
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: -0.005em;
}

.link-arrow {
    font-size: 1rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.link-item:hover .link-arrow {
    opacity: 1;
    transform: translateX(2px);
}

/* Projeler Bölümü */
.projects-section {
    margin-bottom: 3rem;
    max-width: 600px;
    align-self: flex-start;
}

.projects-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    text-transform: none;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: none;
}

.project-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    border-color: var(--accent-color);
}

.project-text {
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: -0.005em;
}

.project-arrow {
    font-size: 1rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.project-item:hover .project-arrow {
    opacity: 1;
    transform: translateX(2px);
}

/* Kullandıklarım Bölümü */
.tools-section {
    margin-bottom: 3rem;
    max-width: 600px;
    align-self: flex-start;
}

.tools-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    text-transform: none;
}

.tools-categories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.category {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-label {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.005em;
}

.tool-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-button {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.005em;
    transition: all 0.3s ease;
    cursor: default;
}

.tool-button:hover {
    background: var(--border-color);
    transform: translateY(-1px);
}

/* İletişim Bölümü */
.contact-section {
    margin-bottom: 1.5rem;
    width: 100%;
    text-align: center;
    align-self: center;
}

.contact-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    text-transform: none;
}

.contact-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
    letter-spacing: -0.005em;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: -0.005em;
    transition: all 0.3s ease;
    min-width: 180px;
    justify-content: center;
}

.contact-button.primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    border: 1px solid var(--text-primary);
}

.contact-button.primary:hover {
    background: var(--text-secondary);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

.contact-button.secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.contact-button.secondary:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

.contact-separator {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 300;
}

.button-icon {
    font-size: 0.9rem;
}

.button-arrow {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.contact-button:hover .button-arrow {
    opacity: 1;
    transform: translateX(2px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .theme-icon {
        width: 14px;
        height: 14px;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .title {
        font-size: 0.95rem;
    }
    
    .description {
        font-size: 0.95rem;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .links-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .tools-categories {
        gap: 1.25rem;
    }
    
    .tool-buttons {
        gap: 0.4rem;
    }
    
    .tool-button {
        padding: 0.35rem 0.7rem;
        font-size: 0.75rem;
    }
    
    .link-item {
        padding: 0.7rem 1rem;
    }
    
    .contact-button {
        min-width: 160px;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }
    
    .name {
        font-size: 1.75rem;
    }
    
    .title {
        font-size: 0.95rem;
    }
    
    .description {
        font-size: 0.95rem;
    }
    
    .profile-image {
        width: 80px;
        height: 80px;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .links-title,
    .tools-title,
    .contact-title {
        font-size: 1rem;
    }
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-section,
.name-section,
.description-section,
.links-section,
.projects-section,
.tools-section,
.contact-section {
    animation: fadeInUp 0.6s ease-out;
}

.profile-section {
    animation-delay: 0.1s;
}

.name-section {
    animation-delay: 0.2s;
}

.description-section {
    animation-delay: 0.3s;
}

.links-section {
    animation-delay: 0.4s;
}

.projects-section {
    animation-delay: 0.5s;
}

.tools-section {
    animation-delay: 0.6s;
}

.contact-section {
    animation-delay: 0.7s;
}

/* Koyu mod için özel stiller */
[data-theme="dark"] .profile-image {
    border-color: var(--border-color);
}

[data-theme="dark"] .theme-toggle {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

/* Erişilebilirlik */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus stilleri */
.theme-toggle:focus {
    outline: none;
}

.link-item:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print stilleri */
@media print {
    .theme-toggle {
        display: none;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
