
/* Resetting default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #ffffff;
    line-height: 1.6;
    letter-spacing: 0.5px;
    overflow-x: hidden;
}

/* Container for the entire layout */
.layout-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar styling */
.sidebar {
    width: 250px;
    background-color: #1e1e1e;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0,0,0,0.5);
}

.sidebar h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #6c5ce7;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 15px;
}

.sidebar a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: #8e44ad;
}

/* Main content styling */
.main-content {
    margin-left: 250px;
    padding: 40px;
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.7);
    min-height: 100vh;
    overflow-y: auto;
}

/* Header styling */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 48px;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.header p {
    font-size: 18px;
    color: #ccc;
}

/* Section styling */
.section {
    margin-bottom: 40px;
}

.section h2 {
    font-size: 32px;
    color: #6c5ce7;
    margin-bottom: 20px;
    border-bottom: 2px solid #8e44ad;
    padding-bottom: 10px;
}

.section p {
    font-size: 16px;
    color: #ddd;
    margin-bottom: 20px;
}

/* Article styling */
.article {
    background-color: #2d2d2d;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.article h2 {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 15px;
}

.article h3 {
    font-size: 24px;
    color: #6c5ce7;
    margin-top: 20px;
    margin-bottom: 10px;
}

.article p {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.8;
}

.article pre {
    background-color: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.article code {
    color: #4cd137;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

.article table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.article table, .article th, .article td {
    border: 1px solid #444;
}

.article th, .article td {
    padding: 10px;
    text-align: left;
    color: #fff;
}

.article th {
    background-color: #6c5ce7;
}

.article td {
    background-color: #333;
}

/* Button styling */
.button {
    background: linear-gradient(45deg, #6c5ce7, #8e44ad);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.button:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #8e44ad, #6c5ce7);
}

/* Image styling */
.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.image-grid img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.1);
}

/* Code block styling */
.code-block {
    background-color: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.code-block code {
    display: block;
    font-family: 'Courier New', Courier, monospace;
    color: #4cd137;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Responsive styles */
@media (max-width: 1440px) {
    .main-content {
        padding: 30px;
    }
}

@media (max-width: 1200px) {
    .sidebar {
        width: 200px;
    }

    .main-content {
        margin-left: 200px;
    }

    .header h1 {
        font-size: 40px;
    }

    .section h2 {
        font-size: 28px;
    }

    .article h2 {
        font-size: 24px;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 180px;
    }

    .main-content {
        margin-left: 180px;
    }

    .header h1 {
        font-size: 36px;
    }

    .section h2 {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .layout-container {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        box-shadow: none;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    .header h1 {
        font-size: 32px;
    }

    .section h2 {
        font-size: 24px;
    }

    .article h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .sidebar h2 {
        font-size: 20px;
    }

    .header h1 {
        font-size: 28px;
    }

    .section h2 {
        font-size: 20px;
    }

    .article h2 {
        font-size: 18px;
    }

    .button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .image-grid {
        flex-direction: column;
    }
}

@media (max-width: 320px) {
    .sidebar h2 {
        font-size: 18px;
    }

    .header h1 {
        font-size: 24px;
    }

    .section h2 {
        font-size: 18px;
    }

    .article h2 {
        font-size: 16px;
    }

    .button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Particle effect using CSS */
@keyframes particleMove {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: translate(100px, 100px);
        opacity: 0;
    }
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: #8e44ad;
    border-radius: 50%;
    animation: particleMove 5s linear infinite;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
    background-color: #6c5ce7;
    border-radius: 4px;
}

