:root {
    --primary-color: #00BFFF; --secondary-color: #00FFFF; --background-start: #050505;
    --background-end: #121218; --card-background: rgba(22, 22, 28, 0.7);
    --border-color: rgba(0, 191, 255, 0.2); --light-text: #EAEAEA;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --bg-position: 0% 50%; --text-shine-position: 0% center;
}
body {
    font-family: var(--font-family); margin: 0; color: var(--light-text);
    background: linear-gradient(135deg, var(--background-start), var(--background-end));
    background-size: 200% 200%; background-position: var(--bg-position);
    transition: background-position 0.1s linear;
}
.container { width: 90%; max-width: 1100px; margin: 0 auto; }
section { padding: 100px 0; overflow: hidden; text-align: center; }
h1, h2 {
    font-size: 4rem; line-height: 1.1; font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% auto; color: transparent;
    background-clip: text; -webkit-background-clip: text;
    background-position: var(--text-shine-position);
}
h2 { font-size: 3rem; margin-bottom: 20px; }
p { color: #aaa; line-height: 1.6; }
.section-subtitle { max-width: 600px; margin: 0 auto 40px; }

/* --- Navbar & Sign Up Button --- */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 20px 0; background-color: rgba(5, 5, 5, 0.5); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { height: 45px; } .nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--light-text); transition: color 0.3s ease; }
.nav-links a:hover { color: var(--primary-color); }
.btn-signup {
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-signup:hover { background-color: var(--primary-color); color: black; }

/* --- Hero Section & Animation --- */
.hero { min-height: 100vh; display: flex; align-items: center; text-align: left; position: relative; }
.hero h1 { text-align: left; } .hero p { text-align: left; max-width: 600px; }
#hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.hero .container { position: relative; z-index: 1; }

/* --- Sections, Cards, and Packages --- */
.services-grid, .steps-container, .packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; text-align: left; }
.steps-container { text-align: center; }
.step h3, .service-card h3 { font-size: 1.5rem; color: var(--light-text); }
.step span { color: var(--primary-color); font-weight: bold; margin-right: 10px; }
.service-card { background: var(--card-background); border: 1px solid var(--border-color); padding: 30px; border-radius: 12px; transition: 0.4s ease; }
.service-card:hover { border-color: var(--primary-color); transform: translateY(-5px); }
.packages-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); justify-content: center; }
.package-card {
    background: var(--card-background); border: 1px solid var(--border-color);
    padding: 30px; border-radius: 12px; text-align: center;
    display: flex; flex-direction: column; transition: 0.4s ease;
}
.package-card:hover { transform: scale(1.05); border-color: var(--primary-color); }
.package-card h3 { font-size: 1.8rem; margin-top: 0; }
.package-card .price { font-size: 2.5rem; color: var(--primary-color); font-weight: bold; margin: 10px 0; }
.package-card .description { font-size: 1rem; flex-grow: 1; margin-bottom: 30px; }
.package-card.popular { border-width: 2px; border-color: var(--primary-color); position: relative; }
.popular-badge {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: black; font-weight: bold; font-size: 0.8rem; padding: 5px 15px; border-radius: 20px;
}
.btn-learn-more {
    background-color: transparent; border: 2px solid var(--primary-color);
    color: var(--primary-color); padding: 12px 20px; border-radius: 8px;
    font-weight: bold; cursor: pointer; transition: 0.3s ease;
}
.btn-learn-more:hover { background-color: var(--primary-color); color: black; }

/* --- Modal Styling --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center; z-index: 2000;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-content {
    background-color: #1a1a22; border: 1px solid var(--border-color);
    padding: 40px; border-radius: 12px; max-width: 600px; width: 90%;
    max-height: 80vh; overflow-y: auto; text-align: left;
    transform: scale(0.95); transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-content h3 { font-size: 2rem; background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); background-clip: text; -webkit-background-clip: text; color: transparent; margin-top: 0; }
.modal-content h4 { font-size: 1.2rem; color: var(--primary-color); border-bottom: 1px solid var(--border-color); padding-bottom: 5px; margin-top: 30px; }
.modal-content ul { list-style: none; padding-left: 0; }
.modal-content li { margin-bottom: 10px; padding-left: 20px; position: relative; }
.modal-content li::before { content: '✓'; color: var(--secondary-color); position: absolute; left: 0; }

/* --- Contact Footer Styling --- */
#contact {
    background-color: var(--background-start);
    border-top: 1px solid var(--border-color);
    padding: 80px 0;
}
.contact-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-link:hover { color: var(--primary-color); }
.contact-link svg { stroke: currentColor; }

/* --- Sign-Up Page Styling --- */
.signup-page main { padding-top: 100px; }
.signup-section { padding: 60px 0; }
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}
.form-container h2 { margin-top: 0; }
.form-group { text-align: left; margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    background-color: #222;
    border: 1px solid #444;
    color: var(--light-text);
    border-radius: 6px;
    font-size: 1rem;
}
.btn-submit {
    background-color: var(--primary-color);
    color: black;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.btn-submit:hover { transform: scale(1.05); }

/* --- Animation Engine --- */
[data-animation] { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
[data-animation].is-visible { opacity: 1; transform: translateY(0); }

/* --- Chatbot Styling --- */
.chat-bubble {
    background-color: var(--primary-color);
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    z-index: 1001; /* High z-index to be on top */
}
.chat-window {
    background-color: rgba(18, 18, 24, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    max-height: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000; /* Below the bubble when closed */
}
.chat-window.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }
.chat-header { background-color: var(--primary-color); color: black; font-weight: bold; padding: 15px 20px; text-align: center; } .chat-header h3 { margin: 0; } .chat-header p { margin: 5px 0 0; opacity: 0.9; }
.chat-body { flex-grow: 1; padding: 10px; overflow-y: auto; }
.chat-message { margin-bottom: 12px; max-width: 85%; display: flex; flex-direction: column; }
.chat-message p { margin: 0; padding: 10px 15px; border-radius: 18px; line-height: 1.4; }
.chat-message.bot { align-items: flex-start; } .chat-message.bot p { background-color: #333; }
.chat-message.user { align-items: flex-end; } .chat-message.user p { background-color: var(--primary-color); color: black; font-weight: 500; }

/* New Guided Chatbot Option Buttons */
.chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    align-items: flex-start;
}
.chat-options button {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 15px;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s, color 0.2s;
}
.chat-options button:hover {
    background-color: var(--primary-color);
    color: black;
}