/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Mode Colors */
    --primary-color: #4a6fa5;
    --secondary-color: #166088;
    --accent-color: #ff7e5f;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.12);
    --shadow-large: 0 10px 30px rgba(0, 0, 0, 0.15);
    
    /* Fonts */
    --font-main: 'Poppins', 'Segoe UI', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50%;
    
    /* Spacing */
    --space-xs: 5px;
    --space-sm: 10px;
    --space-md: 20px;
    --space-lg: 40px;
    --space-xl: 60px;
}

/* Dark Mode Colors */
body.dark-mode {
    --primary-color: #6a8fc9;
    --secondary-color: #2a7bb6;
    --accent-color: #ff9a8b;
    --success-color: #34d058;
    --warning-color: #ffd33d;
    --danger-color: #f97583;
    --info-color: #79b8ff;
    
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #f0f0f0;
    --text-secondary: #aaaaaa;
    --border-color: #333333;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.4);
    --shadow-large: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.small {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.highlight {
    color: var(--accent-color);
    font-weight: 700;
}

/* Additional Styles for Fixed Version */
.field-error {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 5px;
    padding: 5px 10px;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 4px;
    border-left: 3px solid #dc3545;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.skills-list .skill-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: rgba(74, 111, 165, 0.1);
    transform: translateY(-2px);
}

.generated-portfolio {
    font-family: inherit;
    color: inherit;
}

.portfolio-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 20px;
}

.portfolio-avatar {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.portfolio-name {
    font-size: 2rem;
    margin-bottom: 5px;
}

.portfolio-title {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.portfolio-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    font-size: 0.9rem;
}

.portfolio-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.portfolio-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.portfolio-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.portfolio-section p {
    line-height: 1.6;
}

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

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

.item-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.item-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.item-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}   

/* Mobile menu fixes */
.nav-links.active {
    display: flex !important;
    right: 0 !important;
}

.mobile-menu-overlay.active {
    display: block !important;
}

/* Form step fixes */
.form-step {
    display: none;
}

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

/* Preview device frame */
.device-frame {
    transition: all 0.3s ease;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-small, .btn-template, .btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
    text-align: center;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(74, 111, 165, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 111, 165, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(74, 111, 165, 0.1);
    transform: translateY(-3px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #218838);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-template {
    background-color: var(--accent-color);
    color: white;
    width: 100%;
    margin-top: 10px;
}

.btn-template:hover {
    background-color: #ff6b4a;
    transform: translateY(-2px);
}

/* Header & Navigation */
.navbar {
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}


.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px var(--space-md);
}

.nav-container a{
    text-decoration: none;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0px;
}

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

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding: 5px 0;
    text-decoration: none;
}

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: rgba(74, 111, 165, 0.1);
    transform: rotate(30deg);
}

.language-selector select {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--card-bg);
    color: var(--text-color);
    font-family: var(--font-main);
    cursor: pointer;
}

.mobile-menu-btn {
    display: none !important;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background-color: rgba(74, 111, 165, 0.1);
}

/* Hero Section */
.hero {
    padding: var(--space-xl) 0;
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.1), rgba(22, 96, 136, 0.05));
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.hero-content h1 {
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

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

.stat i {
    font-size: 2rem;
    color: var(--primary-color);
    background: rgba(74, 111, 165, 0.1);
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat h3 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary-color);
}

.stat p {
    margin: 0;
    color: var(--text-secondary);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    text-decoration: none;
}

.hero-cta a{
    text-decoration: none;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.hero-note i {
    color: var(--danger-color);
}

.hero-image {
    position: relative;
}

.floating-resume {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.resume-demo {
    background: white;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-large);
    transform: rotate(3deg);
}

.demo-header {
    height: 35px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-sm);
    margin-bottom: 30px;
    text-align: center;
    padding: 2px;
    font-weight: bold;
    color: #ffffff;
    font-size: 24px;
    line-height: 28px;
}

.demo-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.demo-line {
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
}

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

