/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-image: url('../images/generalbg.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    justify-content: center;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 3%;
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.9); 
    padding: 10px 5%;
    z-index: 10;
}

.logo {
    font-size: 50px; 
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px; /* Reduced gap between items */
    margin-right: auto; /* Removes excessive space on the right */
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 18px; 
    font-weight: bold; 
    transition: color 0.3s;
}

/* Change "Features" color when dropdown is visible */
.nav-links .dropdown .dropdown-toggle.active {
    color: grey;
}

/* Dropdown Menu Styling */
.nav-links .dropdown {
    position: relative;
}

.nav-links .dropdown .dropdown-content {
    display: none;
    position: fixed;
    top: 110px;
    left: 0;
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    border-radius: 5px;
    z-index: 100;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    padding: 20px;
    width: 100vw;
    grid-template-columns: repeat(3, 1fr); /* Adjusted for three items */
    gap: 20px;
}

.nav-links .dropdown .dropdown-content.show {
    display: grid;
}

.container-box {
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 10px;
    color: #fff;
    transition: background-color 0.3s;
    text-align: left;
}

.container-box h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: white;
    font-weight: bold;
}

.container-box p {
    font-size: 14px;
    color: grey;
    font-weight: bold;
}

.container-box ul {
    margin-top: 8px;
    padding-left: 20px;
    color: white;
}

.container-box ul li {
    font-size: 13px;
    margin-bottom: 5px;
}

.price {
    font-size: 20px;
    color: #1f2e84;
    font-weight: bold;
    margin-top: 15px;
}

/* Button Styling */
.auth-buttons .sign-up,
.auth-buttons .log-in {
    background: none;
    border: 2px solid #fff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-left: 10px;
    transition: background 0.3s;
}

.auth-buttons .sign-up:hover,
.auth-buttons .log-in:hover {
    background: #fff;
    color: #000;
}

/* Main content styling */
.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    margin-top: 100px;
}

.overlay {
    max-width: 600px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    background: none;
}

.tagline {
    font-size: 18px;
    margin-bottom: 10px;
    color: #aaa;
}

h2 {
    font-size: 60px;
    margin: 20px 0;
    font-weight: bold;
}

.description {
    font-size: 16px;
    margin: 20px 0 40px;
}

.get-started {
    background-color: #fff;
    color: #000;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.get-started:hover {
    background-color: #ccc;
}

/**/
.business-section {
    text-align: center;
    padding: 6rem 2rem;
    flex: 1;
    margin-top: 5rem;
}

.business-section h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: bold;
}

