.hero,
body {
    min-height: 100vh;
}
.btn,
.code-preview,
.footer,
.hero,
.latest-card,
.modal-content,
.nav-link,
.post-card,
.post-image {
    overflow: hidden;
}
.btn,
.latest-card,
.menu-toggle,
.modal-close,
.post-card {
    cursor: pointer;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}
body {
    font-family: Fredoka, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background: #fff;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
i {
    color: #000;
}
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}
.animate-on-load {
    opacity: 0;
    animation: 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards slideInDown;
}
.animate-on-scroll {
    opacity: 0;
    transform: translateY(60px);
    transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}
.animate-stagger {
    transition-delay: var(--stagger-delay, 0s);
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.header.scrolled {
    backdrop-filter: blur(16px);
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    transition: padding 0.3s;
}
.logo h1,
.tagline {
    transition: color 0.3s;
    color: #000;
}
.header.scrolled .header-content {
    padding: 0.75rem 0;
}
.logo h1 {
    font-size: 1.75rem;
    font-weight: 600;
}
.tagline {
    font-size: 0.875rem;
    font-weight: 400;
}
.menu-toggle,
.nav-link {
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-link {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
}
.nav-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    transition: left 0.5s;
}
.btn:hover::before,
.latest-card:hover::before,
.nav-link:hover::before {
    left: 100%;
}
.nav-link.active,
.nav-link:hover {
    color: #000;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.menu-toggle {
    display: none;
    flex-direction: column;
    background: 0 0;
    border: none;
    padding: 0.75rem;
    gap: 6px;
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}
.menu-line,
.mobile-menu-overlay {
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}
.menu-line {
    width: 24px;
    height: 3px;
    background: #000;
    border-radius: 3px;
    transform-origin: center;
}
.menu-toggle.active .menu-line-1 {
    transform: rotate(46deg) translate(7px, 6px);
    background: #000;
}
.menu-toggle.active .menu-line-2 {
    opacity: 0;
    transform: scale(0);
}
.menu-toggle.active .menu-line-3 {
    transform: rotate(-46deg) translate(7px, -6px);
    background: #000;
}
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}
.mobile-nav-link,
.mobile-social-link {
    backdrop-filter: blur(10px);
    text-decoration: none;
}
.mobile-menu-overlay.active,
.post-modal.active {
    opacity: 1;
    visibility: visible;
}
.mobile-menu-content {
    text-align: center;
    max-width: 400px;
    width: 100%;
    padding: 2rem;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}
.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: #000;
    font-size: 1.25rem;
    font-weight: 600;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-100px);
    opacity: 0;
}
.mobile-menu-overlay.active .mobile-nav-link {
    animation: 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards slideInRight;
    animation-delay: calc(var(--stagger) * 0.1s);
}
.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.mobile-nav-text {
    display: flex;
    align-items: center;
}
.mobile-nav-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #bebebe;
    transition: 0.3s;
}
.mobile-nav-link:hover .mobile-nav-indicator {
    background: #000;
    transform: scale(1.5);
}
.mobile-menu-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
}
.mobile-menu-overlay.active .mobile-menu-footer {
    animation: 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards fadeInScale;
}
.mobile-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.hero,
.mobile-social-link {
    display: flex;
    align-items: center;
}
.mobile-social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    justify-content: center;
    font-size: 1.5rem;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn::before,
