/* Importing the font */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    direction: rtl;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: #1e272e;
    color: #dcdde1;
    line-height: 1.6;
    overflow: auto;
    height: 100vh;
    scroll-behavior: smooth;
}

/* Custom scrollbar */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: #2f3640;
}

body::-webkit-scrollbar-thumb {
    background-color: #596275;
    border-radius: 10px;
    border: 3px solid #2f3640;
}

.stars, .twinkling {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.stars {
    background: url('https://www.script-tutorials.com/demos/360/images/stars.png') repeat top center;
    background-size: contain;
    animation: moveStars 100s linear infinite;
}

.twinkling {
    background: transparent;
    background: radial-gradient(#4b6584 20%, transparent 70%);
    opacity: 0.4;
    background-size: cover;
    animation: twinkling 3s infinite ease-in-out;
}

@keyframes moveStars {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

@keyframes twinkling {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.6; }
}

header {
    background-color: rgba(30, 39, 46, 0.9);
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

nav .logo {
    display: flex;
    align-items: center;
    font-size: 1.8em;
    font-weight: 600;
    color: #f5f6fa;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav .logo img.logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

nav .logo:hover {
    color: #9aecdb;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #dcdde1;
    font-weight: 600;
    font-size: 1.1em;
    transition: color 0.3s, transform 0.3s;
}

nav ul li a:hover {
    color: #9aecdb;
    transform: scale(1.1);
}

.login {
    display: flex;
    gap: 10px;
}

.login button {
    background-color: #9caebf;
    color: #1e272e;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.login button:hover {
    background-color: #00a8ff;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.4);
}

.hero {
    background: linear-gradient(rgba(47, 54, 64, 0.685), rgba(47, 54, 64, 0.274)), 
                url('path-to-your-background-image.jpg') no-repeat center center/cover;
    padding: 60px 20px;
    text-align: center;
    animation: fadeIn 2s ease-in;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #9aecdb;
    text-shadow: 0 4px 10px rgba(0, 168, 255, 0.5);
}

.hero img {
    max-width: 100%;
    height: auto;
    animation: floatUp 3s ease-in-out infinite alternate;
    filter: drop-shadow(0 6px 6px rgba(0, 168, 255, 0.4));
}

.commands {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #2f3640;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 2s ease-in;
}

.commands h2 {
    font-size: 2em;
    color: #f5f6fa;
    text-align: center;
    margin-bottom: 30px;
    animation: slideIn 1.5s ease-out;
}

.command {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #3c4858;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.command:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.command h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #9aecdb;
}

.command p {
    color: #dcdde1;
    margin-bottom: 10px;
}

.command code {
    background-color: #1e272e;
    color: #f5f6fa;
    padding: 5px 10px;
    border-radius: 10px;
    display: inline-block;
    font-family: 'Cairo', monospace;
}

.features {
    background-color: rgba(47, 54, 64, 0.6);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px 20px;
    text-align: center;
}

.feature {
    background-color: #2f3640;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.3);
}

.feature img {
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
    transition: transform 0.4s ease-in-out;
}

.feature h2 {
    font-size: 1.6em;
    color: #9caebf;
    margin-bottom: 10px;
}

.feature p {
    color: #dcdde1;
    font-size: 1em;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature:hover img {
    transform: rotate(20deg) scale(1.2);
}

footer {
    background-color: #1e272e;
    padding: 20px;
    text-align: center;
    color: #dcdde1;
    font-size: 0.9em;
}

footer .social-links {
    margin-top: 15px;
}

footer .social-links a {
    text-decoration: none;
    color: #9caebf;
    margin: 0 10px;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.4s ease;
    background-color: #2f3640;
    font-weight: 600;
}

footer .social-links a.discord:hover {
    background-color: #7289da;
    color: #fff;
    box-shadow: 0 4px 15px rgba(114, 137, 218, 0.4);
}

footer .social-links a.instagram:hover {
    background-color: #e1306c;
    color: #fff;
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.4);
}

/* New Buttons and Popup Styles */
nav ul li {
    position: relative;
}

nav ul li .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #2f3640;
    border-radius: 5px;
    display: none;
    flex-direction: column;
    z-index: 10;
}

nav ul li:hover .dropdown {
    display: flex;
}

nav ul li .dropdown a {
    color: #dcdde1;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #4b6584;
    transition: background-color 0.3s;
}

nav ul li .dropdown a:hover {
    background-color: #4b6584;
}

/* Popup Styles */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 39, 46, 0.9);
    color: #dcdde1;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1000;
    width: 90%; /* Adjust width as needed */
    max-width: 500px; /* Set a max-width for larger screens */
    box-sizing: border-box; /* Ensure padding is included in width */
}

.popup.active {
    display: block;
}

.popup h2 {
    margin: 0 0 20px;
}

.popup p {
    margin: 0 0 20px;
}

.popup .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
    z-index: 1100; /* Ensure it is on top */
}

.popup .close-btn:hover {
    background: #c0392b;
}

/* Animations */
@keyframes floatUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