/* Progress Steps */
.progress-container {
    margin: var(--space-lg) 0;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 10px;
    transition: var(--transition);
}

.step.active .step-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(74, 111, 165, 0.3);
}

.step span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.step.active span {
    color: var(--primary-color);
    font-weight: 600;
}

.progress-bar {
    height: 4px;
    background-color: var(--border-color);
    border-radius: 2px;
    position: relative;
    top: -22px;
    z-index: 1;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    width: 20%;
    transition: var(--transition-slow);
}

/* Form Styles */
.form-container {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.form-step-header {
    margin-bottom: var(--space-lg);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: var(--space-md);
}

.form-step-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.step-description {
    color: var(--text-secondary);
    margin-top: 5px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.full-width {
    grid-column: 1 / -1;
}

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

.input-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group input, .input-group select, .input-group textarea {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    transition: var(--transition);
}

.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.2);
}

.input-group textarea {
    resize: vertical;
    min-height: 100px;
}

.input-group input[type="color"] {
    height: 50px;
    padding: 5px;
    cursor: pointer;
}

.hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 5px;
    font-style: italic;
}

/* Social Links Form */
.social-links-form {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.social-links-form h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--space-md);
    color: var(--primary-color);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

/* Dynamic Sections */
.dynamic-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.section-item {
    background: rgba(74, 111, 165, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    position: relative;
}

.btn-add-section, .btn-remove-section {
    width: 100%;
    margin-top: var(--space-md);
    background-color: transparent;
    border: 2px dashed var(--border-color);
    color: var(--text-secondary);
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-section:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(74, 111, 165, 0.05);
}

.btn-remove-section {
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--danger-color);
    padding: 8px 15px;
    width: auto;
    margin-top: 10px;
}

.btn-remove-section:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

/* Skills Section */
.skills-section, .projects-section, .certifications-section {
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: rgba(74, 111, 165, 0.05);
    border-radius: var(--radius-md);
}

.skills-input-container {
    margin-bottom: var(--space-md);
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    min-height: 50px;
}

.skill-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.skill-tag .remove-skill {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0.8;
}

.skill-tag .remove-skill:hover {
    opacity: 1;
}

.skills-input-group {
    display: flex;
    gap: 10px;
}

.skills-input-group input {
    flex: 1;
}

