/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Child theme for the Astra theme
Author: Your Name
Author URI: https://goyaldevelopment.com/
Template: astra
Version: 1.0.0
*/

/* Import parent theme CSS */
@import url("../astra/style.css");

.header{
   transition: all 0.4s ease;
    background: transparent;
}
.header.scrolled{
    background: #0000004F !important; /* semi-transparent */
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(2px); /* Safari */
}
div#userwayAccessibilityIcon{
    position: fixed;
    bottom: 15px;
    left: 15px;
}
.footer-form input#input_2_1,
.footer-form select#input_2_3,
.newsletter-form input#input_3_1,
.newsletter-form input#input_3_3,
.newsletter-form input#input_3_4,
.newsletter-form input#input_3_6,a.hfe-menu-item
.newsletter-popup-form input#input_5_1,
.newsletter-popup-form input#input_5_3,
.sub-form input#input_6_1,
.sub-form textarea#input_6_4{
    padding: 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(217, 217, 217, 1);
    border-radius: unset;
    color:rgba(217, 217, 217, 1);
}
footer option{
    color: black;
}
.sub-form textarea#input_6_4{
    height:43px;
}
.footer-form input#gform_submit_button_2,
.newsletter-form input#gform_submit_button_3,
.newsletter-popup-form input#gform_submit_button_5,
.sub-form input#gform_submit_button_6,
.gf-popup-button{
    background-color: #4AA1C5;
    padding: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.footer-form #gform_submit_button_2:hover,
.newsletter-popup-form input#gform_submit_button_5:hover,
.newsletter-form input#gform_submit_button_3:hover{
    background: #3a8dad;   /* slightly darker shade */
    transform: translateY(-3px); /* lift effect */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.newsletter-inner .e-con-inner {
    background-color: white;
    padding: 44px 46px;
}
.newsletter-popup-form input#gform_submit_button_5{
    padding: 12px 32px;
}
.newsletter-popup-form .gform_footer.before{
    float:right;
}
.about-info {
  background: rgba(22, 22, 22, 0.35); 
  backdrop-filter: blur(30px);        
  -webkit-backdrop-filter: blur(68px);
}
footer .elementor-widget-navigation-menu,
footer .elementor-widget-navigation-menu .hfe-nav-menu__layout-vertical{
    width:100% !important;
}
.portfolio-custom-homes .elementor-swiper-button-next,
.portfolio-custom-homes .elementor-swiper-button-prev,
.portfolio-detail .elementor-swiper-button-next,
.portfolio-detail .elementor-swiper-button-prev{
    padding: 7px 7px;
    border: 1px solid black;
    border-radius: 50%;
    top:107% !important;
    position: absolute !important;
}
.portfolio-custom-homes .elementor-swiper-button-next{
    right: 0% !important;
}
.portfolio-custom-homes .elementor-swiper-button-prev{
    left:unset !important;
    right: 60px;
}
.portfolio-tabs-main .e-con-inner{
    /*margin:0 !important;*/
    width:100% !important;
}
.portfolio-slider-text{
    /*margin-left:30px;*/
}
.portfolio-detail .elementor-swiper-button-next,
.portfolio-detail .elementor-swiper-button-prev{
    top:450px !important;
}
.portfolio-detail .elementor-swiper-button-next{
    right:330px !important;
}
.portfolio-detail .elementor-swiper-button-prev{
    left:350px !important;
}
.portfolio-custom-homes .elementor-image-carousel-wrapper {
    margin:0 !important;
    width:100dvw !important;
}
.portfolio-tabs-main{
    overflow:hidden !important;
}
.portfolio-custom-homes img.swiper-slide-image {
    width: 100% !important;
    height: 600px !important;
    object-fit: cover !important;
}
.sub-form input#gform_submit_button_6{
    padding:10px !important;
}
.sub-form textarea#input_6_4,
.sub-form input#input_6_1{
    height:26px !important;
}
/*header-css*/
.icon .elementor-icon-wrapper{
    display: flex;
}
#toggle-menu{
    pointer-events: none;
    transition: all 0.35s;
    opacity: 0;    
}
#toggle-menu.active{
    pointer-events: all;
    opacity: 1;
}
#toggle-menu.active::before{
opacity: .5;
}
#toggle-menu::before{
    transition: all 0.35s;
    opacity: 0;
}
#toggle-menu #toogle-inner{
   right: -100%;	
   transition: all 0.35s;
}
#toggle-menu.active #toogle-inner{
   right: 0;	
}
.header span.elementor-button-text {
    white-space: nowrap;
}

