/* ===== GLOBAL STYLES ===== */
:root {
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --color-primary: #667eea;
    --color-primary-dark: #764ba2;
    --color-text-dark: #2d3748;
    --color-text-light: #718096;
    --color-text-lighter: #a0aec0;
    --color-border: #e2e8f0;
    --color-bg-light: #f8fafc;
    --color-bg-lighter: #fafbfc;
    --transition-default: all 0.3s ease;
    --border-radius-round: 50px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--color-text-dark);
    background: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Chatbot Page Styles */
body.chatbot-page {
    background: var(--color-bg-light);
    min-height: 100vh;
}

.hero {
    padding-bottom: 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: var(--transition-default);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 0;
    align-items: center;
}

.nav-button {
    background: none;
    border: none;
    color: var(--color-text-dark);
    text-decoration: none;
    padding: 15px 20px;
    font-weight: 400;
    font-size: 1rem;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    transition: color 0.2s ease;
    cursor: pointer;
    border-bottom: 3px solid transparent;

}

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

.nav-button.active {
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-primary);
    font-weight: 400;
}

.nav-links a {
    color: var(--color-text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 15px;
}


/* ===== HERO SECTION ===== */
.hero {
    background: var(--gradient-primary);
    color: white;
    padding: 150px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.05)"><polygon points="0,0 1000,0 1000,100 0,80"/></svg>') no-repeat center bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    opacity: 0.95;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 {
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-subtitle-index {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    margin-bottom: 45px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: white;
    color: var(--color-primary);
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    margin: 15px 10px;
    transition: var(--transition-default);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.hero-cta::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23667eea'%3E%3Cpath d='M13.025 1l-2.847 2.828 6.176 6.176h-16.354v3.992h16.354l-6.176 6.176 2.847 2.828 10.975-11z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    transform: translateY(-50%) scale(0);
    transition: var(--transition-default);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    padding-right: 50px;
}

.hero-cta:hover::after {
    transform: translateY(-50%) scale(1);
}

.hero-cta.primary {
    background: white;
    color: var(--color-primary);
    font-size: 20px;
    padding: 22px 44px;
}

.hero-cta.secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
}

.hero-cta.secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: white;
}

.hero-cta.secondary::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M13.025 1l-2.847 2.828 6.176 6.176h-16.354v3.992h16.354l-6.176 6.176 2.847 2.828 10.975-11z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* ===== TRUST INDICATORS ===== */
.trust-indicators {
    margin-top: 60px;
    opacity: 0.8;
}

.trust-indicators p {
    font-size: 14px;
    margin-bottom: 15px;
}

.ratings {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    color: #ffd700;
    font-size: 16px;
}

/* ===== BUTTONS ===== */
.btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-default);
    margin-top: 20px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary,
.btn-data,
.btn-danger {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-data,
.btn-danger {
    font-weight: 500;
    font-size: 15px;
}

.btn-secondary:hover,
.btn-data:hover,
.btn-danger:hover {
    background: var(--color-bg-lighter);
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.data-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.data-actions .btn {
    margin-top: 0;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text-dark);
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    color: var(--color-text-dark);
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.save-profile-section {
    text-align: center;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 2px solid #E5E7EB;
}

/* ===== CARDS & CONTAINERS ===== */
.card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: var(--transition-default);
}

.card:hover,
.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.tab-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    min-height: 500px;
    max-width: 1000px;
    margin: 30px auto;
    border: 1px solid var(--color-border);
    position: relative;
}

@media (max-width: 768px) {
    .tab-content {
        padding: 20px;
        margin-top: 40px;
        max-width: 100%;
    }
    
    .chat-header {
        top: 10px;
        right: 10px;
    }
    
    .chat-control-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .chat-control-btn span:not(.chat-control-icon) {
        display: none;
    }
}

/* ===== NAVIGATION TABS ===== */
.nav-tabs {
    display: flex;
    background: white;
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    border: 1px solid var(--color-border);
}

@media (max-width: 768px) {
    .nav-tabs {
        flex-wrap: nowrap;
        padding: 5px 20px;
        gap: 5px;
    }
    
    .tab-button {
        padding: 10px 15px;
        font-size: 14px;
        white-space: nowrap;
        flex: 1;
    }
}

.tab-button {
    background: none;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition-default);
    color: var(--color-text-dark);
}

