/* ================= BASE STYLES ================= */
body {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* ================= ANIMATED BACKGROUND ================= */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

.bg-animation::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.bg-animation::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(50px, -50px) rotate(120deg); }
    66% { transform: translate(-30px, 30px) rotate(240deg); }
}

/* ================= HERO SECTION ================= */
.hero {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 3rem 5% 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
    line-height: 1.2;
}

.hero h3 {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero h3:last-of-type {
    animation-delay: 0.3s;
    margin-bottom: 1.5rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cta {
    animation: fadeInUp 0.8s ease 0.5s backwards;
}

.primary-cta {
    display: inline-block;
    padding: 0.75rem 2.5rem;

    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);

    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;

    border: 1px solid rgba(56, 189, 248, 0.65);
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.35),
        0 14px 40px rgba(56, 189, 248, 0.35);

    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.primary-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.primary-cta:hover::before {
    left: 100%;
}

.primary-cta:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.55),
        0 18px 55px rgba(56, 189, 248, 0.55);
}

/* ================= CONTAINER ================= */
.container {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    margin: 0 auto 2.5rem;
    padding: 0 5%;
    text-align: center;
}

.container h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* ================= FEATURES ================= */
.features {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 5%;
}

.feature-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;

    /* 🔥 ALWAYS-ON GLOW */
    border: 1px solid rgba(56, 189, 248, 0.65);
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.35),
        0 18px 50px rgba(56, 189, 248, 0.35);

    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-box:hover::before {
    opacity: 1;
}

.feature-box:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

.feature-box h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.feature-box p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* ================= CHATBOT ================= */
#chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;

    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;

    border: 1px solid rgba(56, 189, 248, 0.65);
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.35),
        0 14px 40px rgba(56, 189, 248, 0.45);

    transition: all 0.35s ease;
    z-index: 1000;
}

#chatbot-toggle:hover {
    transform: scale(1.08);
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.6),
        0 18px 60px rgba(56, 189, 248, 0.65);
}

#chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 500px;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: none;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
}

.chat-header {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25);

    padding: 1rem;
    font-weight: 600;
    font-size: 1rem;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chat-close {
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#chat-close:hover {
    opacity: 1;
}

.chat-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bot-msg, .user-msg {
    padding: 0.75rem 1rem;
    border-radius: 15px;
    max-width: 80%;
    animation: slideIn 0.3s ease;
    font-size: 0.9rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-msg {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    align-self: flex-start;
}

.user-msg {
    background: rgba(236, 72, 153, 0.2);
    border: 1px solid rgba(236, 72, 153, 0.3);
    align-self: flex-end;
}

.chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(15, 15, 35, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#chat-input {
    flex: 1;
    padding: 0.625rem 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

#chat-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.5);
}

#chat-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#chat-send {
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 25px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#chat-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

/* ================= FOOTER OVERRIDE ================= */
footer {
    position: fixed;
    z-index: 10;
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0;
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

footer a:hover {
    color: #6366f1;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .hero {
        padding: 2.5rem 5% 2rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero h3 {
        font-size: 1rem;
    }

    .container h2 {
        font-size: 1.5rem;
    }

    .container p {
        font-size: 0.95rem;
    }

    .features {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 1.25rem;
    }

    .feature-box {
        padding: 1.5rem 1.25rem;
    }

    #chatbot-window {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }

    #chatbot-toggle {
        bottom: 20px;
        right: 20px;
    }
}