html {
    overflow-x: hidden;
}

body {
    background: #2A2A2A;
    color: #fff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    margin: 0;
    position: relative;
    min-height: 100vh;
    padding-bottom: 100px;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
}

@media (max-width: 480px) {
    .main-content {
        padding: 1.5rem 0.75rem;
    }
}

@media (max-width: 360px) {
    .main-content {
        padding: 1rem 0.5rem;
    }
}

h1 {
    font-size: 3rem;
    font-weight: 300;
    margin: 0 0 3rem 0;
    font-family: 'Share Tech Mono', monospace;
    align-self: flex-start;
}

.site-title-link {
    color: inherit;
    text-decoration: underline;
}

/* Profile Card Section */
.profile-card {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    box-sizing: border-box;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.35rem 0;
    color: #fff;
}

.profile-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.profile-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.profile-location svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.profile-social {
    display: flex;
    gap: 0.4rem;
}

.profile-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
}

.profile-social-link:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.profile-social-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
}

.profile-image-placeholder svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
}

@media (max-width: 600px) {
    .profile-card {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .profile-location {
        justify-content: center;
    }

    .profile-social {
        justify-content: center;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }
}

/* Hero Section (legacy) */
.hero-section {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 2.5rem auto;
    text-align: center;
    box-sizing: border-box;
}

.hero-title {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    font-family: 'Share Tech Mono', monospace;
    color: #4ade80;
}

.hero-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-family: 'Share Tech Mono', monospace;
}

/* Hero Links */
.hero-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    align-items: center;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.hero-link:hover {
    color: #4ade80;
}

.hero-link-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Projects Section */
.projects-section {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 3rem auto;
    box-sizing: border-box;
}

