:root {
    --base-clr: #324B50;
    --line-clr: #42434a;
    --hover-clr: rgba(149, 176, 182, 0.3);
    --text-clr: #e6e6ef;
    --accent-clr: #81cad9;
    --secondary-text-clr: #b0b3c1;
    --Tertiary-Color: #95b0b6; /* Light Greyish/Blue */
}
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Figtree', sans-serif;
    background-color: #ffffff;
    background-image: url(../assets/images/WebBackgroundLight.png);
    background-size: 100% auto;
    background-position: top center;
    background-repeat: repeat-y;
    background-attachment: scroll;
    min-height: 100vh;
}
main {
    margin: 0 auto;
    margin-top: 6rem;
    width: 100%;
}
.top-section {
    display: flex;
    height: 100vh;  
    width: 100%;
}
.top-left-section {
    width: 45%;
    justify-content: center;
    display: flex;
}
.top-right-section {
    width: 55%;
}
.top-right-section img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    margin: 1rem 0 0 3rem;

}
.feature-title {
    color: var(--base-clr);
    font-size: 3.5rem;
    text-align: left;
    margin: 2rem 0 0.5rem 4rem;
}
.feature-description {
    display: block;
    text-align: left; 
    justify-content: center;
    color: var(--base-clr);
    font-size: 1.5rem;
    margin: 0 4rem 0 4rem;
}
.italic {
    font-style: italic;
    display: inline;
    color: inherit;
    font-size: inherit;
}
.book-demo-btn {
    display: inline-block; /* Make it behave like a button */
    margin: 1.5rem 4rem; /* Add spacing above and align with the description */
    padding: 0.75rem 1.5rem; /* Add padding inside the button */
    font-size: 1.2rem; /* Adjust font size */
    font-weight: bold; /* Make the text bold */
    color: #fff; /* White text */
    background-color: var(--base-clr); /* Use the base color for the button */
    text-decoration: none; /* Remove underline */
    border-radius: 5px; /* Add rounded corners */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Add hover effects */
}

.book-demo-btn:hover {
    background-color: var(--accent-clr); /* Change color on hover */
    transform: translateY(-2px); /* Slightly lift the button on hover */
}
.divline {
    display: flex;
    justify-content: center;
    margin: 3rem auto;
    width: 95%;
    height : 0.1rem;
    background-color: var(--base-clr);
}
/* Section 2 */
.section2 {
    display: flex;
    flex-direction: column; /* Stack child elements vertically */
    justify-content: center;
    align-items: center; /* Center-align the content horizontally */
    margin-top: 2rem;
    margin-bottom: 5rem;
}

.section2 h1 {
    color: var(--base-clr);
    font-size: 3rem;
    text-align: center;
    margin: 0 0 2rem 0; /* Add spacing below the title */
}

.section2-content {
    display: flex;
    justify-content: center;
    align-items: center; /* Center-align content inside the container */
    width: 85%; /* Ensure it spans the full width */
    height: 65vh;
    margin-top: 2.5rem;
}
.container {
    height: 100%;
    width: 30%;
    border: 2px solid var(--base-clr);
    border-radius: 20px;
    margin: 0 0.5rem 0 0.5rem;
}
.icon-container {
    display: flex; /* Enable Flexbox */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    border-radius: 100%;
    border: 2px solid var(--base-clr);
    height: 5rem;
    width: 5rem;
    margin: -2.5rem auto;
    background-color: var(--Tertiary-Color);
}
.icon-container img {
    height: 3rem;
    width: 3rem;
    object-fit: contain; /* Ensure the image fits within the container */
    object-position: center; /* Center the image */
}
.text-container {
    display: block;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    width: 100%;
    padding: 1.75rem;
    margin: 0.25rem auto;
    text-align: center;
}
.text-container h2 {
    color: var(--base-clr);
    font-size: 2rem;
    margin: 0.5rem 0 0 0; /* Add spacing below the title */
}
.text-container p {
    color: var(--line-clr);
    font-size: 1.5rem;
    line-height: 1.5;
    margin: 0.25rem 0; /* Remove default margin */
}

.solution-container {
    width: 90%;
    margin: 0 auto;
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0px 2px 10px var(--base-clr);
}

.solution-description {
    font-size: 1.5rem;
    color: var(--base-clr);
    line-height: 1.5;
}
/* Mobile Styling */
@media (max-width: 768px) {
    /* General Body Adjustments */
    body {
        background-size: 200% auto; /* Adjust background size for mobile */
        background-position: top center; /* Center the background */
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }
    /* Top Section */
    .top-section {
        flex-direction: column; /* Stack the left and right sections vertically */
        height: auto; /* Allow the section to grow dynamically */
        padding: 1rem; /* Add padding for spacing */
    }

    .top-left-section {
        width: 100%; /* Take up the full width */
        text-align: left; /* Center-align the text */
        margin-bottom: 1rem; /* Add spacing below */
    }

    .feature-title {
        font-size: 2.5rem; /* Reduce font size for smaller screens */
        margin: 2rem 0 1rem 0; /* Adjust spacing */
    }

    .feature-description {
        font-size: 1rem; /* Adjust font size for better readability */
        margin: 0rem; /* Add spacing on the sides */
    }

    .book-demo-btn {
        margin: 1rem 0; /* Center the button */
        padding: 0.5rem 1rem; /* Adjust padding */
        font-size: 1rem; /* Adjust font size */
    }
    .top-right-section {
        width: 100%;
        margin-bottom: 2rem;
    }
    .solution-description {
        font-size: 1.2rem; /* Adjust font size for better readability */
    }
    /* Max 430px — Large phones */
@media (max-width: 430px) {
    .feature-title {
        font-size: 2.25rem;
    }
    .feature-description,
    .solution-description {
        font-size: 0.95rem;
    }
}

/* Max 412px — Wider Android phones */
@media (max-width: 412px) {
    .feature-title {
        font-size: 2.1rem;
    }
    .feature-description,
    .solution-description {
        font-size: 0.9rem;
    }
}

/* Max 390px — iPhone 14 Pro */
@media (max-width: 390px) {
    .feature-title {
        font-size: 2rem;
    }
    .feature-description,
    .solution-description {
        font-size: 0.9rem;
    }
    .book-demo-btn {
        font-size: 0.95rem;
        padding: 0.4rem 0.9rem;
    }
}

/* Max 375px — iPhone 12/13/14/15 */
@media (max-width: 375px) {
    .feature-title {
        font-size: 1.9rem;
    }
    .feature-description,
    .solution-description {
        font-size: 0.85rem;
    }
}

/* Max 360px — Common Androids */
@media (max-width: 360px) {
    .feature-title {
        font-size: 1.8rem;
    }
    .feature-description,
    .solution-description {
        font-size: 0.8rem;
    }
    .book-demo-btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Max 320px — Smallest devices (iPhone SE) */
@media (max-width: 320px) {
    .feature-title {
        font-size: 1.6rem;
    }
    .feature-description,
    .solution-description {
        font-size: 0.75rem;
    }
    .book-demo-btn {
        font-size: 0.85rem;
    }
}
}