/* static/style.css (FINAL, CONSOLIDATED VERSION) */

/**************************************
 * 1. ROOT VARIABLES & BASE STYLES *
 **************************************/
:root {
    --primary-color: #7c3aed;
    --primary-color-dark: #6d28d9;
    --text-color: #334155;
    --heading-color: #1e293b;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Poppins', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-sans); background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
a { color: var(--primary-color); text-decoration: none; }

/**************************************
 * 2. LANDING PAGE & STATIC COMPONENTS *
 **************************************/
.navbar { padding: 20px 0; background: var(--card-bg); border-bottom: 1px solid var(--border-color); }
.logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--heading-color); text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 8px; border: none; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.btn-primary { background: linear-gradient(to right, var(--primary-color), #8b5cf6); color: white; }
.btn-primary:hover { transform: translateY(-2px); }
.card { background: var(--card-bg); border-radius: 16px; padding: 32px; border: 1px solid var(--border-color); }
.login-container { display: grid; place-items: center; padding-block: 80px; }
.login-card { text-align: center; max-width: 400px; width: 100%; padding: 40px; }

/**************************************
 * 3. APP LAYOUT & SIDEBAR      *
 **************************************/
.app-container { display: flex; min-height: 100vh; }
.app-content { margin-left: 260px; width: calc(100% - 260px); flex-grow: 1; position: relative; z-index: 1; color: #a0aec0; animation: fadeIn 0.3s ease-out; }
.app-content .container { padding-block: 60px; }
.app-content h1, .app-content h2, .app-content h3, .app-content h4 { color: #edf2f7; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.sidebar { width: 260px; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-right: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-direction: column; padding: 20px; color: #a0aec0; position: fixed; height: 100%; z-index: 100; }
.sidebar .logo { margin-bottom: 40px; }
.sidebar-menu { list-style: none; flex-grow: 1; padding: 0; }
.sidebar-menu li a { display: flex; align-items: center; gap: 15px; padding: 12px 15px; border-radius: 8px; color: #a0aec0; font-weight: 500; text-decoration: none; margin-bottom: 5px; transition: all 0.2s ease; }
.sidebar-menu li a box-icon { fill: #a0aec0; transition: fill 0.2s ease; }
.sidebar-menu li a:hover { background-color: rgba(255, 255, 255, 0.05); color: #ffffff; }
.sidebar-menu li a:hover box-icon { fill: #ffffff; }
.sidebar-menu li a.active { background-color: var(--primary-color); color: #ffffff; box-shadow: 0 4px 15px -5px rgba(124, 58, 237, 0.6); }
.sidebar-menu li a.active box-icon { fill: #ffffff; }
.sidebar-footer { padding-top: 15px; margin-top: 15px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.sidebar-footer .user-info p { font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 0 15px 0; }
.sidebar-footer .logout-btn { display: flex; align-items: center; gap: 15px; padding: 10px 15px; border-radius: 8px; color: #a0aec0; font-weight: 500; text-decoration: none; background-color: rgba(255, 255, 255, 0.05); }
.sidebar-footer .logout-btn:hover { background-color: rgba(229, 62, 62, 0.2); color: #fca5a5; }
.sidebar-footer .logout-btn box-icon { fill: #a0aec0; }
.sidebar-footer .logout-btn:hover box-icon { fill: #fca5a5; }
#wave-background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; overflow: hidden; background: #0d041a; }
.streak { position: absolute; width: 200%; height: 200%; opacity: 0.2; filter: blur(80px); border-radius: 50%; animation: move-streak 40s alternate infinite; }
@keyframes move-streak { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(50%, 50%) rotate(360deg); } }
.streak1 { background: #7c3aed; top: -50%; left: -50%; animation-duration: 35s; }
.streak2 { background: #3b82f6; top: 0; left: 50%; animation-duration: 45s; animation-delay: -10s; }
.streak3 { background: #ec4899; top: 50%; left: 0; animation-duration: 40s; animation-delay: -20s; }

/**************************************
 * 4. GLOBAL APP COMPONENTS  *
 **************************************/
.app-content .card { margin-bottom: 30px; padding: 40px; border-radius: 20px; background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.15); box-shadow: 0 4px 20px rgba(0,0,0,0.3); transition: all 0.2s ease; }
.app-content .card:hover { transform: translateY(-2px); }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; margin-bottom: 40px; }
.header-actions { display: flex; gap: 10px; }
.btn-outline-secondary { background-color: transparent; border: 1px solid #4a5568; color: #a0aec0; padding: 10px 20px; }
.btn-outline-secondary:hover { background-color: #4a5568; color: #edf2f7; }
.btn-danger-outline { background-color: transparent; border: 1px solid #e53e3e; color: #e53e3e; padding: 10px 20px; }
.btn-danger-outline:hover { background-color: #e53e3e; color: white; }
.card-header { margin-bottom: 30px; text-align: left; }
.card-header h3 { font-size: 1.8rem; margin-bottom: 10px; }
.card-header p { font-size: 0.95rem; color: #a0aec0; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; align-items: flex-start; }
.form-group label { display: block; margin-bottom: 12px; font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; color: #a0aec0; text-transform: uppercase; letter-spacing: 0.05em; }
.form-group input, .form-group select { width: 100%; color: #cbd5e1; background-color: rgba(45, 55, 72, 0.5); border: 1px solid rgba(255, 255, 255, 0.1); height: 50px; padding: 14px 18px; border-radius: 10px; font-size: 1rem; transition: all 0.2s ease; }
.form-group input:focus, .form-group select:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3); background-color: rgba(45, 55, 72, 0.8); }
.form-group-submit { grid-column: 1 / -1; align-self: flex-end; margin-top: 10px; }
#scan-btn { width: 100%; justify-content: center; padding: 16px 24px; border-radius: 12px; font-size: 1.1rem; font-weight: 700; color: #e0e0e0; background: linear-gradient(90deg, #1e1b4b, #4c1d95, #1e1b4b); background-size: 200% auto; background-position: 95% center; border: none; cursor: pointer; position: relative; overflow: hidden; transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1); }
#scan-btn:hover { color: #ffffff; background-position: 5% center; box-shadow: 0 10px 30px -8px rgba(124, 58, 237, 0.8); transform: translateY(-4px); }
.job-list { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.job-card { position: relative; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; }
.view-dashboard-link { display: inline-block; margin-top: 20px; color: var(--primary-color); font-weight: 600; }
.delete-job-btn { position: absolute; top: 15px; right: 15px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid transparent; background-color: rgba(255, 255, 255, 0.05); color: #a0aec0; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: all 0.2s ease; z-index: 5; }
.delete-job-btn box-icon { fill: #a0aec0; transition: fill 0.2s ease; }
.delete-job-btn:hover { background-color: rgba(229, 62, 62, 0.2); border-color: #e53e3e; }
.delete-job-btn:hover box-icon { fill: #fca5a5; }

/**************************************
 * 5. DASHBOARD-SPECIFIC STYLES  *
 **************************************/
.scan-toggle { display: flex; position: relative; background-color: rgba(45, 55, 72, 0.5); border-radius: 12px; padding: 5px; margin-bottom: 40px; }
.toggle-option { flex: 1; text-align: center; padding: 10px; font-weight: 600; color: #a0aec0; cursor: pointer; z-index: 2; transition: color 0.3s ease; }
.toggle-option.active { color: #ffffff; }
.toggle-option.disabled { color: #4a5568; cursor: not-allowed; display: flex; align-items: center; justify-content: center; gap: 8px; }
.toggle-option.disabled box-icon { fill: #4a5568; }
.toggle-option.disabled:hover { background-color: rgba(255, 255, 255, 0.05); }
.toggle-slider { position: absolute; top: 5px; left: 5px; width: calc(50% - 5px); height: calc(100% - 10px); background: var(--primary-color); border-radius: 8px; z-index: 1; transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.scan-controls.upload-mode .toggle-slider { transform: translateX(100%); }
.drag-drop-zone { border: 2px dashed rgba(255, 255, 255, 0.2); border-radius: 12px; padding: 60px 40px; text-align: center; cursor: pointer; transition: all 0.3s ease; }
.drag-drop-zone p { margin: 10px 0 0 0; font-size: 1.1rem; font-weight: 500; color: #a0aec0; }
.drag-drop-zone box-icon { fill: #a0aec0; }
.drag-drop-zone:hover, .drag-drop-zone.drag-over { border-color: var(--primary-color); background-color: rgba(124, 58, 237, 0.1); }
#file-display { background-color: rgba(45, 55, 72, 0.5); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; padding: 15px 20px; margin-top: 20px; text-align: center; }
#file-display p { margin: 0; color: #cbd5e1; font-weight: 500; }
#filename-span { font-style: italic; color: var(--primary-color); }
#grade-upload-btn { width: 100%; margin-top: 20px; justify-content: center; padding: 16px 24px; border-radius: 12px; font-size: 1.1rem; font-weight: 700; color: white; background: var(--primary-color); transition: all 0.3s ease; }
#grade-upload-btn:hover { background: var(--primary-color-dark); transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(124, 58, 237, 0.6); }
.results-filters { display: flex; gap: 10px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); align-items: center; }
.filter-btn { padding: 8px 16px; border: 1px solid rgba(255, 255, 255, 0.2); background-color: transparent; color: #a0aec0; border-radius: 8px; cursor: pointer; font-weight: 600; transition: all 0.2s ease; }
.filter-btn:hover { background-color: rgba(255, 255, 255, 0.1); color: #edf2f7; }
.filter-btn.active { background-color: var(--primary-color); border-color: var(--primary-color); color: white; box-shadow: 0 4px 15px -5px rgba(124, 58, 237, 0.6); }
.filter-dropdown { margin-left: auto; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, 0.2); background-color: rgba(45, 55, 72, 0.5); color: #edf2f7; border-radius: 8px; cursor: pointer; font-weight: 600; }
.table-wrapper { overflow-x: auto; border-radius: 15px; }
#results-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
#results-table th, #results-table td { padding: 18px 20px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
#results-table tbody tr.top-candidate { background: linear-gradient(90deg, rgba(127, 90, 240, 0.2) 0%, rgba(127, 90, 240, 0) 100%); }
#results-table tbody tr:hover { background-color: rgba(255, 255, 255, 0.05); }
#results-table thead th { background-color: rgba(45, 55, 72, 0.5); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; }
.rank-badge { display: inline-block; width: 32px; height: 32px; line-height: 32px; text-align: center; border-radius: 50%; font-weight: 700; color: #1e293b; background: #4a5568; }
.rank-badge.gold { background: linear-gradient(135deg, #FFD700, #FBBF24); } .rank-badge.silver { background: linear-gradient(135deg, #C0C0C0, #A8A29E); } .rank-badge.bronze { background: linear-gradient(135deg, #CD7F32, #D97706); }
.score-badge { display: inline-block; padding: 6px 12px; border-radius: 25px; font-weight: 700; font-size: 0.85rem; min-width: 60px; text-align: center; color: #1e293b; }
.score-badge.excellent { background-color: #22c55e; } .score-badge.good { background-color: #eab308; } .score-badge.fair { background-color: #f97316; } .score-badge.poor { background-color: #ef4444; color: white; }
.details-btn { background: var(--primary-color-dark); color: white; padding: 8px 15px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; transition: background-color 0.2s ease; }
.details-btn:hover { background-color: var(--primary-color); text-decoration: none; }

/**************************************
 * 6. ANALYTICS PAGE STYLES    *
 **************************************/
.stat-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-bottom: 20px; }
.stat-card { padding: 25px; }
.stat-card h4 { font-size: 1rem; color: #a0aec0; text-transform: uppercase; margin-bottom: 10px; }
.stat-card p { font-size: 2.5rem; font-weight: 700; color: #ffffff; margin: 0; line-height: 1; }
.analytics-main-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 20px; align-items: flex-start; }
#resume-list-card, #chatbot-card { height: 600px; display: flex; flex-direction: column; }
.scrollable-list { overflow-y: auto; padding-right: 10px; }
.resume-list-item { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); cursor: pointer; }
.resume-list-item:hover { background-color: rgba(255, 255, 255, 0.05); }
.resume-info strong { color: #edf2f7; }
.resume-info small { color: #718096; }
.empty-list-text { text-align: center; padding: 20px; }
.chat-window { flex-grow: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.chat-message { padding: 10px 15px; border-radius: 12px; max-width: 80%; line-height: 1.5; }
.user-message { background-color: var(--primary-color); color: white; align-self: flex-end; border-bottom-right-radius: 2px; }
.ai-message { background-color: rgba(45, 55, 72, 0.8); color: #cbd5e1; align-self: flex-start; border-bottom-left-radius: 2px; }
.chat-input-area { display: flex; gap: 10px; padding-top: 15px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
#chat-input { flex-grow: 1; background-color: rgba(45, 55, 72, 0.5); border: 1px solid rgba(255, 255, 255, 0.1); color: #cbd5e1; padding: 12px; border-radius: 8px; }
#chat-input:focus { outline: none; border-color: var(--primary-color); }
#send-chat-btn { flex-shrink: 0; }
#close-chat-btn { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 24px; color: #a0aec0; cursor: pointer; }
.typing-indicator span { height: 8px; width: 8px; background-color: #a0aec0; border-radius: 50%; display: inline-block; animation: bounce 1.4s infinite ease-in-out both; }
.typing-indicator span:nth-of-type(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-of-type(2) { animation-delay: -0.16s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1.0); } }
.header-title-section { display: flex; align-items: center; gap: 15px; }
.header-title-section h2 { font-size: 1.5rem; color: #a0aec0; }
#job-selector-component { position: relative; }
.job-selector-trigger { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); padding: 10px 15px; border-radius: 10px; cursor: pointer; transition: background-color 0.2s ease; }
.job-selector-trigger:hover { background: rgba(255, 255, 255, 0.15); }
#selected-job-title { font-size: 1.5rem; font-weight: 700; font-family: var(--font-display); color: #ffffff; }
.job-selector-trigger box-icon { fill: #a0aec0; transition: transform 0.3s ease; }
.job-selector-trigger.open box-icon { transform: rotate(180deg); }
.job-selector-dropdown { position: absolute; top: calc(100% + 5px); left: 0; width: 100%; min-width: 250px; z-index: 1000; background: rgba(45, 55, 72, 0.8); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 10px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.2s ease; }
.job-selector-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }
.job-selector-dropdown ul { list-style: none; padding: 5px; }
.job-selector-dropdown li { padding: 12px 15px; color: #a0aec0; font-weight: 500; border-radius: 6px; cursor: pointer; transition: all 0.2s ease; }
.job-selector-dropdown li:hover { background-color: var(--primary-color); color: #ffffff; }


/**************************************
 * 7. MODAL STYLES (SHARED)   *
 **************************************/
.modal { position: fixed; z-index: 1000; inset: 0; background-color: rgba(0,0,0,0.6); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.modal.is-visible { opacity: 1; visibility: visible; }
.modal-content { background: rgba(26, 32, 44, 0.8); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 15px 40px rgba(0,0,0,0.2); padding: 40px; width: 90%; max-width: 700px; border-radius: 20px; position: relative; transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.modal.is-visible .modal-content { transform: scale(1); }
.modal h3 { font-family: var(--font-display); font-size: 1.8rem; color: #edf2f7; margin-bottom: 20px; text-align: left; }
.close-button { position: absolute; top: 20px; right: 20px; color: #a0aec0; font-size: 32px; font-weight: normal; cursor: pointer; line-height: 1; background: none; border: none; transition: color 0.2s ease; }
.close-button:hover { color: #ffffff; }
.modal-body { max-height: 60vh; overflow-y: auto; padding-right: 15px; }
.modal-body ul { list-style: none; margin-top: 15px; padding: 0; }
.modal-body ul li { margin-bottom: 12px; padding-left: 28px; position: relative; font-size: 1rem; line-height: 1.5; color: #cbd5e1; }
#modal-strengths h4, #modal-concerns h4 { font-family: var(--font-sans); font-size: 1.2rem; color: #edf2f7; margin-top: 25px; margin-bottom: 10px; border-bottom: 1px dashed rgba(255, 255, 255, 0.2); padding-bottom: 5px; }
#modal-strengths li::before { content: '✅'; position: absolute; left: 0; top: 2px; font-size: 1.1em; }
#modal-concerns li::before { content: '❌'; position: absolute; left: 0; top: 2px; font-size: 1.1em; }
.modal .confirm-text { color: #a0aec0; font-size: 1.1rem; margin-block: 20px 30px; line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; gap: 15px; }
.btn-secondary-outline { padding: 10px 20px; background-color: transparent; border: 1px solid #4a5568; color: #a0aec0; }
.btn-secondary-outline:hover { background-color: #4a5568; color: #edf2f7; transform: translateY(-2px); }
.modal .btn-danger { padding: 10px 20px; background-color: #e53e3e; box-shadow: 0 8px 20px -8px rgba(229, 62, 62, 0.6); }
.modal .btn-danger:hover { background-color: #c53030; transform: translateY(-2px); }


/**************************************
 * 8. PLAN DISPLAY STYLES     *
 **************************************/
.plan-display { text-align: right; padding: 0 40px; margin-top: 20px; }
.plan-display p { color: #a0aec0; font-weight: 500; margin: 0; }
.plan-display span { font-weight: 700; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; }
.free-tier { background: linear-gradient(135deg, #E0E0E0, #BDBDBD, #9E9E9E); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); }
.pro-tier { background: linear-gradient(135deg, #FFDF85 20%, #FFB800 50%, #A07000 90%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; position: relative; }
.pro-tier::after { content: ''; position: absolute; top: 0; left: -100%; width: 200%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); animation: shimmer 5s infinite; }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* =======================================================
   FINAL LANDING PAGE & NAVBAR FIXES
   ======================================================= */

/* 1. FIX THE NAVBAR LAYOUT */
/* This aligns Logo (Left), Links (Center), Buttons (Right) */
.navbar .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
}

/* This removes the bullets and makes links horizontal */
.navbar nav ul {
    display: flex !important;
    align-items: center !important;
    gap: 30px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. FIX THE HERO SECTION */
.hero {
    text-align: center;
    padding: 100px 20px 150px;
    background: linear-gradient(135deg, #f8fafc 0%, #ede9fe 100%);
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    /* Gradient Text Effect */
    background: linear-gradient(to right, var(--primary-color), #4c1d95);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary-color); /* Fallback */
}

.hero .subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
}

/* 3. FIX THE CARDS (GRID LAYOUT) */
.feature-cards, 
.marquee-content {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    margin-top: 50px;
    width: 100%;
}

.feature-cards .card, 
.marquee-content .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 4. FIX THE ICONS */
.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

/* 5. FORCE VISIBILITY (Delete the JS if you want, but this is a safety net) */
.animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    transition: none !important;
}

/* 6. WAVE FIX */
.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 10;
}

/* Center the section titles */
section h2 {
    text-align: center !important;
    margin-bottom: 40px !important;
}

/* =========================================
   WAVE ANIMATION - FORCE FIX
   ========================================= */

/* 1. Make sure the container holds the SVG properly */
.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1; /* Puts it above the background */
}

.waves {
    position: relative;
    width: 100%;
    height: 100px; /* Explicit height is required for movement */
    margin-bottom: -7px; /* Fixes a tiny white line at the bottom */
}

/* 2. The Animation Rules (With !important to force them) */
.waves .parallax > use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite !important;
}

/* 3. The Speeds (Each layer moves at a different speed) */
.waves .parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s !important;
    fill: rgba(124, 58, 237, 0.7); /* Primary Color 70% opacity */
}
.waves .parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s !important;
    fill: rgba(124, 58, 237, 0.5); /* Primary Color 50% opacity */
}
.waves .parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s !important;
    fill: rgba(124, 58, 237, 0.3); /* Primary Color 30% opacity */
}
.waves .parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s !important;
    fill: #ffffff; /* The front wave blends into the white background */
}

/* 4. The Movement Logic */
@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}

.features-detailed {
    padding: 100px 0;
    background: #ffffff;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    text-align: left;
}

.step-number {
    font-size: 0.9rem;
    font-weight: 800;
    color: #7C3AED;
    background: #F3E8FF;
    padding: 5px 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: inline-block;
}

.feature-text h2 {
    font-size: 2.5rem;
    color: #1F2937;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.feature-text p {
    font-size: 1.15rem;
    color: #6B7280;
    line-height: 1.8;
}

.feature-image {
    flex: 1.2;
}

.browser-frame {
    background: white;
    border-radius: 15px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.15);
    overflow: hidden;
    position: relative;
}

.browser-frame::before {
    content: "•••";
    display: block;
    padding: 10px 15px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    color: #d1d5db;
    font-size: 14px;
    letter-spacing: 2px;
}

.browser-frame img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

@media (max-width: 992px) {
    .feature-row, .feature-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .feature-text { text-align: center; }
}

.features-detailed {
    padding: 100px 0;
    background: #ffffff;
    overflow: hidden;
}

.reveal-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 150px;
    /* This is the "Starting Hidden" state */
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

/* This is the "Popping Up" state triggered by JS */
.reveal-row.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-row.reverse { flex-direction: row-reverse; }

.reveal-text { flex: 1; text-align: left; }
.reveal-image { flex: 1.5; }

.step-tag {
    color: #7C3AED;
    font-weight: 800;
    background: #F3E8FF;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: inline-block;
}

.reveal-text h2 { font-size: 2.5rem; color: #1F2937; margin-bottom: 20px; }
.reveal-text p { font-size: 1.2rem; color: #6B7280; line-height: 1.6; }

/* The "Whole Image" Browser Frame */
.browser-window {
    background: white;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 30px 60px rgba(124, 58, 237, 0.15);
    overflow: hidden;
}

.browser-window::before {
    content: "•••";
    display: block;
    padding: 10px 15px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    color: #d1d5db;
    letter-spacing: 2px;
    text-align: left;
}

.browser-window img {
    width: 100%;
    height: auto; /* This ensures the WHOLE image shows */
    display: block;
}

@media (max-width: 992px) {
    .reveal-row, .reveal-row.reverse { flex-direction: column; text-align: center; }
}

/* --- CLEAN & VISIBLE FEATURES --- */
.features-detailed {
    padding: 60px 0;
    background: #ffffff;
}

.feature-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.reveal-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 100px;
    opacity: 1; /* Visible by default */
}

.reveal-row.reverse { flex-direction: row-reverse; }

.reveal-text { flex: 1; text-align: left; }
.reveal-image { flex: 1.2; }

.step-tag {
    color: #7C3AED;
    font-weight: 800;
    background: #F3E8FF;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: inline-block;
    font-size: 0.8rem;
}

.reveal-text h2 { font-size: 2.2rem; color: #1F2937; margin-bottom: 20px; font-family: 'Poppins', sans-serif; }
.reveal-text p { font-size: 1.1rem; color: #6B7280; line-height: 1.6; }

/* THE "BROWSER" FRAME - SHOWS ENTIRE IMAGE */
.browser-window {
    background: white;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.1);
    overflow: hidden;
}

.browser-window::before {
    content: "•••";
    display: block;
    padding: 8px 15px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    color: #d1d5db;
    letter-spacing: 2px;
    text-align: left;
}

.browser-window img {
    width: 100%;
    height: auto; /* THIS SHOWS THE WHOLE IMAGE */
    display: block;
}

@media (max-width: 992px) {
    .reveal-row, .reveal-row.reverse { flex-direction: column; text-align: center; gap: 40px; }
    .reveal-text { text-align: center; }
}


/* --- MODERN STELLASTACK JOB CARDS --- */
.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.stella-card {
    background: #16122b;
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

.stella-card:hover {
    transform: translateY(-8px);
    border-color: #7c3aed;
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.2);
}

.card-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.title-area h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin: 0 0 5px 0;
    font-family: 'Poppins', sans-serif;
}

.date-label {
    color: #64748b;
    font-size: 0.8rem;
}

.delete-job-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    transition: 0.2s;
}

.delete-job-btn:hover {
    background: rgba(239, 68, 68, 0.15);
}

.card-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-text {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.open-dashboard-btn {
    color: #a78bfa;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: 0.2s;
}

.open-dashboard-btn:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.custom-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.9) !important; /* Dark black background */
    display: none; /* Controlled by JS */
    align-items: center;
    justify-content: center;
    z-index: 9999999 !important; /* Higher than everything else */
    backdrop-filter: blur(10px);
}

.custom-modal-card {
    background: #1e1b2e !important;
    padding: 40px !important;
    border-radius: 20px !important;
    border: 1px solid #7c3aed !important;
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.welcome-guide {
    background: #16122b;
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    max-width: 800px;
    margin: 40px auto;
}

.guide-header h2 {
    color: white;
    font-size: 2rem;
    margin-top: 20px;
}

.guide-header p {
    color: #94a3b8;
    margin-bottom: 40px;
}

.guide-steps {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.step {
    text-align: center;
}

.step-icon {
    width: 40px;
    height: 40px;
    background: #7c3aed;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: 800;
    font-size: 1.1rem;
}

.step h4 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.step p {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.5;
}

.guide-footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    color: #94a3b8;
    font-style: italic;
    font-size: 0.9rem;
}