.custom_slider .swiper-slide-image{
    aspect-ratio: 1 / 1.1;
    object-fit: cover;
}
.custom_slider .elementor-image-carousel-wrapper,
.custom_slider .elementor-image-carousel{
        position: relative;
}
.custom_slider .elementor-image-carousel-wrapper{
    width: 100% !important;
    padding: 0px 50px;
}
.custom_slider .elementor-image-carousel-wrapper::before{
    height: 160px;
    content: "";
    position: absolute;
    top: -80px;
    left: -100px;
    right: -120px;
    background-color: #F8F8F8;
    border-radius: 50%;
    z-index: 2;
}
.custom_slider .elementor-image-carousel-wrapper::after{
    height: 160px;
    content: "";
    position: absolute;
    bottom: -80px;
    left: -100px;
    right: -120px;
    background-color: #F8F8F8;
    border-radius: 50%;
    z-index: 2;
}
.custom_slider .elementor-swiper-button {
    top: 95% !important;
    z-index: 3 !important;
}
.custom_slider .elementor-swiper-button.elementor-swiper-button-next{
    right: 47% !important;
}
.custom_slider .elementor-swiper-button.elementor-swiper-button-prev{
    left: 47% !important;
}

/*timeline our approach page*/
.timeline{
    display: flex;
    justify-content: center;
    position: relative;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.3s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.timeline .timeline-container{
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.timeline-line{
    width: 194px;
    display: flex;
}

.timeline-line svg{
    width: 100%;
}

/* SVG Path Animation */
.timeline-line svg path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawPath 2.5s ease-in-out 0.5s forwards;
}

@keyframes drawPath {
    to { stroke-dashoffset: 0; }
}

.timeline-items{
    display: grid;
    grid-template-columns: 1fr 194px 1fr;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease-out forwards;
}

/* Staggered animations */
.timeline-items:nth-child(1) { animation-delay: 0.8s; }
.timeline-items:nth-child(2) { animation-delay: 1.0s; }
.timeline-items:nth-child(3) { animation-delay: 1.2s; }
.timeline-items:nth-child(4) { animation-delay: 1.4s; }
.timeline-items:nth-child(5) { animation-delay: 1.6s; }
.timeline-items:nth-child(6) { animation-delay: 1.8s; }
.timeline-items:nth-child(7) { animation-delay: 2.0s; }
.timeline-items:nth-child(8) { animation-delay: 2.2s; }

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-items:nth-child(odd) div{
    display: flex;
    justify-content: flex-start;
}

.timeline-items:nth-child(even) div{
    display: flex;
    justify-content: flex-end;
}

.timeline-item{
    max-width: 450px;
    width: 100%;
    padding: 18px 18px 18px 35px;
    border-radius: 5px;
    backdrop-filter: blur(84px);
    background: rgba(255, 255, 255, 0.3);
    flex-direction: column;
    gap: 14px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.timeline-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(74, 161, 197, 0.2);
}

.timeline-items:nth-child(even) div .timeline-item{
    padding: 18px 18px 18px 18px;
}

.timeline-item .timeline-heading{
    display: flex;
    align-items: end;
    gap: 18px;
}

.timeline-items:nth-child(even) div .timeline-item .timeline-heading{
    justify-content: flex-start;
}

.timeline-item .timeline-heading h6{
    font-size: 50px;
    line-height: 1;
    color: #fff;
    font-weight: 700;
    margin: 0;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-heading h6 {
    color: #4AA1C5;
    text-shadow: 0 0 10px rgba(74, 161, 197, 0.3);
}

.timeline-item .timeline-heading p{
    font-weight: 600;
    padding-bottom: 5px;
    color: #fff;
    margin: 0;
    font-size: 20px;
    line-height: 1;
    transition: color 0.3s ease;
}

.timeline-item:hover .timeline-heading p {
    color: #4AA1C5;
}

.timeline-item > p{
    font-weight: 400;
    font-size: 14px;
    line-height: 1.7;
    color: #fff;
    margin: 0;
    transition: color 0.3s ease;
}

.timeline-item:hover > p {
    color: #f0f0f0;
}

.timeline-1 .timeline-item{
    margin-left: -50px;
    margin-top: -38px;
}
.timeline-2 .timeline-item {
    margin-right: 46px;
    margin-top: 10px;
}
.timeline-4 .timeline-item {
    margin-right: 0px;
    margin-top: 10px;
}
.timeline-6 .timeline-item {
    margin-right: -111px;
    margin-top: 10px;
}
.timeline-3 .timeline-item {
    margin-left: -126px;
    margin-top: 10px;
}
.timeline-5 .timeline-item {
    margin-left: -24px;
    margin-top: 10px;
}
.timeline-7 .timeline-item {
    margin-left: 53px;
    margin-top: 10px;
}
.timeline-8 .timeline-item {
    margin-right: -35px;
    margin-bottom: -30px;
}

.timeline-items:nth-child(odd) div .timeline-item .card-arrow {
    position: absolute;
    left: -10px;
    top: 35px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(84px);
    transition: all 0.3s ease;
}

.timeline-items:nth-child(even) div .timeline-item .card-arrow {
    position: absolute;
    right: -10px;
    top: 35px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(84px);
    transition: all 0.3s ease;
}

.timeline-item:hover .card-arrow {
    border-right-color: rgba(74, 161, 197, 0.6) !important;
    border-left-color: rgba(74, 161, 197, 0.6) !important;
}

.timeline-8 .timeline-item .card-arrow{
    top: 104px !important;
}

.timeline-items:nth-child(odd) div .timeline-item::after{
    position: absolute;
    content: "";
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background-color: #000;
    border: 6px solid #fff;
    left: -70px;
    top: 30px;
    transition: all 0.3s ease;
    animation: pulse 3s infinite;
}

.timeline-items:nth-child(even) div .timeline-item::after{
    position: absolute;
    content: "";
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background-color: #000;
    border: 6px solid #fff;
    right: -70px;
    top: 30px;
    transition: all 0.3s ease;
    animation: pulse 3s infinite;
}

.timeline-item:hover::after {
    background-color: #4AA1C5;
    border-color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(74, 161, 197, 0.5);
}

.timeline-8 .timeline-item::after{
    top: 100px !important;
}
.footer-main .hfe-nav-menua a.hfe-menu-item{
    width:100% !important;
    word-break: keep-all !important;
}

/* Subtle pulse animation for dots */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
}

/* Click effect */
.timeline-item:active {
    transform: translateY(-1px) scale(0.98);
}

/* Smooth scrolling enhancement */
html {
    scroll-behavior: smooth;
}

/* Add subtle glow effect on focus */
.timeline-item:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(74, 161, 197, 0.3);
}
@media (max-width: 1024px) {
    .portfolio-custom-homes .elementor-swiper-button-next, 
    .portfolio-custom-homes .elementor-swiper-button-prev{
        top:107% !important;
    }
    .portfolio-detail .elementor-swiper-button-next,
    .portfolio-detail .elementor-swiper-button-prev{
        top:106% !important;
    }
    .portfolio-detail .elementor-swiper-button-prev{
        left:44% !important;
    }
    .portfolio-detail .elementor-swiper-button-next{
        right:44% !important;
    }
    
    
    .timeline-line {
        display: none !important;
    }
    .timeline-items{
        display: flex !important;
        justify-content: flex-end !important;
    }
    .timeline .timeline-container{
        position: unset !important;
            gap: 30px;
    }
    .timeline-item {
        padding: 8px 8px 8px 15px !important;
        gap: 4px !important;
    }
    .timeline-items div .timeline-item .card-arrow{
            left: -10px !important;
    top: 25px !important;
    right: unset !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 10px solid transparent !important;
    border-bottom: 10px solid transparent !important;
    border-right: 10px solid rgba(255, 255, 255, 0.3) !important;
    border-left: none !important;
    }
    .timeline-item {
    max-width: 100% !important;
    margin: 0px !important;
    }
    .timeline-items:nth-child(odd) > div:nth-child(3),
    .timeline-items:nth-child(even) > div:nth-child(1){
    width: calc(100% - 100px) !important;
}
.timeline-items div .timeline-item::after{
    left: -70px !important;
    top: 20px !important;
    z-index: 1;
    right: unset !important;
}
.timeline::before {
    width: 5px;
    content: "";
    position: absolute;
    bottom: 50px;
    background-color: #fff;
    left: 41px;
    z-index: 0;
    top: 20px;
    bottom: 80px;
}
.custom_slider .elementor-image-carousel-wrapper::before,
.custom_slider .elementor-image-carousel-wrapper::after{
    height: 106px;
}
.custom_slider .elementor-image-carousel-wrapper::after{
    bottom: -55px;
}
.custom_slider .elementor-image-carousel-wrapper {
    padding: 0px 50px 30px;
}
.custom_slider .elementor-swiper-button.elementor-swiper-button-next {
    right: 45% !important;
}
.custom_slider .elementor-swiper-button.elementor-swiper-button-prev {
    left: 45% !important;
}
}
@media (max-width: 768px) {
    .portfolio-custom-homes img.swiper-slide-image {
        width: 100% !important;
        height: 400px !important;
    }
    .portfolio-detail .elementor-swiper-button-next,
    .portfolio-detail .elementor-swiper-button-prev{
        top:110% !important;
    }
    .portfolio-detail .elementor-swiper-button-prev{
        left:42% !important;
    }
    .portfolio-detail .elementor-swiper-button-next{
        right:42% !important;
    }
    .footer-main .hfe-nav-menu__align-left .hfe-nav-menu {
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: anchor-center;
        word-break: keep-all;   
    }
    
}

