* {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: black;
    color: white;
    overflow-x: hidden;
    line-height: 1.6;
}

body::selection {
    background-color: #00F0FF;
    color: #9C9C9C;
}

.visuallyhidden {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(0px 0px 99.9% 99.9%);
    clip-path: inset(0px 0px 99.9% 99.9%);
    overflow: hidden;
    height: 1px;
    width: 1px;
    padding: 0;
    border: 0;
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, #00F0FF, #00ffa2);
    z-index: 10001;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.8);
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    display: block;
}

/* Navigation Styles */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@keyframes dynamicExtBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes dynamicShrBounce {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

@keyframes dynamicExtend {
    0% {
        filter: blur(2px);
        width: 40vw;
    }
    100% {
        filter: blur(0px);
        width: 70vw;
    }
}

@keyframes dynamicShrink {
    0% {
        filter: blur(0px);
        width: 70vw;
    }
    100% {
        filter: blur(2px);
        width: 40vw;
    }
}

.dynamic-nav {
    position: fixed;
    top: 10px;
    height: 20px;
    width: 40vw;
    background-color: black;
    color: white;
    border: 1px solid #9C9C9C;
    border-radius: 30px;
    padding: 16px;
    z-index: 10000;
}

.dynamic-nav.shrink-anim {
    animation: dynamicShrink 0.3s ease, dynamicShrBounce 0.5s ease;
}

.dynamic-nav:hover {
    animation: dynamicExtend 0.3s ease, dynamicExtBounce 0.5s ease;
    width: 70vw;
}

.dynamic-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.dynamic-nav li {
    margin-right: 24px;
}

.dynamic-nav li:last-child {
    margin-right: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #9C9C9C;
}

.nav-link.blurred {
    filter: blur(2px);
    transition: filter 0.3s;
}

/* Main Content */
main {
    padding-top: 100px;
    min-height: 100vh;
}

/* Blog Hero Section */
.blog-hero {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    color: #00F0FF;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    text-decoration: underline;
    text-decoration-color: #00F0FF;
    text-decoration-thickness: 0.1em;
}

.hero-content p {
    font-size: 1.5rem;
    color: #e0e0e0;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Blog Posts Section */
.blog-posts {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 240, 255, 0.05) 100%);
}

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

/* Featured Post */
.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
    padding: 40px;
    background: rgba(0, 240, 255, 0.1);
    border: 2px solid rgba(0, 240, 255, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 240, 255, 0.2);
    border-color: #00F0FF;
}

.post-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #00F0FF, #00ffa2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    transition: transform 0.3s ease;
}

.featured-post:hover .image-placeholder {
    transform: scale(1.05);
}

.post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #9C9C9C;
}

.post-category {
    background: rgba(0, 240, 255, 0.2);
    color: #00F0FF;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.post-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.post-content h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-content p {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 25px;
    line-height: 1.6;
}

.read-more {
    color: #00F0FF;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.read-more:hover {
    color: #00ffa2;
    transform: translateX(5px);
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-post {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
}

.blog-post .post-image {
    height: 200px;
}

.blog-post .image-placeholder {
    height: 200px;
    font-size: 2.5rem;
}

.blog-post .post-content {
    padding: 25px;
}

.blog-post .post-meta {
    margin-bottom: 15px;
}

.blog-post h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.blog-post p {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(0, 255, 162, 0.1));
    padding: 80px 0;
    text-align: center;
    margin-top: 80px;
}

.newsletter-content h2 {
    font-size: 3rem;
    color: #00F0FF;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.newsletter-content p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 40px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(0, 240, 255, 0.3);
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #00F0FF;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.newsletter-form input::placeholder {
    color: #9C9C9C;
}

.newsletter-form button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #00F0FF, #00ffa2);
    color: black;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.3);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #333;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.social-links a {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #333;
    color: #00F0FF;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-links a:hover {
    background-color: #00F0FF;
    color: black;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
}

.copyright {
    color: #9C9C9C;
    font-size: 0.9em;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dynamic-nav {
        width: 90vw;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .featured-post {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .featured-post {
        padding: 20px;
    }
    
    .blog-post .post-content {
        padding: 20px;
    }
    
    .newsletter-content h2 {
        font-size: 2rem;
    }
}
