/* Umumiy uslublar */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url(baground.jpg);
    color: #333;
}

/* Header */
header {
    color: white;
    text-align: center;
    padding: 40px 15px;
}

header h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

header p {
    font-size: 1em;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    color: #007bff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background: #0056b3;
    color: white;
}

/* Portfolio bo‘limi */
#portfolio {
    padding: 40px 15px;
    text-align: center;
}

.projects {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.project {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    width: 100%;
    max-width: 280px;
    transition: 0.3s;
}

.project img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Aloqa bo‘limi */
#contact {
    text-align: center;
    padding: 40px 15px;
    background: #222;
    color: white;
}

.containera {
    width: 90%;
    max-width: 700px;
    margin: 30px auto;
    background: rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #1e3c72;
}

/* Mobil moslashuv */
@media (max-width: 768px) {
    header {
        padding: 30px 10px;
    }

    header h1 {
        font-size: 1.8em;
    }

    header p {
        font-size: 1em;
    }

    .projects {
        flex-direction: column;
        align-items: center;
    }

    .project {
        width: 90%;
    }

    .containera {
        width: 95%;
    }
}
2em;
    margin-bottom: 20px;
}

.projects {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.project {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    width: 280px;
    transition: 0.3s;
}

.project img {
    width: 250px;
    height: 250px;

    border-radius: 10px;
}

.project h3 {
    margin: 10px 0;
}

.project p {
    font-size: 0.9em;
    color: #666;
}

.project a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.project a:hover {
    background: #0056b3;
}

/* Aloqa bo‘limi */
#contact {
    text-align: center;
    padding: 50px 20px;
    background: #222;
    color: white;
}

#contact h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

#contact a {
    color: #00c3ff;
    text-decoration: none;
    font-weight: bold;
}

#contact a:hover {
    color: #ffffff;
}

.containera {
    width: 80%;
    max-width: 900px;
    margin: 50px auto;
    background: rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(100px);
    text-align: center;
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #1e3c72;
    margin-top: -80px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

h1 {
    font-size: 2em;
    margin-top: 10px;
    color: white;
}

p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 10px auto;
    line-height: 1.5;
    color: white;
}

footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 0.9em;
}
/* Pop-up uchun asosiy oyna */
.popup {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease-in-out;
    z-index: 3;
}

/* Pop-up tarkibi */
.popup-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    width: 350px;
    animation: slideIn 0.5s ease-in-out;
}

/* Matn dizayni */
h2 {
    color: #d63384;
    font-family: 'Arial', sans-serif;
    font-size: 22px;
}

.pstyle{
    font-size: 18px;
    color: #444;
    font-family: 'Arial', sans-serif;
    margin-bottom: 15px;
}

/* Gullar rasmi */
img {
    width: 100px;
    margin-top: 10px;
}

/* Yopish tugmasi */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 26px;
    cursor: pointer;
    color: #444;
    font-weight: bold;
}

.close-btn:hover {
    color: #d63384;
}

/* Animatsiyalar */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    header {
        padding: 30px 10px;
    }

    header h1 {
        font-size: 1.8em;
    }

    header p {
        font-size: 1em;
    }

    .projects {
        flex-direction: column;
        align-items: center;
    }

    .project {
        width: 90%;
    }
    .profile-img{
        width: 150px;
        height: 150px;
    }
    .containera {
        width: 95%;
    }
}