/* Add these rules at the beginning of the file */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: Inter, sans-serif;
    background: linear-gradient(to right, #7FD485, #64B5F6);
    background-size: 200% 200%;
    animation: gradientAnimation 10s ease infinite;
        margin: 0;
    padding: 0;
    position: relative;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
    padding: 10px 5%;
    box-sizing: border-box;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Add a semi-transparent background */
    backdrop-filter: blur(5px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.header-scrolled {
    /* We can remove or adjust this if needed, as the header now always has a background */
}

.logo {
    font-family: Orbitron, sans-serif;
    font-size: 24px;
    font-weight: bold;
}
.button {
    background-color: #FF6B6B;
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 160px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.button:hover {
    animation: pulse 0.5s infinite alternate;
}
.button-emoji {
    font-size: 24px;
    display: inline-block;
    transition: transform 0.3s ease;
}
.button:hover .button-emoji {
    animation: takeOff 0.6s ease infinite alternate;
}
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    100% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
}
@keyframes takeOff {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-10px) rotate(10deg);
    }
}
.main-content {
    text-align: center;
    padding: 50px 0;
    padding-top: 80px;
}
.tagline {
    font-size: 48px;
    margin-bottom: 20px;
    font-family: Permanent Marker, sans-serif;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: normal;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
.explainer {
    font-size: 18px;
    margin-bottom: 20px;
    font-family: Open Sans, sans-serif;
    color: #666666;
}
.cta-explainer {
    font-style: italic;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
}
.how-it-works {
    margin-top: 50px;
    padding: 20px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.how-it-works h2 {
    font-size: 48px;
    margin-bottom: 30px;
    color: #333;
    font-weight: bold;
}
.how-it-works-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.how-it-works-emoji {
    font-size: 64px;
}
.steps {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-top: 20px;
    gap: 20px;
}
.step {
    text-align: center;
    flex: 1;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}
.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.step-emoji {
    font-size: 48px;
    margin-bottom: 10px;
}
.step h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 24px;
}
.step p {
    color: #666;
    font-size: 18px;
    line-height: 1.5;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}
.arrow {
    font-size: 32px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}
.services {
    margin-top: 50px;
    text-align: center;
}
.powered-by {
    font-size: 18px;
    margin-bottom: 20px;
    color: #666;
}
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}
.logo-container img {
    height: 50px;
    width: auto;
}
.custom-tools {
    font-size: 16px;
    font-weight: bold;
    color: #666;
    margin-top: 20px;
    display: block;
}
.faq-section {
    margin-top: 50px;
    text-align: left;
    padding: 0 5%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.faq-question {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
.faq-answer {
    display: none;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    margin-bottom: 10px;
}
.faq-question::after {
    content: '\25BC';
    float: right;
    transition: transform 0.3s ease;
}
.faq-question.active::after {
    transform: rotate(180deg);
}
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    margin-top: 50px;
    border-top: 1px solid #e0e0e0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.footer-left, .footer-center, .footer-right {
    flex: 1;
}
.footer-left { text-align: left; }
.footer-center { text-align: center; }
.footer-right { text-align: right; }
footer a {
    color: #666;
    text-decoration: none;
    margin: 0 10px;
}
footer a:hover {
    text-decoration: underline;
}
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
}
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.tagline, .explainer, .cta-explainer {
    color: white;
}

/* Custom styles for modal backdrop */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.95); /* 95% darker overlay */
}

.modal-backdrop.show {
    opacity: 0.95;
}

/* Custom styles for wizard steps */
.nav-tabs .nav-link {
    color: #666; /* Default color */
    font-weight: bold;
}
.nav-tabs .nav-link.active {
    color: #FFFFFF; /* Active color matches CTA button text color */
    background-color: #FF6B6B; /* Active background color matches CTA button background color */
}

/* Custom styles for modal size */
.modal-dialog {
    width: 90vw;
    max-width: 90vw;
    height: 90vh;
    max-height: 90vh;
    margin: 5vh auto;
}

/* Add this rule for responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Add a media query for smaller screens */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        margin-bottom: 10px;
    }

    #cta-button-header {
        margin-top: 10px;
    }

    header {
        flex-direction: column;
        align-items: center;
        padding: 10px 5%;
        height: auto;
    }

    .hero-section {
        height: auto;
        min-height: 100vh;
    }

    .hero-content {
        padding: 20px 10px;
    }

    .tagline {
        font-size: 32px;
    }

    .explainer {
        font-size: 16px;
    }

    .button {
        font-size: 16px;
        padding: 10px 20px;
        min-width: 140px;
    }

    .how-it-works {
        margin-top: 30px;
    }

    .how-it-works h2 {
        font-size: 32px;
    }

    .steps {
        flex-direction: column;
    }

    .step {
        margin-bottom: 20px;
    }

    .arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .services {
        margin-top: 30px;
    }

    .logo-container {
        flex-direction: column;
        gap: 20px;
    }

    .faq-section {
        padding: 0 10px;
    }

    footer {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-left, .footer-center, .footer-right {
        text-align: center;
    }

    /* Modal adjustments */
    .modal-dialog {
        margin: 10px;
        width: calc(100% - 20px);
        max-width: none;
        height: calc(100% - 20px);
        max-height: none;
    }

    .modal-content {
        height: 100%;
    }

    .modal-body {
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }

    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
    }

    .nav-tabs .nav-item {
        flex: 0 0 auto;
    }
}

/* Custom styles for modal */
.modal-dialog {
    display: flex;
    flex-direction: column;
    height: 90vh;
    margin: 5vh auto;
}

.modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modal-header, .modal-footer {
    flex-shrink: 0;
}

.modal-body {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

#wizard {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.nav-pills {
    flex-shrink: 0;
    background-color: #f8f9fa;
    padding: 10px 0;
    border-radius: 5px;
}

.nav-pills .nav-link {
    border-radius: 30px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    color: #495057;
}

.nav-pills .nav-link.active {
    background-color: #FF6B6B;
    color: #FFFFFF;
}

.tab-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-top: 20px;
}

@media (max-width: 768px) {
    .modal-dialog {
        margin: 10px;
        width: calc(100% - 20px);
        max-width: none;
        height: calc(100% - 20px);
    }

    .nav-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 10px;
    }

    .nav-pills .nav-item {
        flex: 0 0 auto;
        margin-right: 5px;
    }

    .nav-pills .nav-link {
        white-space: nowrap;
        font-size: 12px;
        padding: 6px 10px;
    }
}