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

body {
    font-family: 'Arial', sans-serif;
    background-color: #2b2b2b;
    color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 80px 115px;
}

/* Navbar */
.navbar {
    width: 100%;
    min-height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background-color: #2b2b2b;
    position: relative;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 1px;
}

.logo img {
    height: 32px;
    color: #8b46c8;
}

.logo h3 {
    height: 24px;
    width: auto;
    display: block;
}

/* Sign Up tugmasi */
.signup-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 20px;
    border: none;
    background-color: #a855f7;
    color: rgb(255, 255, 255);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.signup-btn:hover {
    background-color: #8b46c8;
}

.signup-btn img {
    width: 20px;
    height: 20px;
}

/* Navigatsiya (nav) */
.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: #ffffffb3;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #a855f7;
}

/* Menu toggle tugmasi */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/* Side Menu stil */
.off-screen-menu {
    background-color: #2b2b2b;
    height: 100vh;
    width: 100%;
    max-width: 450px;
    position: fixed;
    top: 0;
    right: -450px;
    transition: 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.off-screen-menu.active {
    right: 0;
}

.off-screen-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 30px;
}

/* Close (X) tugmasi */
.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

.off-screen-menu a {
    font-weight: 600;
    font-size: 22px;
    line-height: 22.4px;
    letter-spacing: 0%;
    text-align: center;
    text-decoration: none;
    color: #fff;
}

/* Footer asosiy stil */
.footer {
    background-color: #3b3b3b;
    color: #ffffff;
    padding: 60px 20px;
    font-family: 'Space Mono', monospace;
}

/* Footer konteyneri */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

/* Har bir bo'lim */
.footer-section {
    flex: 1;
    min-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 32px;
}

.footer-section p {
    font-size: 14px;
    color: #a0a0a0;
    line-height: 1.9;
}

.join {
    color: #a0a0a0;
    line-height: 1.9;
}

/* Ijtimoiy tarmoq ikonkalari */
.social-icons a {
    font-size: 22px;
    color: #a0a0a0;
    margin-right: 20px;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #a259ff;
}

/* Explore qismi */
.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 10px 0;
}

.footer-section ul li a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #a259ff;
}

/* Email obuna formasi */
.input-container {
    display: flex;
    align-items: center;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    margin-top: 20px;
}

.input-container input {
    border: none;
    padding: 12px 16px;
    outline: none;
    flex: 1;
    font-size: 14px;
}

.input-container button {
    border: none;
    padding: 12px 24px;
    background: #9b5cf6;
    color: white;
    cursor: pointer;
    font-weight: bold;
    border-radius: 15px 15px 15px 15px;
    transition: background 0.3s;
}

.input-container button:hover {
    background: #7a3dcf;
}

.footer-bottom {
    text-align: justify;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 14px;
    color: #a0a0a0;
    border-top: 1px solid #444;
    margin-left: 50px;
}

/* Responsivlik */
@media (max-width: 1024px) {
    .navbar {
        padding: 0 50px;
    }

    .nav {
        gap: 20px;
    }

    .container {
        max-width: 1440px;
        margin: 0 auto;
        padding: 50px 20px;
    }
}

@media (max-width: 902px) {
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 10px;
        right: 10px;
        background-color: #333;
        padding: 10px;
        gap: 10px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    .nav.open {
        display: flex;
        max-height: 300px;
    }

    .menu-toggle {
        display: block;
    }

    .footer-container {
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .logo img {
        height: 24px;
    }
    .navbar {
        padding: 0 35px;
    }
    .container {
        width: 100%;
        margin: 0 auto;
        padding: 40px 35px;
    }

    .signup-btn {
        font-size: 14px;
        padding: 8px 12px;
    }

    .footer-container {
        flex-direction: column;
    }
}
@media (max-width: 500px) {
    .container {
        padding: 40px 30px;
    }
    .navbar {
        padding: 0 10px;
    }

    .signup-btn {
        font-size: 14px;
        padding: 8px 12px;
    }
}
