body {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-size: cover;
    width: 100%;
    background-color: #150b01; 
    cursor: pointer; /* Indicate the page is clickable */
}

.side-design {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('https://abhisheksingha.com/static/abhishek/image/inchou/back-3.png') no-repeat center center;
    background-size: cover;
    z-index: -1;
    pointer-events: none;
}

.main-title-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
    padding: 10px 0;
    background: linear-gradient(
        to right,
        rgba(48, 48, 48, 0) 0%,     /* Fully transparent left edge */
        rgba(48, 48, 48, 0.4) 15%,  /* Slow fade-in */
        rgba(48, 48, 48, 0.8) 30%,  /* Near full opacity */
        rgba(48, 48, 48, 0.8) 70%,  /* Full opacity in center */
        rgba(48, 48, 48, 0.4) 85%,  /* Slow fade-out */
        rgba(48, 48, 48, 0) 100%     /* Fully transparent right edge */
    );
}

.main-title a {
    color: #c4c3c3; /* White for prominence */
    font-size: 36px; /* Larger font size for main title */
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    padding: 15px;
}

.main-title h1 {
    margin: 0;
}

.title-section {
    position: fixed;
    top: 70px; /* Below main-title */
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
    padding: 10px 0;
    background: linear-gradient(
        to right,
        rgba(48, 48, 48, 0) 0%,     /* Fully transparent left edge */
        rgba(48, 48, 48, 0.4) 15%,  /* Slow fade-in */
        rgba(48, 48, 48, 0.8) 30%,  /* Near full opacity */
        rgba(48, 48, 48, 0.8) 70%,  /* Full opacity in center */
        rgba(48, 48, 48, 0.4) 85%,  /* Slow fade-out */
        rgba(48, 48, 48, 0) 100%    /* Fully transparent right edge */
    );
}

.title {
    color: #919090;
    font-size: 24px;
    padding: 10px;
}

.title a {
    text-decoration: none;
    color: #919090;
}

a {
    margin: 0;
    font-size: 2rem;
    cursor: pointer;
    text-decoration: none;
    color: #919090;
}

p {
    font-size: 1rem;
    margin-top: 10px;
}

.left-section {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    padding: 350px 20px 20px; /* Adjusted padding to account for new title sections */
    box-sizing: border-box;
}

.photo-container {
    text-align: center;
    flex: 1;
    max-width: 500px;
}

.photo {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 5px;
}

.photo-description {
    font-size: 20px;
    color: #8b8b8b;
}

.house-section {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.house-container {
    position: relative;
    width: 800px;
    height: 700px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.house-body {
    position: absolute;
    width: 100%;
    height: 30%;
    bottom: 90px;
    z-index: 1;
}

.roof-container {
    position: relative;
    width: 80%;
    height: 100%;
    top: 365px;
    display: flex;
    flex-direction: column;
    z-index: 3;
    left: 60px;
}

.roof-part {
    transition: transform 0.9s ease, opacity 0.9s ease, visibility 0.9s ease;
    position: absolute;
    width: 100%;
    opacity: 0;
}

#roof-part1 {
    z-index: 5;
    bottom: 500px;
    height: 30%;
    right: 30px;
    opacity: 1;
    visibility: visible;
}

#roof-part2 {
    z-index: 4;
    top: 30px;
    height: 25%;
}

#roof-part3 {
    z-index: 3;
    top: 20px;
    height: 23%;
}

#roof-part4 {
    z-index: 2;
    top: 40px;
    right: 50px;
    height: 17%;
}

.house-description {
    font-size: 16px;
    color: #949393;
    max-width: 500px;
    margin-top: 20px;
    text-align: center;
    z-index: 2;
    position: relative;
}

/* Hover effect for breaking apart */
.house-container:hover #roof-part1 {
    transform: translateY(-300px);
}

.house-container:hover #roof-part2,
.house-container:hover #roof-part3,
.house-container:hover #roof-part4 {
    opacity: 1;
    visibility: visible;
}

.house-container:hover #roof-part2 {
    transform: translateY(-200px);
}

