@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

:root {
    --primary-bg: #101016;
    --secondary-bg: #181820;
    --glass-bg: rgba(24, 24, 32, 0.75);
    --text-color: #c7c7d2;
    --heading-color: #ffffff;
    --glow-color-1: #8A2BE2; /* Purple */
    --glow-color-2: #00BFFF; /* Deep Sky Blue */
    --shadow-color: rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    background-image: linear-gradient(180deg, var(--primary-bg) 0%, #0a0a0f 100%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--primary-bg);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--glow-color-1), var(--glow-color-2));
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a155ff, #4ddbff);
}

header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

nav .logo {
    display: flex;
    align-items: center;
    z-index: 2; 
}

nav .logo img {
    height: 60px; 
    width: auto;
    transition: transform 0.3s ease;
}

nav .logo:hover img {
    transform: scale(1.1);
}

nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    gap: 2rem;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    padding: 0.5rem 0;
}

nav ul li a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--glow-color-2);
}

main {
    padding: 8rem 2rem 2rem;
}

section {
    padding: 3rem 2rem;
    border: none;
    background: var(--secondary-bg);
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px 0 var(--shadow-color);
    border: 1px solid rgba(138, 43, 226, 0.2);
}

h1, h2, h3 {
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

h2 {
    background: linear-gradient(90deg, var(--glow-color-1), var(--glow-color-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

p {
    margin-bottom: 1rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

ul {
    list-style-position: inside;
    max-width: 1000px;
    margin: 0 auto 1rem;
}

li {
    margin-bottom: 0.5rem;
}

a {
    color: var(--glow-color-2);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 5px var(--glow-color-2);
    text-decoration: none;
}

.video-container, .placeholder-image img, .placeholder-build img {
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.video-container:hover, .placeholder-image img:hover, .placeholder-build img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px var(--glow-color-1);
}

.video-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    margin: 2rem auto 3rem;
}

.video-container::after {
    padding-top: 56.25%;
    display: block;
    content: '';
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.placeholder-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

pre {
    background-color: var(--primary-bg);
    color: var(--text-color);
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    max-width: 1000px;
    margin: 1rem auto;
    border: 1px solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(to right, var(--glow-color-1), var(--glow-color-2));
}

code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

:not(pre) > code {
    background-color: var(--primary-bg);
    padding: 0.2em 0.5em;
    margin: 0 0.1em;
    border-radius: 5px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    font-size: 0.9em;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: transparent;
    margin-top: 2rem;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
}

@media (max-width: 768px) {
    header {
        padding: 0.5rem 1rem;
    }
    nav {
        flex-direction: column;
        padding: 0.5rem 0;
    }
    nav ul {
        position: static;
        transform: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 1rem;
        gap: 0;
    }
    nav ul li {
        margin: 0.2rem 0;
        width: 100%;
        text-align: center;
    }
    main {
        padding-top: 12rem;
    }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
}