@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&display=swap');

:root {
    --bg-body: #0E0F10;
    --bg-card: #161718;
    --primary: #2DD4BF;       
    --accent: #5EEAD4;        
    --text-main: #DCDCDC;
    --text-muted: #9CA3AF;    
    --border: #262728;
    --glass: rgba(14, 15, 16, 0.85); /* Daha koyu transparan */
    
    --radius: 16px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-muted);
    line-height: 1.6;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* NAVBAR */
.navbar {
    position: fixed; top: 0; width: 100%; height: 80px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000;
}

.nav-container {
    width: 100%; max-width: 1200px; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}

.logo { 
    font-size: 1.8rem; font-weight: 800; letter-spacing: -1px; 
    color: var(--text-main); position: relative;
    font-family: 'JetBrains Mono', monospace; /* Logo da kod fontu olsun */
}
.logo span { color: var(--primary); }

.nav-links { display: flex; gap: 40px; }
.nav-link { 
    font-size: 15px; color: var(--text-muted); font-weight: 500; 
    position: relative;
}
.nav-link::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background-color: var(--primary);
    transition: var(--transition);
}
.nav-link:hover { color: var(--text-main); }
.nav-link:hover::after { width: 100%; }

/* HERO SECTION (DEVELOPER BACKGROUND) */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center; padding: 120px 20px 0;
    position: relative;
    /* KODLAMA GÖRSELİ + KARARTMA KATMANI */
    background-image: 
        linear-gradient(to bottom, rgba(14, 15, 16, 0.85), rgba(14, 15, 16, 0.95)),
        url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?q=80&w=1920&auto=format&fit=crop'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax efekti */
}

.hero-avatar {
    width: 150px; height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    padding: 4px;
    background: rgba(255,255,255,0.05);
    margin-bottom: 25px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    animation: fadeInDown 1s ease-out;
}

.hero-content-wrapper { position: relative; z-index: 2; max-width: 800px; }

.hero-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem; color: var(--primary);
    background: rgba(45, 212, 191, 0.1);
    padding: 6px 12px; border-radius: 4px;
    margin-bottom: 20px; display: inline-block;
    border: 1px solid rgba(45, 212, 191, 0.2);
}

.hero h1 {
    font-size: 4rem; font-weight: 800; letter-spacing: -2px;
    color: var(--text-main); margin-bottom: 15px; line-height: 1.1;
}

/* TYPEWRITER (Daktilo) EFEKTİ İÇİN STİL */
.typewrite {
    color: var(--primary); font-family: 'JetBrains Mono', monospace;
    border-right: 2px solid var(--text-muted); /* İmleç */
    padding-right: 5px;
    animation: blinkCursor 0.7s infinite;
}

.hero-subtitle {
    font-size: 1.8rem; font-weight: 400; color: var(--text-muted);
    margin-bottom: 25px; letter-spacing: -0.5px; height: 40px; /* Titremeyi önler */
}

.hero p {
    font-size: 1.15rem; color: var(--text-muted);
    font-weight: 400; max-width: 650px; margin: 0 auto 40px;
    line-height: 1.7; opacity: 0.9;
}

.cta-group { 
    display: flex; gap: 20px; justify-content: center;
    position: relative; z-index: 2;
}

/* BUTTONS */
.btn {
    padding: 16px 40px; border-radius: 8px; font-size: 1rem; font-weight: 600;
    transition: var(--transition); display: inline-block; cursor: pointer;
    position: relative; overflow: hidden; font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--primary); color: #0E0F10;
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.2);
}
.btn-primary:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 0 40px rgba(45, 212, 191, 0.4); 
    background: var(--accent);
}

.btn-outline {
    border: 1px solid var(--border); color: var(--text-main); 
    background: rgba(255,255,255,0.02);
}
.btn-outline:hover { 
    border-color: var(--text-main); background: rgba(255,255,255,0.05); 
    transform: translateY(-5px);
}

/* SECTIONS GLOBAL */
section { padding: 140px 20px; max-width: 1200px; margin: 0 auto; scroll-margin-top: 50px; }

.section-header { margin-bottom: 80px; text-align: left; border-left: 4px solid var(--primary); padding-left: 20px; }
.section-title { font-size: 3rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -1px; color: var(--text-main); }
.section-title span { color: var(--primary); }
.section-desc { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; }

/* BENTO GRID */
.bento-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px;
}

.card {
    background-color: var(--bg-card); border-radius: var(--radius); padding: 40px;
    display: flex; flex-direction: column; justify-content: space-between;
    transition: var(--transition); position: relative; border: 1px solid var(--border); z-index: 1;
}
.card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.card h3 { font-size: 1.8rem; font-weight: 700; margin-bottom: 15px; color: var(--text-main); }
.card p { font-size: 1.1rem; color: var(--text-muted); line-height: 1.6; }

