:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --bg-slate-50: #f8fafc;
    --bg-slate-100: #f1f5f9;
    --bg-slate-900: #0f172a;
    --text-slate-400: #94a3b8;
    --text-slate-500: #64748b;
    --text-slate-600: #475569;
    --text-slate-700: #334155;
    --text-slate-800: #1e293b;
    --text-slate-900: #0f172a;
    --border-slate-100: #f1f5f9;
    --border-slate-200: #e2e8f0;
    --border-slate-300: #cbd5e1;
    --success: #10b981;
    --success-light: #ecfdf5;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-slate-50);
    color: var(--text-slate-900);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hidden {
    display: none !important;
}

.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-slate-200);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#editing-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    margin-bottom: 0.125rem;
}

.logo-text .highlight {
    color: var(--primary);
    font-style: italic;
}

.logo-text p {
    font-size: 0.625rem;
    font-weight: 800;
    color: var(--text-slate-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--text-slate-600);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.625rem 1rem;
    cursor: pointer;
    border-radius: var(--radius-lg);
    transition: all 0.2s;
}

.btn-text:hover {
    background: var(--bg-slate-100);
    color: var(--text-slate-800);
}

.btn-icon {
    background: white;
    border: 1px solid var(--border-slate-200);
    color: var(--text-slate-600);
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.btn-icon:hover {
    background: var(--bg-slate-50);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

#main-content {
    min-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
}

.view-state {
    display: none;
}

.view-state.active {
    display: block;
}

.hero {
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    max-width: 48rem;
    margin: 0 auto;
    position: relative;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    background: white;
    padding: 0.25em 0.75em;
    border-radius: 999px;
    box-shadow: 0 1px 4px 0 rgb(0 0 0 / 0.04);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.5em;
    border: 1px solid var(--border-slate-100);
}

.dot-pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2d9cdb;
    margin-right: 0.5em;
    animation: dotPulse 1s infinite linear;
}

@keyframes dotPulse {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

.hero h2 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
}

.text-blue {
    color: var(--primary);
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-slate-500);
    max-width: 32rem;
    margin: 0 auto;
    font-weight: 500;
    line-height: 1.6;
}

.input-container {
    max-width: 48rem;
    margin: 0 auto 3rem;
    width: 100%;
}

.input-card {
    position: relative;
    background: white;
    border-radius: var(--radius-2xl);
    padding: 0.5rem;
    border: 1px solid var(--border-slate-200);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
}

.input-card:hover {
    box-shadow: var(--shadow-xl), 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    border-radius: calc(var(--radius-2xl) + 1px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.input-card:focus-within::before {
    opacity: 0.3;
}

.input-icon {
    padding-left: 1.25rem;
    color: var(--text-slate-400);
    flex-shrink: 0;
}

.input-card input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1.125rem 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-slate-800);
    background: transparent;
    min-width: 0;
}

.input-card input::placeholder {
    color: var(--text-slate-400);
    font-weight: 400;
}

.btn-scrape {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
    margin-right: 0.25rem;
}

.btn-scrape:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-scrape:active {
    transform: translateY(0);
}

.or-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
    gap: 1rem;
    color: var(--text-slate-400);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.or-separator::before,
.or-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-slate-200);
}

.drop-zone {
    background: white;
    border: 2px dashed var(--border-slate-200);
    border-radius: var(--radius-xl);
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.drop-zone:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.drop-zone--over {
    border-color: var(--primary);
    background: var(--primary-light);
    border-style: solid;
    transform: scale(1.01);
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.drop-icon {
    color: var(--primary);
    background: var(--primary-light);
    padding: 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 0.5rem;
    transition: transform 0.2s;
}

.drop-zone:hover .drop-icon {
    transform: translateY(-2px);
}

.drop-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-slate-900);
    margin: 0;
}

.drop-subtitle {
    font-size: 0.875rem;
    color: var(--text-slate-500);
    margin: 0.25rem 0 1.5rem;
    line-height: 1.5;
}

.btn-upload {
    background: white;
    border: 1px solid var(--border-slate-200);
    color: var(--text-slate-700);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-upload:hover {
    background: var(--bg-slate-50);
    border-color: var(--border-slate-300);
    color: var(--text-slate-900);
}

.upload-status {
    background: var(--success-light);
    border: 1px solid var(--success);
    border-radius: var(--radius-lg);
    padding: 0.875rem 1.25rem;
    margin-top: 1.25rem;
    animation: slideIn 0.3s ease-out;
}

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

.status-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #065f46;
    font-weight: 600;
    font-size: 0.875rem;
}

.status-content svg {
    color: var(--success);
    flex-shrink: 0;
}