.house-container:hover #roof-part3 {
    transform: translateY(-80px);
}

.house-container:hover #roof-part4 {
    transform: translateY(-20px);
}

/* Reset transition after hover */
.house-container:not(:hover) #roof-part2,
.house-container:not(:hover) #roof-part3,
.house-container:not(:hover) #roof-part4 {
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
}

.roof-text {
    position: absolute;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s ease, transform 0.9s ease;
    z-index: 6;
    text-align: center;
    pointer-events: none;
}

#text-part1 {
    bottom: 520px;
    right: 30px;
    opacity: 1;
    visibility: visible;
}

#text-part2 {
    top: 50px;
    right: 30px;
}

#text-part3 {
    top: 40px;
    right: 30px;
}

#text-part4 {
    top: 60px;
    right: 50px;
}

/* Show text on hover */
.house-container:hover #text-part2,
.house-container:hover #text-part3,
.house-container:hover #text-part4 {
    opacity: 1;
    visibility: visible;
}

.house-container:hover #text-part2 {
    transform: translateY(-200px);
}

.house-container:hover #text-part3 {
    transform: translateY(-80px);
}

.house-container:hover #text-part4 {
    transform: translateY(-20px);
}

/* Reset text when not hovering */
.house-container:not(:hover) #text-part2,
.house-container:not(:hover) #text-part3,
.house-container:not(:hover) #text-part4 {
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
}

/* Floating Button Styles */
.floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #c4c3c3;
    color: #150b01;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    z-index: 10;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.floating-button:hover {
    background-color: #919090;
    transform: scale(1.05);
}