.tab-button.active {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.tab-button:hover:not(.active) {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* ===== CHAT INTERFACE ===== */
.chat-messages {
    height: 500px;
    overflow-y: auto;
    border: none;
    border-radius: 15px;
    padding: 25px 20px;
    margin-bottom: 30px;
    margin-top: 30px;
    margin-left: 0;
    background: var(--color-bg-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-top: 1px solid var(--color-border);
    padding-top: 25px;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.message {
    margin-bottom: 16px;
    animation: fadeIn 0.3s ease-in;
}

.message:last-child {
    margin-bottom: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-message .message-content {
    background: var(--gradient-primary);
    color: white;
    padding: 18px 22px;
    border-radius: 18px 18px 18px 4px;
    max-width: 80%;
    overlay: rgba(255,255,255,0.1);
    display: inline-block;
    line-height: 1.7;
    margin-top: 0;
    margin-left: 0;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.bot-message .message-content strong {
    font-size: 15px;
}

.user-message {
    text-align: right;
}

.user-message .message-content {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: var(--color-text-dark);
    padding: 18px 22px;
    border-radius: 18px 18px 4px 18px;
    max-width: 80%;
    display: inline-block;
    line-height: 1.7;
    font-size: 15px;    
    margin-top: 0;
    margin-right: 0;
    box-shadow: 0 2px 8px rgba(168, 237, 234, 0.3);
}

@media (max-width: 768px) {
    .bot-message .message-content,
    .user-message .message-content {
        max-width: 95%;
    }
}

.chat-input-container {
    margin-bottom: 25px;
    margin-top: 10px;
}

.input-group {
    display: flex;
    gap: 12px;
    align-items: center;
    background: white;
    padding: 8px;
    border-radius: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid var(--color-border);
}

.input-group input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    outline: none;
    transition: var(--transition-default);
    background: transparent;
}

.input-group input:focus {
    outline: none;
}

.input-group:focus-within {
    box-shadow: 0 2px 16px rgba(102, 126, 234, 0.15);
    border-color: var(--color-primary);
}

.chat-btn {
    padding: 15px 25px;
    border-radius: 25px;
    white-space: nowrap;
    margin: 0;
}

.quick-questions {
    background: var(--color-bg-light);
    padding: 22px;
    border-radius: 15px;
    border: 1px solid var(--color-border);
    margin-bottom: 0;
    margin-top: 20px;
}

.question-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-btn,
.mood-btn,
.energy-btn,
.phase-option {
    background: white;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    cursor: pointer;
    transition: var(--transition-default);
}

.quick-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

.quick-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-1px);
}

.mood-btn,
.energy-btn {
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    margin: 5px;
}

.mood-btn:hover, .energy-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.mood-btn.active, .energy-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ===== TYPING INDICATOR ===== */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px 20px 20px 5px;
    max-width: 85%;
    display: inline-block;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* ===== HISTORY PANEL ===== */
.history-panel {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    margin-top: 30px;
}

.history-item {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition-default);
}

.history-item:hover {
    background: var(--color-bg-lighter);
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

.history-item h5 {
    margin: 0 0 5px 0;
    color: var(--color-text-dark);
    font-size: 0.9em;
}

.history-item p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.8em;
    line-height: 1.4;
}

.history-item .date {
    color: #a0aec0;
    font-size: 0.7em;
    margin-top: 5px;
}

/* ===== PROFILE & TRACKING ===== */
.profile-setup {
    background: var(--color-bg-light);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.mood-energy-tracker {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

/* Daily Check-In Sliders */
.checkin-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.checkin-slider-header label {
    font-weight: 600;
    color: var(--color-text-dark);
}

.checkin-slider-input {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: var(--color-border);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.checkin-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
    cursor: pointer;
}

.checkin-slider-input::-moz-range-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: var(--color-border);
}

.checkin-slider-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
    cursor: pointer;
}

.slider-labels-ticks {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-top: 6px;
    width: 98%;
    margin-left: auto;
    margin-right: auto;
}

.slider-labels-ticks span {
    font-size: 12px;
    color: #a0aec0;
    font-weight: 500;
    text-align: center;
}

.slider-labels-ticks span:nth-child(1) {
    text-align: left;
}

.slider-labels-ticks span:nth-child(5) {
    text-align: right;
}

.profile-status {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.phase-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.phase-option {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
}

.phase-option.selected {
    background: var(--gradient-primary);
    color: white;
}

.quick-log-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

/* ===== EDUCATION CARDS ===== */
.education-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.education-card {
    background: var(--color-bg-light);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-default);
    border: 1px solid var(--color-border);
}

.education-card h3 {
    color: var(--color-text-dark);
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
}

.education-card p {
    color: var(--color-text-light);
    line-height: 1.6;
}

.expandable {
    cursor: pointer;
    position: relative;
}

.expandable::after {
    content: ' ▼';
    font-size: 0.8em;
    color: var(--color-primary);
}

.expandable.expanded::after {
    content: ' ▲';
}

.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.expandable-content.expanded {
    max-height: 1000px;
    margin-top: 15px;
}

.card-preview {
    color: var(--color-text-light);
    font-size: 15px;
    line-height: 1.5;
    margin: 10px 0;
    font-style: normal;
    cursor: pointer;
}

.read-more {
    color: var(--color-primary);
    font-weight: 500;
    font-style: italic;
}

/* ===== PROGRESS & METRICS ===== */
.progress-summary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.metric-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.metric-value {
    font-size: 2em;
    font-weight: bold;
    color: var(--color-primary);
}

.metric-label {
    color: var(--color-text-light);
    font-size: 15px;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

/* ===== ALERTS ===== */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-text-dark);
    color: white;
    text-align: center;
    padding: 30px 0;
}

.footer p {
    opacity: 0.8;
    margin-bottom: 10px;
    font-size: 16px;
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.hero {
    will-change: transform;
}

/* Loading state for better perceived performance */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--color-primary);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-default);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    margin-right: 15px;
    position: relative;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    border: none;
    background: transparent;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-default);
    flex-shrink: 0;
}