.hero-shapes {
    width: 100%;
    height: 100%;
}
.mobile-social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px) rotate(10deg);
}
.hero {
    position: relative;
    background: #fff;
}
.btn::before,
.hero-background,
.hero-shapes,
.shape {
    position: absolute;
}
.hero-background {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}
.shape {
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    animation: 8s ease-in-out infinite float;
    will-change: transform;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.2);
}
.btn,
.footer,
.footer-column a,
.footer-content,
.hero-content,
.latest-card,
.post-card,
.post-image,
.section-title,
section {
    position: relative;
}
.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -10%;
    animation-delay: 0s;
    background: linear-gradient(45deg, rgba(236, 72, 153, 0.2), rgba(59, 130, 246, 0.2));
}
.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: -5%;
    animation-delay: 2.5s;
    background: linear-gradient(45deg, rgba(16, 185, 129, 0.2), rgba(139, 92, 246, 0.2));
}
.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    animation-delay: 5s;
    background: linear-gradient(45deg, rgba(245, 158, 11, 0.2), rgba(236, 72, 153, 0.2));
}
.hero-content {
    display: grid;
    margin-top: 2rem;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 2;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
.gradient-text {
    background: linear-gradient(45deg, #6366f1 0, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: 3s ease-in-out infinite pulse;
}
.hero-description {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 2rem;
    line-height: 1.6;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}
.code-content,
.post-content code,
.post-content pre {
    font-family: Monaco, Menlo, monospace;
}
.btn::before {
    content: "";
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}
.btn-primary {
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}
.btn-secondary {
    background: rgba(26, 32, 44, 0.1);
    color: #1a202c;
    border: 2px solid rgba(26, 32, 44, 0.2);
    backdrop-filter: blur(10px);
}
.hero-card,
.post-card {
    border-radius: 20px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-secondary:hover {
    background: rgba(26, 32, 44, 0.15);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(26, 32, 44, 0.2);
}
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border: 1px solid rgba(26, 32, 44, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
}
.hero-card:hover {
    transform: perspective(1000px) rotateY(0) translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.code-preview {
    background: #1a202c;
    border-radius: 12px;
    min-width: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.post-card,
.post-content img {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.code-header {
    background: #2d3748;
    padding: 1rem;
    display: flex;
    align-items: center;
}
.code-dots {
    display: flex;
    gap: 0.5rem;
}
.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: transform 0.3s;
}
.code-preview:hover .code-dots span {
    animation: 1s ease-in-out pulse;
}
.code-dots span:first-child {
    background: #ff5f56;
}
.code-dots span:nth-child(2) {
    background: #ffbd2e;
}
.code-dots span:nth-child(3) {
    background: #27ca3f;
}
.code-content {
    padding: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}
.code-line {
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: 0.8s forwards fadeIn;
}
.code-line:first-child {
    animation-delay: 1s;
}
.code-line:nth-child(2) {
    animation-delay: 1.5s;
}
.code-line:nth-child(3) {
    animation-delay: 2s;
}
.code-keyword {
    color: #c792ea;
}
.code-variable {
    color: #82aaff;
}
.code-operator {
    color: #89ddff;
}
.code-string {
    color: #c3e88d;
}
section {
    padding: 6rem 0;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}
.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}
.post-card::before,
.post-image::after {
    left: 0;
    transition: opacity 0.3s;
    position: absolute;
    top: 0;
    content: "";
    bottom: 0;
    right: 0;
}
.section-description {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}
.post-category,
.post-header .post-category {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.featured-posts {
    background: rgba(248, 250, 252, 0.5);
    backdrop-filter: blur(10px);
}
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
.post-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transform: translateY(0);
}
.post-category,
.read-more svg {
    transition: transform 0.3s;
}
.post-card::before {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0, rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    border-radius: 20px;
}
.post-card:hover::before {
    opacity: 1;
}
.post-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}
.post-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}
.post-image::after {
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
}
.post-card:hover .post-image::after {
    opacity: 0.7;
}
.post-card-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}
.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.post-category {
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}
.post-card:hover .post-category {
    transform: scale(1.1);
}
.post-date,
.post-read-time {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
}
.footer-logo h3,
.post-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.post-card-title {
    color: #1a202c;
    line-height: 1.3;
    transition: color 0.3s;
}
.post-card-excerpt,
.post-header .post-meta,
.post-title {
    margin-bottom: 1.5rem;
}
.post-card:hover .post-card-title {
    color: #6366f1;
}
.post-card-excerpt {
    color: #4a5568;
    line-height: 1.6;
}
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.latest-card,
.post-modal {
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.read-more:hover {
    color: #4f46e5;
    transform: translateX(8px);
}
.read-more:hover svg {
    transform: translateX(4px);
}
.latest-posts {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}
.latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.latest-card {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.latest-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.6s;
}
.latest-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.footer {
    background: rgba(248, 250, 252, 0.95);
    color: #1a202c;
    padding: 4rem 0 2rem;
}
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a"><stop offset="20%" stop-opacity=".1"/><stop offset="100%" stop-opacity="0"/></radialGradient></defs><circle fill="url(%23a)" cx="10" cy="10" r="10"/></svg>');
    opacity: 0.1;
}
.footer-content {
    display: grid;
    gap: 3rem;
    z-index: 2;
}
.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}
.footer-logo h3 {
    color: #1a202c;
}
.footer-logo p {
    color: #4a5568;
    line-height: 1.6;
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.footer-column h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a202c;
}
.footer-column a {
    display: block;
    color: #4a5568;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: 0.3s;
    padding: 0.25rem 0;
}
.footer-column a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #6366f1;
    transition: width 0.3s;
}
.footer-column a:hover {
    color: #6366f1;
    transform: translateX(8px);
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(26, 32, 44, 0.1);
}
.modal-close,
.post-modal {
    align-items: center;
    display: flex;
}
.footer-social {
    display: flex;
    gap: 1rem;
}
.footer-social a {
    font-size: 1.5rem;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
}
.footer-social a:hover {
    transform: translateY(-4px) rotate(15deg) scale(1.2);
    background: rgba(99, 102, 241, 0.2);
}
.post-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}
.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
}
.modal-content {
    position: relative;
    background: #fff;
    width: 90vw;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(50px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.post-modal.active .modal-content {
    transform: scale(1) translateY(0);
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    justify-content: center;
    font-size: 1.5rem;
    transition: 0.3s;
    z-index: 10;
    color: #64748b;
    backdrop-filter: blur(10px);
}
.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #1a202c;
    transform: scale(1.1) rotate(90deg);
}

/* Make author, read time, and date white inside the modal */
.post-modal .post-read-time,
.post-modal .post-author,
.post-modal .post-author-info,
.post-modal .post-date {
    color: #fff !important;
}

/* If there are icons next to them */
.post-modal .post-read-time svg,
.post-modal .post-author-info svg,
.post-modal .post-date svg {
    fill: #fff;
    stroke: #fff;
}


.post-article {
    height: 90vh;
    overflow-y: auto;
    padding: 0;
}
.post-header {
    padding: 3rem 3rem 2rem;
    background: linear-gradient(135deg, #6366f1 0, #8b5cf6 100%);
    color: #fff;
    position: relative;
}
.post-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: #fff;
    border-radius: 20px 20px 0 0;
}
.post-header .post-category {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}
.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}
.post-author-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    color: #fff;
    font-size: 0.95rem;
}
.post-author {
    font-weight: 600;
}
.post-content {
    padding: 2rem 3rem 3rem;
    line-height: 1.8;
    font-size: 1.1rem;
}
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin: 2rem 0 1rem;
    color: #1a202c;
    font-weight: 700;
}
.post-content h1 {
    font-size: 2.25rem;
}
.post-content h2 {
    font-size: 1.875rem;
}
.post-content h3 {
    font-size: 1.5rem;
}
.post-content h4 {
    font-size: 1.25rem;
}
.post-content p {
    margin-bottom: 1.5rem;
    color: #4a5568;
}
.post-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}
.post-content pre {
    background: #1a202c;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}
.post-content code {
    background: #f7fafc;
    color: #e53e3e;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
}
.post-content pre code {
    background: 0 0;
    color: inherit;
    padding: 0;
}
.post-content blockquote {
    border-left: 4px solid #6366f1;
    margin: 2rem 0;
    font-style: italic;
    color: #64748b;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
}
.post-content ol,
.post-content ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}
.post-content li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.post-content td,
.post-content th {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.post-content th {
    background: #f8fafc;
    font-weight: 600;
    color: #1a202c;
}
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: #64748b;
    font-size: 1.125rem;
}
.error-message {
    color: #e53e3e;
    text-align: center;
    padding: 2rem;
    background: #fed7d7;
    border-radius: 8px;
    margin: 2rem 0;
}
@media screen and (min-width: 1024px) {
    .hero-description {
        max-width: 600px;
        margin: 1.5rem auto;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 20;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-description {
        max-width: 600px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 20;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-title {
        font-size: 3rem;
    }
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .nav {
        display: none;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-description {
        max-width: 600px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 20;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .hero-buttons {
        justify-content: center;
    }
    .post-title,
    .section-title {
        font-size: 2rem;
    }
    .featured-grid,
    .footer-links,
    .latest-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .latest-card,
    .post-card-content,
    .post-content {
        padding: 1.5rem;
    }
    .modal-content {
        width: 95vw;
        max-height: 95vh;
    }
    .post-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    .post-author-info {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .mobile-nav-link[data-index="1"] {
        --stagger: 1;
    }
    .mobile-nav-link[data-index="2"] {
        --stagger: 2;
    }
    .mobile-nav-link[data-index="3"] {
        --stagger: 3;
    }
    .mobile-nav-link[data-index="4"] {
        --stagger: 4;
    }
    .mobile-nav-link[data-index="5"] {
        --stagger: 5;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    .post-title,
    .section-title {
        font-size: 1.75rem;
    }
    .post-card-title {
        font-size: 1.25rem;
    }
    .post-content {
        font-size: 1rem;
        padding: 1rem;
    }
    .post-header {
        padding: 1.5rem 1rem 1rem;
    }
    .code-preview {
        min-width: 250px;
    }
    .code-content {
        padding: 1rem;
        font-size: 0.8rem;
    }
    .mobile-menu-content {
        padding: 1rem;
    }
    .mobile-nav-link {
        padding: 1rem 1.25rem;
        font-size: 1.125rem;
    }
}
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.75rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .featured-grid,
    .latest-grid {
        gap: 1rem;
    }
    .latest-card,
    .post-card-content {
        padding: 1rem;
    }
}
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    .hero-title {
        font-size: 4rem;
    }
    .hero-description {
        max-width: 600px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 20;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .section-title {
        font-size: 3rem;
    }
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .latest-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
    .hero-description {
    max-width: 600px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 20;
    overflow: hidden;
    text-overflow: ellipsis;
}
    .featured-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .post-image {
        background-size: cover;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0s !important;
    }
    .shape {
        animation: none;
    }
    .animate-on-load {
        opacity: 1;
        animation: none;
    }
    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}
