@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --background: #ffffff;
    --text: #000000;
    --gradient-start: #f0f4ff;
    --gradient-end: #e9d5ff;
    --card-background: #ffffff;
    --card-border: #e5e7eb;
    --grid-color: rgba(0, 0, 0, 0.05);
}

.dark {
    --background: #1a1a1a;
    --text: #ffffff;
    --gradient-start: #1a1a2e;
    --gradient-end: #2d1b3d;
    --card-background: #2a2a2a;
    --card-border: #3a3a3a;
    --grid-color: rgba(255, 255, 255, 0.05);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.intro {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    margin-right: 2rem;
    font-size: 0.875rem;
}

.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
            linear-gradient(var(--grid-color) 1px, transparent 1px),
            linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0;
    z-index: -1;
}

.mouse-follower {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(64, 224, 208, 0.3) 0%, rgba(64, 224, 208, 0) 70%);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 1;
    transition: transform 0.15s ease-out;
}

.breadcrumb {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--text);
    text-decoration: none;
}

.hero {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1rem;
    gap: 2rem;
}

.profile-image {
    position: relative;
    margin: 0 auto;
}

.profile-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-image::after {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: linear-gradient(45deg, rgba(147, 51, 234, 0.3), rgba(79, 70, 229, 0.3));
    border-radius: 50%;
    z-index: -1;
    filter: blur(20px);
}

.latest-posts, .tech-stack, .contact, .latest-projects {
    padding: 0 1rem;
    margin: 2rem auto;
    max-width: 1200px;
}

.contact p {
    margin: 1rem auto;
}

.contact a {
    color: inherit;
    text-decoration: inherit;
}

.contact a:hover {
    color: #9766c8;
    text-decoration: inherit;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.post-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--card-border);
    border-radius: 0.5rem;
    background: var(--card-background);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
}

.post-card .post-content {
    flex-grow: 1;
}

.post-card .arrow {
    margin-left: 1rem;
}

.post-card:hover {
    transform: translateY(-2px);
    border-color: var(--text);
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.see-all {
    color: var(--text);
    opacity: 0.7;
    text-decoration: underline;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
}

.tech-item {
    padding: 0.5rem;
    background: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.tech-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.tech-item img:hover {
    transform: scale(1.3);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: #9766c8;
}

.social-links a {
    color: #9766c8;
    text-decoration: none;
}

.theme-toggle {
    margin-left: auto;
}

.theme-toggle button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
}

.header {
    padding: 1rem;
    margin: 0 auto;
    max-width: 1200px;
}



@media (min-width: 769px) {
    .hero {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 4rem;
        padding: 1.5rem 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    .profile-image img {
        width: 200px;
        height: 200px;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-grid {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 1rem;
    }

    .latest-posts, .tech-stack, .contact, .latest-projects {
        padding: 0 2rem;
        margin: 4rem auto;
    }

    .post-card {
        padding: 1.5rem;
    }

    .breadcrumb {
        padding: 1rem 2rem;
    }

    .intro {
        margin-top: 2rem;
        margin-bottom: 2rem;
        font-size: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .tech-item {
        padding: 0.75rem;
    }

    .tech-item img {
        width: 40px;
        height: 40px;
    }

    .header {
        padding: 2rem;
    }
}