/* Resume Builder - Comprehensive Merged Styles */
/* Main Container */
.container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    min-height: 100vh;
}

/* Header Section */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
    margin-bottom: 0px;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #ffffff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Form Container */
.form-container {
    background: white;
    padding: 50px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 40px;
    overflow: hidden;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            rgba(102, 126, 234, 0.1) 0%,
            rgba(102, 126, 234, 0.2) 50%,
            rgba(102, 126, 234, 0.1) 100%);
    animation: progressShimmer 2s linear infinite;
}

@keyframes progressShimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2193b0, #6dd5ed, #2193b0);
    background-size: 200% 100%;
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Section Management */
.section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2.2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-row {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

.form-row.three-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2d3748;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafafa;
    position: relative;
}

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

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: #cbd5e0;
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

.form-group small {
    color: #666;
    font-size: 13px;
    font-style: italic;
    margin-top: 5px;
    display: block;
}

/* Dynamic Sections */
.dynamic-section {
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    transition: all 0.3s ease;
}

.dynamic-section:hover {
    border-color: #cbd5e0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.dynamic-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 16px 16px 0 0;
}

/* Buttons */
.remove-btn {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.remove-btn:hover {
    background: linear-gradient(135deg, #c53030, #9c1c1c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 48, 48, 0.3);
}

.add-btn {
    background: linear-gradient(135deg, #38a169, #2f855a);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.add-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.add-btn:hover::before {
    left: 100%;
}

.add-btn:hover {
    background: linear-gradient(135deg, #2f855a, #276749);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(56, 161, 105, 0.3);
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
}

.nav-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.nav-btn.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.nav-btn.primary:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.nav-btn.secondary {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    color: #4a5568;
}

.nav-btn.secondary:hover {
    background: linear-gradient(135deg, #cbd5e0, #a0aec0);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(160, 174, 192, 0.3);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#sectionIndicator {
    font-weight: 600;
    font-size: 16px;
    color: #4a5568;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    padding: 10px 20px;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
}

/* Preview Container */
.preview-container {
    background: white;
    border-radius: 20px;
    padding: 50px;
    margin-top: 40px;
    position: relative;
    border: 1px solid #056ed6;
}

/* Resume Preview Styles */
.resume-preview {
    max-width: 900px;
    /* margin: 0 auto; */
    font-family: 'Times New Roman', serif;
    line-height: 1.5;
    color: #000;
    background: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.resume-header {
    text-align: center;

    border-bottom: 3px solid #2c3e50;
    padding-bottom: 20px;
}

.resume-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.resume-header .contact-info {
    font-size: 14px;
    margin-bottom: 8px;
    color: #555;
}

.resume-section {
    margin-bottom: 25px;
}

.resume-section h2 {
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 5px;
    color: #2c3e50;
}

.resume-item {
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 3px solid #ecf0f1;
}

.resume-item h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #2c3e50;
}

.resume-item .details {
    font-size: 13px;
    font-style: italic;
    margin-bottom: 8px;
    color: #666;
}

.resume-item .description {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.6;
    color: #444;
}

.skills-list {
    font-size: 14px;
    line-height: 1.8;
    padding: 15px;
}

/* Download Button */
.download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    margin-top: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.download-btn:hover::before {
    left: 100%;
}

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

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Footer Adjustments */
footer {
    margin-top: 0;
    border-radius: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .form-container {
        padding: 30px 25px;
    }

    .form-row,
    .form-row.three-col {
        display: flex;
        flex-direction: column;
        gap: 0;
        grid-template-columns: 1fr;
    }

    .navigation {
        flex-direction: column;
        gap: 20px;
    }

    .header {
        padding: 30px 20px;
    }

    .header h1 {
        font-size: 2.2rem;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .dynamic-section {
        padding: 20px;
    }

    .preview-container {
        padding: 25px;
    }

    .resume-preview {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .header p {
        font-size: 1.1rem;
    }

    .form-container {
        padding: 20px;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .nav-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .download-btn {
        padding: 15px 30px;
        font-size: 16px;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .form-container {
        border: 2px solid #000;
    }

    input,
    textarea,
    select {
        border: 2px solid #000;
    }

    .nav-btn.primary {
        background: #000;
        color: #fff;
    }
}

/* Print Styles */
@media print {
    .container {
        background: white !important;
    }

    .form-container,
    .navigation,
    .progress-bar,
    .download-btn {
        display: none !important;
    }

    .preview-container {
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .resume-preview {
        box-shadow: none !important;
        padding: 20px !important;
    }
}