/* ProResume - Main CSS File */

:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --gray: #7f8c8d;
    --light-gray: #ecf0f1;
    --border-radius: 5px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: #f5f7fa;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--secondary);
    color: white;
    padding: 8px 16px;
    z-index: 1001;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Header */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.logo span {
    color: var(--accent);
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-links a:hover {
    color: var(--secondary);
    background: var(--light-gray);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: blue;
    text-rendering: optimizeLegibility;
    font-family: 'Roboto', sans-serif;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #851826;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: red;
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    text-decoration: none;
}

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

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

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

/* CV Type Section */
.cv-type-section {
    padding: 4rem 0;
    background: linear-gradient(to right, #fc5c7d, #6a82fb);
    text-align: center;
}

.cv-type-section h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.cv-type-section > p {
    color: var(--gray);
    margin-bottom: 2rem;
}

.cv-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.cv-type-card {
    background: linear-gradient(135deg, #35efac 0%, #0ec8ee 100%);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    text-align: center;
}

.cv-type-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.cv-type-card.selected {
    border-color: var(--secondary);
    background: #f0f7ff;
}

.cv-type-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.cv-type-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.cv-type-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Professional CVs */
.professional-cvs {
    padding: 4rem 0;
    background: var(--light);
    text-align: center;
}

.professional-cvs h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.professional-cvs > p {
    color: var(--gray);
    margin-bottom: 2rem;
}

.professional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.professional-card {
    background: background: linear-gradient(135deg, #ff61d2 0%, #fe9090 100%);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    text-align: center;
    border-top: 4px solid var(--secondary);
    transition: transform 0.3s;
}

.professional-card:hover {
    transform: translateY(-5px);
}

.professional-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.professional-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.professional-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Template Selection */
.template-section {
    padding: 3rem 0;
    background: white;
    text-align: center;
}

.template-section h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.template-section > p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.template-dropdown {
    width: 300px;
    max-width: 90%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid var(--secondary);
    border-radius: var(--border-radius);
    background: white;
    margin: 1rem auto 2rem;
    cursor: pointer;
}

/* Form Section */
.form-section {
    padding: 3rem 0;
    background: white;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-step {
    display: none;
    animation: fadeIn 0.5s;
}

.form-step.active {
    display: block;
}

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

.form-step h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Image Upload */
.image-upload-container {
    text-align: center;
    margin-bottom: 2rem;
}

.image-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--light-gray);
    margin: 0 auto 1rem;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.image-preview i {
    font-size: 3rem;
    color: var(--gray);
}

.upload-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background 0.3s;
    font-size: 0.9rem;
}

.upload-btn:hover {
    background: #2980b9;
}

/* Dynamic Sections */
.dynamic-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
}

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

.section-title {
    font-weight: 600;
    color: var(--primary);
}

.remove-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
}

.remove-btn:hover {
    background: #c0392b;
}

.add-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem auto;
    font-size: 1rem;
}

.add-btn:hover {
    background: #2980b9;
}

/* Career Objective Options */
.objective-options {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.objective-option {
    background: white;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.objective-option:hover {
    border-color: var(--secondary);
    background: #f8f9ff;
}

.objective-option.selected {
    border-color: var(--secondary);
    background: #f0f7ff;
}

.objective-option p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-gray);
}

.nav-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.nav-btn-primary {
    background: var(--secondary);
    color: white;
}

.nav-btn-secondary {
    background: var(--light-gray);
    color: var(--dark);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    position: relative;
    overflow-x: auto;
}

.progress-steps:before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--light-gray);
    z-index: 1;
}

.step {
    text-align: center;
    z-index: 2;
    background: white;
    padding: 0 1rem;
    min-width: 80px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--light-gray);
    color: var(--gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 600;
}

.step.active .step-number {
    background: var(--secondary);
    color: white;
}

.step.completed .step-number {
    background: #27ae60;
    color: white;
}

/* Resume Preview */
.preview-section {
    padding: 4rem 0;
    background: var(--light);
}

.resume-preview-container {
    max-width: 210mm;
    min-height: 297mm;
    margin: 2rem auto;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

.resume-content {
    padding: 2rem;
}

.resume-header {
    text-align: center;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.resume-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.resume-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--light-gray);
    margin: 0 auto 1rem;
}

.resume-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--gray);
}

.resume-section {
    margin-bottom: 1.5rem;
}

.resume-section h3 {
    background: var(--light-gray);
    padding: 0.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    border-left: 4px solid var(--secondary);
}

/* Resume Tables */
.resume-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.resume-table th,
.resume-table td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}

.resume-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--dark);
}

.resume-table tr:nth-child(even) {
    background: #f9f9f9;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #95a5a6;
    font-size: 0.9rem;
}

/* Modal */
#modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

#modal > div {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    width: 90%;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    .step {
        min-width: 60px;
        font-size: 0.9rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }

    .cv-type-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .resume-content {
        padding: 1rem;
    }
    
    .resume-header h1 {
        font-size: 1.8rem;
    }
    
    .template-dropdown {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .professional-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    .resume-preview-container,
    .resume-preview-container * {
        visibility: visible;
    }
    .resume-preview-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 210mm;
        box-shadow: none;
        margin: 0;
        page-break-inside: avoid;
    }
    
    .action-buttons {
        display: none;
    }
    
    .nav-buttons {
        display: none;
    }
}

/* Focus Styles for Accessibility */
:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

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

/* Validation Styles */
input:invalid, textarea:invalid, select:invalid {
    border-color: var(--accent);
}

input:valid, textarea:valid, select:valid {
    border-color: #27ae60;
}

