/* Home page specific styles */

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 20px 0;
}

.content {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

/* Specific animation for home page h1 */
h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

h1 span {
    display: inline-block;
}

h1 span:nth-child(1), h1 span:nth-child(2), h1 span:nth-child(3) { color: var(--secondary-color); }
h1 span:nth-child(4), h1 span:nth-child(5), h1 span:nth-child(6), h1 span:nth-child(7) { color: var(--text-color); }

/* Image styles specific to home page */
.image {
    width: 100%;
    max-width: 500px;
    margin-top: 30px;
    position: relative;
}

.image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.1);
}

.image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    z-index: -1;
}

/* Custom feature list styles for home page */
.feature-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.feature-list li {
    padding: 15px;
    background-color: rgba(0, 255, 0, 0.05);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 0, 0.1);
}

.feature-list h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.feature-list p {
    font-size: 14px;
    margin-bottom: 0;
}

/* Newsletter form specific to home page */
.newsletter-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.newsletter-form input {
    width: 100%;
    max-width: 300px;
    margin-bottom: 10px;
}

.newsletter-form button {
    width: 100%;
    max-width: 300px;
}

/* Trusted By section styles */
.trusted-by {
    margin-top: 30px;
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid rgba(0, 255, 0, 0.1);
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
}

.trust-intro {
    font-size: 12px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    letter-spacing: 1px;
    opacity: 0.8;
}

.logos-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-item {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.6;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.logo-item:hover {
    opacity: 1;
    color: var(--secondary-color);
}

/* Responsive adjustments for larger screens */
@media (min-width: 768px) {
    main {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .content {
        text-align: left;
    }

    h1 {
        font-size: 48px;
    }

    .image {
        margin-top: 0;
        margin-left: 40px;
    }

    .image::before {
        top: -20px;
        left: -20px;
        right: 20px;
        bottom: 20px;
    }

    .feature-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
        margin-top: 40px;
    }

    .feature-list li {
        padding: 20px;
    }

    .newsletter-form {
        flex-direction: row;
        justify-content: center;
    }

    .newsletter-form input {
        margin-bottom: 0;
        border-radius: 4px 0 0 4px;
    }

    .newsletter-form button {
        width: auto;
        border-radius: 0 4px 4px 0;
    }

    .trusted-by {
        margin-top: 40px;
        padding: 20px 0;
    }

    .trust-intro {
        font-size: 14px;
    }

    .logo-item {
        font-size: 16px;
    }
}

.alert {
    position: fixed;
    top: -100px; /* Start off-screen */
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    color: black;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 255, 0, 0.1), 0 1px 3px rgba(0, 255, 0, 0.08);
    z-index: 1000;
    font-size: 16px;
    text-align: center;
    transition: top 0.5s ease-out;
    max-width: 90%;
    width: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alert.show {
    top: 80px; /* Position beneath the navigation bar */
    animation: alertAppear 0.5s ease-out, alertGlow 2s infinite alternate, alertDisappear 0.5s ease-in 4.5s forwards;
}

@keyframes alertAppear {
    0% { top: -100px; opacity: 0; }
    100% { top: 80px; opacity: 1; }
}

@keyframes alertGlow {
    0% { box-shadow: 0 4px 6px rgba(0, 255, 0, 0.1), 0 1px 3px rgba(0, 255, 0, 0.08); }
    100% { box-shadow: 0 4px 15px rgba(0, 255, 0, 0.2), 0 1px 5px rgba(0, 255, 0, 0.15); }
}

@keyframes alertDisappear {
    0% { top: 80px; opacity: 1; }
    100% { top: -100px; opacity: 0; }
}

/* Animation delay for h1 spans */
@media (min-width: 768px) {
    h1 span:nth-child(1) { animation-delay: 0.1s; }
    h1 span:nth-child(2) { animation-delay: 0.3s; }
    h1 span:nth-child(3) { animation-delay: 0.5s; }
    h1 span:nth-child(4) { animation-delay: 0.7s; }
    h1 span:nth-child(5) { animation-delay: 0.9s; }
    h1 span:nth-child(6) { animation-delay: 1.1s; }
    h1 span:nth-child(7) { animation-delay: 1.3s; }
}