.business-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Make the entire card clickable */
.business-cards a {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.business-cards a:hover {
    transform: scale(1.05);
}

.card {
    background-color: #fff;
    padding: 4rem;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #131a2a;
}

.card img {
    width: 170px;
    height: 150px;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.75rem;
    color: #131a2a;
}
.card p {
    font-size: 12px;
    color: black;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 10px;
    }

    .logo {
        font-size: 40px;
        margin-bottom: 10px;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .nav-links a {
        font-size: 16px;
    }

    .dropdown .dropdown-content {
        grid-template-columns: 1fr;
        width: 90vw;
    }

    .container-box {
        text-align: center;
    }

    .price {
        font-size: 18px;
    }

    .auth-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .main-content h2 {
        font-size: 40px;
    }

    .tagline {
        font-size: 16px;
    }

    .description {
        font-size: 14px;
    }

    .get-started {
        padding: 10px 20px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 30px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .main-content h2 {
        font-size: 32px;
    }

    .tagline, .description, .get-started {
        font-size: 14px;
    }

    .get-started {
        padding: 8px 16px;
    }

    .dropdown .dropdown-content {
        padding: 10px;
        gap: 10px;
    }

    #features-dropdown .container-box {
        width: 100px;
        height: 150px;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        overflow: hidden; /* Prevent overflowing text */
    }

    #features-dropdown .container-box h4 {
        font-size: calc(12px + 1vw); /* Responsive font size based on viewport width */
        line-height: 1.2;
        margin-bottom: 5px;
    }

    #features-dropdown .container-box p {
        font-size: calc(10px + 0.5vw); /* Smaller font size for the paragraph */
        line-height: 1.2;
        margin: 0;
    }

    /* product drop down*/
       #products-dropdown .container-box {
        width: 90%; /* Smaller width to fit the screen */
        max-width: 300px; /* Optional max-width for consistency */
        height: auto; /* Allow the height to adjust based on content */
        padding: 10px;
        margin: 10px auto; /* Center the container */
        background-color: rgba(0, 0, 0, 0.9); /* Ensure contrast */
        border-radius: 8px; /* Rounded corners for aesthetic */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
        text-align: left; /* Align text to the left */
    }

    /* Reduce heading font size */
    #products-dropdown .container-box h4 {
        font-size: 16px; /* Smaller font for responsiveness */
        font-weight: bold;
        margin-bottom: 5px; /* Adjust spacing */
        color: white; /* Text color */
    }

    /* Reduce paragraph font size */
    #products-dropdown .container-box p {
        font-size: 14px;
        color: grey;
        margin-bottom: 8px; /* Adjust spacing between text */
        line-height: 1.4;
    }

    /* Adjust list items */
    #products-dropdown .container-box ul {
        padding-left: 15px; /* Indent for list items */
        margin-bottom: 8px;
    }

    #products-dropdown .container-box ul li {
        font-size: 12px; /* Smaller font for list items */
        color: white;
        line-height: 1.4;
    }

    /* Price styling */
    #products-dropdown .container-box .price {
        font-size: 16px;
        font-weight: bold;
        color: grey;
        margin-top: 10px;
    }

    /* Dropdown content adjustments */
    .dropdown-content {
        padding: 10px;
        display: flex;
        flex-direction: column; /* Stack items vertically */
        align-items: center;
        gap: 10px; /* Space between items */
    }
}


.footer {
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 20px 0;
    width: 100vw;
    margin: 0;
    position: fixed;
    bottom: 0;
    left: 0;
}

.footer-content {
    width: 100%;
    max-width: 1200px; /* Optional max-width for content */
    padding: 0 20px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    text-align: left;
}

.footer-logo img {
    width: 50px;
    height: auto;
    margin-right: 20px; /* Space between logo image and text */
}

.footer-logo h2 {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}
.footer-logo p {
    font-size: 14px;
    color: grey;
    margin-left: 20px;
}
.footer-text {
    font-size: 14px;
    color: white;
}

/* Footer links styling remains the same */
.footer {
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px 0; /* Reduced padding for compact layout */
    width: 100vw;
    position: fixed;
    bottom: 0;
    left: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between; /* Distribute content horizontally */
    align-items: center;
    max-width: 1200px; /* Constrain footer width */
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    width: 40px; /* Logo size */
    height: auto;
    margin-right: 15px;
}

.footer-logo h2 {
    font-size: 16px;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 50px; /* Space between link sections */
}

.footer-links div {
    text-align: left;
}

.footer-links h3 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.footer-links a {
    font-size: 12px;
    color: white;
    text-decoration: none;
    display: block;
}

.footer-links a:hover {
    color: grey;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        flex-wrap: wrap; /* Allow wrapping for smaller screens */
        gap: 20px;
    }

    .footer-logo {
        flex-basis: 100%; /* Take full width */
        justify-content: center;
        margin-bottom: 10px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .footer-links div {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-content {
        flex-direction: column; /* Stack for very small screens */
        gap: 10px;
        padding: 5px;
    }

    .footer-logo img {
        width: 30px; /* Smaller logo */
    }

    .footer-links h3 {
        font-size: 12px;
    }

    .footer-links a {
        font-size: 10px;
    }
}