/* CODE WINDOW */
.code-window {
    background: #0d0d0d; border-radius: 8px; border: 1px solid #333;
    padding: 15px; margin-top: 25px; font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem; color: #aaa; position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.window-header { display: flex; gap: 6px; margin-bottom: 15px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.code-line { display: flex; justify-content: space-between; margin-bottom: 5px; }
.cl-accent { color: var(--primary); }
.cl-blue { color: var(--accent); }
.cl-green { color: #27c93f; }

/* SKILLS */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.skill-category {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 30px; transition: var(--transition);
}
.skill-category:hover { border-color: var(--accent); transform: translateY(-5px); }
.skill-title { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 25px; display: block; }
.tech-list { display: flex; gap: 12px; flex-wrap: wrap; }
.tech-item {
    background: rgba(255,255,255,0.03); padding: 10px 16px;
    border-radius: 8px; font-size: 0.95rem; font-weight: 500;
    color: var(--text-main); border: 1px solid var(--border);
    transition: 0.3s; display: flex; align-items: center; gap: 8px; cursor: default;
}
.tech-item:hover { border-color: var(--primary); background: rgba(45, 212, 191, 0.1); transform: scale(1.05); color: var(--primary); }

/* TIMELINE */
.timeline-container { border-left: 3px solid var(--border); padding-left: 50px; margin-left: 15px; display: flex; flex-direction: column; gap: 60px; }
.timeline-item { position: relative; }
.timeline-item::before {
    content: ''; position: absolute; left: -60px; top: 8px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--bg-body); border: 3px solid var(--primary);
    box-shadow: 0 0 15px var(--primary); transition: var(--transition);
}
.timeline-item:hover::before { background: var(--primary); transform: scale(1.2); }
.timeline-date { font-size: 1rem; color: var(--primary); font-weight: 700; margin-bottom: 8px; }
.timeline-title { font-size: 1.5rem; font-weight: 700; color: var(--text-main); margin-bottom: 10px; }

/* ABOUT SECTION */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.about-bio {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 40px; position: relative; overflow: hidden; transition: var(--transition);
    height: 100%; display: flex; flex-direction: column; justify-content: center;
}
.about-bio:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.about-bio h3 { font-size: 1.8rem; font-weight: 700; color: var(--text-main); margin-bottom: 20px; }
.about-bio p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 15px; line-height: 1.7; }
.highlight { color: var(--primary); font-weight: 600; }
.signature { font-family: 'Dancing Script', cursive; font-size: 2rem; color: var(--text-muted); opacity: 0.5; margin-top: auto; display: block; text-align: right; }

.about-info-grid { display: flex; flex-direction: column; gap: 24px; height: 100%; }
.info-card-wrapper {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 25px; transition: var(--transition); flex: 1; display: flex; flex-direction: column; justify-content: center;
}
.info-card-wrapper:hover { border-color: var(--primary); transform: translateX(5px); }
.info-box { display: flex; align-items: center; gap: 20px; }
.info-icon {
    width: 50px; height: 50px; border-radius: 12px; background: rgba(45, 212, 191, 0.1); color: var(--primary);
    display: flex; justify-content: center; align-items: center; font-size: 1.4rem; flex-shrink: 0;
}
.info-content h4 { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.info-content span { font-size: 1.1rem; color: var(--text-main); font-weight: 600; }
.skills-wrapper-title { margin-bottom: 15px; font-weight: 700; color: var(--text-main); font-size: 1rem; }
.tags-container { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
    background: rgba(45, 212, 191, 0.05); padding: 6px 12px;
    border-radius: 6px; font-size: 0.8rem; color: var(--text-main);
    border: 1px solid var(--border); transition: 0.3s; cursor: default;
}
.skill-tag:hover { background: var(--primary); color: #0E0F10; border-color: var(--primary); }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.contact-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: var(--transition); cursor: pointer; text-align: center;
}
.contact-card:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-10px); }
.contact-card:hover h3, .contact-card:hover p, .contact-card:hover i { color: #0E0F10; }
.contact-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; transition: 0.3s; }
.contact-card h3 { font-size: 1.3rem; font-weight: 800; color: var(--text-main); margin-bottom: 5px; }
.contact-card p { font-size: 1rem; color: var(--text-muted); }

footer { padding: 50px 20px; text-align: center; font-size: 14px; color: var(--text-muted); border-top: 1px solid var(--border); margin-top: 80px; }

/* KEYFRAMES */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blinkCursor { from { border-right-color: var(--primary); } to { border-right-color: transparent; } }

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-info-grid { height: auto; }
}
@media (max-width: 768px) {
    .navbar { height: 70px; }
    .hero h1 { font-size: 3rem; }
    .bento-grid, .skills-grid, .contact-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hero-avatar { width: 120px; height: 120px; }
}