/* ฟอนต์ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: #0d1117;
    color: #c9d1d9;
}

/* ปุ่มเมนู */
.menu-btn {
    font-size: 24px;
    position: fixed;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 1000;
    transition: 0.3s;
}
.menu-btn:hover {
    color: #00aaff;
    text-shadow: 0 0 10px #00aaff, 0 0 20px #00aaff;
}

/* Sidebar */
.sidebar {
    width: 250px;
    height: 100vh;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(5px);
    position: fixed;
    left: -250px; /* ซ่อนเมนู */
    top: 0;
    padding-top: 20px;
    transition: transform 0.3s ease-in-out;
}
.sidebar a {
    display: block;
    color: white;
    padding: 15px;
    text-decoration: none;
    transition: font-weight 0.3s, font-size 0.3s, color 0.3s;
}
.sidebar a:hover {
    background: #88e3ff;
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    box-shadow: 0 0 10px #88e3ff;
    background: #333;
}
.sidebar h2 {
    text-align: center;
    color: #88e3ff;
}
.sidebar.open {
    left: 0;
}

/* ปุ่มปิดเมนู (เฉพาะมือถือ) */
.close-btn {
    display: none; /* ซ่อนไว้ก่อน */
    font-size: 24px;
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Main Content */
.main-content {
    margin-left: 70px;
    padding: 20px;
    transition: margin-left 0.3s;
    z-index: 100;
}
.sidebar.open + .main-content {
    margin-left: 270px;
}

/* เงาสีฟ้าเรืองแสง */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle, rgba(0, 153, 255, 0.15) 10%, rgba(0, 0, 0, 0.95) 80%);
    z-index: -2;
}

/* เอฟเฟกต์จุดแสง */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    opacity: 0.5;
    animation: floatParticles linear infinite;
}
@keyframes floatParticles {
    0% { transform: translateY(0); opacity: 0.3; }
    50% { opacity: 1; }
    100% { transform: translateY(-100vh); opacity: 0; }
}
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
.main-content {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards;
}

/* Highlight Text */
.highlight {
    color: #00aaff;
    text-shadow: 0 0 10px #69cdff, 0 0 20px #007acc;
}

/* ปุ่ม Get Started */
.get-started-btn {
    position: absolute;
    bottom: 40px;
    right: 50px;
    display: inline-block;
    padding: 12px 24px;
    background: #007acc;
    color: white;
    font-size: 1.2em;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}
.get-started-btn:hover {
    background: #4db5ff;
    transform: scale(1.1);
    box-shadow: 0 0 15px #ffffff;
}

/* โค้ด */
pre {
    background: rgba(85, 85, 85, 0.3);
    padding: 10px;
    border-radius: 5px;
    color: white;
    display: inline-block;
    max-width: 100%;
    overflow-x: auto;
    font-family: "consolas", monospace;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* รูปภาพ */
.image-container {
    display: inline-block;
    border-radius: 10px;
    padding: 0px;
}
.image-container img {
    width: 400px;
    height: auto;
    border-radius: 10px;
    transition: transform 0.4s, box-shadow 0.4s;
}
.image-container:hover img {
    transform: scale(1.15);
}

/* 📱 Responsive (รองรับมือถือ) */
@media screen and (max-width: 768px) {
    .menu-btn {
        left: 10px;
    }
    .close-btn {
        display: block;
    }
    .main-content {
        margin-left: 0;
    }
    .get-started-btn {
        bottom: 20px;
        right: 20px;
        font-size: 1em;
    }
    .image-container img {
        width: 100%;
    }


}