/* --- Basic Reset & AI Theme Setup --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #030014;
    --primary-glow: #3FA7E1;
    --secondary-glow: #A149B8;
    --text-color: #f0f0f0;
    --text-muted: #a7a3b6;
    --font-family: 'Manrope', sans-serif;
    /* Custom properties for interactive spotlight (controlled by JS) */
    --mouse-x: 50%;
    --mouse-y: 50%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    /* The main AI background effect */
    background-image: radial-gradient(circle at var(--mouse-x) var(--mouse-y),
            rgba(0, 246, 255, 0.15),
            transparent 20%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Hide particles.js but keep the div in HTML in case you want it back */
#particles-js {
    display: none;
}

/* --- Header & Navbar --- */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 10px 0;
    background: rgba(3, 0, 20, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 246, 255, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 800;
}

.nav-logo img {
    height: 50px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-glow);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-color);
}

/* --- Buttons --- */
.cta-button {
    background: linear-gradient(90deg, var(--primary-glow), var(--secondary-glow));
    color: #fff;
    padding: 12px 24px;
    border-radius: 32px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    background-size: 200% 100%;
    transition: background-position 0.5s ease;
}

.cta-button:hover {
    background-position: 100% 0;
    box-shadow: 0 0 20px var(--primary-glow);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 40px 20px;
}

.hero-content {
    max-width: 800px;
}

.hero-headline {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 246, 255, 0.5);
}

.ai-typing {
    background: linear-gradient(90deg, var(--primary-glow), var(--secondary-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-right: 3px solid var(--primary-glow);
    animation: blink 0.7s infinite;
    min-height: 60px;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* --- Shared Section Styles --- */
.process-section,
.solutions-section,
.final-cta-section {
    padding: 100px 0;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 60px auto;
}


/* ==============================================
    NEW: MODERN AI CARD STYLE
==============================================
*/
.ai-card {
    background: rgba(22, 17, 58, 0.5);
    border: 1px solid rgba(0, 246, 255, 0.2);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 246, 255, 0.2);
}

/* Animated Gradient Border Effect */
.ai-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: radial-gradient(300px circle at var(--mouse-x) var(--mouse-y),
            rgba(0, 246, 255, 0.4),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: -1;
}

.ai-card:hover::before {
    opacity: 1;
}


/* --- Process Section --- */
.process-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.process-step {
    text-align: left;
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.step-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-glow);
    margin-right: 15px;
}

.process-step p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Solutions Section --- */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.solution-item {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
}

.solution-item i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
    color: var(--primary-glow);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* --- Final CTA & Footer --- */
.final-cta-section {
    padding: 80px 40px;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-content p {
    margin-bottom: 30px;
}

.footer {
    padding: 50px 0;
    border-top: 1px solid rgba(0, 246, 255, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-icons a {
    color: var(--text-muted);
    margin-right: 15px;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-glow);
}

.footer-right p {
    color: var(--text-muted);
}

.visitor-count {
    color: #aaa;
    font-size: 0.9em;
    margin-top: 10px;
}


/* --- Forms & Chatbot --- */
.contact-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

.contact-form-container {
    background: #0c082b;
    border: 1px solid rgba(0, 246, 255, 0.2);
    padding: 40px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
    border-radius: 16px;
}

.contact-form-overlay.active .contact-form-container {
    transform: scale(1);
}

.close-form {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

#popup-contact-form .form-group {
    margin-bottom: 20px;
}

#popup-contact-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
}

#popup-contact-form input,
#popup-contact-form textarea {
    width: 100%;
    padding: 12px;
    background: rgba(3, 0, 20, 0.8);
    border: 1px solid rgba(0, 246, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-family: var(--font-family);
    transition: border-color 0.3s, box-shadow 0.3s;
}

#popup-contact-form input:focus,
#popup-contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-glow);
    box-shadow: 0 0 10px rgba(0, 246, 255, 0.3);
}

.form-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.form-status.success {
    background-color: rgba(0, 246, 255, 0.1);
    color: var(--primary-glow);
    display: block;
}

.form-status.error {
    background-color: rgba(255, 0, 193, 0.1);
    color: var(--secondary-glow);
    display: block;
}

.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 4px 20px rgba(0, 246, 255, 0.3);
}

.chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    max-width: 90vw;
    height: 500px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
    z-index: 999;
    border-radius: 16px;
    background: #0c082b;
    border: 1px solid rgba(0, 246, 255, 0.2);
}

.chat-window.active {
    transform: scale(1);
}

.chat-header {
    padding: 15px;
    background: rgba(0, 246, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-chat {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

.chat-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
}

.chat-message.user p {
    background: linear-gradient(90deg, var(--primary-glow), var(--secondary-glow));
    color: white;
}

.chat-message.bot p {
    background: #16113a;
}

.chat-input-area {
    display: flex;
    align-items: center;
    padding: 15px;
    border-top: 1px solid rgba(0, 246, 255, 0.2);
    background: rgba(3, 0, 20, 0.8);
}

.chat-input {
    flex-grow: 1;
    border: none;
    background: none;
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 1rem;
    padding: 0 10px;
    outline: none;
}

.chat-input::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.send-btn {
    background: none;
    border: none;
    color: var(--primary-glow);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.send-btn:hover {
    transform: scale(1.1);
    text-shadow: 0 0 8px var(--primary-glow);
}

/* Add this to your existing style.css */

.captcha-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    /* Space between question and input box */
}

#captcha-refresh-btn {
    background: none;
    border: none;
    color: var(--primary-glow);
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    transition: transform 0.3s ease;
}

#captcha-refresh-btn:hover {
    transform: rotate(90deg);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(3, 0, 20, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
        border-top: 1px solid rgba(0, 246, 255, 0.2);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        padding: 20px 0;
        border-bottom: 1px solid rgba(0, 246, 255, 0.1);
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-headline {
        font-size: 3.5rem;
    }

    .section-title,
    .cta-content h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-headline {
        font-size: 3rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2.5rem;
    }

    .chat-window {
        bottom: 10px;
        right: 10px;
        width: calc(100vw - 20px);
        max-height: calc(100vh - 90px);
    }
}