/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    position: relative;
    overflow: hidden;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 2;
}

.nav-links {
    display: flex;
    list-style: none;
    z-index: 2;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.8;
}

.hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    z-index: 1;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent, rgba(0,0,0,0.1));
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.features-section {
    padding: 5rem 2rem;
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.builder-section {
    padding: 5rem 2rem;
    background: #f8f9fa;
}

.builder-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.builder-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.input-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: bold;
    color: #555;
    font-size: 1.1rem;
}

.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    resize: vertical;
}

.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    min-height: 120px;
}

.generate-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: bold;
}

.generate-btn:hover {
    background: #5a6fd8;
    transform: scale(1.02);
}

.preview-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.preview-section h3 {
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
    font-size: 1.5rem;
}

.resume-preview {
    margin-bottom: 1.5rem;
}

#preview-content {
    min-height: 400px;
    border: 1px solid #e1e5e9;
    padding: 1.5rem;
    border-radius: 8px;
    background: #fff;
    overflow-y: auto;
    max-height: 60vh;
}

.export-buttons {
    display: flex;
    gap: 1rem;
}

.export-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.export-btn:hover {
    background: #45a049;
}

.export-btn:nth-child(2) {
    background: #2196F3;
}

.export-btn:nth-child(2):hover {
    background: #0b7dda;
}

.how-it-works {
    padding: 5rem 2rem;
    background: white;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.step h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.4rem;
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 3rem 2rem 2rem;
}

.loading {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: #666;
}

.loading::after {
    content: '.';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.resume-modern, .resume-classic, .resume-creative {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.resume-modern h2, .resume-classic h2, .resume-creative h2 {
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.resume-modern h3, .resume-classic h3, .resume-creative h3 {
    color: #667eea;
    margin: 1.5rem 0 0.5rem 0;
}

.resume-modern ul, .resume-classic ul, .resume-creative ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.resume-modern li, .resume-classic li, .resume-creative li {
    margin-bottom: 0.3rem;
}

.contact-info p, .contact-creative span {
    margin: 0.3rem 0;
}

.header-creative {
    text-align: center;
    border-bottom: 2px solid #667eea;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-style: italic;
    margin: 0.5rem 0 1rem;
    color: #666;
}

.exp-item-creative h4 {
    color: #333;
    margin: 1rem 0 0.3rem 0;
}

.company {
    color: #666;
    font-style: italic;
    margin: 0 0 0.5rem 0;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.skill-tag {
    background: #e3f2fd;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .builder-container {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .features-section h2,
    .builder-section h2,
    .how-it-works h2 {
        font-size: 2rem;
    }
    
    .export-buttons {
        flex-direction: column;
    }
}