* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    color: white;
    background-color: #0f0f12;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    font-size: 16px;
}

#bg {
    background-color: #0e0e14;
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

#geometric-canvas {
    filter: blur(28px);
    transform: scale(1.25);
    mix-blend-mode: screen;
    opacity: 0.7;
}

#content {
    position: relative;
    z-index: 1;
}

section {
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Main section styles */
#main-section {
    padding: 5rem 0;
    min-height: 100vh;
}

.main-container {
    width: 92%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
}

/* Profile section styles */
.profile-section {
    margin-bottom: 5rem;
    animation: fadeInAnimation ease 1s;
    animation-fill-mode: forwards;
    width: 100%;
    max-width: 1200px;
}

.profile-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3.5rem;
}

.profile-image {
    flex-shrink: 0;
}

#me {
    border-radius: 50%;
    width: 220px;
    height: 220px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

#me:hover {
    transform: scale(1.03);
    border-color: rgba(255, 255, 255, 0.4);
}

.profile-details {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    font-size: 3.5rem;
    margin: 0 0 0.6rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.8rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.socials {
    display: flex;
    gap: 24px;
    align-items: center;
}

.social {
    width: 32px;
    height: 32px;
    object-fit: contain;
    opacity: 0.85;
    transition: all 0.2s ease;
}

.social:hover {
    opacity: 1;
    transform: translateY(-3px);
}

a {
    color: white;
    text-decoration: none;
}

/* Favorites section styles */
.favorites-section {
    width: 100%;
    text-align: left;
    margin-bottom: 4rem;
}

/* Blog section styles */
.blog-section {
    width: 100%;
    text-align: left;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
    color: #ffffff;
    position: relative;
    display: inline-block;
    text-align: left;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.2) 100%);
    border-radius: 2px;
}

/* Grid layout for posts */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 3rem;
    width: 100%;
}

.post-card {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
    height: 100%;
    position: relative;
    text-align: left;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.07);
}

.post-card.has-image {
    height: 380px;
}

.post-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.post-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top, rgba(15, 15, 18, 0.8), transparent);
}

.post-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-meta {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.post-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.post-category {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-category span {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.8);
}

/* Favorite card styles */
.favorite-card {
    position: relative;
}

.favorite-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.2rem;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    z-index: 2;
}


/* Responsive adjustments */
@media (max-width: 1400px) {
    .post-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 25px;
    }
    
    #me {
        width: 200px;
        height: 200px;
    }
    
    h1 {
        font-size: 3.2rem;
    }
    
    .subtitle {
        font-size: 1.4rem;
    }
}

@media (max-width: 1200px) {
    .post-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .profile-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .profile-details {
        text-align: center;
    }
    
    .socials {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    #main-section {
        padding: 3.5rem 0;
    }

    h1 {
        font-size: 2.6rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    #me {
        width: 180px;
        height: 180px;
    }
    
    .post-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 18px;
    }
    
    .main-container {
        width: 95%;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }
    
    .profile-section {
        margin-bottom: 3.5rem;
    }
    
    .post-card.has-image {
        height: 360px;
    }
    
    .post-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    #main-section {
        padding: 2.5rem 0;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .post-card.has-image {
        height: auto;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .post-title {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .profile-section {
        margin-bottom: 3rem;
    }
    
    #me {
        width: 160px;
        height: 160px;
    }
}