:root {
    --primary-color: #003EE3;
    --text-color: #333;
    --background-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

header {
    background-color: var(--background-color);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1rem;
    transition: colour 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

main {
    padding-top: 80px;
}

#hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(100vh - 80px);
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    flex: 0 0 40%;
    order: -1;
}

.company-name {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.hero-content p {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-image {
    flex: 0 0 55%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-colour 0.3s ease;
}

.cta-button:hover {
    background-color: #0035c9;
}

section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.benefits-grid, .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.benefit-item h3, .feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.benefit-icon {
    font-size: 4rem; /* Increase from 4rem to 6rem */
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    width: 4rem; /* Add explicit width */
    height: 4rem; /* Add explicit height */
}

.benefit-icon svg {
    width: 100%;
    height: 100%;
}

.features {
    margin-bottom: 6rem;
}

.feature-item {
    text-align: center;
}

.feature-image-container {
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.feature-image {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.feature-image:hover, .feature-image:focus {
    transform: scale(1.05);
}

#cta {
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 5%;
    margin-top: 4rem;
}

#cta h2, #cta p {
    color: white;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#cta p {
    margin-bottom: 2rem;
}

#cta #waitlist-form {
    display: flex;
    justify-content: center;
    gap: 1rem; /* Add this line to create space between input and button */
    margin-top: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

#form-message {
    margin-top: 1rem;
    font-size: 1rem;
    color: white;
}

#cta #email {
    padding: 0.875rem;
    width: 300px;
    border: none;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
}

#cta .cta-button {
    background-color: white;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    border: none;
    border-radius: 4px;
    padding: 0.875rem 1.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

#cta .cta-button:hover {
    background-color: #f0f0f0;
}

#cta .cta-button:active {
    transform: translateY(1px);
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    color: var(--text-color);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    padding-top: 50px; /* Update: Adjust modal padding */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain; /* Update: Allow for larger images */
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: auto; /* Update: Ensure caption doesn't overlap */
    margin-top: 20px; /* Update: Add margin top */
}

.modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 1024px) {
    #hero {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-image, .hero-content {
        flex: 0 0 100%;
    }

    .hero-content {
        order: -1;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    #cta #waitlist-form {
        flex-direction: column;
        align-items: center;
    }

    #cta #email {
        width: 100%;
        max-width: 300px;
        margin-bottom: 1rem;
        border-radius: 4px;
    }

    #cta .cta-button {
        border-radius: 4px;
    }

    .modal-content {
        width: 100%;
    }
}

