* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #f5f1eb 0%, #ebe6df 100%);
    color: #2d3748;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
}

.sidebar {
    width: 90px;
    background: linear-gradient(180deg, #8b6f47 0%, #a0826b 100%);
    padding: 40px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 2px 0 30px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.nav-item {
    width: 65px;
    height: 65px;
    color: #f5f1eb;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    position: relative;
    gap: 5px;
}

.nav-item::before {
    content: attr(data-icon);
    font-size: 22px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover {
    background: rgba(199, 144, 100, 0.3);
    transform: translateX(3px) scale(1.03);
}

.nav-item:hover::before {
    transform: scale(1.15);
}

.nav-item.active {
    background: linear-gradient(135deg, #c79064 0%, #a67c52 100%);
    box-shadow: 0 4px 20px rgba(199, 144, 100, 0.4);
    transform: translateX(3px);
}

.main-content {
    margin-left: 90px;
    flex: 1;
    padding: 60px 80px;
    max-width: calc(100vw - 90px);
    overflow-x: hidden;
    box-sizing: border-box;
}

.header {
    margin-bottom: 50px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 30px;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header h1 {
    font-size: 52px;
    color: #1a202c;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -1px;
}

.header h2 {
    font-size: 26px;
    color: #a67c52;
    font-weight: 600;
    margin-bottom: 20px;
    min-height: 35px;
}

.typewriter {
    overflow: hidden;
    border-right: 3px solid #a67c52;
    white-space: nowrap;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #a67c52;
    }
}

.contact-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
    animation: fadeIn 1s ease-out 0.5s;
    animation-fill-mode: both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.contact-item {
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
}

.contact-item a {
    color: #a67c52;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
}

.contact-item a:hover {
    color: #c79064;
}

.section {
    margin-bottom: 50px;
    scroll-margin-top: 30px;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }
.section:nth-child(6) { animation-delay: 0.6s; }

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

.section-title {
    font-size: 32px;
    color: #1a202c;
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 3px solid #a67c52;
    font-weight: 700;
    position: relative;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #c79064;
}

.about-text {
    line-height: 1.8;
    color: #4a5568;
    font-size: 16px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid #a67c52;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-category {
    background: rgba(255, 255, 255, 0.6);
    padding: 25px;
    border-radius: 8px;
    border-top: 3px solid #8b7355;
    transition: transform 0.3s;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(107, 93, 79, 0.15);
}

.skill-category h3 {
    color: #6b5d4f;
    margin-bottom: 15px;
    font-size: 18px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: #d4a574;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.experience-item, .project-item {
    background: rgba(255, 255, 255, 0.6);
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 8px;
    border-left: 4px solid #8b7355;
}

.experience-item h3, .project-item h3 {
    color: #6b5d4f;
    font-size: 22px;
    margin-bottom: 8px;
}

.experience-meta {
    color: #8b7355;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
}

.experience-item ul, .project-item ul {
    margin-left: 20px;
    margin-top: 15px;
}

.experience-item li, .project-item li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #4d4d4d;
}

.project-diagram {
    margin: 15px 0;
    text-align: center;
}

.project-diagram img {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.project-diagram img:hover {
    transform: scale(1.02);
}

.project-link {
    display: inline-block;
    margin-top: 10px;
    color: #8b7355;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.project-link:hover {
    color: #d4a574;
}

.education-item, .cert-item {
    background: white;
    padding: 28px;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 20px;
}

.education-item:hover, .cert-item:hover {
    border-color: #6366f1;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.1);
}

.cert-item.cert-upcoming {
    border-style: dashed;
    opacity: 0.85;
}

.cert-logo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
}

.cert-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cert-content {
    flex: 1;
}

.education-item h3, .cert-item h3 {
    color: #1a202c;
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 700;
}

.education-meta, .cert-meta {
    color: #6366f1;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cert-link {
    display: inline-block;
    margin-top: 8px;
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.cert-link:hover {
    color: #8b5cf6;
    transform: translateX(5px);
}

.cert-status {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}

/* MOBİL OPTİMİZASYON */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        bottom: 0;
        top: auto;
        flex-direction: row;
        padding: 12px 10px;
        gap: 4px;
        overflow-x: auto;
        overflow-y: hidden;
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
        z-index: 1000;
    }

    .nav-item {
        width: 55px;
        height: 55px;
        font-size: 9px;
        flex-shrink: 0;
    }

    .nav-item::before {
        font-size: 20px;
    }

    .main-content {
        margin-left: 0;
        margin-bottom: 80px;
        padding: 30px 20px;
        max-width: 100vw;
    }

    .header {
        margin-bottom: 35px;
        padding-bottom: 20px;
    }

    .header h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .header h2 {
        font-size: 18px;
        min-height: 28px;
    }

    .contact-info {
        flex-direction: column;
        gap: 12px;
    }

    .contact-item {
        font-size: 13px;
    }

    .section {
        margin-bottom: 35px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .about-text {
        padding: 20px;
        font-size: 14px;
        line-height: 1.7;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .skill-category {
        padding: 20px;
    }

    .skill-category h3 {
        font-size: 16px;
    }

    .skill-tag {
        font-size: 12px;
        padding: 5px 12px;
    }

    .experience-item, .project-item {
        padding: 20px;
        margin-bottom: 20px;
    }

    .experience-item h3, .project-item h3 {
        font-size: 18px;
    }

    .experience-meta {
        font-size: 13px;
    }

    .experience-item ul, .project-item ul {
        margin-left: 15px;
        font-size: 14px;
    }

    .experience-item li, .project-item li {
        margin-bottom: 8px;
    }

    .project-diagram img {
        border-radius: 8px;
        max-width: 100%;
    }

    .education-item, .cert-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 15px;
    }

    .cert-logo {
        width: 70px;
        height: 70px;
    }

    .education-item h3, .cert-item h3 {
        font-size: 18px;
    }

    .education-meta, .cert-meta {
        font-size: 13px;
    }

    .cert-link {
        font-size: 13px;
    }

    .cert-status {
        font-size: 12px;
        padding: 5px 12px;
    }
}

/* Küçük telefonlar için ekstra optimizasyon */
@media (max-width: 480px) {
    .header h1 {
        font-size: 28px;
    }

    .header h2 {
        font-size: 16px;
    }

    .section-title {
        font-size: 22px;
    }

    .main-content {
        padding: 25px 15px;
    }

    .nav-item {
        width: 50px;
        height: 50px;
        font-size: 8px;
    }

    .nav-item::before {
        font-size: 18px;
    }
}