body {
    font-family: 'Roboto', sans-serif;
}
h1, h2, h3 {
    font-weight: 700;
}
p, .nav-link {
    font-weight: 400;
}

/* Default Navbar Styling */
#navbar {
    transition: all 0.3s ease-in-out;
    padding: 20px 0 !important;  /* Ensure default padding applies */
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-height: 80px;  /* Ensures navbar is always at least 80px */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Shrinking Effect */
#navbar.shrink {
    transition: all 0.3s ease-in-out;
    padding: 10px 0 !important;  /* Force smaller padding */
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 60px !important;  /* Shrinks navbar correctly */
}

/* Fix Underline Transition Issue */
.navbar .nav-link {
    position: relative;
    transition: color 0.3s ease-in-out;
}

/* Add smooth underline effect (except for dropdown) */
.navbar .nav-link:not(.dropdown-toggle)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px; /* Normal underline position */
    width: 0%;
    height: 2px;
    background-color: #0750ea;
    transition: width 0.3s ease-in-out;
}

/* Expand underline on hover (except dropdown) */
.navbar .nav-link:not(.dropdown-toggle):hover::after {
    width: 100%;
}

/* Fix Dropdown Hover Issue */
.navbar .dropdown-toggle::after {
    display: none !important; /* Removes Bootstrap's default arrow */
}

/* Logo Resizing Fix */
#logo {
    transition: all 0.3s ease-in-out;
    max-height: 80px; /* Default logo size */
}

#navbar.shrink #logo {
    max-height: 40px !important;  /* Shrinks logo properly */
}

/* Push the hero section down so it starts after the navbar */
#hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height:60vh;
    padding-top: 140px; /* Adjust based on navbar height */
}

.img-app-preview{
    margin-top:40px;
    width:28%;
    margin-bottom:40px;
}

.icon-hero{
    font-size:2em;
}

.icon-feature{
    font-size:2em;
}

.icon-step{
    font-size:2em;
}

/* Override Bootstrap's primary color */
:root {
    --bs-primary: #0030ae !important; /* Your new primary color */
    --bs-primary-rgb: 0, 48, 174;
}

/* Update text, buttons, links, and backgrounds */
.text-primary {
    color: #0030ae !important;
}

.bg-primary {
    background-color: #0030ae !important;
}

.btn-primary {
    background-color: #0750ea !important;
    border-color: #0750ea !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #ffffff !important; /* Slightly darker shade for hover */
    border-color: #0750ea !important;
    color: #0750ea !important;
}

.navbar-light .navbar-nav .nav-link{
    color: #0750ea !important;
    position: relative;
}

.navbar-light .navbar-nav .nav-link.active, 
.navbar-light .navbar-nav .nav-link:hover {
    color: #0750ea !important;
}

/* Underline Effect with Animation */
.navbar-light .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px; /* Distance from text */
    width: 0%;
    height: 2px; /* Thickness of underline */
    background-color: #0750ea;
    transition: width 0.3s ease-in-out;
}

.navbar-light .navbar-nav{
    background-color:#ffffff;
}

/* Expand underline on hover */
.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-light .navbar-nav .nav-item {
    margin-right: 20px; /* Adjust spacing between links */
}

/* Remove right margin from the last item to prevent extra spacing */
.navbar-light .navbar-nav .nav-item:last-child {
    margin-right: 0;
}

/* Scroll-to-Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button 30px from the right */
    width: 60px;
    height: 60px;
    padding: 5px; /* Some padding */
    background-color: #0030ae;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
}

/* Show button when active */
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover effect */
.scroll-to-top:hover {
    background-color: #002b99;
}

/* Ensure Bootstrap dropdown visibility */
.navbar .dropdown-menu {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Show dropdown when it has the "show" class */
.navbar .dropdown-menu.show {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}

/* Align flags properly */
.language-option img {
    margin-right: 8px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    #navbar {
        height: 120px; /* Slightly smaller navbar on mobile */
        background-color: white !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    }

    .navbar-light .navbar-nav {
        gap: 10px; /* Add spacing between items when stacked */
    }

    .scroll-to-top {
        width: 40px;
        height: 40px;
        font-size: 30px;
        padding:5px;
        bottom: 15px;
        right: 15px;
        padding:0;
    }

    .dropdown-menu {
        width: 100%;
        text-align: center;
    }

    #navbar.shrink {
        height:60px;
    }

    .img-app-preview{
        width:60%;
    }

    .navbar-light .navbar-nav .nav-item{
        padding:10px;
    }

    section h2{margin-top:30px;}
}

@media (min-width:576px) {
    .container, .container-sm{
        max-width:100%;
    }
}

@media (max-width: 480px) {
    #navbar {
        height: 120px; /* Even smaller navbar for small phones */
        background-color: white !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    }
    

    #navbar.shrink {
        height:60px;
    }

    .img-app-preview{
        width:70%;
    }

    .scroll-to-top {
        font-size: 30px;
    }


    section h2{margin-top:15px;}
}

body {
font-family: 'Inter', sans-serif;
background-color: #ffffff;
color: #212529;
}

h1, h2 {
font-weight: 600;
}

h2 {
margin-top: 2.5rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid #dee2e6;
}

p {
margin-bottom: 1rem;
}

ul, ol {
padding-left: 1.5rem;
margin-bottom: 1rem;
}

ul li, ol li {
margin-bottom: 0.5rem;
}