* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: #0a0a0a;
    color: #00ff41;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 65, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 150, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 0, 150, 0.1) 0%, transparent 50%);
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00ff41;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

/* Navigation */
.navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #00ff41;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ff41;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #00ff41;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.nav-menu a:hover {
    color: #00cc33;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #00ff41;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    padding: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #00ff41;
    margin-bottom: 1rem;
    font-weight: normal;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: #cccccc;
}

/* Cards */
.card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #00ff41;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.2);
}

.card h3 {
    color: #00ff41;
    margin-bottom: 0.5rem;
}

.card p {
    color: #cccccc;
}

/* Buttons */
.btn {
    background: transparent;
    border: 1px solid #00ff41;
    color: #00ff41;
    padding: 0.5rem 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    border-radius: 4px;
}

.btn:hover {
    background: #00ff41;
    color: #0a0a0a;
}

.btn-secondary {
    border-color: #666666;
    color: #666666;
}

.btn-secondary:hover {
    background: #666666;
    color: #0a0a0a;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.hero p {
    font-size: 1.2rem;
    color: #cccccc;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem 0;
    border-bottom: 1px solid #00ff41;
}

/* Tech Stack Tags */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid #00ff41;
    color: #00ff41;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Date Styling */
.date {
    color: #666666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Medium Embed Styling */
.medium-embed iframe {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.medium-embed-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    margin: 2rem 0;
}

.medium-link a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 171, 108, 0.3) !important;
}

/* Article Content Improvements */
.article-content {
    line-height: 1.8;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #00ff41;
}

/* Markdown Content Styling */
.article-text h1,
.article-text h2,
.article-text h3,
.article-text h4,
.article-text h5,
.article-text h6 {
    color: #00ff41;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-text h1 { font-size: 2rem; }
.article-text h2 { font-size: 1.75rem; }
.article-text h3 { font-size: 1.5rem; }
.article-text h4 { font-size: 1.25rem; }

.article-text p {
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.article-text strong,
.article-text b {
    color: #ffffff;
    font-weight: 600;
}

.article-text em,
.article-text i {
    color: #b0b0b0;
    font-style: italic;
}

.article-text code {
    background: rgba(0, 255, 65, 0.1);
    color: #00ff41;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-text pre {
    background: rgba(0, 0, 0, 0.3);
    color: #e0e0e0;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
    border-left: 4px solid #00ff41;
}

.article-text pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.article-text blockquote {
    border-left: 4px solid #00ff41;
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #b0b0b0;
}

.article-text ul,
.article-text ol {
    margin: 1rem 0;
    padding-left: 2rem;
    color: #e0e0e0;
}

.article-text li {
    margin-bottom: 0.5rem;
}

.article-text a {
    color: #00ff41;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.article-text a:hover {
    border-bottom-color: #00ff41;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-bottom: 1px solid #00ff41;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .main-content {
        padding: 1rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

/* Blog Post Specific Styles */
.blog-post .container {
    max-width: 800px;
}

.blog-post h1 { 
    text-align: center;
    margin-bottom: 0.5rem;
}

.blog-post h2 { 
    font-size: 1.8rem; 
    margin-top: 2rem; 
}

.blog-post h3 { 
    font-size: 1.4rem; 
    margin-top: 1.5rem; 
}

.article-header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid #00ff41;
    margin-bottom: 3rem;
}

.article-meta {
    color: #666666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.article-content {
    max-width: 100%;
}

.article-content blockquote {
    border-left: 3px solid #00ff41;
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: #cccccc;
    font-style: italic;
    background: rgba(0, 255, 65, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

.article-content code {
    background: rgba(0, 255, 65, 0.1);
    color: #00ff41;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.article-content pre {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid #00ff41;
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.article-content pre code {
    background: none;
    padding: 0;
}

.article-content ul, .article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: #cccccc;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid #00ff41;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #00ff41;
}

.embedded-content {
    margin: 2rem 0;
    border: 1px solid #00ff41;
    border-radius: 8px;
    overflow: hidden;
}

.embedded-content iframe {
    width: 100%;
    border: none;
    background: #0a0a0a;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #666666;
}

.error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0000;
    color: #ff6666;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.markdown-content {
    white-space: pre-wrap;
    line-height: 1.7;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    color: #00ff41;
    margin: 2rem 0 1rem 0;
    font-weight: normal;
}

.markdown-content h1 { font-size: 2rem; }
.markdown-content h2 { font-size: 1.7rem; }
.markdown-content h3 { font-size: 1.4rem; }

.markdown-content p {
    margin-bottom: 1.5rem;
    color: #cccccc;
}

.markdown-content ul,
.markdown-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: #cccccc;
}

.markdown-content li {
    margin-bottom: 0.5rem;
}

/* Project Detail Specific Styles */
.project-detail .container {
    max-width: 1000px;
}

.project-header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid #00ff41;
    margin-bottom: 3rem;
}

.project-hero {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #00ff41;
    margin-bottom: 2rem;
}

.project-hero-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, #00ff41, #00cc33);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0a;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.content-section {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #00ff41;
    border-radius: 8px;
    padding: 2rem;
}

.content-section h2 {
    color: #00ff41;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.content-section ul {
    list-style: none;
    padding: 0;
}

.content-section li {
    color: #cccccc;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.content-section li:before {
    content: "→";
    color: #00ff41;
    position: absolute;
    left: 0;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item {
    border: 1px solid #00ff41;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 1rem;
}

.status-active {
    background: rgba(0, 255, 65, 0.2);
    color: #00ff41;
    border: 1px solid #00ff41;
}

.status-completed {
    background: rgba(100, 100, 100, 0.2);
    color: #cccccc;
    border: 1px solid #666666;
}

.status-in-progress {
    background: rgba(255, 165, 0, 0.2);
    color: #ffaa00;
    border: 1px solid #ffaa00;
}

/* Contact Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #00ff41;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #00ff41;
    border-radius: 4px;
    color: #cccccc;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00cc33;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.success-message {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid #00ff41;
    color: #00ff41;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .project-links {
        flex-direction: column;
        align-items: center;
    }

    .tech-stack {
        justify-content: center;
    }

    .project-content {
        grid-template-columns: 1fr;
    }
}