/* Response Feedback Buttons */
.response-feedback {
    margin-top: 10px;
    padding: 10px;
    border-top: 1px solid var(--color-border);
}

.feedback-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.feedback-btn {
    padding: 5px 15px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: white;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.feedback-btn:hover {
    background: var(--color-bg-lighter);
    border-color: #cbd5e0;
}

.feedback-btn.helpful:hover {
    background: #f0fff4;
    border-color: #68d391;
}

.feedback-btn.not-helpful:hover {
    background: #fff5f5;
    border-color: #fc8181;
}

/* ===== ADDITIONAL CHATBOT STYLES ===== */
.chat-description,
.education-description,
.profile-description,
.mood-description,
.data-description {
    color: var(--color-text-light);
}

.chat-description,
.education-description {
    margin-bottom: 30px;
}

.profile-description,
.mood-description,
.data-description {
    margin-bottom: 20px;
}

.chat-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 0;
    padding: 0;
    border-bottom: none;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.chat-header h3 {
    margin: 0;
    color: var(--color-text-dark);
    font-size: 18px;
    font-weight: 700;
}

.chat-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-control-btn {
    background: white;
    border: 1px solid var(--color-border);
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 12px;
    transition: var(--transition-default);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--color-text-dark);
}

.chat-control-btn:hover,
.chat-control-btn#historyBtn:hover {
    background: var(--color-bg-lighter);
    border-color: #cbd5e0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.chat-control-btn#historyBtn {
    background: white;
    color: var(--color-text-dark);
    border: 1px solid var(--color-border);
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.chat-control-icon {
    font-size: 1.1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.chat-control-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

.chat-control-icon.primary {
    color: var(--color-primary);
}

.chat-control-btn#historyBtn .chat-control-icon {
    color: var(--color-text-dark);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.history-header h4 {
    margin: 0;
    color: var(--color-text-dark);
    font-size: 18px;
    font-weight: 700;
}

.history-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.quick-questions-title {
    margin-bottom: 12px;
    color: var(--color-text-dark);
    font-weight: 600;
    font-size: 15px;
}

.education-list {
    margin: 10px 0;
    padding-left: 20px;
}

.profile-edit-btn {
    margin-top: 10px;
    background: rgba(255,255,255,0.2);
}

.export-description {
    margin-bottom: 15px;
}

.export-btn {
    width: 100%;
}

.clear-description {
    margin-bottom: 15px;
}

.clear-btn {
    width: 100%;
    background: #f56565;
    border-color: #f56565;
}

.clear-btn:hover {
    background: #e53e3e;
    border-color: #e53e3e;
}

.no-history-message {
    text-align: center;
    color: var(--color-text-light);
    font-style: italic;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* ===== INDEX.HTML SPECIFIC STYLES ===== */

/* Frustration Section */
.problem-subtitle {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.frustrations {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.frustration {
    display: flex;
    align-items: center;
    gap: 30px;
    background: white;
    padding: 35px 40px;
    transition: var(--transition-default);
    border-left: 4px solid transparent;
    box-shadow: var(--shadow-sm);
}

.frustration:first-child {
    border-radius: 15px 15px 0 0;
}

.frustration:last-child {
    border-radius: 0 0 15px 15px;
}

.frustration:hover {
    background: var(--color-bg-lighter);
}

.frustration-icon {
    font-size: 42px;
    flex-shrink: 0;
    line-height: 1;
}

.frustration h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--color-text-dark);
    font-weight: 700;
    line-height: 1.3;
}

.frustration p {
    color: var(--color-text-light);
    line-height: 1.7;
    font-size: 15px;
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Solution Section */
.solution-preview {
    background: white;
    text-align: center;
}

.solution-preview.section {
    padding: 40px 0;
}

.solution-preview h2 {
    font-size: clamp(28px, 4vw, 36px);
    margin-bottom: 20px;
    line-height: 1.3;
}

.solution-subtitle {
    font-size: 20px;
    color: white;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0.95;
}

.solution-preview p {
    color: white;
}

.app-preview {
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 60px 40px;
    margin: 60px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.app-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.app-preview-content {
    position: relative;
    z-index: 2;
}

.app-preview h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.app-preview p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 40px;
}

.feature-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.feature-preview-item {
    background: rgba(255,255,255,0.15);
    padding: 40px 25px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    text-align: center;
    transition: var(--transition-default);
    position: relative;
    border: 2px solid transparent;
    overflow: hidden;
}

.feature-preview-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-preview-item:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.2);
}

.feature-preview-item h4 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.feature-preview-item h4::first-letter {
    font-size: 22px;
    display: inline-block;
    margin-right: 8px;
}

.feature-preview-item p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Steps Section */
.how-it-works {
    background: var(--color-bg-light);
    text-align: center;
}

.how-it-works h2 {
    font-size: clamp(28px, 4vw, 34px);
    margin-bottom: 50px;
    color: var(--color-text-dark);
    line-height: 1.3;
}

.steps-container {
    max-width: 900px;
    margin: 50px auto 0;
    position: relative;
}

.steps-timeline {
    position: relative;
    padding: 40px 0;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    transform: translateX(-50%);
    opacity: 0.3;
}

.step {
    position: relative;
    margin-bottom: 30px;
    width: 100%;
}

.step:last-child {
    margin-bottom: 0;
}

.step-content {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-left .step-content {
    flex-direction: row;
    max-width: 45%;
    margin-right: auto;
}

.step-right .step-content {
    flex-direction: row-reverse;
    max-width: 45%;
    margin-left: auto;
}

.step-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102,126,234,0.2);
}

