:root {
    --brand-primary: #2c3e50;
    --brand-secondary: #34495e;
    --brand-accent: #3498db;
}

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

.feature-category {
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.feature-category h4 {
    color: var(--brand-primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}
.form-check {
    margin: 0;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}
.form-check:hover {
    background-color: #e9ecef;
}
.loading {
    display: none;
    text-align: center;
    margin: 20px 0;
    height: 200px;
    position: relative;
}

.loading-text {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: bold;
    position: relative;
    display: inline-block;
}

.loading-text span {
    opacity: 0;
    display: inline-block;
    animation: revealLetter 0.5s forwards;
    background: linear-gradient(45deg, #2c3e50, #3498db, #2ecc71, #e74c3c, #9b59b6);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: revealLetter 0.5s forwards, colorShift 3s infinite;
    transform-origin: center;
}

.loading-text span:nth-child(1) { animation-delay: 0.1s; }
.loading-text span:nth-child(2) { animation-delay: 0.2s; }
.loading-text span:nth-child(3) { animation-delay: 0.3s; }
.loading-text span:nth-child(4) { animation-delay: 0.4s; }
.loading-text span:nth-child(5) { animation-delay: 0.5s; }
.loading-text span:nth-child(6) { animation-delay: 0.6s; margin-left: 15px; }
.loading-text span:nth-child(7) { animation-delay: 0.7s; }

.loading-text span.space {
    width: 15px;
    display: inline-block;
}

.loading-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #3498db;
    border-radius: 50%;
    animation: particleFloat 3s infinite linear;
}

@keyframes revealLetter {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(45deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

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

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100px) translateX(var(--tx));
        opacity: 0;
    }
}

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

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

#generatedDescription {
    white-space: pre-wrap;
    line-height: 1.6;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-out;
}
#generatedDescription.show {
    opacity: 1;
    transform: translateY(0);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container h2 {
    text-align: center;
    color: var(--brand-primary);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient 8s ease infinite;
    letter-spacing: -0.5px;
}

.section-header {
    color: var(--brand-primary);
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #e9ecef;
}

.help-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.brand-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: 3.2rem;
    margin: 0.5rem 0 0.25rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    background: linear-gradient(
        270deg,
        #2c3e50,
        #3498db,
        #2ecc71,
        #e74c3c,
        #f1c40f,
        #2c3e50
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 8s ease infinite;
    line-height: 1.4;
    padding-bottom: 0.2em;
}

.brand-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--brand-secondary);
    margin-bottom: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.brand-header {
    text-align: center;
    padding: 5rem 0 3rem;
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2rem;
    position: relative;
}

.back-button {
    position: fixed;
    left: 2rem;
    top: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 1px solid var(--brand-primary);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    z-index: 100;
    font-size: 0.95rem;
}

.back-button svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: var(--brand-primary);
    color: white;
}

.services-container {
    display: flex;
    gap: 2rem;
    margin: 3rem 0;
}

.service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-size: 300% 300%;
}

.service-icon svg {
    width: 64px;
    height: 64px;
    color: white;
}

.service-icon.mls {
    background-image: linear-gradient(
        45deg,
        #dc2626,
        #ef4444,
        #b91c1c,
        #7f1d1d,
        #dc2626
    );
    animation: gradient-left 12s ease infinite;
}

.service-icon.instagram {
    background-image: linear-gradient(
        45deg,
        #833AB4,
        #C13584,
        #E1306C,
        #F77737,
        #FFDC80,
        #833AB4
    );
    animation: gradient-diagonal 8s ease infinite;
}

.service-card {
    flex: 1;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.service-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--brand-primary);
}

.service-description {
    flex: 1;
    margin-bottom: 2rem;
    color: var(--brand-secondary);
    line-height: 1.6;
    text-align: center;
    padding: 0 1rem;
}

.service-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--brand-primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 50%;
    margin: 0 auto;
    text-align: center;
}

.service-button:hover {
    background: var(--brand-accent);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .services-container {
        flex-direction: column;
    }

    .service-button {
        width: 75%;
    }
}

.footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 3rem;
    border-top: 1px solid #e9ecef;
}
.footer-text {
    color: var(--brand-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 300;
}
.footer-logo {
    max-width: 180px;
    height: auto;
}

.form-control:invalid:focus,
.form-select:invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
    border-color: #dc3545;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Only shake when form has been validated and field is invalid */
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    animation: shake 0.6s ease-in-out;
}

.description-container {
    position: relative;
    margin-top: 2rem;
}

.copy-button {
    margin-top: 1rem;
    padding: 8px 16px;
    background-color: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(10px);
}

.copy-button.show {
    opacity: 1;
    transform: translateY(0);
}

.copy-button:hover {
    background-color: var(--brand-accent);
}

.copy-button svg {
    width: 16px;
    height: 16px;
}

.copy-feedback {
    display: inline-block;
    margin-left: 10px;
    background-color: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease;
    vertical-align: middle;
}

.copy-feedback.show {
    opacity: 1;
    transform: translateY(0);
}

.button-container {
    margin-top: 1rem;
}

.footer-ad {
    background: transparent;
    border: 2px solid var(--brand-primary);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem auto 2rem;
    text-align: center;
    transition: border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    max-width: 500px;
    width: 90%;
}

.footer-ad:hover {
    border-color: var(--brand-accent);
}

.ad-banner-text {
    font-size: 1.1rem;
    color: var(--brand-secondary);
}

.ad-banner-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--brand-primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.ad-banner-button:hover {
    background: var(--brand-accent);
}

.ad-banner {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    border-radius: 8px;
    color: white;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ad-banner-text {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.ad-banner-button {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: white;
    color: var(--brand-primary);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.ad-banner-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: var(--brand-accent);
}

body {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
}

@media (max-width: 1024px) {
    .services-container {
        max-width: 800px;
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .services-container {
        flex-direction: column;
        margin: 2rem 0;
        gap: 1.5rem;
        padding: 0;
    }

    .service-card {
        min-width: unset;
    }

    .service-icon {
        padding: 3rem 2rem;
    }

    .service-icon svg {
        width: 48px;
        height: 48px;
    }

    .service-content {
        padding: 2rem 1.5rem;
    }

    .service-button {
        width: 75%;
        padding: 0.75rem 1.5rem;
    }

    .service-description {
        padding: 0;
        margin-bottom: 2rem;
    }

    .back-button {
        left: 1rem;
        top: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        border-width: 1px;
    }

    .back-button svg {
        width: 18px;
        height: 18px;
    }

    .brand-header {
        padding: 4rem 1rem 2rem;
    }

    .brand-name {
        font-size: 2.5rem;
        padding: 0 1rem;
        line-height: 1.2;
    }

    .brand-subtitle {
        font-size: 0.9rem;
        padding: 0 1rem;
        letter-spacing: 1.5px;
    }
}

@media (max-width: 480px) {
    .service-button {
        width: 85%;
    }

    .brand-name {
        font-size: 2.2rem;
    }
}