:root {
    
    --accent-main: #0EA5E9; 
    --accent-secondary: #8B5CF6; 
    --gradient-primary: linear-gradient(135deg, var(--accent-main), var(--accent-secondary));
    
    --bg-dark: #0F172A; 
    --bg-card: #1E293B; 
    --bg-card-hover: #334155;
    
    --text-main: #F8FAFC; 
    --text-muted: #94A3B8;
    
    --font-main: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
}

/* genel ayarlarım */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}


header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-family: var(--font-code);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
}

.nav-links li a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--accent-main);
}

/* giriş bölümü */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 10% 50px 10%;
    background: radial-gradient(circle at top right, rgba(30, 41, 59, 0.5), var(--bg-dark));
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero p.greeting {
    font-family: var(--font-code);
    color: var(--accent-main);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.1;
    color: var(--text-main);
}

.hero h2 {
    font-size: 2.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    min-height: 50px;
}

.hero p.desc {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* butonlar */
.hero-actions {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 6px;
    font-family: var(--font-code);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 10px 25px -10px var(--accent-secondary);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--accent-main);
    color: var(--accent-main);
}

/* kod görseli / hatalı kontrol et */
.terminal {
    width: 100%;
    max-width: 500px;
    background-color: #011627;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.terminal-header {
    background-color: #1E293B;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background-color: #EF4444; }
.dot.yellow { background-color: #F59E0B; }
.dot.green { background-color: #10B981; }

.terminal-title {
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-main);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 25px;
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: #d6deeb;
    line-height: 1.6;
}

.terminal-body .keyword { color: #c792ea; }
.terminal-body .class-name { color: #ffcb6b; } 
.terminal-body .string { color: #addb67; }
.indent { margin-left: 20px; }
.indent-2 { margin-left: 40px; }

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background-color: var(--accent-main);
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}


section {
    padding: 120px 10%;
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--text-main);
}

.section-title::after {
    content: "";
    height: 1px;
    flex: 1;
    max-width: 300px;
    background-color: var(--bg-card);
    margin-left: 20px;
}

.section-title span {
    font-family: var(--font-code);
    color: var(--accent-main);
    font-size: 1.2rem;
    margin-right: 15px;
}

/* kullanılan teknolojiler / yetenekler */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

.skill-card {
    background-color: var(--bg-card);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.02);
}

.skill-card:hover {
    transform: translateY(-8px);
    background-color: var(--bg-card-hover);
    border-color: var(--accent-main);
}

.skill-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.skill-card h3 {
    font-size: 1rem;
    font-weight: 500;
}

/* projeler */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.02);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.project-header .folder-icon {
    color: var(--accent-main);
    font-size: 2.5rem;
}

.project-links a {
    color: var(--text-muted);
    font-size: 1.3rem;
    transition: color 0.3s;
}

.project-links a:hover {
    color: var(--accent-secondary);
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.project-tech {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--accent-main);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* iletişim */
.contact {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* footer */
footer {
    text-align: center;
    padding: 25px;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* animasyonlar */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* mobil uyum kontrol et */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-visual {
        justify-content: center;
        width: 100%;
        margin-top: 30px;
    }
    .hero h1 { font-size: 3.5rem; }
    .hero h2 { font-size: 1.8rem; }
    .nav-links { display: none; }
    header { justify-content: center; }
    .section-title { justify-content: center; }
    .section-title::after { display: none; }
}