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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

header h1 i {
    margin-right: 15px;
    color: #ffd700;
}

header p {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.form-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 0 0 1px rgba(255,255,255,0.05);
    height: fit-content;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.preview-section {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 0 0 1px rgba(255,255,255,0.05);
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.preview-header {
    padding: 20px 30px;
    background: #f8f9fa;
    border-radius: 15px 15px 0 0;
    border-bottom: 1px solid #e9ecef;
}

.preview-header h3 {
    color: #495057;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section {
    margin-bottom: 40px;
}

.section h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.section h2 i {
    color: #667eea;
}

.form-group {
    margin-bottom: 20px;
}

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

input, textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    color: #2d3748;
    font-weight: 400;
    line-height: 1.5;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

input::placeholder, textarea::placeholder {
    color: #6c757d;
}

/* Template Selector Styles */
.template-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.template-option {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.template-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.template-option.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.template-preview {
    width: 60px;
    height: 80px;
    margin: 0 auto 10px;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 8px;
    position: relative;
    overflow: hidden;
}

.template-option.active .template-preview {
    background: rgba(255, 255, 255, 0.2);
}

.template-header {
    height: 12px;
    background: #667eea;
    border-radius: 2px;
    margin-bottom: 6px;
}

.template-option.active .template-header {
    background: rgba(255, 255, 255, 0.8);
}

.template-lines {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.template-line {
    height: 3px;
    background: #cbd5e0;
    border-radius: 1px;
}

.template-line.short {
    width: 70%;
}

.template-option.active .template-line {
    background: rgba(255, 255, 255, 0.6);
}

.template-name {
    font-size: 13px;
    font-weight: 500;
    display: block;
}

.template-option.active .template-name {
    color: white;
}

/* Template-specific preview styles */
.template-preview.classic .template-header {
    background: #2c3e50;
}

.template-preview.minimal .template-header {
    background: #718096;
    height: 8px;
}

.template-preview.creative .template-header {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
}

.template-preview.classic .template-line {
    background: #4a5568;
}

.template-preview.minimal .template-line {
    background: #a0aec0;
    height: 2px;
}

.template-preview.creative .template-line {
    background: linear-gradient(45deg, #ff9a9e, #fecfef);
}

/* Photo Upload Styles */
.photo-label {
    display: block;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.photo-label:hover {
    color: #667eea;
}

.photo-label i {
    color: #667eea;
}

.photo-input {
    display: none;
}

.photo-preview {
    position: relative;
    margin-top: 15px;
    text-align: center;
}

.photo-preview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.remove-photo-btn {
    position: absolute;
    top: -5px;
    right: calc(50% - 85px);
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.remove-photo-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Date Input Styles */
.date-label {
    display: block;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

input[type="month"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fff;
    color: #495057;
}

input[type="month"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.present-checkbox {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.present-check {
    width: 16px;
    height: 16px;
    accent-color: #667eea;
    cursor: pointer;
}

.present-label {
    font-size: 13px;
    color: #6c757d;
    cursor: pointer;
    user-select: none;
    font-weight: 400;
}

.present-check:checked + .present-label {
    color: #667eea;
    font-weight: 500;
}

.experience-item, .education-item, .project-item, .certification-item, .achievement-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.experience-item:hover, .education-item:hover, .project-item:hover, .certification-item:hover, .achievement-item:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.add-btn, .remove-btn, .primary-btn, .secondary-btn, .danger-btn, .settings-btn, .info-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.add-btn {
    background: #28a745;
    color: white;
    width: 100%;
    justify-content: center;
}

.add-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.remove-btn {
    background: #dc3545;
    color: white;
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 12px;
    font-size: 12px;
}

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

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

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

.secondary-btn {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #e2e8f0;
    flex: 1;
}

.secondary-btn:hover {
    background: #e9ecef;
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.danger-btn {
    background: #dc3545;
    color: white;
    flex: 1;
}

.danger-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.settings-btn {
    background: #17a2b8;
    color: white;
    flex: 1;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.settings-btn:hover {
    background: #138496;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.4);
}

.info-btn {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    color: white;
    flex: 1;
    box-shadow: 0 4px 15px rgba(32, 201, 151, 0.3);
}

.info-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(32, 201, 151, 0.4);
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.action-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.resume-preview {
    padding: 30px;
    min-height: 500px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    position: relative;
}

/* Page Break Indicators */
.page-break {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff6b6b, transparent);
    border: none;
    margin: 20px 0;
    z-index: 10;
    pointer-events: none;
}

.page-break::before {
    content: "PAGE BREAK";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6b6b;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.page-break::after {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #ff6b6b;
}

.preview-placeholder {
    text-align: center;
    color: #6c757d;
    margin-top: 100px;
}

.preview-placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.preview-placeholder p {
    font-size: 1.1rem;
}

/* Resume Preview Styles */
.resume-content {
    max-width: 100%;
    margin: 0 auto;
    background: white;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
    color: #333;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.resume-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #667eea;
    position: relative;
    transition: all 0.3s ease;
}

.resume-header.with-photo {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 30px;
}

.resume-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    flex-shrink: 0;
}

.resume-header-content {
    flex: 1;
}

.resume-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.resume-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #6c757d;
}

.resume-contact span {
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.resume-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e9ecef;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.resume-summary {
    font-size: 15px;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 20px;
}

.resume-item {
    margin-bottom: 20px;
}

.resume-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.resume-item-title {
    font-weight: 600;
    color: #2c3e50;
}

.resume-item-company {
    color: #667eea;
    font-weight: 500;
}

.resume-item-date {
    color: #6c757d;
    font-size: 13px;
    font-style: italic;
}

.resume-item-description {
    color: #495057;
    margin-top: 8px;
    line-height: 1.5;
}

.resume-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: #f8f9fa;
    color: #495057;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid #e9ecef;
}

.project-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.project-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .preview-section {
        position: relative;
        max-height: none;
    }
}

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

    header h1 {
        font-size: 2.5rem;
    }

    .form-section, .preview-section {
        padding: 20px;
    }

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

    .form-actions {
        flex-direction: column;
    }

    .resume-contact {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .resume-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

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

    .resume-name {
        font-size: 1.8rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 30px;
}

.settings-group {
    margin-bottom: 20px;
}

.settings-group label {
    display: block;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.settings-group select,
.settings-group input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fff;
}

.settings-group select:focus,
.settings-group input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.modal-footer .primary-btn,
.modal-footer .secondary-btn {
    flex: none;
    padding: 10px 20px;
    font-size: 14px;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .container {
        max-width: none;
        padding: 0;
    }

    .main-content {
        display: block;
    }

    .form-section {
        display: none;
    }

    .preview-section {
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        padding: 0;
    }

    .preview-header {
        display: none;
    }

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

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    min-width: 300px;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid #667eea;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.notification-success i {
    color: #28a745;
}

.notification-error {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.notification-error i {
    color: #dc3545;
}

.notification-info {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
}

.notification-info i {
    color: #17a2b8;
}

.notification i {
    font-size: 18px;
}

.notification span {
    font-weight: 500;
    color: #2d3748;
}

/* Sample Selector Dropdown */
.sample-selector {
    position: relative;
    flex: 1;
}

.sample-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin-top: 5px;
}

.sample-selector:hover .sample-dropdown {
    display: flex;
}

.sample-option {
    padding: 12px 16px;
    border: none;
    background: white;
    color: #2d3748;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    min-width: auto;
}

.sample-option:hover {
    background: #f8f9fa;
    color: #667eea;
}

.sample-option:first-child {
    border-radius: 12px 12px 0 0;
}

.sample-option:last-child {
    border-radius: 0 0 12px 12px;
}

.sample-option i {
    color: #667eea;
    width: 16px;
}

.sample-option:hover i {
    color: #5a67d8;
}

/* Template-Specific Resume Styles */

/* Modern Template */
.resume-content.template-modern {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.template-modern .resume-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 0;
    border: none;
    position: relative;
}

.template-modern .resume-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}

.template-modern .resume-name {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.template-modern .resume-contact span {
    color: rgba(255,255,255,0.9);
}

.template-modern .resume-section-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.template-modern .resume-item-title {
    color: #667eea;
    font-weight: 600;
}

.template-modern .skill-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Classic Template */
.resume-content.template-classic {
    background: #ffffff;
    border: 2px solid #2c3e50;
    font-family: 'Times New Roman', serif;
}

.template-classic .resume-header {
    background: #2c3e50;
    color: white;
    padding: 25px;
    text-align: center;
}

.template-classic .resume-name {
    color: white;
    font-family: 'Times New Roman', serif;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.template-classic .resume-contact {
    justify-content: center;
    margin-top: 15px;
}

.template-classic .resume-contact span {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
}

.template-classic .resume-section-title {
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 3px double #2c3e50;
    font-weight: bold;
    font-family: 'Times New Roman', serif;
}

.template-classic .resume-item-title {
    color: #2c3e50;
    font-weight: bold;
    font-style: italic;
}

.template-classic .resume-item-company {
    color: #34495e;
    font-weight: normal;
}

.template-classic .skill-tag {
    background: #2c3e50;
    color: white;
    border-radius: 0;
    font-family: 'Times New Roman', serif;
    font-weight: bold;
}

/* Minimal Template */
.resume-content.template-minimal {
    background: #ffffff;
    font-weight: 300;
    line-height: 1.6;
}

.template-minimal .resume-header {
    background: none;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 0;
}

.template-minimal .resume-name {
    color: #2d3748;
    font-weight: 300;
    font-size: 2.5rem;
    letter-spacing: -1px;
}

.template-minimal .resume-contact {
    margin-top: 10px;
    gap: 30px;
}

.template-minimal .resume-contact span {
    color: #718096;
    font-size: 14px;
    font-weight: 300;
}

.template-minimal .resume-section-title {
    color: #2d3748;
    font-weight: 300;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.template-minimal .resume-item-title {
    color: #2d3748;
    font-weight: 400;
}

.template-minimal .resume-item-company {
    color: #718096;
    font-weight: 300;
}

.template-minimal .resume-item-description {
    color: #4a5568;
    font-weight: 300;
}

.template-minimal .skill-tag {
    background: #f7fafc;
    color: #2d3748;
    border: 1px solid #e2e8f0;
    font-weight: 300;
}

/* Creative Template */
.resume-content.template-creative {
    background: linear-gradient(45deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.template-creative::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    z-index: 1;
}

.template-creative > * {
    position: relative;
    z-index: 2;
}

.template-creative .resume-header {
    background: linear-gradient(45deg, #ff6b6b 0%, #4ecdc4 100%);
    color: white;
    padding: 30px;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.template-creative .resume-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.template-creative .resume-name {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 3;
}

.template-creative .resume-contact {
    position: relative;
    z-index: 3;
}

.template-creative .resume-contact span {
    color: rgba(255,255,255,0.95);
}

.template-creative .resume-section-title {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: 2px solid;
    border-image: linear-gradient(45deg, #ff6b6b, #4ecdc4) 1;
    font-weight: 600;
}

.template-creative .resume-item-title {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.template-creative .skill-tag {
    background: linear-gradient(45deg, #ff9a9e, #fecfef);
    color: #2d3748;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    font-weight: 500;
}

/* Template-specific adjustments for photos */
.template-modern .resume-photo {
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.template-classic .resume-photo {
    border: 3px solid #2c3e50;
    border-radius: 0;
    box-shadow: 0 0 0 4px white, 0 0 0 7px #2c3e50;
}

.template-minimal .resume-photo {
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.template-creative .resume-photo {
    border: 4px solid white;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
}