/* Ensure specific elements allow default link behavior */
.no-redirect {
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* Adjustments for tablets and smaller laptops */
    .main-title-section {
        padding: 8px 0;
    }

    .main-title a {
        font-size: 28px; /* Slightly smaller font size for tablets */
    }

    .title-section {
        top: 60px; /* Adjusted to sit below main-title */
        padding: 8px 0;
    }

    .title {
        font-size: 20px;
        padding: 8px;
    }

    .left-section {
        padding-top: 130px; /* Adjusted padding for tablet */
        gap: 15px;
    }

    .photo-container {
        max-width: 90%;
    }

    .house-container {
        width: 90%;
        height: auto;
        max-height: 600px;
    }

    .roof-container {
        width: 85%;
        left: 5%;
        top: 300px;
    }

    .house-body {
        height: 25%;
        bottom: 80px;
    }

    .roof-part {
        width: 90%;
    }

    #roof-part1 {
        bottom: 450px;
        right: 15px;
        height: 28%;
    }

    #roof-part2 {
        top: 25px;
        height: 23%;
    }

    #roof-part3 {
        top: 15px;
        height: 21%;
    }

    #roof-part4 {
        top: 35px;
        right: 25px;
        height: 15%;
    }

    .roof-text {
        font-size: 14px;
    }

    #text-part1 {
        bottom: 470px;
        right: 15px;
    }

    #text-part2 {
        top: 45px;
        right: 15px;
    }

    #text-part3 {
        top: 35px;
        right: 15px;
    }

    #text-part4 {
        top: 55px;
        right: 25px;
    }

    .house-description {
        font-size: 14px;
        max-width: 90%;
    }

    .side-design {
        background-size: contain;
    }

    .floating-button {
        font-size: 14px;
        padding: 10px 20px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 768px) {
    /* Adjustments for mobile devices */
    .main-title-section {
        padding: 6px 0;
    }

    .main-title a {
        font-size: 24px; /* Smaller font size for mobile */
    }

    .title-section {
        top: 50px; /* Adjusted for mobile */
        padding: 6px 0;
    }

    .title {
        font-size: 18px;
        padding: 6px;
    }

    .left-section {
        flex-direction: column;
        align-items: center;
        padding-top: 110px; /* Adjusted padding for mobile */
        gap: 10px;
    }

    .photo-container {
        max-width: 100%;
    }

    .photo {
        width: 100%;
        border-radius: 6px;
    }

    .photo-description {
        font-size: 18px;
    }

    .house-container {
        width: 100%;
        height: auto;
        max-height: 500px;
    }

    .roof-container {
        width: 90%;
        left: 5%;
        top: 250px;
    }

    .house-body {
        height: 20%;
        bottom: 70px;
    }

    .roof-part {
        width: 85%;
    }

    #roof-part1 {
        bottom: 400px;
        right: 10px;
        height: 25%;
    }

    #roof-part2 {
        top: 20px;
        height: 20%;
    }

    #roof-part3 {
        top: 10px;
        height: 18%;
    }

    #roof-part4 {
        top: 30px;
        right: 15px;
        height: 13%;
    }

    .roof-text {
        font-size: 12px;
    }

    #text-part1 {
        bottom: 420px;
        right: 10px;
    }

    #text-part2 {
        top: 40px;
        right: 10px;
    }

    #text-part3 {
        top: 30px;
        right: 10px;
    }

    #text-part4 {
        top: 50px;
        right: 15px;
    }

    .house-description {
        font-size: 12px;
        max-width: 95%;
    }

    .side-design {
        background-size: contain;
    }

    .floating-button {
        font-size: 12px;
        padding: 8px 16px;
        bottom: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    /* Adjustments for smaller mobile devices */
    .main-title-section {
        padding: 5px 0;
    }

    .main-title a {
        font-size: 20px; /* Even smaller font size for small screens */
        padding: 5px;
    }

    .title-section {
        top: 45px;
        padding: 5px 0;
    }

    .title {
        font-size: 16px;
        padding: 5px;
    }

    .left-section {
        padding-top: 90px; /* Further reduced padding */
        gap: 8px;
    }

    .photo-container {
        max-width: 95%;
    }

    .photo-description {
        font-size: 16px;
    }

    .house-container {
        width: 100%;
        height: auto;
        max-height: 400px;
    }

    .roof-container {
        width: 95%;
        left: 2.5%;
        top: 200px;
    }

    .house-body {
        height: 18%;
        bottom: 60px;
    }

    .roof-part {
        width: 80%;
    }

    #roof-part1 {
        bottom: 350px;
        right: 8px;
        height: 22%;
    }

    #roof-part2 {
        top: 15px;
        height: 18%;
    }

    #roof-part3 {
        top: 8px;
        height: 16%;
    }

    #roof-part4 {
        top: 25px;
        right: 10px;
        height: 12%;
    }

    .roof-text {
        font-size: 10px;
    }

    #text-part1 {
        bottom: 370px;
        right: 8px;
    }

    #text-part2 {
        top: 35px;
        right: 8px;
    }

    #text-part3 {
        top: 25px;
        right: 8px;
    }

    #text-part4 {
        top: 45px;
        right: 10px;
    }

    .house-description {
        font-size: 10px;
        max-width: 100%;
    }

    .side-design {
        background-size: cover;
        background-position: center;
    }

    .floating-button {
        font-size: 10px;
        padding: 6px 12px;
        bottom: 8px;
        right: 8px;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    /* Adjustments for medium-sized desktops */
    .house-container {
        width: 85%;
        max-height: 650px;
    }

    .roof-container {
        width: 80%;
        left: 7.5%;
        top: 350px;
    }

    .house-body {
        height: 28%;
        bottom: 85px;
    }

    .floating-button {
        font-size: 15px;
        padding: 10px 20px;
    }
}

@media (max-height: 600px) {
    /* Adjustments for devices with low height (e.g., landscape mode on mobile) */
    .house-container {
        height: auto;
        max-height: 350px;
    }

    .roof-container {
        top: 180px;
    }

    .house-body {
        bottom: 50px;
        height: 15%;
    }

    #roof-part1 {
        bottom: 300px;
        height: 20%;
    }

    #text-part1 {
        bottom: 320px;
    }

    .floating-button {
        font-size: 10px;
        padding: 6px 12px;
        bottom: 8px;
        right: 8px;
    }
}