/* General Styles */

:root{
    --bg-color: #f3e6e6;
    --second-bg-color: #f3e6e6;
    --text-color: #fff;
    --main-color: rgb(43, 187, 194);
}

html {
    font-size: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f3e6e6;
    color: #333;
    line-height: 1.6;
}

section {
    min-height: 50vh;
    padding: 8rem 2rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 0 2rem #efdbdb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(#f3e6e6, white, #f3e6e6);
}

.header.sticky {
    border-bottom: .1rem solid rgba(240, 230, 230);
}

.logo {
    position: relative;
    flex-shrink: 0;
}

.logo img {
    max-width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%; 
}

.navbar{
    display: flex;
    justify-content: center;  /* Horizontally centers the navigation links */
    flex-grow: 1; /* Allows the nav to take up space next to the logo */
}

.navbar a{
    font-size: 1rem;
    color: rgb(0, 174, 255);
    margin-right: 2rem;
    transition: 0.5s ease;
    text-decoration: none;
}
.navbar a:hover,
.navbar a.active {
    color: red;
}

#menu-icon {
    font-size: 2.4rem;
    color: var(--text-color);
    display: none;
    transition: 1s ease;
}

#menu-icon:hover {
    background: transparent;
    border: .1rem solid black;
    box-shadow: 0 0 1rem rgb(3, 3, 243);
    transform: rotate(360deg);
}

#home {
    height: 100vh;
    color: #278fbb;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.home-content h1 {
    font-size: 3rem;
}

.home-content button {
    padding: 10px 20px;
    background-color: #47c43a;
    color: #110ed6;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 5px;
}

.home-content button:hover {
    background-color: #df2ae6;
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 20px;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #b30eb0;
    font-size: 22px;
}

.service-card {
    background-color: #17e0c8;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.partner-card {
    background-color: #34dcc9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h3 {
    color: #1a08a4;
    font-weight: bold;
}

.service-card:hover {
    background-color: #28d6c7;
}

.partner-card:hover {
    background-color: #0ba3a3;
}

.download-button {
    background-color: #007bff;
    border-radius: 5px;
    padding: 10px 20px;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.download-button:hover {
    background-color: #a41457;
}

footer {
    background-color: rgb(35, 166, 190);
    color: white;
    text-align: center;
    padding: 10px 0;
}

footer p {
    margin: 0;
}

.span{
    color: #7b3b9e;
    font-size: 1.1rem;
    margin: 0 .3rem;
    cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 768px) {

    #menu-icon {
        display: block;
        color: red;
        margin-right: 1.5rem;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 45%;
        width: 50%;
        padding: .5rem;
        background: linear-gradient(rgb(232, 202, 202), #f1f1f2, rgb(254, 254, 254), rgb(232, 202, 202));
        border-top: .1rem solid hsla(0, 95%, 40%, 0.854);
        font-weight: bold;
        border-radius: 1rem;
        display: none;
        flex-direction: column;
        align-items: center;
        transition: .5s ease;
        
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 1rem;
        margin: 1.5rem;
        text-align: center;
    }
}

/* General slide-in animation */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Initial state before animation */
.hidden {
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 0.5s, transform 0.5s;
}

/* Animation state when element comes into view */
.animate {
    animation: slideInFromLeft 1s ease-out forwards;
    opacity: 1;
}

/* Specific section animations */
#home .home-content {
    animation-delay: 0.2s;
}

#about .container {
    animation-delay: 0.4s;
}

#services .service-card {
    animation-delay: 0.6s;
}