.step-left .step-content::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid white;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
}

.step-right .step-content::after {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-right: 15px solid white;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
}

.step-number {
    background: var(--gradient-primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
    position: relative;
    z-index: 2;
}

.step-left .step-number {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
}

.step-right .step-number {
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
}

.step-text {
    flex: 1;
}

.step-text h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--color-text-dark);
    font-weight: 700;
    line-height: 1.3;
}

.step-text p {
    color: var(--color-text-light);
    line-height: 1.6;
    font-size: 15px;
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Features Section */
.features {
    background: white;
}

.features.section {
    padding-bottom: 40px;
}

.features h2 {
    font-size: clamp(24px, 3.5vw, 30px);
    margin-bottom: 20px;
    text-align: center;
    color: var(--color-text-dark);
    line-height: 1.3;
}

.features-subtitle {
    text-align: center;
    font-size: 20px;
    color: var(--color-text-light);
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature {
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    transition: var(--transition-default);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.feature:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 42px;
    margin-bottom: 25px;
    display: inline-block;
    padding: 15px;
    background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
    border-radius: 15px;
}

.feature h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature p {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 16px;
}

.feature-highlight {
    background: var(--color-bg-light);
    color: var(--color-primary);
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid rgba(102,126,234,0.2);
    transition: var(--transition-default);
}

.feature:hover .feature-highlight {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* Social Proof */
.social-proof {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.social-proof h2 {
    font-size: 34px;
    margin: 0 auto 60px;
    max-width: 1000px;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.testimonial {
    background: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.testimonial-quote {
    font-size: 16px;
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.6;
}

.testimonial-author {
    font-weight: 600;
    font-size: 16px;
}

.testimonial-role {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 5px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* Final CTA */
.final-cta {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.final-cta h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin-bottom: 24px;
}

.final-cta p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.cta-benefits span {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 500;
}

.final-cta-button {
    background: white;
    color: var(--color-primary);
    padding: 20px 50px;
    border-radius: var(--border-radius-round);
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    display: inline-block;
    transition: var(--transition-default);
    box-shadow: var(--shadow-lg);
    margin-bottom: 15px;
}

.cta-subtext {
    font-size: 14px;
    opacity: 0.85;
    margin-top: 15px;
    margin-bottom: 0;
}

.final-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}


/* ===== PRICING SECTION ===== */
.pricing {
    background: var(--color-bg-light);
    text-align: center;
}

.pricing h2 {
    font-size: 34px;
    margin-bottom: 20px;
    color: var(--color-text-dark);
    line-height: 1.3;
}

.pricing-subtitle {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: white;
    border-radius: 15px;
    padding: 35px 40px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

.pricing-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 6px 16px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.pricing-price {
    margin-bottom: 25px;
}

.pricing-amount {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
    line-height: 1;
}

.pricing-period {
    font-size: 16px;
    color: var(--color-text-light);
    margin-top: 5px;
    display: block;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: left;
}

.pricing-feature {
    padding: 10px 10px;
    font-size: 15px;
    color: var(--color-text-dark);
    border-bottom: 1px solid var(--color-border);
    line-height: 1.6;
}

.pricing-feature:last-child {
    border-bottom: none;
}

.pricing-cta {
    display: block;
    background: var(--gradient-primary);
    color: white;
    padding: 16px 35px;
    border-radius: var(--border-radius-round);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 20px;
    transition: var(--transition-default);
    box-shadow: var(--shadow-md);
}

.pricing-cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.pricing-guarantee {
    font-size: 13px;
    color: var(--color-text-light);
}

.money-back {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text-dark);
}

.cancel-info {
    margin: 0;
    opacity: 0.8;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }

    .nav {
        padding: 15px 20px;
    }

    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        padding: 12px;
        margin-right: 0;
        cursor: pointer;
        pointer-events: auto;
        border: none;
        background: transparent;
    }
    
    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--color-primary);
        flex-shrink: 0;
        pointer-events: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(80%, 320px);
        height: 100vh;
        background: white;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 90px 30px 30px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-links.active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a,
    .nav-links button {
        margin: 10px 0;
        font-size: 18px;
        width: 100%;
        padding: 15px 0;
        display: block;
        border-bottom: 1px solid var(--color-border);
        text-align: left;
        background: none;
        border: none;
        border-bottom: 1px solid var(--color-border);
        cursor: pointer;
        color: var(--color-text-dark);
        text-decoration: none;
        font-family: inherit;
    }

    .nav-links a:last-child,
    .nav-links button:last-child {
        border-bottom: none;
    }

    .nav-links .nav-cta {
        margin-top: 20px;
        width: 100%;
        text-align: center;
        border: none;
    }

    .logo {
        font-size: 22px;
    }

    .hero {
        padding: 130px 0 60px;
    }

    .hero h1 {
        font-size: 2.2rem;
        padding: 0 20px;
        margin-top: 20px;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        padding: 0 20px;
        margin-bottom: 30px;
    }

    .hero-cta {
        width: calc(100% - 40px);
        margin: 10px 20px;
        padding: 16px 24px;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 54px;
    }

    .ratings {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .rating {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 12px;
        background: rgba(255,255,255,0.1);
        border-radius: 10px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .feature {
        padding: 30px;
    }

    .feature-icon {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .feature h3 {
        font-size: 22px;
    }

    .frustrations {
        margin-top: 40px;
    }
    
    .frustration {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 30px 25px;
        text-align: center;
    }
    
    .frustration-icon {
        font-size: 48px;
    }
    
    .feature-preview {
        grid-template-columns: 1fr;
        margin-top: 40px;
        gap: 20px;
    }
    
    .feature-preview-item {
        padding: 30px 25px;
    }
    
    .steps-timeline::before {
        left: 30px;
    }
    
    .step-left .step-content,
    .step-right .step-content {
        max-width: 100%;
        margin-left: 60px;
        margin-right: 0;
        flex-direction: row;
    }
    
    .step-left .step-content::after,
    .step-right .step-content::after {
        left: -15px;
        right: auto;
        border-right: 15px solid white;
        border-left: none;
        border-top: 15px solid transparent;
        border-bottom: 15px solid transparent;
    }
    
    .step-left .step-number,
    .step-right .step-number {
        left: -30px;
        right: auto;
    }
    
    .cta-benefits {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
    }

    .testimonials {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .testimonial {
        padding: 25px;
    }

    .testimonial-quote {
        font-size: 15px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 10px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-label {
        font-size: 16px;
    }

    .final-cta-button {
        padding: 18px 40px;
        font-size: 18px;
    }
    
    .cta-subtext {
        font-size: 13px;
    }

    .pricing-card {
        padding: 30px 25px;
    }
    
    .pricing-amount {
        font-size: 36px;
    }
    
    .pricing-cta {
        padding: 14px 30px;
        font-size: 15px;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .chat-messages {
        height: 400px;
        margin-left: 0;
        margin-right: 0;
        border-radius: 15px;
        padding: 20px 15px;
    }

    .save-btn {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav {
        padding: 15px 30px;
    }
    
    .logo {
        padding-left: 10px;
    }
}