@import url('https://fonts.googleapis.com/css2?family=Nosifer&family=Roboto:wght@300;400;700&display=swap');

:root {
    --primary: #ff1493;
    --primary-glow: rgba(255,20,147,0.3);
    --bg-dark: #000;
    --bg-card: rgba(20, 20, 20, 0.8);
    --border-color: #333;
    --text-light: #888;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-dark);
    color: #fff;
    line-height: 1.6;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23222222' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

nav {
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

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

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    padding-top: 80px;
}

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

h1 {
    font-family: 'Nosifer', cursive;
    color: var(--primary);
    font-size: 3em;
    margin-bottom: 0.5em;
    text-shadow: 0 0 10px var(--primary-glow);
}

.subtitle {
    font-size: 1.5em;
    color: var(--text-light);
    margin-bottom: 2em;
    font-style: italic;
}

.emoji-row {
    margin: 20px 0;
    font-size: 2em;
}

.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    align-items: start;
}

.card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    border: none;
    box-shadow: 0 0 10px var(--primary-glow);
    margin: 1rem 0;
}

.button:hover {
    background: #ff69b4;
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--primary-glow);
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem auto;
    max-width: 1200px;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--bg-card);
}

.social-links a:hover {
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    transform: translateY(-2px);
}

footer {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.project {
    margin-bottom: 2rem;
}

.project img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* 404 Page Specific Styles */
.container-404 {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
}

.container-404 h1 {
    font-family: 'Nosifer', cursive;
    color: var(--primary);
    font-size: 3em;
    margin-bottom: 0.5em;
    text-shadow: 0 0 10px var(--primary-glow);
    animation: drip 2s ease-in-out;
}

@keyframes drip {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.container-404 .story {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.container-404 .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.container-404 .card {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.7);
}

.container-404 .stat-number {
    font-size: 2.5em;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.container-404 .contribution-list {
    list-style: none;
    padding: 0;
}

.container-404 .contribution-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.container-404 .contribution-list li::before {
    content: "🦐";
    position: absolute;
    left: 0;
}

.container-404 .button {
    background: var(--primary);
    border: none;
    padding: 12px 24px;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.container-404 .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--primary-glow);
    background: #ff69b4;
}

@media (max-width: 768px) {
    .container-404 .card-grid {
        grid-template-columns: 1fr;
    }
    
    .container-404 h1 {
        font-size: 2em;
    }
}

.highlight {
    color: var(--primary);
    font-weight: bold;
}

/* Blog Preview Styles */
.post-meta {
    margin-top: 1rem;
}

.post-meta .date {
    color: var(--text-light);
    font-size: 0.9em;
    display: block;
    margin-bottom: 0.8rem;
}

.post-meta .tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.post-meta .tag {
    background: var(--bg-card);
    color: var(--primary);
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8em;
    border: 1px solid var(--primary);
}

.card h3 a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s;
}

.card h3 a:hover {
    text-shadow: 0 0 10px var(--primary-glow);
}

.post-meta .read-more {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.post-meta .read-more:hover {
    text-shadow: 0 0 10px var(--primary-glow);
}


@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    h1 {
        font-size: 2em;
    }

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