:root {
    --primary: #02f795;
    --primary-hover: #00d982;
    --secondary: #101119;
    --background: #ffffff;
    --text: #101119;
    --text-light: #52525b;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --max-width: 1200px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --black: #000000;
    --black-2: #101119;
    --medium-spring-green: #02f795;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--secondary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo img {
    height: 32px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #f5fff0;
    font-weight: 400;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.button {
    border: 1px none var(--black);
    background-color: var(--medium-spring-green);
    color: var(--black) !important;
    text-align: center;
    border-radius: 60px;
    padding: 1rem 3rem;
    font-family: Inter, sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    transition: background-color .3s;
    display: inline-block;
    text-decoration: none;
}

.button.button-small {
    padding: .5rem 1.25rem;
    font-size: 1rem;
}

.button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #f5fff0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hero {
    padding: 2rem 5% 4rem;
    text-align: center;
    background: linear-gradient(180deg, var(--secondary) 0%, #1a1b26 100%);
    color: white;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    color: #d1d5db;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Grid */
.blog-container {
    max-width: var(--max-width);
    margin: -3rem auto 5rem;
    padding: 2rem 1.5rem 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.post-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.post-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-date {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.post-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.post-card h2 a {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.post-card h2 a:hover {
    color: var(--primary-hover);
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-block;
    color: var(--secondary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--primary);
    transition: var(--transition);
}

.read-more:hover {
    border-bottom-color: var(--secondary);
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: #f5fff0;
    padding: 5rem 5% 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    max-width: var(--max-width);
    margin: 0 auto 4rem;
}

.footer-section h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-logo img {
    height: 35px;
    margin-bottom: 1.5rem;
}

.footer-logo p {
    color: #d1d5db;
    max-width: 300px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Post Page Styles */
.single-post {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.post-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.post-featured-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 3rem;
}

.post-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #374151;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 4rem;
    padding: 0.75rem 1.5rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--gray-200);
    border-radius: 60px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.back-btn svg {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-btn:hover {
    color: var(--primary-hover);
    border-color: var(--primary);
    background: rgba(2, 247, 149, 0.05);
    transform: translateX(-5px);
}

.back-btn:hover svg {
    transform: translateX(-5px);
}

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

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .post-header h1 {
        font-size: 2.25rem;
    }

    .post-featured-image {
        height: 300px;
    }

    .back-btn {
        margin-top: 2rem;
    }

    /* Mobile Menu */
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--secondary);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}