* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kanit', sans-serif;
    min-height: 100vh;
}

.bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url("https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1600&q=80");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.container {
    display: flex;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.navbar {
    width: 250px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    flex-shrink: 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    gap: 10px;
}

.navbar ul {
    padding: 10px;
    list-style: none;
    padding-top: 20px;
}

.navbar ul li a {
    display: block;
    padding: 15px 25px;
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1.1rem;
    border-left: 5px solid transparent;
    transition: all 0.3s ease;
}

.navbar ul li a:hover {
    background-color: rgb(255, 136, 56);
    border-left-color: #ff6200;
    padding-left: 30px;
}

.navbar ul li a.active {
    background-color: rgba(253, 123, 36, 0.8);
    border-left-color: #e74c3c;
    font-weight: 600;
}

.content {
    flex-grow: 1;
    padding: 40px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 50px;
}

.tnx i {
    font-size: 3rem;
    color: #f1c40f;
    margin-bottom: 20px;
}

.txt h1 {
    font-size: 3rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.AppEng p {
    font-size: 1.2rem;
    margin-top: 20px;
    line-height: 1.6;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
}

.card {
    margin-top: 0;
    flex-shrink: 0;
}

.card a {
    text-decoration: none;
}

.card .box2 {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ff5722;
    width: 240px;
    height: 80px;
    border-radius: 25px;
    cursor: pointer;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card .box2 h2 {
    color: #fff;
    font-size: 1.5rem;
    z-index: 1;
}

.card .box2:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .navbar {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column; 
        padding: 0;
    }

    .menu-toggle {
        display: block;
        padding: 15px 20px;
        font-size: 1.2rem;
        cursor: pointer;
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        text-align: right;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar ul {
        display: none; 
        flex-direction: column;
        width: 100%;
        padding: 0;
        background-color: rgba(0, 0, 0, 0.8);
    }

    .navbar ul.show {
        display: flex;
        animation: slideDown 0.3s ease-in-out;
    }

    .navbar ul li a {
        padding: 15px 20px;
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }

    .navbar ul li a:hover {
        padding-left: 20px;
        border-bottom-color: #ff6200;
    }

    .content {
        flex-direction: column;
        padding: 20px;
    }
    
    .card {
         width: 100%;
         display: flex;
         justify-content: center;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}