@media(max-width: 767px){

    .timeline-items {
        animation-duration: 0.4s;
    }
    
    .timeline-item:hover {
        transform: translateY(-2px);
    }
        .timeline-items:nth-child(odd) > div:nth-child(3), .timeline-items:nth-child(even) > div:nth-child(1) {
        width: calc(100% - 30px) !important;
    }
    .timeline-item .timeline-heading h6{
        font-size: 26px !important;
    }
    .timeline-item .timeline-heading{
        gap: 5px;
    }
    .timeline-item .timeline-heading p,
    .timeline-item > p{
        font-size: 12px !important;
    }
    .timeline-items div .timeline-item::after {
        left: -50px !important;
    }
    .timeline::before {
        left: -8px;
        top: 21px;
    }
    .portfolio-custom-homes .elementor-image-carousel-wrapper{
        width: calc(100dvw - 20px) !important;
        padding-right: 100px;
    }
    .footer-main .hfe-nav-menu li a{
        display: flex;
        justify-content: center !important;
        text-align: center;
    }
}
@media (max-width: 575px){
    .custom_slider .elementor-swiper-button.elementor-swiper-button-next {
        right: 42.5% !important;
    }
    .custom_slider .elementor-swiper-button.elementor-swiper-button-prev {
        left: 42.5% !important;
    }
    .portfolio-custom-homes .elementor-image-carousel-wrapper{
        padding-right: 50px;
    }

}
@media (min-width: 1024px) and (max-width: 1286px) {
    header .elementor-button{
        font-size: 12px !important;
    }
    header .elementor-element-8ddeb00{
        padding: 18px 20px;
    }
    
    header .elementor-element.elementor-element-73bd5a4 a.hfe-menu-item, 
    header .elementor-72 .elementor-element.elementor-element-73bd5a4 a.hfe-sub-menu-item{
        font-size: 13px !important;
    }
}
@media (max-width: 430px) {
    .portfolio-custom-homes .elementor-swiper-button-next, 
    .portfolio-custom-homes .elementor-swiper-button-prev{
        top:114% !important;
    }
    .footer-form input#gform_submit_button_2,
    .newsletter-form input#gform_submit_button_3,
    .sub-form input#gform_submit_button_6{
        padding-top:8px;
        padding-bottom:8px;
        margin:0;
        width:100%;
    }
    .newsletter-inner .e-con-inner {
        width:387px;
        padding: 22px;
        margin:0;
    }
    .newsletter-inner {
        width:fit-content;
    }
    .newsletter-form .gform_footer.before{
        padding: 0 !important;
        margin: 0 !important;
        padding-top: 14px !important;
    }
    .portfolio-detail .elementor-swiper-button-next,
    .portfolio-detail .elementor-swiper-button-prev{
        top:316px !important;
    }
    .portfolio-detail .elementor-swiper-button-next{
        right:35% !important;
    }
    .portfolio-detail .elementor-swiper-button-prev{
        left:35% !important;
    }
    .portfolio-detail .elementor-swiper-button-next,
    .portfolio-detail .elementor-swiper-button-prev{
        top:120% !important;
    }
    .portfolio-detail .elementor-image-carousel-wrapper.swiper.swiper-initialized.swiper-horizontal.swiper-backface-hidden{
        margin:0 !important;
        width:100% !important;
    }
    .goyal-popup .gform_wrapper .gform_button{
        padding: 6px 0px !important;
    }
}
@media (max-width: 375px) {
    .portfolio-slider-text{
        width: 200px !important;
    }
     .portfolio-custom-homes .elementor-swiper-button.elementor-swiper-button-prev,
     .portfolio-custom-homes .elementor-swiper-button.elementor-swiper-button-next{
        font-size:14px !important;
    }
    .goyal-title h2{
        font-size:15px !important;
    }
}
@media (max-width: 320px) {
    .vision-reality{
        margin-top:10px !important;
    }
}
