*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Tiro Gurmukhi', serif;
    background-color: #fff;
    overflow-x: hidden;
}

/* Header Styles */
header {
    position: relative;
    height: 50vh;
    width: 100%;
    overflow: hidden;
}

/* Header Top (White Background) */
.header-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #fff;
    z-index: 1;
}

/* Dog-Ear Corner */
.corner-dog-ear {
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 250px;
    background: url('img/dog-ear.png') no-repeat center/contain;
    cursor: pointer;
    z-index: 3; 
}

.corner-dog-ear:hover {
    background: url('img/dog-ear-open.png') no-repeat center/contain;
    z-index: 3;
}

/* Header Bottom (Dynamic Background) */
.header-bottom {
    position: absolute;
    top: 100px; /* Starts right after the white top */
    left: 0;
    width: 100%;
    height: calc(50vh - 100px); /* Remaining height */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 0;
    z-index: 0;
    transition: background-color 0.025s linear;
}

/* Header Text Styles */
.header-text {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 55vw;
    text-align: right;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
    font-size: 3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 1s;
    z-index: 2;
}

.header-image {
    position: absolute;
    left: 60vw;
    top: 50%;
    transform: translateY(-50%);
    max-width: 20vw;
    max-height: 15vh;
    height: auto;
    z-index: 2;
}

.services-button {
    display: block;
    width: 66vw;
    max-width: 400px;
    padding: 15px;
    font-size: 1.5rem;
    border: none;
    border-radius: 10px;
    background-color: #59069E;
    color: #fff;
    cursor: pointer;
    margin: 20px auto 0;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
}

.services-button:hover {
    background-color: #59069E;
    color: #000;
}
.services-button:active {
    background-color: #000;
    color: #000;
}

.centered-text, .contact-info {
    font-size: 1.25rem;
    text-align: center;
    margin-top: 30px;
}

.contact-email {
    color: #59069E;
    text-decoration: underline;
    font-style: bold;
}

/* Carousel GIFs */
.carousel {
    max-width: 90%;
    margin: 0 auto;
    margin-top: 100px;
    padding: 50px;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
}

.carousel img {
    width: 75%;
    margin-left: 25vw;
    display: block;
}

.carousel .slick-slide {
    width: 100%;
    align-content: center;
    opacity: 1;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

#menu-text {
    padding-top: 50px;
}

/* CSS for the more.html page */
.back {
    height: 163px;
    width: 290px;
    margin-bottom: 25px;
    background-image: url('more/back_arrow.png');
}
.back:hover {
    background-image: url('more/back_arrow_big.png');
}
.back:active {
    background-image: url('more/back_arrow_big.png');
}

.more-heading {
    padding: 50px;
    padding-bottom: 0px;
    font-size: 1.5rem;
    color: #59069E;
    font-style: none;
    text-align: center;
    line-height: 50%;
}

#top-heading {
    background: linear-gradient(to bottom, #59069E, #fff);
}

.text {
    max-width: 50%;
    margin-left: 25%;
}

.text p.more-text {
    font-size: 1.5rem;
}

div.buttons p.centered-text a img.portfolio-of-clients:hover {
    box-shadow: 0px -1px 19px 14px rgba(226,213,236,1);
    -webkit-box-shadow: 0px -1px 19px 14px rgba(226,213,236,1);
    -moz-box-shadow: 0px -1px 19px 14px rgba(226,213,236,1);
}

div.buttons p.centered-text a img.portfolio-of-clients:active {
    box-shadow: 0px -1px 19px 14px rgba(226,213,236,1);
    -webkit-box-shadow: 0px -1px 19px 14px rgba(226,213,236,1);
    -moz-box-shadow: 0px -1px 19px 14px rgba(226,213,236,1);
}

.more-colour {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px; /* Remaining height */
    padding-left: 0;
    transition: background-color 0.025s linear;
    z-index: 4;
}

/* Responsive Adjustments */
@media (max-width: 1300px) {
    .header-text {
        font-size: 2rem;
    }
}

/*  1023px  */
@media (max-width: 1023px) {
    .header-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px 0;
    }

    .header-text {
        position: static;
        width: 50vw; 
        margin-right: auto;
        text-align: right; 
        font-size: 1.5rem; 
        margin-top: 20px; 
    }

    .more-heading {
        color: #59069E;
        text-align: center;
        line-height: 50%;
    }
    
    .more-heading h1 {
        font-style: none;
        text-align: center; 
        line-height: 25%;
    }
}

/*    768px    */
@media (max-width: 768px) {
    .header-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px 0;
    }

    .header-text {
        position: static; 
        width: 100vw; 
        text-align: center; 
        font-size: 1.5rem; 
        margin-top: 50px; 
    }

    .header-image {
        position: static; 
        left: 0; 
        transform: none; 
        max-width: 25vw; 
        margin: 0 auto; 
    }

    .services-button {
        width: 80vw;
    }

    .header-top {
        height: 150px;
    }

    .corner-dog-ear {
        width: 200px;
        height: 200px;
    }

    .centered-text {
        padding: 0px 50px;
        margin: 0px;
    }

    /* More page */
}

@media (max-width: 480px) {
    .header-text {
        font-size: 1.5rem; 
        width: 100vw; 
        text-align: center; 
        margin-top: 50px; 
    }

    .header-image {
        max-width: 33vw; 
    }

    .header-top {
        height: 100px;
    }

    .header-bottom {
        top: 100px;
        min-height: 40vh;
    }

    .corner-dog-ear {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 415px) {
    .header-text {
        font-size: 1.5rem; 
        width: 100vw; 
        text-align: center;
        margin-top: 50px; 
    }

    .header-top {
        height: 50px;
    }
    
    .header-bottom {
        top: 50px;
    }

    .corner-dog-ear {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 375px) {
    .header-text {
        font-size: 1.3rem; 
        width: 100vw; 
        text-align: center;
        margin-top: 50px; 
    }

    .header-top {
        height: 100px;
    }

    .header-bottom {
        min-height: 50vh;
    }

    .corner-dog-ear {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 310px) {
    .header-text {
        font-size: 1rem; 
        width: 100vw; 
        text-align: center;
        margin-top: 50px; 
    }

    .header-top {
        height: 100px;
    }

    .header-bottom {
        min-height: 60vh;
    }

    .corner-dog-ear {
        width: 100px;
        height: 100px;
    }
}
