:root {
    --primary: #6CD4F9;
    --accent: #a855f7;
    --bg: #0f172a;
    --surface: rgba(30, 41, 59, 0.7);
    --surface-solid: #1e293b;
    --border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 4px 14px rgba(108, 212, 249, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 212, 249, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
}

/* Background Glow */
.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    opacity: 0.4;
    pointer-events: none;
}

.glow-1 {
    top: -20%;
    right: -10%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.glow-2 {
    bottom: -10%;
    left: -20%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

/* Articles Section */
.blog-section {
    padding: 5rem 0;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

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

/* Blog Card */
.article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(108, 212, 249, 0.3);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.article-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 1.25rem;
    margin-top: 1em;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: #fff;
}

.article-date {
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.article-blurb {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    margin-top: auto;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 0.75rem;
}

/* Skeleton Loading */
.skeleton-card {
    background: var(--surface-solid);
    border-radius: 16px;
    height: 400px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.6;
    }
}

/* Modal for Reading Article */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: 1000;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: transparent;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
    border: none;
    position: relative;
    padding: 6rem 1.5rem 4rem 1.5rem;
    transform: none;
    transition: opacity 0.3s ease;
    margin: 0;
    display: flex;
    justify-content: center;
}

.modal.active .modal-content {
    transform: none;
}

.close-modal {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 1010;
}

.close-modal:hover {
    background: var(--accent);
    transform: scale(1.05);
}

/* Markdown content styles */
.markdown-body {
    color: var(--text-main);
    margin-top: 3rem;
}

.markdown-body h1 {
    font-size: 2.2rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.markdown-body h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.markdown-body h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 0.75rem;
}

.markdown-body p {
    margin-bottom: 1.25rem;
}

.markdown-body a {
    color: var(--primary);
    text-decoration: none;
}

.markdown-body a:hover {
    text-decoration: underline;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem auto;
    display: block;
}

.markdown-body pre {
    background: #282c34;
    /* Atom One Dark bg */
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.markdown-body code {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.markdown-body p code,
.markdown-body li code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    color: var(--primary);
}

.markdown-body ul,
.markdown-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.markdown-body li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

.footer-content p {
    color: var(--text-muted);
}

.accent {
    color: var(--accent);
}

/* Podcast Section */
.podcast-section {
    padding: 5rem 0;
    position: relative;
    z-index: 10;
    background: linear-gradient(to bottom, transparent, rgba(168, 85, 247, 0.05), transparent);
}

.podcast-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.podcast-hero-content {
    flex: 1 1 400px;
}

.podcast-hero-content .section-title {
    text-align: left;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.podcast-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.podcast-btn {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4);
}

.podcast-btn:hover {
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.6);
    background: #b166f8;
    color: #fff;
    transform: translateY(-2px);
}

.podcast-hero-image-wrapper {
    flex: 1 1 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(168, 85, 247, 0.3);
}

.podcast-hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.podcast-hero-image-wrapper:hover .podcast-hero-image {
    transform: scale(1.05);
}

.section-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-main);
    text-align: center;
}

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

.podcast-card {
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.podcast-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    /* background: var(--accent); */
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.podcast-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.podcast-card:hover::before {
    opacity: 1;
}

.podcast-number {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-mono);
}

.podcast-title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: #fff;
    line-height: 1.4;
    padding-right: 2rem;
}

.podcast-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.podcast-links {
    margin-top: auto;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.platform-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.platform-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Recommendations Section */
.recommendations-section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 10;
}

.recommendation-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.recommendation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(108, 212, 249, 0.3);
}

.recommendation-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
    flex-grow: 1;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.recommendation-author {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.recommendation-author strong {
    display: block;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.recommendation-author span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .modal-content {
        padding: 5rem 1rem 3rem 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .blog-grid,
    .podcast-grid,
    .recommendations-grid {
        grid-template-columns: 1fr;
    }

    .podcast-hero {
        padding: 2rem;
        flex-direction: column;
        text-align: center;
    }

    .podcast-hero-content .section-title {
        text-align: center;
    }
}