/* ==========================================
   AI NEURAL NETWORK BACKGROUND
   ========================================== */
.neural-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

body.light-theme .neural-bg {
    opacity: 0.15;
}

/* ==========================================
   AI CONTACT FORM MODAL
   ========================================== */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.light-theme .modal-overlay {
    background: rgba(255, 255, 255, 0.9);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--card-bg);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.contact-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-close i {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

/* Modal Header */
.modal-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.1), rgba(112, 0, 255, 0.1));
    border: 1px solid var(--accent-primary);
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.ai-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    position: relative;
    animation: pulse-ai 2s infinite;
}

@keyframes pulse-ai {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* AI Form */
.ai-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group label i {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

body.light-theme .form-group input,
body.light-theme .form-group textarea {
    background: rgba(0, 0, 0, 0.02);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(0, 255, 157, 0.05);
    box-shadow: 0 0 0 4px rgba(0, 255, 157, 0.1);
}

body.light-theme .form-group input:focus,
body.light-theme .form-group textarea:focus {
    background: rgba(124, 58, 237, 0.08);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.input-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.4s ease;
    border-radius: 2px;
}

.form-group input:focus~.input-glow,
.form-group textarea:focus~.input-glow {
    width: 100%;
}

/* Form Actions */
.form-actions {
    margin-top: 1rem;
}

.submit-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 12px;
    color: var(--btn-primary-text);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 157, 0.3);
}

.submit-btn i {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.submit-btn.loading .btn-text,
.submit-btn.loading i {
    display: none;
}

.submit-btn.loading .btn-loader {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Footer */
.form-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-footer i {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
}

/* Success Message */
.form-success {
    text-align: center;
    padding: 2rem 0;
}

.form-success.hidden {
    display: none;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.2), rgba(112, 0, 255, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-icon i {
    width: 40px;
    height: 40px;
    color: var(--accent-primary);
}

.form-success h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.form-success p {
    color: var(--text-secondary);
    font-size: 1rem;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* AI Background Animation */
.modal-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    border-radius: 24px;
}

.ai-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: float 8s infinite ease-in-out;
}

.ai-orb-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.ai-orb-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(225deg, var(--accent-secondary), var(--accent-primary));
    bottom: -80px;
    left: -80px;
    animation-delay: 2s;
}

.ai-orb-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(315deg, var(--accent-primary), var(--accent-secondary));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(20px, -20px) scale(1.1);
    }

    50% {
        transform: translate(-15px, 15px) scale(0.9);
    }

    75% {
        transform: translate(15px, 10px) scale(1.05);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        padding: 2rem 1.5rem;
        max-width: 95%;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.875rem 1rem;
    }

    .submit-btn {
        padding: 1rem 1.5rem;
    }

    .ai-orb-1,
    .ai-orb-2,
    .ai-orb-3 {
        filter: blur(40px);
    }
}

/* ==========================================
   CALENDAR CTA SECTION
   ========================================== */
.calendar-cta-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.05), rgba(112, 0, 255, 0.05));
    position: relative;
    overflow: hidden;
}

body.light-theme .calendar-cta-section {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(99, 102, 241, 0.05));
}

.calendar-cta-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* CTA Content */
.cta-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    width: 100%;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid var(--accent-primary);
    border-radius: 2rem;
    width: fit-content;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
}

body.light-theme .cta-badge {
    background: rgba(124, 58, 237, 0.12);
    border-color: var(--accent-primary);
}

.cta-badge i {
    width: 16px;
    height: 16px;
}

.cta-content h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin: 0;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content>p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* CTA Features */
.cta-features {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feature-item i {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
}

/* Calendar Button */
.calendar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--btn-primary-text);
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    width: fit-content;
}

.calendar-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.calendar-btn:hover::before {
    opacity: 1;
}

.calendar-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 255, 157, 0.3);
}

body.light-theme .calendar-btn:hover {
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.3);
}

.calendar-btn i {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.calendar-btn:hover i:last-child {
    transform: translateX(5px);
}

.calendar-btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
    min-width: 300px;
}

.cta-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.cta-note i {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 968px) {
    .calendar-cta-container {
        gap: 2rem;
    }

    .cta-content h2 {
        font-size: 2.25rem;
    }

    .cta-features {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .calendar-cta-section {
        padding: 4rem 1.5rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .calendar-btn,
    .calendar-btn-large {
        width: 100%;
        padding: 1.15rem 2rem;
        min-width: unset;
    }
}