/* ====================================
   CSS RESET & BASE STYLES
   ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Açık, aydınlık ve rahatlatıcı renkler */
    --primary-bg: #f8f9fa;
    --secondary-bg: #ffffff;
    --hero-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-color: #667eea;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-lerp: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ====================================
   HERO SECTION
   ==================================== */
.hero {
    background: var(--hero-bg);
    color: white;
    padding: 80px 20px;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,122.7C1248,107,1344,85,1392,74.7L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-birth-year {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.hero-bio {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.read-more-btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: white;
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background-color: #f8f9fa;
}

/* ====================================
   MAIN CONTAINER
   ==================================== */
.main-container {
    max-width: 1600px;
    margin: 40px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    position: relative;
    min-height: 600px;
}

/* ====================================
   CONTENT PANEL (SABIT DIV)
   ==================================== */
.content-panel {
    background: var(--secondary-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    grid-column: 1;
    height: fit-content;
    min-height: 500px;
    width: 1000px;
    margin-left: 200px;
}

.content-scroll {
    padding: 40px;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.content-scroll::-webkit-scrollbar {
    width: 8px;
}

.content-scroll::-webkit-scrollbar-track {
    background: var(--primary-bg);
    border-radius: 4px;
}

.content-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.content-scroll::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

#content-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

#content-body {
    color: var(--text-secondary);
    line-height: 1.8;
}

#content-body h3 {
    color: var(--text-primary);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

#content-body p {
    margin-bottom: 1rem;
}

#content-body ul, #content-body ol {
    margin: 1rem 0 1rem 2rem;
}

#content-body li {
    margin-bottom: 0.5rem;
}

/* ====================================
   LEFT PANEL (Slide-in with LERP)
   ==================================== */
.left-panel {
    position: fixed;
    left: -350px;
    top: 50%;
    transform: translateY(-30%);
    width: 320px;
    background: var(--secondary-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 24px;
    transition: var(--transition-lerp);
    z-index: 100;
}

.left-panel.active {
    left: 20px;
}

.panel-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-info h3,
.content-navigation h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-color);
}

.info-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.info-item strong {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.info-item span {
    color: var(--text-primary);
    font-size: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
}

.status-badge.completed {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.published {
    background-color: #cce5ff;
    color: #004085;
}

.status-badge.in-progress {
    background-color: #fff3cd;
    color: #856404;
}

#content-nav-list {
    list-style: none;
    padding: 0;
}

#content-nav-list li {
    padding: 8px 12px;
    margin-bottom: 8px;
    background-color: var(--primary-bg);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-primary);
}

#content-nav-list li:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateX(4px);
}

/* ====================================
   RIGHT PANEL (Project List)
   ==================================== */
.right-panel {
    background: var(--secondary-bg);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    grid-column: 2;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.panel-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-align: center;
}

.project-list {
    width: 100%;
}

#project-list-container {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-item {
    background: var(--primary-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: var(--transition-smooth);
}

.project-item:hover::before {
    transform: scaleY(1);
}

.project-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.project-item.active {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
}

.project-item h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.project-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ====================================
   FOOTER
   ==================================== */
.footer {
    background: var(--secondary-bg);
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

/* ====================================
   ANIMATIONS
   ==================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .right-panel {
        grid-column: 1;
        position: static;
    }

    .content-panel {
        grid-column: 1;
        order: 2;
    }

    .right-panel {
        order: 1;
    }

    .left-panel {
        top: auto;
        bottom: 20px;
        left: -350px;
    }

    .left-panel.active {
        left: 20px;
    }
}

@media (max-width: 768px) {
    .hero-name {
        font-size: 2.5rem;
    }

    .hero-birth-year {
        font-size: 1.2rem;
    }

    .hero-bio {
        font-size: 1rem;
    }

    .content-panel {
        min-height: 300px;
    }

    .content-scroll {
        padding: 20px;
        max-height: none;
    }

    #content-title {
        font-size: 1.5rem;
    }

    .left-panel {
        width: 280px;
        left: -300px;
    }

    .left-panel.active {
        left: 10px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 15px;
    }

    .hero-name {
        font-size: 2rem;
    }

    .main-container {
        padding: 10px;
        margin: 20px auto;
    }

    .right-panel {
        padding: 20px;
    }

    .panel-title {
        font-size: 1.5rem;
    }
}