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

html {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: #0a0a0a;
    color: #e5e5e5;
    line-height: 1.6;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    transition: background-color 0.5s ease, color 0.5s ease;
}

body.light-theme {
    background-color: #ffffff;
    color: #1a1a1a;
}

body.light-theme .header {
    border-bottom: 1px solid #e0e0e0;
}

body.light-theme .nav a {
    color: #1a1a1a;
}

body.light-theme .nav a:hover {
    color: #06A99D;
}

body.light-theme .social-links a {
    color: #666;
}

body.light-theme .hero p {
    color: #4a4a4a;
}

body.light-theme .section-title {
    color: #1a1a1a;
}

body.light-theme .timeline-year {
    color: #888;
}

body.light-theme .timeline-content {
    border-left: 2px solid #e0e0e0;
}

body.light-theme .timeline-content p {
    color: #4a4a4a;
}

body.light-theme .theme-toggle {
    border: 1px solid #e0e0e0;
    color: #666;
}

body.light-theme .theme-toggle:hover {
    border-color: #06A99D;
    color: #06A99D;
}

body.light-theme .profile {
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

body.light-theme .profile .section-title {
    color: #1a1a1a;
}

body.light-theme .profile p {
    color: #4a4a4a;
}

body.light-theme .stats {
    border-bottom: 1px solid #e0e0e0;
}

body.light-theme .stat-label {
    color: #666;
}

body.light-theme .post-item {
    border-top: 1px solid #e0e0e0;
}

body.light-theme .post-title a {
    color: #1a1a1a;
}

body.light-theme .post-excerpt {
    color: #4a4a4a;
}

body.light-theme .post-meta {
    color: #888;
}

body.light-theme .tag {
    background-color: rgba(6, 169, 157, 0.1);
    color: #06A99D;
    border: 1px solid rgba(6, 169, 157, 0.2);
}

body.light-theme .tag:hover {
    background-color: #06A99D;
    color: #ffffff;
    border-color: #06A99D;
}

body.light-theme .grid time {
    color: #888;
}

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    background: linear-gradient(135deg, #096E8A, #06A99D, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.logo:hover {
    animation: gradientShift 1.5s ease infinite;
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav a {
    color: #e5e5e5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #06A99D;
}

.nav a.active {
    color: #06A99D;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-left: 20px;
}

.social-links a {
    color: #888;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 6px;
}

.social-links a:hover {
    color: #06A99D;
    transform: translateY(-2px);
}

.theme-toggle {
    background: none;
    border: 1px solid #333;
    color: #888;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.theme-toggle:hover {
    border-color: #06A99D;
    color: #06A99D;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero {
    text-align: center;
    margin-bottom: 80px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #096E8A, #06A99D, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero h1:hover {
    animation: gradientShift 1.5s ease infinite;
    transform: scale(1.02);
}

.hero p {
    font-size: 18px;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

.section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #fff;
}

.timeline {
    position: relative;
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-year {
    min-width: 80px;
    color: #666;
    font-weight: 600;
    font-size: 18px;
    margin-right: 30px;
}

.timeline-content {
    flex: 1;
    padding-left: 20px;
    border-left: 2px solid #333;
    position: relative;
}

.timeline-content p {
    color: #ccc;
    line-height: 1.6;
}

.timeline-content a {
    color: #06A99D;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.timeline-content a:hover {
    border-color: #06A99D;
}

.contact-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.contact-links a {
    color: #06A99D;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-links a:hover {
    color: #0066ff;
}

.grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.grid-item-link {
    display: grid;
    grid-template-columns: 100px 1fr;
    /* Fixed width for time to align nicely */
    gap: 20px;
    text-decoration: none;
    align-items: baseline;
    transition: transform 0.2s ease;
}

.grid-item-link:hover {
    transform: translateX(5px);
}

.grid-item-link time {
    color: #666;
    font-weight: 600;
    font-size: 16px;
}

.grid-item-link .post-title-text {
    color: #06A99D;
    font-weight: 500;
    font-size: 18px;
    /* Match previous link size */
    transition: color 0.3s ease;
}

.grid-item-link:hover .post-title-text {
    color: #0066ff;
}

.main-content {
    flex: 1;
}

.stats {
    display: flex;
    gap: 60px;
    padding: 30px 0;
    border-bottom: 1px solid #333;
    margin-bottom: 0;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 32px;
    font-weight: 600;
    color: #06A99D;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #888;
    margin-top: 5px;
    display: block;
}

.posts-list {
    display: flex;
    flex-direction: column;
}

.post-item {
    padding: 40px 0;
    border-top: 1px solid #333;
}

.post-item:first-child {
    border-top: none;
}

.post-title {
    margin-bottom: 12px;
}

.post-title a {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.post-title a:hover {
    color: #06A99D;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #888;
}

.post-date {
    font-weight: 500;
}

.read-time::before {
    content: "•";
    margin-right: 15px;
    color: #444;
}

.post-excerpt {
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 16px;
}

.post-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    /* Center tags */
    margin-top: 15px;
}

.tag {
    background-color: rgba(6, 169, 157, 0.1);
    color: #06A99D;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(6, 169, 157, 0.3);
}

.tag:hover {
    background-color: #06A99D;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 169, 157, 0.2);
}

/* Single Post Styling */
.single-post {
    padding: 40px 0;
}

.single-post .post-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.single-post .post-title {
    font-size: 36px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #096E8A, #06A99D, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    font-weight: 800;
}

.single-post .post-meta {
    justify-content: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
}

.post-content {
    font-size: 17px;
    line-height: 1.8;
    color: #d4d4d4;
    max-width: 760px;
    margin: 0 auto;
}

.post-content h2 {
    font-size: 26px;
    color: #fff;
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
    font-weight: 700;
}

.post-content h3 {
    font-size: 20px;
    color: #06A99D;
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 600;
}

.post-content p {
    margin-bottom: 25px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content code {
    background: rgba(6, 169, 157, 0.15);
    color: #06A99D;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9em;
}

.post-content pre {
    background: #161616;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 30px 0;
    border: 1px solid #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.post-content pre code {
    background: none;
    color: #e0e0e0;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
}

.post-content blockquote {
    border-left: 4px solid #06A99D;
    padding: 15px 25px;
    margin: 30px 0;
    background: rgba(6, 169, 157, 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #bbb;
}

/* Light theme support for single post */
body.light-theme .post-content {
    color: #333;
}

body.light-theme .post-content h2 {
    color: #111;
    border-bottom-color: #e0e0e0;
}

body.light-theme .post-content h3 {
    color: #096E8A;
}

body.light-theme .post-content code {
    background: rgba(9, 110, 138, 0.1);
    color: #096E8A;
}

body.light-theme .post-content pre {
    background: #f8f9fa;
    border-color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.light-theme .post-content pre code {
    color: #333;
}

body.light-theme .post-content blockquote {
    background: rgba(9, 110, 138, 0.05);
    border-left-color: #096E8A;
    color: #555;
}

.profile {
    background-color: #111;
    padding: 60px 0;
    /* Increased padding */
    border-top: 1px solid #333;
    width: 100%;
    margin-top: 60px;
    /* Ensure separation from content */
}

.profile .section-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #fff;
}

.profile .section-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #fff;
}

.profile p {
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.7;
}

.profile-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-links a {
    color: #06A99D;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.profile-links a:hover {
    color: #0066ff;
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .header {
        flex-direction: column;
        gap: 20px;
    }

    .nav {
        gap: 20px;
    }

    .social-links {
        margin-left: 0;
    }

    .hero h1 {
        font-size: 36px;
    }

    .timeline-item {
        flex-direction: column;
    }

    .timeline-year {
        margin-bottom: 10px;
        margin-right: 0;
    }

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

    .grid time {
        font-size: 14px;
        color: #888;
    }

    .stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 24px;
    }

    .post-title a {
        font-size: 20px;
    }

    .post-item {
        padding: 30px 0;
    }

    .post-excerpt {
        font-size: 15px;
    }

    .profile-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Certifications Snake Timeline */
.certifications-snake {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 40px 20px;
    margin-top: 60px;
    padding: 40px 0;
}

/* Grid support for modern browsers */
@supports (display: grid) {
    .certifications-snake {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Timeline path - daha uzun */
.certifications-snake::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -5%;
    right: -5%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            #333 2%,
            #06A99D 10%,
            #06A99D 90%,
            #333 98%,
            transparent 100%);
    z-index: 0;
}

.cert-node {
    position: relative;
    z-index: 1;
}

/* Zigzag positioning */
.cert-node.odd {
    grid-row: 1;
    padding-bottom: 60px;
}

.cert-node.even {
    grid-row: 2;
    padding-top: 60px;
}

/* Timeline markers */
.cert-marker {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #06A99D;
    border: 3px solid #0a0a0a;
    border-radius: 50%;
    z-index: 2;
    left: 50%;
    transform: translateX(-50%);
}

/* Marker dikey pozisyonu ve yatay kaydırma (Zaman akışı için) */
/* Marker dikey pozisyonu */
.cert-node.odd .cert-marker {
    bottom: -7px;
    transform: translateX(calc(-50% - 25px));
}

.cert-node.even .cert-marker {
    top: -7px;
    transform: translateX(calc(-50% + 25px));
}



.cert-node.in-progress .cert-marker {
    background: #666;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(102, 102, 102, 0.7);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(102, 102, 102, 0);
    }
}

/* Connecting lines */
.cert-node::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 60px;
    background: #333;
    left: 50%;
    transform: translateX(-50%);
}



.cert-node.odd::after {
    bottom: 0;
    transform: translateX(calc(-50% - 25px));
}

.cert-node.even::after {
    top: 0;
    transform: translateX(calc(-50% + 25px));
}

.cert-node.in-progress::after {
    background: -webkit-gradient(linear, left top, left bottom, from(#333), to(#666));
    background: linear-gradient(180deg, #333, #666);
}

/* Card styling with Safari compatibility */
.cert-card {
    background: rgba(17, 17, 17, 0.6);
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    -webkit-animation: fadeIn 0.6s ease forwards;
    animation: fadeIn 0.6s ease forwards;
    min-height: 140px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.cert-node:nth-child(1) .cert-card {
    -webkit-animation-delay: 0.1s;
    animation-delay: 0.1s;
}

.cert-node:nth-child(2) .cert-card {
    -webkit-animation-delay: 0.2s;
    animation-delay: 0.2s;
}

.cert-node:nth-child(3) .cert-card {
    -webkit-animation-delay: 0.3s;
    animation-delay: 0.3s;
}

.cert-node:nth-child(4) .cert-card {
    -webkit-animation-delay: 0.4s;
    animation-delay: 0.4s;
}

.cert-node:nth-child(5) .cert-card {
    -webkit-animation-delay: 0.5s;
    animation-delay: 0.5s;
}

.cert-node:nth-child(6) .cert-card {
    -webkit-animation-delay: 0.6s;
    animation-delay: 0.6s;
}

.cert-node:nth-child(7) .cert-card {
    -webkit-animation-delay: 0.7s;
    animation-delay: 0.7s;
}

@-webkit-keyframes fadeIn {
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }

    from {
        opacity: 0;
        -webkit-transform: translateY(20px);
        transform: translateY(20px);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }

    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

.cert-card:hover {
    background: rgba(17, 17, 17, 0.9);
    border-color: #06A99D;
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
    -webkit-box-shadow: 0 10px 30px rgba(6, 169, 157, 0.2);
    box-shadow: 0 10px 30px rgba(6, 169, 157, 0.2);
}

.cert-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    margin-bottom: 10px;
    min-height: 30px;
}

.cert-name {
    font-size: 18px;
    font-weight: 700;
    color: #06A99D;
    margin: 0;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    white-space: nowrap;
}

.cert-node.in-progress .cert-name {
    color: #888;
}

.cert-date,
.cert-status {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
    flex: 0 0 auto;
    margin-left: 10px;
}

.cert-date {
    color: #06A99D;
    background: rgba(6, 169, 157, 0.1);
}

.cert-status {
    color: #666;
    background: rgba(102, 102, 102, 0.1);
    text-transform: uppercase;
}

.cert-full-name {
    color: #999;
    font-size: 13px;
    margin: 0 0 12px 0;
    line-height: 1.4;
    flex: 1;
}

.verify-btn {
    display: inline-block;
    color: #06A99D;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border: 1px solid rgba(6, 169, 157, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.verify-btn:hover {
    background: rgba(6, 169, 157, 0.1);
    border-color: #06A99D;
    transform: translateX(3px);
}

/* Light theme adjustments */
body.light-theme .certifications-snake::before {
    background: linear-gradient(90deg,
            transparent 0%,
            #ddd 2%,
            #096E8A 10%,
            #096E8A 90%,
            #ddd 98%,
            transparent 100%);
}

body.light-theme .cert-marker {
    background: #096E8A;
    border-color: #ffffff;
}

body.light-theme .cert-node.in-progress .cert-marker {
    background: #bbb;
}

body.light-theme .cert-node::after {
    background: #ddd;
}

body.light-theme .cert-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.light-theme .cert-card:hover {
    background: #ffffff;
    border-color: #096E8A;
    box-shadow: 0 10px 30px rgba(9, 110, 138, 0.15);
}

body.light-theme .cert-name {
    color: #096E8A;
}

body.light-theme .cert-node.in-progress .cert-name {
    color: #666;
}

body.light-theme .cert-date {
    color: #096E8A;
    background: rgba(9, 110, 138, 0.1);
}

body.light-theme .cert-status {
    color: #999;
    background: rgba(153, 153, 153, 0.1);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .certifications-snake {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0;
    }

    .certifications-snake::before {
        display: none;
    }

    .cert-node.odd,
    .cert-node.even {
        grid-row: auto;
        padding: 0;
        padding-left: 40px;
    }

    .cert-node::before {
        content: '';
        position: absolute;
        left: 10px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: #333;
    }

    .cert-node.in-progress::before {
        background: #666;
    }

    .cert-marker {
        position: absolute;
        left: 4px !important;
        top: 20px;
        transform: none;
    }

    .cert-node.odd .cert-marker,
    .cert-node.even .cert-marker {
        bottom: auto;
    }

    .cert-node::after {
        display: none;
    }
}