* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #e0e0e0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated background particles */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #f2930d;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(242, 147, 13, 0.3);
    z-index: 1000;
    padding: 1rem 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #f2930d;
    text-shadow: 0 0 20px rgba(242, 147, 13, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(242, 147, 13, 0.2), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: #f2930d;
    box-shadow: 0 0 20px rgba(242, 147, 13, 0.4);
    border: 1px solid rgba(242, 147, 13, 0.3);
}

/* Main Content */
main {
    margin-top: 100px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #f2930d, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 20px rgba(242, 147, 13, 0.3)); }
    to { filter: drop-shadow(0 0 30px rgba(255, 107, 53, 0.3)); }
}

.hero p {
    font-size: 1.2rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
}

/* Loading Spinner */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: #f2930d;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(242, 147, 13, 0.3);
    border-top: 4px solid #f2930d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.blog-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(242, 147, 13, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(242, 147, 13, 0.1), transparent);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.blog-card:hover::before {
    opacity: 1;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(242, 147, 13, 0.2);
    border-color: rgba(242, 147, 13, 0.5);
}

.blog-content {
    position: relative;
    z-index: 1;
}

.blog-date {
    color: #f2930d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.blog-excerpt {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-block;
    color: #f2930d;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border: 1px solid #f2930d;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.read-more:hover {
    background: #f2930d;
    color: #000;
    box-shadow: 0 0 20px rgba(242, 147, 13, 0.5);
}

/* Blog Post Page */
.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.back-btn {
    background: rgba(242, 147, 13, 0.1);
    border: 1px solid #f2930d;
    color: #f2930d;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-btn:hover {
    background: #f2930d;
    color: #000;
    transform: translateX(-5px);
}

.blog-post {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 3rem;
    border: 1px solid rgba(242, 147, 13, 0.2);
    line-height: 1.8;
}

.blog-post h1 {
    color: #f2930d;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.blog-post h2 {
    color: #f2930d;
    margin: 2rem 0 1rem 0;
    font-size: 1.8rem;
}

.blog-post h3 {
    color: #f2930d;
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.4rem;
}

.blog-post p {
    margin-bottom: 1.5rem;
    color: #e0e0e0;
}

.blog-post ul, .blog-post ol {
    margin: 1rem 0 1.5rem 2rem;
    color: #e0e0e0;
}

.blog-post li {
    margin-bottom: 0.5rem;
}

.blog-post a {
    color: #f2930d;
    text-decoration: none;
    border-bottom: 1px solid rgba(242, 147, 13, 0.3);
    transition: all 0.3s ease;
}

.blog-post a:hover {
    border-bottom-color: #f2930d;
    text-shadow: 0 0 10px rgba(242, 147, 13, 0.5);
}

.blog-post blockquote {
    border-left: 4px solid #f2930d;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #b0b0b0;
}

.blog-post code {
    background: rgba(242, 147, 13, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #f2930d;
}

.blog-post pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid rgba(242, 147, 13, 0.2);
}

.blog-post pre code {
    background: none;
    padding: 0;
    color: #e0e0e0;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(242, 147, 13, 0.3);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #f2930d;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    main {
        padding: 1rem;
    }

    .blog-post-container {
        padding: 1rem;
    }

    .blog-post {
        padding: 2rem;
    }

    .blog-post h1 {
        font-size: 2rem;
    }
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #f2930d;
    margin: 3px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 10, 10, 0.95);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }
}

/* Ripple animation */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}