.btn-remove {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #065f46;
    opacity: 0.6;
    cursor: pointer;
    padding: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-remove:hover {
    opacity: 1;
    background: rgba(16, 185, 129, 0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 48rem;
    margin: 0 auto;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-slate-200);
}

.feature-item {
    text-align: center;
}

.feature-icon {
    background: var(--bg-slate-100);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: var(--primary);
    transition: all 0.2s;
}

.feature-item:hover .feature-icon {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-title {
    font-weight: 700;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    margin-bottom: 0.375rem;
    color: var(--text-slate-800);
}

.feature-desc {
    color: var(--text-slate-500);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.5;
}

.pro-tip {
    background: var(--primary-light);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.pro-tip-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.pro-tip p {
    font-size: 0.875rem;
    color: var(--text-slate-700);
    line-height: 1.6;
    margin: 0;
}

.pro-tip strong {
    color: var(--primary);
    font-weight: 600;
}

.error-box {
    background: #fef2f2;
    border: 1px solid #ef4444;
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-top: 1.25rem;
    animation: slideIn 0.3s ease-out;
}

.error-content p {
    margin: 0;
}

.error-title {
    font-weight: 700;
    color: #991b1b;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.error-desc {
    color: #b91c1c;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.parsing-view.active {
    background: var(--bg-slate-900);
    color: white;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.parsing-container {
    width: 100%;
    max-width: 24rem;
}

.parsing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.parsing-title {
    font-size: 1.875rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.05em;
    margin: 0;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.parsing-step-text {
    color: #93c5fd;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    margin-top: 0.25rem;
}

.parsing-percent {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    color: #60a5fa;
}

.progress-bar-container {
    width: 100%;
    height: 0.5rem;
    background: #1e293b;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid #334155;
    box-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.steps-list {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.step-item.active {
    opacity: 1;
}

.step-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #334155;
    transition: all 0.3s ease;
}

.step-item.active .step-dot {
    background: #3b82f6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.8);
    transform: scale(1.2);
}

.step-text {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em;
    color: #cbd5e1;
}

.step-item.active .step-text {
    color: #f8fafc;
    font-weight: 600;
}

.editing-view.active {
    flex: 1;
    display: flex !important;
    overflow: hidden;
    min-height: calc(100vh - 72px);
}

.editor-panel {
    width: 45%;
    overflow-y: auto;
    padding: 2rem 2rem;
    background: white;
    border-right: 1px solid var(--border-slate-200);
}

.editor-header {
    margin-bottom: 2.5rem;
}

.success-badge {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--primary-light);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(37, 99, 235, 0.2);
    display: inline-block;
    margin-bottom: 1rem;
}

.editor-header h2 {
    font-size: 1.875rem;
    font-weight: 900;
    margin: 0.5rem 0 0.75rem;
    letter-spacing: -0.025em;
    color: var(--text-slate-900);
}

.editor-header p {
    color: var(--text-slate-500);
    font-weight: 400;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.preview-panel {
    flex: 1;
    background: var(--bg-slate-100);
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.sticky-preview {
    width: 100%;
    max-width: 816px;
}

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

.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-slate-800);
    margin-bottom: 1rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-slate-600);
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-slate-200);
    border-radius: 0.5rem;
    outline: none;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text-slate-800);
    background: white;
    transition: all 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.resume-preview {
    background: white;
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    min-height: 1056px;
    width: 100%;
    color: var(--text-slate-800);
    border-radius: 8px;
    transform-origin: top;
    animation: scaleIn 0.3s ease-out;
    line-height: 1.6;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

.resume-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-slate-300);
}

.resume-header h1 {
    font-size: 2.25rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    color: var(--text-slate-900);
}

.resume-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-slate-600);
    margin-top: 0.5rem;
}

.resume-contact-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.resume-section {
    margin-bottom: 2rem;
    page-break-inside: avoid;
}

.resume-section-title {
    font-size: 1.125rem;
    font-weight: 800;
    border-bottom: 2px solid var(--border-slate-300);
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--text-slate-900);
}

.experience-item,
.education-item {
    margin-bottom: 1.5rem;
    page-break-inside: avoid;
}

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

.experience-title,
.education-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-slate-900);
}

.experience-company,
.education-institution {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.125rem;
}

.experience-period,
.education-period {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-slate-500);
}

.experience-location,
.education-location {
    font-size: 0.8125rem;
    color: var(--text-slate-500);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.experience-description,
.education-description {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.experience-description ul,
.education-description ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.experience-description li,
.education-description li {
    margin-bottom: 0.375rem;
    position: relative;
    line-height: 1.5;
    text-align: justify;
}

.experience-description li::before,
.education-description li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 0;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.skill-tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.professional-summary {
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: var(--bg-slate-50);
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary);
}

.resume-section + .resume-section {
    margin-top: 2rem;
}

.experience-description ul ul {
    margin-left: 1.5rem;
    margin-top: 0.25rem;
}

.experience-description ul ul li::before {
    content: "◦";
    color: var(--text-slate-500);
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

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

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    max-width: 26rem;
    width: 90%;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.modal-header h3 {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0;
    color: var(--text-slate-900);
}

.modal-content p {
    color: var(--text-slate-500);
    font-size: 0.9375rem;
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.modal-footer {
    margin-top: 1.75rem;
}

.modal-hint {
    margin-top: 1rem !important;
    font-size: 0.75rem !important;
    text-align: center;
    color: var(--text-slate-400) !important;
    line-height: 1.5;
}

@media print {
    .resume-preview {
        box-shadow: none;
        padding: 2.5rem;
        min-height: auto;
    }
}

@media (max-width: 1024px) {
    .editing-view.active {
        flex-direction: column;
    }
    
    .editor-panel,
    .preview-panel {
        width: 100%;
        max-width: none;
    }
    
    .editor-panel {
        border-right: none;
        border-bottom: 1px solid var(--border-slate-200);
        padding: 1.5rem;
    }
    
    .preview-panel {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 1rem 1.5rem;
    }
    
    .hero h2 {
        font-size: 2.25rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .input-card {
        flex-direction: column;
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .input-icon {
        padding-left: 0;
    }
    
    .input-card input {
        width: 100%;
        text-align: center;
    }
    
    .btn-scrape {
        width: 100%;
        justify-content: center;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .main-header {
        padding: 0.75rem 1rem;
    }
    
    .logo-text h1 {
        font-size: 1.125rem;
    }
    
    .resume-preview {
        padding: 1.5rem;
        min-height: auto;
    }
    
    .resume-header h1 {
        font-size: 1.75rem;
    }
    
    .experience-header,
    .education-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .experience-period,
    .education-period {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.875rem;
    }
    
    .parsing-title {
        font-size: 1.5rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .btn-primary,
    .btn-scrape {
        padding: 0.75rem 1.25rem;
    }
}
