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

:root {
    --color-primary: #2c3e50;
    --color-secondary: #34495e;
    --color-accent: #3498db;
    --color-text: #333;
    --color-text-light: #666;
    --color-border: #e0e0e0;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: Georgia, "Times New Roman", serif;
    --max-width: 1100px;
    --spacing: 1.5rem;
}

body {
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* Header and Navigation */
header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

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

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

.nav-menu a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-accent);
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero .lead {
    font-size: 1.3rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-top: 2rem; }
h3 { font-size: 1.5rem; margin-top: 1.5rem; }

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem 0;
    border-radius: 8px;
}

/* Article Styles */
.single {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-border);
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.article-meta {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.article-meta .separator {
    margin: 0 0.5rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content img {
    margin: 2rem auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.tags a {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: var(--color-bg-alt);
    border-radius: 20px;
    margin: 0.25rem;
    font-size: 0.9rem;
    color: var(--color-text);
}

.tags a:hover {
    background-color: var(--color-accent);
    color: white;
}

/* Posts Grid */
.recent-posts {
    margin: 4rem 0;
}

.recent-posts h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background: var(--color-bg-alt);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.post-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

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

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

.post-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* Posts List */
.list-header {
    text-align: center;
    margin-bottom: 3rem;
}

.posts-list {
    max-width: 800px;
    margin: 0 auto;
}

.post-item {
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-border);
}

.post-item:last-child {
    border-bottom: none;
}

.post-item h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

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

.post-meta {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.excerpt {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.read-more {
    color: var(--color-accent);
    font-weight: 600;
}

/* Code Blocks */
code {
    background-color: var(--color-bg-alt);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

pre {
    background-color: var(--color-secondary);
    color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid var(--color-accent);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--color-text-light);
}

/* Footer */
footer {
    background: transparent;
    border-top: none;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    text-align: center;
}

footer .container {
    max-width: 600px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--color-text-light);
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
}

footer p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

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

    .hero .lead {
        font-size: 1.1rem;
    }

    .article-header h1 {
        font-size: 1.8rem;
    }

    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

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

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
}

/* Utilities */
.separator {
    color: var(--color-text-light);
}

.categories a {
    color: var(--color-text-light);
}

.categories a:hover {
    color: var(--color-accent);
}
/* Add this to the end of your style.css file */

/* Hero Image Styles */
.hero-image {
    margin: 0 auto 2rem;
    max-width: 800px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    border-radius: 0;
}

.home-content {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .hero-image {
        margin: 0 -1.5rem 2rem;
        border-radius: 0;
    }
}
/* Add this to your style.css - Home page navigation styles */

.home-nav {
    margin: 2rem 0 0;
}

.home-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.home-nav a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.home-nav a:hover {
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .home-nav ul {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
}
/* Fish Skeleton Hamburger Menu - Using Custom Image */

.fish-nav-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 10px;
}

.fish-nav-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.fish-skeleton-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s;
}

.fish-nav-toggle:hover .fish-skeleton-img {
    transform: scale(1.05);
}

.fish-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
}

.fish-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.fish-nav-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
}

.fish-nav-menu.active {
    right: 0;
}

.fish-nav-content {
    padding: 2rem;
}

.fish-nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.fish-nav-close:hover {
    color: var(--color-primary);
}

.fish-nav-menu ul {
    list-style: none;
    margin-top: 3rem;
}

.fish-nav-menu li {
    margin-bottom: 1.5rem;
}

.fish-nav-menu a {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.2s, transform 0.2s;
}

.fish-nav-menu a:hover {
    color: var(--color-accent);
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .fish-nav-toggle {
        width: 50px;
        height: 50px;
        top: 1rem;
        right: 1rem;
    }
    
    .fish-nav-menu {
        width: 280px;
        right: -280px;
    }
}