.skills-levels {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-level {
    display: flex;
    align-items: center;
    gap: 15px;
}

.skill-name {
    min-width: 120px;
    font-weight: 600;
}

.skill-bar {
    flex: 1;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    width: 0%;
    transition: width 1s ease;
}

.skill-percent {
    min-width: 40px;
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
}

/* Hobbies Section */
.hobbies-section {
    margin-top: var(--space-lg);
}

.hobbies-input {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.hobbies-input input {
    flex: 1;
}

.hobbies-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 50px;
}

.hobby-tag {
    background-color: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hobby-tag .remove-hobby {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
}

/* Checkbox Grid */
.checkbox-options {
    margin-top: var(--space-lg);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    cursor: pointer;
    user-select: none;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
}

/* Preview Container */
.generator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.preview-container {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: 90vh;
    overflow-y: auto;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.preview-actions {
    display: flex;
    gap: 10px;
}

.preview-box {
    background-color: #f8f9fa;
    border-radius: var(--radius-md);
    padding: 20px;
    min-height: 600px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    margin-bottom: var(--space-md);
}

.preview-device {
    background: #333;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.device-frame {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    height: 600px;
}

.device-header {
    background: #f0f0f0;
    padding: 10px;
    display: flex;
    justify-content: center;
}

.device-dots {
    display: flex;
    gap: 5px;
}

.device-dots span {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
}

.preview-content {
    padding: 20px;
    height: calc(100% - 40px);
    overflow-y: auto;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 500px;
    color: var(--text-secondary);
    text-align: center;
}

.preview-placeholder i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 20px;
}

.preview-stats {
    display: flex;
    justify-content: space-around;
    margin: var(--space-md) 0;
    padding: var(--space-md);
    background: rgba(74, 111, 165, 0.05);
    border-radius: var(--radius-md);
}

.preview-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.preview-stat i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.preview-stat span {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.preview-controls {
    display: flex;
    gap: 10px;
}

.preview-controls button {
    flex: 1;
}

/* Generated Portfolio Styles */
.generated-portfolio {
    font-family: var(--preview-font, var(--font-main));
    color: var(--preview-text, #333);
}

.portfolio-header {
    background: linear-gradient(135deg, var(--preview-color, #4a6fa5), var(--preview-secondary, #166088));
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.portfolio-avatar {
    width: 150px;
    height: 150px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.portfolio-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.portfolio-title {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.portfolio-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    font-size: 1rem;
}

.portfolio-section {
    padding: 30px 20px;
    border-bottom: 1px solid #eee;
}

.portfolio-section:last-child {
    border-bottom: none;
}

.portfolio-section h3 {
    color: var(--preview-color, #4a6fa5);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--preview-color, #4a6fa5);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.experience-item, .education-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.experience-item:last-child, .education-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

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

.item-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: #333;
}

.item-subtitle {
    color: #666;
    font-size: 1rem;
}

.item-date {
    color: var(--preview-color, #4a6fa5);
    font-weight: 600;
    font-size: 0.9rem;
}

.item-description {
    color: #555;
    line-height: 1.6;
}

/* Templates Section */
.templates-section {
    padding: var(--space-xl) 0;
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.05), rgba(255, 126, 95, 0.05));
}

.templates-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: none;
    border-radius: 30px;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.filter-btn:hover, .filter-btn.active {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.template-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.template-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.template-preview {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.template-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.template-info {
    padding: var(--space-md);
}

.template-info h4 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.template-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 15px;
    min-height: 40px;
}

.template-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.template-feature {
    background: rgba(74, 111, 165, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Examples Section */
.examples-section {
    padding: var(--space-xl) 0;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.example-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.example-preview {
    height: 180px;
    position: relative;
}

.example-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.example-info {
    padding: var(--space-md);
}

.example-info h4 {
    margin-bottom: 5px;
    color: var(--text-color);
}

.example-info p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.example-stats {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Features Section */
.features-section {
    padding: var(--space-xl) 0;
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.05), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
}

.feature-card h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Footer */
footer {
    background-color: var(--card-bg);
    padding: var(--space-xl) 0 var(--space-md);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
}

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

.footer-mission {
    max-width: 800px;
    margin: 0 auto var(--space-lg);
    font-size: 1.1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    text-align: left;
}

.footer-column h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: left;
}

.footer-column a {
    display: block;
    color: var(--text-color);
    margin-bottom: 10px;
    transition: var(--transition);
    text-align: left;
}

.footer-column a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-cta {
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.1), rgba(255, 126, 95, 0.1));
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-cta h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.footer-cta p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.social-share {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-btn.facebook {
    background-color: #1877f2;
}

.social-btn.twitter {
    background-color: #1da1f2;
}

.social-btn.linkedin {
    background-color: #0077b5;
}

.social-btn.whatsapp {
    background-color: #25d366;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-md);
}

.copyright {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}
.author-link {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

.author-link:hover {
  color: #ff4757;
}


/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 600px;
    overflow: hidden;
    box-shadow: var(--shadow-large);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.success-animation {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.download-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.download-option {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.download-option:hover {
    border-color: var(--primary-color);
    background-color: rgba(74, 111, 165, 0.05);
    transform: translateY(-5px);
}

.download-option i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.download-option span {
    font-weight: 600;
    color: var(--text-color);
}

.download-option small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

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

.loading-spinner p {
    color: white;
    font-size: 1.2rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .generator-container {
        grid-template-columns: 1fr;
    }
    
    .preview-container {
        position: static;
        max-height: none;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .form-grid, .social-grid, .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-column h4, .footer-column a {
        text-align: center;
    }
    
    .download-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0px;
}

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: var(--card-bg);
        flex-direction: column;
        padding: 80px 30px 30px;
        z-index: 1001;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
        display: flex;
    }
    
    .nav-links a {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-btn {
        display: block !important;
    }
    
    .mobile-menu-overlay.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }
    
    .progress-steps {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .step {
        flex: 1;
        min-width: 80px;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-navigation button {
        width: 100%;
    }
    
    .preview-controls {
        flex-direction: column;
    }
    .preview-header, h3{
        font-size: 1.4rem;
    }

    .form-container{
        padding: 20px !important;
    }
    
    .templates-grid, .examples-grid, .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
}
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .progress-steps {
        justify-content: center;
    }
    
    .step {
        min-width: 60px;
    }
    
    .step span {
        font-size: 0.8rem;
    }
}

/* Additional fixes */
.section-header {
    margin-bottom: var(--space-lg);
    text-align: center;
}

.section-title {
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.section-subtitle.coming-soon {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ff4757;
  position: relative;
  padding-bottom: 6px;
}

/* animated accent line */
.section-subtitle.coming-soon::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    #ff4757,
    transparent
  );
  animation: slideAccent 1.8s ease-in-out infinite;
}

@keyframes slideAccent {
  0% {
    transform: scaleX(0.2);
    opacity: 0.4;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(0.2);
    opacity: 0.4;
  }
}


.customization-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.error-message {
    color: var(--danger-color);
    font-size: 0.9rem;
    margin-top: 5px;
    padding: 5px 10px;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 4px;
    border-left: 3px solid var(--danger-color);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-large);
    z-index: 3000;
    font-weight: 600;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification.error {
    background: linear-gradient(135deg, var(--danger-color), #c82333);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ========== ENHANCED STYLES ========== */

/* Navigation Customization Section */
.nav-customization-section {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 2px solid var(--border-color);
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.02), rgba(255, 126, 95, 0.02));
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.nav-items-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin: var(--space-md) 0;
    padding: var(--space-md);
    background: rgba(74, 111, 165, 0.03);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border-color);
}

.nav-item {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr auto;
    gap: var(--space-sm);
    align-items: center;
    padding: var(--space-sm);
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.1);
}

.nav-item input {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.9rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    transition: var(--transition);
}

.nav-item input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.btn-remove-nav-item {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.btn-remove-nav-item:hover {
    background-color: rgba(220, 53, 69, 0.1);
    transform: scale(1.1);
}

/* Template Preview Enhancements */
.template-preview-content {
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.template-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.preview-header {
    height: 25px;
    border-radius: 4px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
}

.preview-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.preview-line {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.8);
}

.template-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.template-actions .btn-small {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.85rem;
}

/* Notification Types */
.notification.info {
    background: linear-gradient(135deg, var(--info-color), #138496);
}

.notification.warning {
    background: linear-gradient(135deg, var(--warning-color), #e0a800);
}

/* Download Options Enhancement */
.download-option {
    transition: all 0.3s ease;
}

.download-option:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsiveness for New Features */
@media (max-width: 768px) {
    .nav-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .nav-item input {
        width: 100%;
    }
    
    .btn-remove-nav-item {
        align-self: flex-end;
        margin-top: 5px;
    }
    
    .template-actions {
        flex-direction: column;
    }
    
    .template-actions button {
        width: 100%;
    }
}

/* Print Styles for PDF */
@media print {
    .portfolio-navbar,
    .mobile-menu-btn,
    .social-share,
    .footer-cta {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .portfolio-header {
        background: #f0f0f0 !important;
        color: black !important;
        border: 1px solid #ddd !important;
    }
    
    a {
        color: black !important;
        text-decoration: none !important;
    }
}

/* Template Preview Animations */
@keyframes templateHover {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

.template-card:hover .template-preview-content {
    animation: templateHover 0.6s ease;
}

/* Loading Animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading-spinner p {
    animation: pulse 1.5s ease-in-out infinite;
}


/* mine css */

.generator-section{
    padding: 20px 0px;
}