body {
background: rgb(29,40,41);
background: -moz-linear-gradient(90deg, rgba(29,40,41,1) 0%, rgba(24,30,31,1) 11%, rgba(19,19,20,1) 41%, rgba(19,19,20,1) 58%, rgba(24,30,31,1) 85%, rgba(29,40,41,1) 100%);
background: -webkit-linear-gradient(90deg, rgba(29,40,41,1) 0%, rgba(24,30,31,1) 11%, rgba(19,19,20,1) 41%, rgba(19,19,20,1) 58%, rgba(24,30,31,1) 85%, rgba(29,40,41,1) 100%);
background: linear-gradient(90deg, rgba(29,40,41,1) 0%, rgba(24,30,31,1) 11%, rgba(19,19,20,1) 41%, rgba(19,19,20,1) 58%, rgba(24,30,31,1) 85%, rgba(29,40,41,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#1d2829",endColorstr="#1d2829",GradientType=1);
color: white;
padding: 3rem;
position: relative;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Varela Round", sans-serif;
}

header {
    /*display: flex;
    justify-content:space-evenly*/
    padding-bottom: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.contact-btn {
    right: 3%;
    position: fixed;
    padding: 0.5rem 2rem;
    font-size: 1rem;
    background-color: rgba(143,143,143,0.2);
    border: 1px solid rgba(102,102,102,0.5);
    border-radius: 50px;
    cursor: pointer;
    color: white;
    transition: 0.3s;
}

.contact-btn:hover {
    background-color: #76b0ab37;
}

/*main section*/

main {
    overflow: hidden;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    margin-bottom: 20rem;
}
.title-section {
    margin-top: 4rem;
}

main h1 {
    text-align: center;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 5px;
    line-height: 1;
    background-image: linear-gradient(rgb(133, 133, 133,), rgb(255, 255, 255));
    color: transparent;
    background-clip: text;
}

.main-logo {
    display: flex;
    justify-content: center;
    padding-top: 100px;
}

.main-logo img {
    width: 700px;
    height: auto;
}

.location {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding-top: 10px;
}

.bio-section {
    display: flex;
    margin-top: 20rem;
    margin-bottom: 2rem;
}

.bio {
    line-height: 1.6;
    font-size: 1rem;
    color: #b3b3b3;
    letter-spacing: 1px;
    max-width: 27rem;
}

.scroll-down {
    height: 5rem;
    width: 2rem;
    position: fixed;
    bottom: 5%;
    right: 2%;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.scroll-down a {
    display: none;
    text-decoration: none;
    font-size: 0rem;
    color: lightgray;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.scroll-down::before,
.scroll-down::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    height: 10px;
    width: 10px;
    transform: translate(-50%, -100%) rotate(45deg);
    border: 2px solid lightgray;
    border-top: transparent;
    border-left: transparent;
    animation: scroll-down 3s ease-in-out infinite;
}

.scroll-down::before {
    top: 30%;
    animation-delay: 0.8s;
}

@keyframes scroll-down {
    0% {
        opacity: 0;
    }
    30%, 60% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        top: 90%;
    }
}

/* BENTO GRID */

.about-section {
    width: 100%;
    /*margin-top: 20rem;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20rem;

}

.about-title {
    margin-bottom: 5%;
    font-size: 5rem;
    background-image: linear-gradient(rgb(133,133,133), rgb(255,255,255));
    color: transparent;
    background-clip: text;
}

.bento-grid {
    position: relative;
    display: grid;
    height: auto;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
        "boiler boiler repairs"
        "heating plumbing repairs"; 
    gap: 1.5rem;
}


.card {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.07));
    border: 1px solid rgba(255,255,255,0.1,);
    border-radius: 24px;
    padding: 2rem;
    transition: transform 0.3s ease,
                box-shadow 0.3s ease,
                border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.photo-box {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.2;
}

/* CARD SPECIFIC AREAS */

    .boiler { grid-area: boiler; min-height: 300px;}
    .heating { grid-area: heating; min-height: 450px;}
    .plumbing { grid-area: plumbing; min-height: 220px;}
    .repairs { grid-area: repairs; min-height: 220px;}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: transparent;
}

/* SPOTLIGHT EFFECT */

.card::before {
    content: '';
    position: absolute;
    inset: 0 0 0 0;
    background: radial-gradient(circle at var(--x) var(--y), rgba(124,233,230,0.1), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.card:hover::before {
    opacity: 1;
}

.card-title {
    font-size: 2rem;
    font-weight: 300;
    margin-top: 4rem;
    color: #ffffff;
}

.card-text {
    line-height: 1.6;
    color: #adadad;
    margin-top: 2rem;
    max-width: 30rem;
}

.bento-grid .background-img {
    position: absolute;
    inset: -1%;
    width: 110%;
    height: 110%;
    object-fit: cover;
    z-index: -1;
}


/* PROJECTS SECTION */

.projects-section {
    width: 100%;
    margin-bottom: 20rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.projects-section h3 {
    font-size: 5rem;
    margin-bottom: 5%;
    background-image: linear-gradient(rgb(133,133,133), rgb(255,255,255));
    color: transparent;
    background-clip: text;
}

.slider {
    height: var(--height);
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 10%, 90%, transparent);
}

.slider .list {
    display: flex;
    min-width: calc(var(--width) * var(--quantity));
    position: relative;
}

.slider .list .item {
    width: var(--width);
    height: var(--height);
    position: absolute;
    left: 80%;
    animation: autoRun 10s linear infinite;
    transition: filter 0.5s;
    animation-delay: calc( (10s / var(--quantity)) * (var(--position) - 1) - 10s)!important;
    transition: 0.5s;
}

.slider .list .item img {
    margin-top: 4rem;
    width: 100%;
    border-radius: 1rem;
}

@keyframes autoRun {
    from {
        left: 100%;
    }
    to {
        left: calc(var(--width) * -1);
    }
}

.slider:hover .item {
    animation-play-state: paused!important;
    filter: grayscale(1);
}

.slider .item:hover {
    filter: grayscale(0);
    scale: 1.2;
}

/* CONTACT SECTION */

.contact-section {
    padding: 60px;
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h3 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background-image: linear-gradient(rgb(133, 133, 133), rgb(255, 255, 255));
    color: transparent;
    background-clip: text;
}

.section-header p {
    color: lightgray;
    max-width: 600px;
    margin: 0 auto;
}

/* CONTACT GRID */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.info-card {
    background-color: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card {
    padding: 30px;
}

.info-card h4 {
    font-size: 1.5rem;
    margin-bottom: 4rem;
    color: lightgray;
}

.contact-item {
    margin-bottom: 3rem;
}

.contact-item p {
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #7ce9e6;
}

.contact-item a {
    color: lightgray;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #7ce9e6;
}

/* FORM STYLE */

.booking-form {
    text-align: center;
    padding-bottom: 70px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background-color: #2d2d2d;
    border-radius: 8px;
    color: lightgray;
    font-size: 16px;
    transition: border-color 0.3s;
    border: 1px solid #333;
}

.form-control:focus {
    outline: none;
    color: #7ce9e6;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.message-btn {
    width: 100%;
    padding: 12px;
    background-color: rgba(124, 233, 230, 0.1);
    color: #7ce9e6;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.message-btn:hover {
    background-color: #7ce9e6;
    color: #131314;
}

.success-message {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 12px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
}

/* BANNER */

.banner-section {
    max-width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 7rem;
}

.banner-item{
    max-width: 100%;
}

/* FOOTER */

footer {
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 2rem 4rem;
    background-color: rgba(124, 233, 230, 0.1);
}


@media (max-width: 1400px) {
    main h1 {
        display: none;
    }

    .main-logo img {
        margin-top: 10%;
        max-width: 700px;
        width: 80%;
        padding-bottom: 50px;
    }

    .scroll-down {
        display: none;
    }

    .bento-grid {
        flex-grow: auto;
        overflow-x: hidden;
        position: relative;
        display: grid;
        height: 100%;
        width: 100%;
        overflow-x: hidden;
        grid-template-columns: auto auto;
        grid-template-areas: 
            "boiler  heating"
            "plumbing repairs";
    }

    .boiler { grid-area: boiler; height: 600px; }
    .heating {grid-area: heating; height: 600px; }
    .plumbing { grid-area: plumbing; min-height: 220px; }
    .repairs { grid-area: repairs; min-height: 220px; }

    .card-title {
        font-size: 1.2rem;
        margin-top: 0;
    }

    .card-text {
        line-height: 1.3;
        font-size: 0.8rem;
    }

    .projects-section {
        margin-top: 20rem;
    }

    .slider .list .item {
        width: 40rem;
        height: 20rem;
    }

    .slider .list {
        min-width: calc(30rem * var(--quantity));
    }

    .booking-form {
        margin-bottom: 30px;
    }

}


@media (max-width: 768px) {
    body {
        padding: 2rem;
    }

    .main-logo img {
        width: 90%;
        padding-bottom: 50px;
    }

    .about-section {
        margin-top: 15rem;
    }

    .bio-section {
        margin-top: 0;
    }

    .bio {
        font-size: 0.8rem;
        max-width: 15rem;
    }

    .bento-grid {
        width: 100%;
        grid-template-columns: 1fr;
        grid-template-areas: 
            "boiler"
            "heating"
            "plumbing"
            "repairs"
    }

    .boiler {height: 300px;}
    .plumbing {grid-area: plumbing; min-height: 300px;}

    .photo-box {
        top: 0;
        justify-items: center;
    }

    .about-title {
        font-size: 4rem;
    }

    .photo-box {
        height: auto;
    }

    .projects-section {
        padding-top: 30rem;
    }

    .projects-section h3 {
        font-size: 4rem;
    }

    .slider .list .item {
        width: 30rem;
        height: 15rem;
    }

    .slider .list {
        min-width: calc(20rem * var(--quantity));
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .banner-section {
        width: 100%;
    }

    .banner-item {
        max-width: 100%;
    }
}


@media (max-width: 480px) {
    main h1 {
        display: none;
    }

    .main-logo img {
        width: 80%;
        padding-bottom: 50px;
    }

    main h2 {
        display: block;
        margin-top: -3rem;
    }

    .bio-section {
        padding-top: 100px;
        margin-bottom: 1rem;
    }

    .about-section {
        margin-top: 10rem;
    }

    .bio {
        font-size: 0.8rem;
        max-width: 15rem;
    }

    .bento-grid {
        width: 100%;
        grid-template-columns: 1fr;
        grid-template-areas: 
            "boiler"
            "heating"
            "plumbing"
            "repairs"
        ;
    }

    .heating {grid-area: heating; max-height: 300px;}

    .about-title {
        margin-bottom: 5%;
        font-size: 3rem;
    }

    .photo-box {
        right: -4%;
        top: 27%;
        scale: 0.7;
    }

    .projects-section h3 {
        margin-bottom: 5%;
        font-size: 3rem;
    }

    .slider .list .item {
        width: 20rem;
        height: 10rem;
    }

    .slider .list {
        display: flex;
        min-width: calc( 10rem * var(--quantity));
    }

    .section-header h3 {
        font-size: 3rem;
    }

    .contact-section {
        margin-top: 0;
        padding: 10px;
    }

    .booking-form {
        margin-bottom: 2rem;
    }

    .box-icons {
        display: none;
    }

    footer h3 {
        font-size: 1rem;
    }

}


@media (max-width: 390px) {
    body {
        width: auto;
        padding: 1rem;
    }

    .scroll-down {
        display: none;
    }

    .title-section {
        margin-top: 0;
    }

    .main-logo img {
        width: 80%;
        padding-bottom: 100px;
    }

    main h2 {
        font-size: 6rem;
    }

    .location p{
        font-size: 1rem;
        padding-bottom: 20px;
    }

    .about-section {
        width: auto;
        margin-top: 10rem;
    }

    .projects-section {
        width: auto;
        margin-top: 30rem;
        margin-bottom: -10rem;
    }

    .contact-section {
        padding: 20px;
    }

    .info-card {
        padding: 15px;
    }

    .booking-form {
        padding-bottom: 2rem;
    }

    .contact-btn {
        padding: 0.4rem 1.5rem;
        font-size: 0.9rem;
    }

    .photo-box {
        right: 2%;
        top: 27%;
    }

    footer h3 {
        font-size: 0.8rem;
    }
}