/* ============================================== */
/* RESUME BUILDER — resume-builder.css            */
/* ============================================== */

/* Container & Global */
.builder-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 100px 2rem 50px;
    min-height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .builder-container {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* Form Section */
.form-section {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    overflow-y: auto;
    height: calc(100vh - 150px);
}

.form-section::-webkit-scrollbar { width: 6px; }
.form-section::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }

/* Preview Section */
.preview-section {
    flex: 1.2;
    background: #f1f5f9;
    border-radius: 32px;
    padding: 3rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    height: calc(100vh - 150px);
    border: 1px solid var(--glass-border);
}

.preview-section::-webkit-scrollbar { width: 6px; }
.preview-section::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

/* Form Header */
.form-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 2rem;
}

.form-header h2 {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* Group Sections */
.form-group-section {
    margin-bottom: 3.5rem;
}

.form-group-section h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Inputs */
.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    padding-left: 0.2rem;
}

.input-group input, .input-group textarea {
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.3s;
    font-family: inherit;
}

.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 8px 20px rgba(88, 80, 236, 0.05);
}

/* Items & Buttons */
.dynamic-item {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 24px;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.btn-sm {
    padding: 0.6rem 1.25rem;
    background: rgba(88, 80, 236, 0.08);
    color: var(--primary);
    border: 1px solid rgba(88, 80, 236, 0.1);
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-sm:hover {
    background: var(--primary);
    color: white;
}

.remove-btn {
    background: #fff;
    color: #ef4444;
    border: 1px solid #fee2e2;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 1rem;
    align-self: flex-end;
    cursor: pointer;
    transition: all 0.2s;
}

.remove-btn:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* Actions */
.action-buttons {
    display: flex;
    gap: 1.25rem;
    margin-top: 4rem;
}

.btn {
    flex: 1;
    padding: 1.25rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 25px rgba(88, 80, 236, 0.25);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(88, 80, 236, 0.4);
}

/* Resume Preview (The "Paper") */
.preview-wrapper {
    width: 100%;
    max-width: 800px;
    background: white;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.12), 0 10px 25px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.05);
    margin: 0 auto;
}

.resume-preview {
    min-height: 297mm;
    padding: 3.5rem 3rem;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.res-header {
    text-align: center;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid #334155;
    padding-bottom: 2rem;
}

.res-name {
    font-size: 32pt;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 0.25rem;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.res-title {
    font-size: 14pt;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.res-contact {
    font-size: 10pt;
    color: #64748b;
    font-weight: 500;
}

.res-section {
    margin-bottom: 2rem;
}

.res-section-title {
    font-size: 13pt;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    border-bottom: 1.5px solid #e2e8f0;
    padding-bottom: 0.4rem;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.res-summary {
    font-size: 10.5pt;
    color: #334155;
    text-align: justify;
}

.res-item {
    margin-bottom: 1.5rem;
}

.res-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.res-item-title {
    font-weight: 800;
    font-size: 11.5pt;
    color: #0f172a;
}

.res-item-company {
    font-style: italic;
    font-weight: 600;
    color: #475569;
}

.res-item-date {
    font-weight: 700;
    font-size: 9.5pt;
    color: #64748b;
}

.res-item-desc {
    font-size: 10pt;
    color: #334155;
}

.res-skills span {
    display: inline-block;
    background: #f1f5f9;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    margin: 0.2rem;
    font-weight: 600;
    font-size: 9.5pt;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* Modal Redesign */
.selection-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: #ffffff;
    border-radius: 48px;
    padding: 5rem 4rem;
    text-align: center;
    max-width: 1000px;
    width: 100%;
    box-shadow: 0 40px 100px rgba(0,0,0,0.25);
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-content h2 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}

.modal-content p {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 4rem;
}

.modal-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
}

.option-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    padding: 4rem 3rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.option-card:hover {
    background: white;
    transform: translateY(-15px);
    border-color: var(--primary-light);
    box-shadow: 0 30px 60px rgba(88, 80, 236, 0.1);
}

.option-icon {
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 2.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}

.option-card h3 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.option-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Animations */
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsiveness */
@media (max-width: 768px) {
    .builder-container { padding-top: 80px; gap: 1.5rem; }
    .form-section, .preview-section { padding: 2rem 1.5rem; height: auto; max-height: none; }
    .modal-content { padding: 3rem 1.5rem; border-radius: 30px; }
    .modal-content h2 { font-size: 2rem; }
    .modal-options { grid-template-columns: 1fr; gap: 1.5rem; }
    .option-card { padding: 2.5rem 1.5rem; }
}

/* ── Navbar Styling Overrides for Resume Builder ────────────── */
#navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    padding: 0 5%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#navbar .nav-links a {
    color: var(--text-dim);
}

#navbar .nav-links a:hover,
#navbar .nav-links a.active {
    color: var(--primary);
}

/* Align container with the 70px navbar */
.builder-container {
    padding-top: 100px !important;
}

