/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #e8e8e8;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Home Container */
.home-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Content Wrapper */
.content-wrapper {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

/* Profile Image */
.profile-image {
    margin-bottom: 2rem;
}

.profile-pic {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: rotate(5deg);
}

/* Name */
.name {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

/* Description */
.description {
    margin-bottom: 2.5rem;
}

.quote {
    font-size: 1.15rem;
    color: #444;
    margin-bottom: 0.75rem;
    line-height: 1.7;
    font-weight: 400;
    font-style: italic;
}

.bio {
    font-size: 1.15rem;
    color: #444;
    line-height: 1.7;
    font-weight: 400;
}

/* Navigation Links */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    letter-spacing: 0.01em;
}

.nav-link:hover {
    color: #000;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #333;
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.2s ease;
    text-decoration: none;
}

.social-icon:hover {
    color: #000;
}

.social-icon svg {
    width: 100%;
    height: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .name {
        font-size: 2.5rem;
    }

    .quote,
    .bio {
        font-size: 1.05rem;
    }

    .profile-pic {
        width: 180px;
        height: 180px;
    }

    .quote,
    .bio {
        font-size: 0.95rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .social-icons {
        gap: 1.25rem;
    }

    .social-icon {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2rem;
    }

    .quote,
    .bio {
        font-size: 1rem;
    }

    .nav-link {
        font-size: 1rem;
    }

    .profile-pic {
        width: 150px;
        height: 150px;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.95rem;
    }

    .social-icon {
        width: 24px;
        height: 24px;
    }
}

/* Blog Styles */
.blog-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4rem 2rem 2rem;
}

.blog-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.blog-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2.5rem;
    text-align: left;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.blog-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.blog-post-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.blog-post-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.blog-post-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-post-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-post-card-title a:hover {
    color: #6366f1;
}

.blog-post-card-description {
    color: #444;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.6em * 3);
    word-wrap: break-word;
}

.blog-post-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #666;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.blog-post-card-date {
    font-weight: 400;
}

.blog-post-card-reading-time {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 400;
}

.blog-post-card-reading-time svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Single Blog Post */
.blog-post {
    max-width: 650px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
    .blog-post {
        padding: 1.5rem 1rem;
        border-radius: 8px;
    }
}

.blog-post-header {
    margin-bottom: 2rem;
    text-align: left;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.blog-post-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.blog-post-date {
    display: block;
    font-size: 0.95rem;
    color: #666;
    font-weight: 400;
    margin-top: 0.5rem;
}

.blog-post-content {
    color: #1a1a1a;
    line-height: 1.7;
    font-size: 1rem;
}

.blog-post-content p {
    margin-bottom: 1.25rem;
    text-align: left;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
    margin: 1.5rem auto;
    display: block;
    background: #fff;
    padding: 0.25rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-content img:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.blog-post-content h2 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    text-align: left;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.blog-post-content h3 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: left;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.blog-post-content a {
    color: #1a1a1a;
    text-decoration: underline;
    text-decoration-color: #cbd5e1;
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.blog-post-content a:hover {
    color: #6366f1;
    text-decoration-color: #6366f1;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

.blog-subscribe {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f5f5f5;
    border-radius: 8px;
    text-align: center;
}

.subscribe-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.subscribe-description {
    color: #444;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.subscribe-form {
    max-width: 400px;
    margin: 0 auto;
}

.subscribe-input-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.subscribe-input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fff;
    color: #333;
    transition: border-color 0.2s ease;
}

.subscribe-input:focus {
    outline: none;
    border-color: #666;
}

.subscribe-button {
    padding: 0.75rem 1.5rem;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: inherit;
}

.subscribe-button:hover {
    background-color: #000;
}

.subscribe-button:active {
    transform: translateY(1px);
}

.subscribe-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.subscribe-message {
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.5rem;
}

.subscribe-message.success {
    color: #28a745;
}

.subscribe-message.error {
    color: #dc3545;
}

.blog-post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.back-link {
    color: #666;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #333;
}

@media (max-width: 768px) {
    .blog-container {
        padding: 2rem 1rem;
    }

    .blog-title {
        font-size: 2.5rem;
    }

    .blog-list {
        gap: 1.25rem;
    }

    .blog-post-card {
        padding: 1.25rem;
    }

    .blog-post-title {
        font-size: 2rem;
    }

    .blog-post-content {
        font-size: 1rem;
    }

    .blog-post-content img {
        border-radius: 8px;
        margin: 1.5rem 0;
    }

    .blog-subscribe {
        padding: 1.5rem;
    }

    .subscribe-title {
        font-size: 1.3rem;
    }

    .subscribe-input-group {
        flex-direction: column;
    }

    .subscribe-input {
        min-width: 100%;
    }

    .subscribe-button {
        width: 100%;
    }
}