/*
 * TABLE OF CONTENTS
 * -----------------
 * 1. Global Imports
 * 2. Root Variables
 * 3. Global Styles
 * 4. Body Section
 * 5. Hero Section
 * 6. Services Section
 * 7. Apparatements Section
 * 8. Features Section
 * 9. Get Started Section
 * 10. Plan Section
 * 11. Footer Section
 * 12. Media Queries
 */


/* 1. Global Imports */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* 2. Root Variables */
:root{
--main-color:#10439F;
--secondary-color:#fff;
--text-color-1:#000;
--added-color:#C65BCF;
--gray-color-1:#B9B2B2;
--light-main-color:rgb(16,67,159, 0.2);
--light-gray-color:rgb(217, 217, 217, .3);
}


/* 3. Global Styles */
*{
box-sizing: border-box;
padding: 0;
margin: 0;
}
/* Chrome, Safari, Edge */
::-webkit-scrollbar {
width: 10px;
height: 10px;
}

::-webkit-scrollbar-track {
background: var(--light-main-color);
border-radius: 10px;
}

::-webkit-scrollbar-thumb {
background-color: var(--main-color);
border-radius: 10px;
border: 2px solid #f0f0f0;
}


html {
scroll-behavior: smooth;
scrollbar-color: var(--main-color) var(--light-main-color);
scrollbar-width: thin;
overflow-x: hidden;

}
select {
-webkit-appearance: none;
appearance: none;
}
.logo{
color: var(--main-color);
}

.elements_width{
width: 1140px;
}

.subtitle {
color: var(--gray-color-1);
}

.btn{
display: flex;
align-items: center;
justify-content: center;
background-color: var(--main-color);
padding: 10px 20px;
border-radius: 14px;
height: 38px;
outline: 0;
border: 0;
color: var(--secondary-color);
font-weight: 500;
font-size: 16px;
transition: all 0.3s ease;
}

.btn:hover {
transform: scale(1.05);
}

section {
padding: 60px 0;
}

.added_color{
color: var(--added-color);
}

/* 4. Body Section */
body{
font-family: 'Roboto', sans-serif;
min-height: 100vh;
width: 100%;
}

/* 5. Hero Section */
header{
height: 70px;
padding: 12px 0;
transition: height 0.3s ease-in-out;
}

.hero_section{
background-image: url('../images/hero-bg.jpg');
background-repeat: no-repeat;
background-size: cover;
width: 100%;
text-align: center;
height: 100vh
}

.hero_section::after{
content:"";
position:absolute;
width: 100%;
height: 100%;
top:0;
left:0;
background-color: rgba(0, 0, 0, 0.5);
z-index: 0;
}
.hero_section .hero_child{
position: relative;
z-index: 2;
}

.hero_section .apply_box{
border-radius: 14px;
background-color: rgba(0, 0, 0, 0.4);
}


.hero_section .apply_box input {
border-radius: 10px;
outline:0;
border: none;
height: 38px;
padding: 8px 12px;
font-size: 15px;
}

/* 6. Services Section */

.services_section {
background-color: var(--secondary-color);
}

.services_section .service_box{
background-color: var(--light-main-color);
border-radius: 14px;
}
.services_section .service_box span i{
color: var(--main-color);
font-size: 40px;
}

/* 7. Apparatements Section */
.appartements_section{
background-color: var(--light-gray-color);
}

.appartements_section .apparatements_box {
border-radius: 14px;
}

.appartements_section .apparatements_box img {
border-radius: 14px;
height: 215px;
width: 100%;
object-fit: cover;
}

/* 8. Features Section */
.features_section{
background-color: var(--secondary-color);
}
.features_section .hand_shake {
    background-image: url('../images/shake.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    width: 90%;
    height: 100%;
    border-radius: 14px;
    padding-left: 30px;
    z-index: 2;
}
.features_section .hand_shake::after{
    content:'';
    position: absolute;
    top: 26px;
    left: -26px;
    background-color: var(--main-color);
    border-radius: 14px;
    width: 90%;
    height: 100%;
    z-index: -1;
}

/* 9. Get Started Section */
.started_section{
background-image: url('../images/opendoor.jpg');
background-repeat: no-repeat;
background-size: cover;
}
.started_section::after{
content: '';
background-color: rgba(0, 0, 0, 0.5);
position:absolute;
width: 100%;
height: 100%;
top:0;
left:0;
z-index: 1;
}

/* 10. Plan Section */

.plan_section {
background-color: var(--secondary-color);
}
.plan_section .house_plan{
background-image: url('../images/house_plan.jpg');
background-repeat: no-repeat;
background-size: contain;
width: 90%;
height: 100%;
}

.plan_section .plan i {
color: var(--main-color);
font-size: 30px;
}

/* 11. Footer Section */

footer {
padding: 20px;
background-color: var(--main-color);
}

footer p {
color: var(--gray-color-1);
}

/* Go to the top button */
#goUpBtn{
display: none;
background-color: var(--main-color);
width: 50px;
height: 50px;
bottom: 20px;
right: 20px;
cursor: pointer;
z-index: 1000;
}

/* Loading State */
.loading-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;  
    position: fixed;  
    width: 100%; 
    background-color: var(--secondary-color); 
    top: 0;
    left: 0;
    z-index: 1000; 
}
  .dots > div {
    width: 12px;
    height: 12px;
    background-color: var(--main-color);
    border-radius: 50%;
    display: inline-block;
    animation: dotFlashing 1s infinite linear alternate;
    animation-delay: 0s, 0.2s, 0.4s;
  }
  
  @keyframes dotFlashing {
    0% {
      background-color: var(--main-color);
    }
    50%, 100% {
      background-color: transparent;
    }
  }




/* 12. Media Queries */
@media (max-width: 1240px) {

html, body {
width: 100%;
overflow-x: hidden;
}
.header, .elements_width {
width: 90%;
}

}
@media (max-width: 768px) {
.header, .elements_width {
width: 100%;
}
section{
padding: 60px 16px;
}

.hero_section .hero_child{
width: 100%;
max-width: 90%;
}
.features_section .hand_shake::after{
top: 18px;
left: -18px;
}

}

@media (min-width: 768px) {
.header, .elements_width {
width: 90%;
}
}