
:root {
    --primary-color: #0a1f44;
    --secondary-color: #1e90ff;
    --accent-color: #8a2be2;
    --text-color: #ffffff;
    --card-bg: #1a283e;
    --transition: all 0.3s ease;
}

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

body {
    background: radial-gradient(circle at center, #0a1f44 0%, #050a1a 100%);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    min-height: 100%;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 30px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.gptkong.com/demo/sample1.png') center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: center;
    background-color: rgba(10, 31, 68, 0.9);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(30, 144, 255, 0.3);
}

.navbar a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 25px;
    margin: 0 5px;
    border-radius: 30px;
    transition: var(--transition);
    position: relative;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.navbar a:hover {
    color: var(--secondary-color);
}

.navbar a:hover::after {
    width: 70%;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin: 40px 0;
}

@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* Sidebar */
.sidebar {
    background: rgba(26, 40, 62, 0.7);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    height: fit-content;
}

.sidebar h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.sidebar h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), transparent);
}

.sidebar a {
    display: block;
    color: var(--text-color);
    padding: 12px 15px;
    margin: 8px 0;
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    background: rgba(255,255,255,0.05);
}

.sidebar a:hover {
    background: rgba(30, 144, 255, 0.2);
    transform: translateX(5px);
}

.sidebar-img {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.sidebar-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.sidebar-img:hover img {
    transform: scale(1.05);
}

/* Article Content */
.article-content {
    background: rgba(26, 40, 62, 0.7);
    border-radius: 10px;
    padding: 30px;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.article-content h2 {
    color: var(--secondary-color);
    margin: 25px 0 15px;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 10px;
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), transparent);
}

.article-content h3 {
    color: var(--secondary-color);
    margin: 20px 0 10px;
    font-size: 1.4rem;
}

.article-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Code Blocks */
pre {
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    overflow: auto;
    border-left: 4px solid var(--secondary-color);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

code {
    font-family: 'Courier New', monospace;
    color: #f8f8f2;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: var(--transition);
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 60%, rgba(0,0,0,0.7));
    z-index: 1;
}

/* Footer */
.footer {
    background: linear-gradient(to right, var(--primary-color), #050a1a);
    padding: 40px 0;
    text-align: center;
    margin-top: 50px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer p {
    margin-bottom: 20px;
    opacity: 0.8;
}

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

.social-links a {
    color: var(--text-color);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 20px;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .navbar {
        flex-wrap: wrap;
    }
    
    .navbar a {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
}

/* Special Notice */
.notice {
    background: rgba(30, 144, 255, 0.2);
    border-left: 4px solid var(--secondary-color);
    padding: 15px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
    position: relative;
    overflow: hidden;
}

.notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 144, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.notice p {
    margin: 0;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