/* Section Titles */
.section-title {
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0 0 0.75rem 0;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.projects-title {
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0 0 0.75rem 0;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* About Section */
.about-section {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 1.5rem auto;
    box-sizing: border-box;
}

.about-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Experience Section */
.experience-section {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 1.5rem auto;
    box-sizing: border-box;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.experience-item {
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.experience-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.15rem;
    flex-wrap: wrap;
}

.experience-role {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.experience-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.experience-company {
    font-size: 0.85rem;
    color: #4ade80;
    margin-bottom: 0.35rem;
}

.experience-desc {
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 0.5rem 0;
}

.experience-location {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.25rem;
}

/* Education Section */
.education-section {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 1.5rem auto;
    box-sizing: border-box;
}

.education-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.education-item {
    padding: 0.65rem 0.875rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.education-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.1rem;
    flex-wrap: wrap;
}

.education-degree {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.education-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.education-school {
    font-size: 0.8rem;
    color: #4ade80;
}

.education-location {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 0.1rem;
}

@media (max-width: 768px) {
    .education-section {
        padding: 0 0.5rem;
    }

    .education-header {
        flex-direction: column;
        gap: 0.15rem;
    }

    .education-degree {
        font-size: 0.85rem;
    }

    .education-item {
        padding: 0.6rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .education-section {
        margin-bottom: 1.25rem;
    }

    .education-degree {
        font-size: 0.8rem;
    }

    .education-school {
        font-size: 0.75rem;
    }

    .education-item {
        padding: 0.5rem 0.65rem;
    }
}

/* Tech Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tech-tag {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.25);
    border-radius: 3px;
    font-size: 0.7rem;
    color: #4ade80;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-card:hover {
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(74, 222, 128, 0.3);
    transform: translateY(-2px);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    font-family: 'Share Tech Mono', monospace;
}

.project-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.project-status.active {
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

.project-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.project-card .tech-tags {
    margin-top: 0.25rem;
}

/* Blog Intro */
.blog-intro {
    width: 100%;
    max-width: 720px;
    margin: 0.5rem auto 0 auto;
    box-sizing: border-box;
}

.blog-intro-title {
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.blog-intro-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

/* Social Links Bar */
.social-links-bar {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    display: flex;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0.8;
    transition: all 0.2s ease;
}

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

.social-icon-bar {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .about-section {
        padding: 0 0.5rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .experience-section {
        padding: 0 0.5rem;
    }

    .experience-header {
        flex-direction: column;
        gap: 0.25rem;
    }

    .experience-role {
        font-size: 1.05rem;
    }

    .experience-item {
        padding: 1rem 1.25rem;
    }

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

    .project-card {
        padding: 1rem 1.25rem;
    }

    .social-links-bar {
        bottom: 1rem;
        left: 1rem;
        padding: 0.5rem 0.75rem;
        gap: 0.6rem;
    }

    .social-icon-bar {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-text {
        font-size: 0.95rem;
    }

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

    .about-text {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1rem;
    }

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

    .experience-role {
        font-size: 1rem;
    }

    .experience-company {
        font-size: 0.9rem;
    }

    .experience-desc {
        font-size: 0.9rem;
    }

    .experience-item {
        padding: 1rem;
    }

    .tech-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }

    .projects-section {
        margin-bottom: 2.5rem;
        padding: 0 0.5rem;
    }

    .projects-title {
        font-size: 1rem;
    }

    .project-name {
        font-size: 1.05rem;
    }

    .project-desc {
        font-size: 0.85rem;
    }

    .blog-intro {
        padding: 0 0.5rem;
        margin-bottom: 1rem;
    }

    .social-links-bar {
        bottom: 0.75rem;
        left: 0.75rem;
        padding: 0.4rem 0.6rem;
        gap: 0.5rem;
    }

    .social-icon-bar {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.25rem;
    }

    .hero-text {
        font-size: 0.9rem;
    }

    .project-card {
        padding: 0.875rem 1rem;
    }

    .project-name {
        font-size: 1rem;
    }

    .social-links-bar {
        bottom: 0.5rem;
        left: 0.5rem;
    }
}

h2 {
    font-size: 2rem;
    font-weight: 300;
    margin: 0 0 1.5rem 0;
    font-family: 'Share Tech Mono', monospace;
}

h3 {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 2rem 0 1rem 0;
    font-family: 'Share Tech Mono', monospace;
}

.corner-box {
    position: fixed;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 300;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 140px;
    max-width: 200px;
    text-align: center;
}

.corner-box:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.counter {
    bottom: 1.5rem;
    right: 1.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .corner-box {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        min-width: 120px;
        max-width: 160px;
        bottom: 1rem;
    }

    .counter {
        right: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    .corner-box {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
        min-width: 100px;
        max-width: 140px;
        bottom: 0.75rem;
    }

    .counter {
        right: 0.75rem;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    h1 {
        font-size: 1.25rem;
    }

    .corner-box {
        padding: 0.4rem 0.5rem;
        font-size: 0.7rem;
        min-width: 80px;
        max-width: 120px;
        bottom: 0.5rem;
    }

    .counter {
        right: 0.5rem;
    }
}

/* Guestbook Styles */
.guestbook-section {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .guestbook-section {
        padding: 0 0.5rem;
    }
}

@media (max-width: 360px) {
    .guestbook-section {
        padding: 0 0.25rem;
    }
}

.blog-section {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 3rem auto;
    color: #fff;
    padding: 2rem 1.5rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 768px) {
    .blog-section {
        padding: 1.25rem 1rem;
        max-width: 100%;
        box-shadow: none;
    }

    .year-label {
        font-size: 1.4rem;
    }

    .blog-title-link {
        font-size: 1.15rem;
    }

    .blog-date-inline {
        width: 64px;
        font-size: 0.98rem;
    }

    .blog-list-item {
        flex-wrap: wrap;
    }

    .blog-row {
        gap: 1rem;
        align-items: flex-start;
        flex-direction: column;
    }

    .blog-list {
        padding-left: 0;
        padding-right: 0;
    }

}

@media (max-width: 480px) {
    .blog-section {
        padding: 1rem 0.75rem;
    }

    .year-label {
        font-size: 1.2rem;
    }

    .blog-title-link {
        font-size: 1.05rem;
    }

    .blog-date-inline {
        width: 58px;
        font-size: 0.9rem;
    }

    .blog-list-item {
        gap: 0.5rem;
    }
}

@media (max-width: 360px) {
    .blog-section {
        padding: 0.75rem 0.5rem;
    }

    .blog-title-link {
        font-size: 1rem;
    }

    .blog-date-inline {
        width: 52px;
        font-size: 0.85rem;
    }
}

.single-view {
    background: #2A2A2A;
    color: #fff;
}

.single-view .main-content {
    align-items: stretch;
}

.single-view > .main-content > h1 {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}


.single-view .blog-section {
    max-width: 900px;
    margin-top: 1.5rem;
    background: transparent;
    box-shadow: none;
    padding: 0 1.25rem;
}

@media (max-width: 768px) {
    .single-view .blog-section {
        padding: 0;
        max-width: 100%;
    }

    .single-view .blog-single {
        padding: 0 1.25rem;
    }

    .single-view .newsletter-card,
    .single-view .more-posts-section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .single-view .single-title {
        font-size: 2rem;
        line-height: 1.25;
    }

    .single-view .single-body {
        font-size: 1.2rem;
    }

    .single-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .single-view .blog-section {
        padding: 0;
    }

    .single-view .blog-single {
        padding: 0 1rem;
    }

    .single-view .newsletter-card,
    .single-view .more-posts-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .single-view .single-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .single-view .single-body {
        font-size: 1.1rem;
        line-height: 1.7;
    }

    .single-date {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .single-view .blog-section {
        padding: 0;
    }

    .single-view .blog-single {
        padding: 0 0.75rem;
    }

    .single-view .newsletter-card,
    .single-view .more-posts-section {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .single-view .single-title {
        font-size: 1.4rem;
    }

    .single-view .single-body {
        font-size: 1rem;
    }
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.single-view .section-subtitle {
    color: rgba(255, 255, 255, 0.65);
}

.blog-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    margin-bottom: 2rem;
}

.year-label {
    font-family: 'Share Tech Mono', monospace;
    font-weight: 700;
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    min-width: 70px;
}

.year-posts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.blog-title-link {
    color: #4ade80;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.single-view .blog-title-link {
    color: #22c55e;
}

.blog-title-link:hover {
    text-decoration: underline;
    font-weight: 700;
}

.blog-row {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
}

.blog-list {
    gap: 0.7rem;
    color: #fff;
    padding-left: 0;
    width: 100%;
    min-width: 0;
}

.blog-list-item {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    min-width: 0;
    width: 100%;
}

.blog-date-inline {
    width: 75px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    font-weight: 500;
    font-style: italic;
    flex-shrink: 0;
}

.blog-content {
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.8;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.blog-content p {
    margin: 0 0 1.3rem 0;
}

.single-view .blog-content {
    color: #ddd;
    line-height: 1.8;
}

.single-view .blog-content a {
    color: #6ee7a0;
}

.inline-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 8px;
}

/* YouTube Video Embed */
.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.blog-single {
    max-width: 720px;
    margin: 0 auto 2rem auto;
    padding: 0 1.5rem;
    color: #fff;
    box-sizing: border-box;
}

.single-view .blog-single {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 1rem;
    color: #fff;
    box-sizing: border-box;
    width: 100%;
}

.single-hero {
    margin: 0 0 1.25rem 0;
    text-align: center;
}

.single-hero img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.single-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.single-title {
    margin: 0;
    font-size: 2.6rem;
    line-height: 1.2;
    font-weight: 700;
}

.single-title-link {
    color: #4ade80;
    text-decoration: none;
}

.single-title-link:hover {
    text-decoration: underline;
}

.single-date {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.single-body {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.94);
}

.single-view .single-title {
    color: #fff;
    font-size: 2.6rem;
    line-height: 1.3;
}

.single-view .single-body {
    font-size: 1.3rem;
    color: #ddd;
}

.more-posts-section {
    width: 100%;
    margin-top: 1rem;
}

.section-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 2rem 0;
}

.more-posts-title {
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1.5rem 0;
}

.newsletter-card {
    margin: 2rem 0 2.5rem 0;
    padding: 1.5rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.newsletter-card.welcome {
    box-shadow: 0 0 40px rgba(74, 222, 128, 0.5);
    animation: welcomeBounce 0.6s ease-out, welcomePulse 2s ease-in-out 0.6s 2;
    position: relative;
    overflow: visible;
}

.newsletter-card.welcome::before,
.newsletter-card.welcome::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: confetti 1.5s ease-out forwards;
}

.newsletter-card.welcome::before {
    background: #4ade80;
    animation-delay: 0s;
}

.newsletter-card.welcome::after {
    background: #6ee7a0;
    animation-delay: 0.1s;
}

@keyframes welcomeBounce {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes welcomePulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(74, 222, 128, 0.3);
    }
    50% {
        box-shadow: 0 0 50px rgba(74, 222, 128, 0.6);
    }
}

@keyframes confetti {
    0% {
        transform: translateX(-50%) translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateX(calc(-50% + var(--x, 50px))) translateY(-120px) rotate(720deg);
        opacity: 0;
    }
}

.newsletter-content {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.newsletter-copy h3 {
    margin: 0 0 0.3rem 0;
}

.newsletter-copy p {
    margin: 0 0 1rem 0;
    color: rgba(255, 255, 255, 0.75);
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: nowrap;
    width: 100%;
}

.newsletter-input {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.9rem 1rem;
    min-height: 48px;
    background: transparent;
    border: 1px solid #fff;
    border-radius: 5px 0 0 5px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Share Tech Mono', monospace;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.newsletter-submit {
    padding: 1.05rem 1.4rem;
    min-height: 48px;
    border-radius: 0 5px 5px 0;
    border: 1px solid #fff;
    border-left: none;
    background: #fff;
    color: #000;
    font-weight: 700;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.05rem;
    min-width: 140px;
    flex: 0 0 auto;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.newsletter-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.25);
}

.newsletter-submit:active {
    transform: translateY(0);
}

.newsletter-hint {
    margin: 0.9rem 0 0 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.message.welcome {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2) 0%, rgba(110, 231, 160, 0.15) 100%);
    border: 1px solid rgba(74, 222, 128, 0.5);
    color: #a7f3d0;
    font-size: 1.1rem;
    padding: 1.2rem;
    text-align: center;
}

.welcome-message {
    animation: welcomeMessagePop 0.5s ease-out, welcomeGlow 1.5s ease-in-out 0.5s 2;
}

@keyframes welcomeMessagePop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes welcomeGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(74, 222, 128, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(74, 222, 128, 0.4);
    }
}

.blog-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    backdrop-filter: blur(10px);
}

.blog-form .help-text {
    margin: 0.35rem 0 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #81c784;
}

.message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #e57373;
}

.guestbook-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    min-height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.social-media-group {
    margin-bottom: 1rem;
}

.social-media-inputs {
    display: flex;
    gap: 0.5rem;
}

.social-platform-select {
    flex: 0 0 140px;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    box-sizing: border-box;
}

.social-platform-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.social-platform-select option {
    background: #2A2A2A;
    color: #fff;
}

.social-handle-input {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.social-handle-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.social-handle-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.submit-btn {
    width: 100%;
    padding: 0.875rem;
    min-height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Share Tech Mono', monospace;
    -webkit-tap-highlight-color: transparent;
}

.submit-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.submit-btn:active {
    transform: scale(0.98);
}

.entries-container {
    margin-top: 2rem;
}

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

.guestbook-header h2 {
    margin: 0;
}

.create-entry-btn {
    padding: 0.6rem 1.2rem;
    min-height: 44px;
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.4);
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
    font-family: 'Share Tech Mono', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.create-entry-btn:hover {
    background: rgba(74, 222, 128, 0.25);
    border-color: rgba(74, 222, 128, 0.6);
    transform: translateY(-1px);
}

.create-entry-btn:active {
    transform: translateY(0);
}

.guestbook-form-wrapper {
    display: none;
    margin-bottom: 2rem;
}

@media (max-width: 480px) {
    .guestbook-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .create-entry-btn {
        width: 100%;
        text-align: center;
    }
}

.no-entries {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    padding: 2rem;
}

.entries-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Hidden entries (collapsed state) */
.entry-hidden {
    display: none;
}

.entries-list.expanded .entry-hidden {
    display: block;
}

/* Show more button */
.show-more-entries-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-family: 'Share Tech Mono', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}

.show-more-entries-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.show-more-entries-btn:active {
    transform: scale(0.98);
}

.show-more-arrow {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.show-more-entries-btn.expanded .show-more-arrow {
    transform: rotate(180deg);
}

.entry {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.entry:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.entry-name-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.entry-name {
    font-weight: 600;
    color: #fff;
    font-family: 'Share Tech Mono', monospace;
}

.entry-name-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.entry-name-link:hover {
    opacity: 0.8;
}

.entry-name-link .entry-name {
    color: inherit;
}

.website-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.entry-name-link:hover .website-icon {
    opacity: 1;
}

.entry-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.entry-message {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 8em; /* ~5 lines */
    overflow: hidden;
    position: relative;
}

.entry-message.expanded {
    max-height: none;
}

.entry-more-btn {
    display: none;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
    padding: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    transition: color 0.2s ease;
}

.entry-more-btn.visible {
    display: inline-flex;
}

.entry-more-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.entry-more-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.entry-more-btn.expanded svg {
    transform: rotate(180deg);
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.social-icon-link:hover {
    opacity: 1;
    transform: scale(1.1);
}

.social-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

/* Responsive guestbook */
@media (max-width: 768px) {
    .main-content {
        padding: 1.5rem 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .blog-year {
        flex-direction: column;
    }

    .year-label {
        min-width: 0;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .guestbook-form {
        padding: 1rem;
    }

    .social-media-inputs {
        flex-direction: column;
    }

    .social-platform-select {
        flex: 1;
        width: 100%;
    }

    .entry-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 0.6rem;
    }

    .newsletter-submit {
        width: 100%;
        text-align: center;
        border-left: 1px solid #fff;
        border-radius: 0 0 5px 5px;
        min-width: 0;
    }

    .newsletter-input {
        border-radius: 5px 5px 0 0;
        width: 100%;
    }

    .newsletter-card {
        padding: 1.2rem;
        margin: 1.5rem 0 2rem 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .guestbook-form {
        padding: 0.75rem;
    }

    .newsletter-card {
        padding: 1rem;
        margin: 1.25rem 0 1.75rem 0;
    }

    .newsletter-copy h3 {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .social-media-inputs {
        flex-direction: column;
    }

    .social-platform-select {
        flex: 1;
        width: 100%;
        min-height: 48px;
    }

    .social-handle-input {
        min-height: 48px;
    }

    .entry {
        padding: 0.75rem;
    }

    .entry-name {
        font-size: 0.95rem;
    }

    .entry-date {
        font-size: 0.8rem;
    }

    .entry-message {
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    h1 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    h3 {
        font-size: 1rem;
    }

    .guestbook-form {
        padding: 0.5rem;
    }

    .newsletter-card {
        padding: 0.75rem;
        margin: 1rem 0 1.5rem 0;
    }

    .newsletter-copy h3 {
        font-size: 1rem;
    }

    .newsletter-submit {
        font-size: 0.95rem;
        min-width: 0;
        width: 100%;
    }

    .newsletter-input {
        font-size: 0.95rem;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.95rem;
        padding: 0.75rem;
    }

    .entry {
        padding: 0.6rem;
    }

    .entry-name {
        font-size: 0.9rem;
    }

    .entry-message {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .submit-btn {
        font-size: 0.95rem;
    }

    .message {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Site Footer */
.site-footer {
    width: 100%;
    padding: 2rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-copy {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Share Tech Mono', monospace;
}

@media (max-width: 480px) {
    .site-footer {
        padding: 1.5rem 1rem;
    }

    .footer-copy {
        font-size: 0.85rem;
    }
}
