/* ========================================
   SKILL GAP ANALYZER - COMPLETE STYLES
   ======================================== */

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

/* ========================================
   HERO SECTION - GLASSMORPHISM
   ======================================== */

.skill-gap-hero {
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #ced4f1 0%, #b98fe4 50%, #f093fb 100%);
    padding: 3rem 0 5rem 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.skill-gap-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 2000 2000"><path fill="rgba(255,255,255,0.04)" d="M0,0 L2000,0 L2000,2000 L0,2000 Z M1000,500 L1500,1000 L1000,1500 L500,1000 Z"/></svg>');
    background-size: cover;
    opacity: 0.4;
    pointer-events: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    width: 100%;
}

/* ========================================
   CENTERED HEADING
   ======================================== */

.hero-centered {
    text-align: center;
    margin-bottom: 2.5rem;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.hero-icon {
    font-size: 2.5rem;
    color: #FFD700;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.gradient-text {
    background: linear-gradient(135deg, #FFD700, #FFE66D, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   START BUTTON
   ======================================== */

.start-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-start-analysis {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    font-family: 'Inter', sans-serif;
}

.btn-start-analysis:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.5);
}

.btn-start-analysis i {
    font-size: 1.2rem;
}

.start-subtext {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin: 0;
}

/* ========================================
   QUESTION CONTAINER
   ======================================== */

.question-container {
    max-width: 780px;
    margin: 0 auto;
    animation: fadeInUp 0.4s ease;
}

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

/* ========================================
   PROGRESS BAR
   ======================================== */

.progress-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.progress-bar-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    border-radius: 10px;
    transition: width 0.4s ease;
    width: 12.5%;
}

.step-counter {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}

/* ========================================
   QUESTION CARD - GLASSMORPHISM
   ======================================== */

.glass-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 2rem 2.5rem;
}

.question-card {
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.question-content {
    flex: 1;
}

/* Question Title */
.question-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* Radio Options */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    background: rgba(102, 126, 234, 0.04);
    border: 2px solid rgba(102, 126, 234, 0.12);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.radio-option:hover {
    background: rgba(102, 126, 234, 0.08);
    border-color: rgba(102, 126, 234, 0.25);
}

.radio-option.selected {
    background: rgba(102, 126, 234, 0.12);
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    flex-shrink: 0;
    cursor: pointer;
}

.radio-option label {
    font-size: 0.95rem;
    color: #1a1a2e;
    cursor: pointer;
    flex: 1;
    line-height: 1.4;
}

/* Textarea Options */
.textarea-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.textarea-group textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem 1.2rem;
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 14px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: #1a1a2e;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.25s ease;
    resize: vertical;
}

.textarea-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.textarea-group textarea::placeholder {
    color: #a0a5b8;
}

.textarea-help {
    font-size: 0.8rem;
    color: #6c6c8a;
    margin: 0;
}

/* Lead Form */
.lead-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.lead-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.lead-form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a4a6a;
}

.lead-form-group input,
.lead-form-group select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.7);
    color: #1a1a2e;
    transition: all 0.25s ease;
}

.lead-form-group input:focus,
.lead-form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.lead-form-group input::placeholder {
    color: #a0a5b8;
}

.lead-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c6c8a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.lead-form-group.full-width {
    grid-column: 1 / -1;
}

/* ========================================
   NAVIGATION BUTTONS
   ======================================== */

.question-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    gap: 1rem;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-prev {
    background: rgba(255, 255, 255, 0.3);
    color: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-prev:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.5);
    transform: translateX(-2px);
}

.btn-prev:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-next {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-submit {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(67, 233, 123, 0.3);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 233, 123, 0.4);
}

/* ========================================
   RESULTS MODAL
   ======================================== */

.results-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.results-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.results-modal {
    max-width: 780px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    animation: scaleIn 0.3s ease;
}

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

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
    color: #4a4a6a;
}

.modal-close-btn:hover {
    background: #f5576c;
    color: white;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: #1a1a2e;
}

.modal-header h2 {
    font-size: 1.8rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: #6c6c8a;
    font-size: 1rem;
}

.modal-body {
    margin-bottom: 2rem;
}

/* Result Items */
.result-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: rgba(102, 126, 234, 0.04);
    border-radius: 14px;
    margin-bottom: 0.8rem;
    border-left: 4px solid #667eea;
    transition: all 0.25s ease;
}

.result-item:hover {
    background: rgba(102, 126, 234, 0.08);
}

.result-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.result-content {
    flex: 1;
}

.result-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.2rem;
}

.result-content p {
    font-size: 0.85rem;
    color: #6c6c8a;
    margin: 0;
}

.result-match {
    font-size: 0.75rem;
    font-weight: 700;
    color: #43e97b;
    background: rgba(67, 233, 123, 0.15);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    white-space: nowrap;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    padding-top: 1.5rem;
}

.btn-download-pdf {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.btn-download-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-close-modal {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    background: transparent;
    color: #4a4a6a;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-modal:hover {
    background: rgba(102, 126, 234, 0.05);
    border-color: #667eea;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-icon {
        font-size: 2rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .question-card {
        padding: 1.8rem;
    }
}

@media (max-width: 768px) {
    .skill-gap-hero {
        padding: 2rem 0 3rem 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 1.8rem;
        gap: 0.4rem;
    }
    
    .hero-icon {
        font-size: 1.6rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
    
    .btn-start-analysis {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .start-subtext {
        font-size: 0.8rem;
        text-align: center;
    }
    
    .question-container {
        padding: 0 0.5rem;
    }
    
    .question-card {
        padding: 1.5rem;
        min-height: auto;
    }
    
    .question-title {
        font-size: 1.2rem;
    }
    
    .progress-wrapper {
        padding: 0.6rem 1rem;
        gap: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .step-counter {
        font-size: 0.75rem;
        min-width: auto;
    }
    
    .radio-option {
        padding: 0.6rem 1rem;
    }
    
    .radio-option label {
        font-size: 0.85rem;
    }
    
    .lead-form-grid {
        grid-template-columns: 1fr;
    }
    
    .question-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }
    
    .btn-nav {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        flex: 1;
        justify-content: center;
        min-width: 100px;
    }
    
    .results-modal {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.4rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .btn-download-pdf,
    .btn-close-modal {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 0.8rem;
    }
    
    .question-card {
        padding: 1rem;
        border-radius: 20px;
    }
    
    .question-title {
        font-size: 1rem;
    }
    
    .radio-option {
        padding: 0.5rem 0.8rem;
    }
    
    .radio-option label {
        font-size: 0.8rem;
    }
    
    .textarea-group textarea {
        min-height: 80px;
        font-size: 0.85rem;
    }
    
    .lead-form-group input,
    .lead-form-group select {
        font-size: 0.85rem;
        padding: 0.7rem 0.8rem;
    }
    
    .btn-nav {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        min-width: 80px;
    }
    
    .results-modal {
        padding: 1rem;
    }
    
    .result-item {
        padding: 0.8rem 1rem;
        flex-wrap: wrap;
    }
    
    .result-match {
        margin-left: auto;
    }
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

.results-modal::-webkit-scrollbar {
    width: 6px;
}

.results-modal::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}

.results-modal::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    border-radius: 10px;
}

.results-modal::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.6), rgba(118, 75, 162, 0.6));
}