* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

#main {
    width: 100%;
    height: 100vh;
    position: relative;
}

#back {
    width: 100%;
    height: 100vh;
    z-index: 0;
}

#back img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

#top {
    pointer-events: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: 10;
}

#workingarea {
    position: relative;
    margin: 0 auto;
    width: 90%;
    height: 100vh;
    max-width: 1920px;
}

/* -------------------- NAV -------------------- */
#nav {
    pointer-events: all;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 15px;
}

#nav img {
    height: 80px;
}

#nleft,
#nright {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

#nright a {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 650;
    color: white;
    transition: 0.3s;
}

#nright a:hover {
    color: #ffcc70;
}

/* -------------------- HERO -------------------- */
#hero {
    position: absolute;
    top: 57%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 30px;
    flex-wrap: wrap;
}

#hleft {
    flex: 1 1 55%;
    min-width: 280px;
}

#hleft .elem {
    position: relative;
    height: 8.4vw;
    overflow: hidden;
}
#hleft .elem h1:nth-child(1) {
    top: 0;
}

#hleft .elem h1 {
    position: absolute;
    font-family: "kajiro";
    top: 100%;
    line-height: 0.9;
    font-weight: 100;
    color: white;
    font-size: clamp(28px, 9vw, 100px);
}

#hleft button {
    pointer-events: all;
    font-family: "kajiro";
    font-size: clamp(16px, 3vw, 36px);
    padding: 0.8vw 3vw;
    margin-top: 2vw;
    border: none;
    border-radius: 8px;
    background: #fff;
    color: #000;
    cursor: pointer;
    transition: 0.3s;
}
#hleft button:hover {
    background: #ffcc70;
}

/* -------------------- RIGHT -------------------- */
#hright {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: 1 1 35%;
    min-width: 250px;
    color: white;
}

#hright p {
    font-size: 14px;
    font-weight: 300;
    text-align: right;
}

#hright #imgdiv img{
    width: 100%;
    max-width: 250px;   /* desktop pe square size */
    aspect-ratio: 1/1;  /* width == height */
    margin: 15px 0;
    border-radius: 10px;
    overflow: hidden;
    /* background-image: url(https://motivizer.eu/wp-content/uploads/elementor/thumbs/karta-podarunkowa-douglas-perfumeria-p7bnl0u22xl6rv38xbik5rc07590wf1rsxdjrtnx1c.jpg); */
    background-size: cover;
    background-position: center;
}

/* Text block under image → same square size */
#hright .text-box {
    width: 100%;
    max-width: 250px;
    aspect-ratio: 1/1;   /* square like image */
    overflow: hidden;
    padding: 10px;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.4;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;

    /* crop extra text with fade effect */
    display: -webkit-box;
    /* -webkit-line-clamp: 12;     */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 768px) {
    #hright {
        align-items: center;
        text-align: center;
    }
    #hright > p {
        text-align: center;
    }
    #hright .text-box {
        text-align: center;
    }
}


/* -------------------- FOOTER -------------------- */
footer {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;   /* overlay karne ke liye */
    bottom: 0;            /* page ke niche chipk jayega */
    left: 0;
    background: transparent; 
    color: #fff;
    z-index: 15;          /* nav aur hero ke neeche nahi, upar ho */
}


footer p {
    font-size: 14px;
    color: #ddd;
}

footer .social-icons {
    display: flex;
    gap: 15px;
}

footer .social-icons a {
    color: #ccc;
    font-size: 20px;
    transition: 0.3s;
    text-decoration: none;
}

footer .social-icons a:hover {
    color: #ffcc70;
}

/* Mobile view adjustment */
@media (max-width: 600px) {
    footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}



/* Mobile adjustments */
@media (max-width: 768px) {
    #hright #imgdiv {
        max-width: 200px;  /* square but smaller */
    }
}

@media (max-width: 480px) {
    #hright #imgdiv {
        max-width: 160px;  /* square but smallest */
    }
}


/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 1024px) {
    #nav img {
        height: 70px;
    }
    #hleft button {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    #hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    #hright {
        align-items: center;
        text-align: center;
    }
    #hright p {
        text-align: center;
    }
}

@media (max-width: 480px) {
    #nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    #nright {
        gap: 15px;
        justify-content: center;
    }
    #nright a {
        font-size: 10px;
    }
    #hleft .elem h1 {
        font-size: clamp(20px, 8vw, 48px);
    }
    #hright #imgdiv {
        height: 100px;
    }
}
