/* Base styles - these are already in your code, but I've kept them for context */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cinzel', serif;
}

body {
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
}

/* ================== Page 1 ================== */
.page1 {
    background-attachment: fixed;
    width: 100%;
    height: 110%;
    background: url(https://cdna.artstation.com/p/assets/images/images/020/387/944/large/veer-design-bugchironrqweb.jpg?1567587797);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.text {
    color: rgb(239, 237, 237) !important;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 700px;
    padding: 20px;
}

.text h1 {
    font-size: 35px;
    font-weight: bold;
}

.text h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 10px 0;
}

.text p {
    font-size: 20px !important;
}

p {
    font-size: 20px;
}

.logo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    transition: 0.3s ease;
    border: 2px solid #cfa958;
    box-shadow: 0 0 20px rgba(207, 169, 88, 0.5);
    padding: 10px;
}

.logo img:hover {
    rotate: 360deg;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.container1 {
    position: relative;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.links {
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.links a {
    text-decoration: none;
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 10px 20px;
    border: 1px solid white;
    border-radius: 30px;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.links a:hover {
    background: white;
    color: black;
    transform: scale(1.01);
    box-shadow: 0 0 15px white;
}

/* ================== Page 2 ================== */
.page2 {
    width: 100%;
    min-height: 80vh;
    background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    font-size: 20px;
    color: #cfa958;
    gap: 50px;
    position: relative;
}

.aa {
    display: flex;
    gap: 100px;
    position: relative;
    flex-direction: row;
}

.aa::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #cfa958, transparent);
}

.container2 {
    display: flex;
    flex-direction: column;
    text-align: left;
    max-width: 500px;
    gap: 30px;
    line-height: 1.6;
    animation: fadeInUp 1s ease both;
}

.container2 h2 {
    font-size: 35px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #d4af37;
}

.container2 p {
    font-size: 22px;
    color: #e1c78f;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================== Page 3 ================== */
.page3 {
    background-image: url(./imgs/page3.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 35px;
    text-align: center;
    width: 100%;
    height: 100vh;
}

.container3 {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 700px;
    row-gap: 50px;
    padding: 20px;
}

.container3 div {
    margin: 50px 0;
}

/* ================== Page 4 ================== */
.page4 {
    background-color: #111;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 50px 20px;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container4 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    color: #cfa958;
}

.container4 h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

.container4 p,
.container4 li {
    font-size: 18px;
    line-height: 1.6;
}

.container4 ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.container4 img {
    width: 100%;
    max-width: 400px;
    margin-top: 20px;
    border-radius: 8px;
    display: block;
}

.yama {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.yama div {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.yama div img {
    width: 100%;
    max-width: 300px;
    object-fit: cover;
    height: 300px;
    border-radius: 8px;
}

.gg {
    display: flex;
    align-items: center;
    gap: 20px !important;
    justify-content: center;
    flex-wrap: wrap;
}

.nmadur {
    display: flex;
    gap: 290px;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* ================== Footer ================== */
footer {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 60vh;
    position: relative;
    background-image: url(./imgs/footer.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    align-items: center;
    justify-content: center;
}

.overlay1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.texts {
    color: white;
    font-size: 20px;
    gap: 50px;
    display: flex;
    flex-direction: column;
    z-index: 100;
    padding: 20px;
    text-align: center;
}

.container-footer {
    position: relative;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.texts div {
    display: flex;
    align-items: center;
    gap: 20px;
}

a {
    text-decoration: none;
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 10px 20px;
    border: 1px solid white;
    border-radius: 30px;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

a:hover {
    background: white;
    color: black;
    transform: scale(1.01);
    box-shadow: 0 0 15px white;
}

/* ================== Image Modal ================== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    animation: fadeIn 0.3s;
}

.image-modal img {
    position: relative;
    z-index: 9999;
    top: 15%;
    /* left: 1%; */
    /* transform: (50% 50%); */
    margin: auto;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 0 20px #000;
    display: flex;
    align-items: center;
    justify-content: center;

}

.image-modal .close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.image-modal .close:hover {
    color: #cfa958;
}
.footer-email .email {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    color: #cfa958;
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: 0.3s ease;
}

/* Hover effekti */
.footer-email .email:hover {
    color: transparent;
    background: linear-gradient(90deg, #ffb347, #ffcc33, #ffb347);
    -webkit-background-clip: text;
    background-clip: text;
    transform: scale(1.05);
}

/* Pastdan chiqadigan animatsion chiziq */
.footer-email .email::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffb347, #ffcc33);
    transition: 0.4s ease;
}

.footer-email .email:hover::after {
    width: 100%;
}

/* ================== Media Queries ================== */
@media (max-width:500px) {
    body{
        overflow-x: hidden;

    }
    
}
@media (max-width: 768px) {
    body {
        font-size: 16px;
        overflow-x: hidden;
    }

    .page1 .text h1 {
        font-size: 28px;
    }

    .page1 .text h2 {
        font-size: 30px;
    }

    .page1 .text p {
        font-size: 16px !important;
    }

    .links {
        flex-direction: column;
        gap: 15px;
    }

    .links a {
        font-size: 16px;
        padding: 8px 16px;
    }

    .aa {
        flex-direction: column;
        gap: 30px;
        padding: 0;
    }

    .aa::before {
        display: none;
    }

    .container2 {
        max-width: 100%;
        text-align: center;
        gap: 15px;
    }

    .container2 h2 {
        font-size: 28px;
    }

    .container2 p {
        font-size: 18px;
    }

    .page3 {
        height: auto;
        min-height: 80vh;
        padding: 40px 20px;
    }

    .container3 h1 {
        font-size: 28px;
    }

    /* Page 4 */
    .container4 {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        align-items: center;
    }

    .nmadur {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        text-align: center;
    }

    .gg {
        flex-direction: column;
        gap: 20px !important;
    }

    .yama {
        flex-direction: column;
        gap: 20px;
    }

    .yama div img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .container4 h1 {
        font-size: 24px;
    }

    .container4 p,
    .container4 li {
        font-size: 16px;
    }

    footer {
        height: auto;
        padding: 50px 20px;
    }

    .container-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .texts div {
        flex-direction: column;
        gap: 15px;
    }

    .texts a {
        font-size: 16px;
    }

    .image-modal {
        display: flex;
        align-items: center;
        justify-content: center;
        display: none;
        /* position: relative; */
    }

    .image-modal img {
        width: 90%;
    }
}

@media (max-width: 1024px) {
    .links {
        gap: 20px;
    }

    .logo img {
        width: 120px;
        height: 120px;
    }

    .container4 {
        gap: 30px;
    }

    .nmadur {
        gap: 100px;
        justify-content: center;
    }

    .yama {
        gap: 15px;
    }

    .yama div img {
        width: 250px;
        height: 250px;
    }

    .container4 h1 {
        font-size: 26px;
    }
}