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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

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

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

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.input-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #667eea;
    border-bottom: 3px solid #667eea;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

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

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

.generate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

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

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border: 3px dashed #ddd;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.3s ease;
    text-align: center;
}

.file-upload-label:hover {
    border-color: #667eea;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.file-name {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-weight: 500;
}

.extraction-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
}

.extraction-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.extraction-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.extracted-data {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.extracted-data h3 {
    margin-bottom: 20px;
    color: #333;
}

.preview-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.portfolio-preview {
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 20px;
    min-height: 400px;
    background: #fafafa;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.download-btn {
    background: #28a745;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #218838;
}

.regenerate-btn {
    background: #6c757d;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.regenerate-btn:hover {
    background: #5a6268;
}

/* Portfolio Styles */
.portfolio {
    font-family: 'Arial', sans-serif;
    max-width: 800px;
    margin: 0 auto;
}

.portfolio-header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 30px;
}

.portfolio-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.portfolio-header .title {
    font-size: 1.3rem;
    opacity: 0.9;
}

.portfolio-contact {
    margin-top: 15px;
    font-size: 0.9rem;
}

.portfolio-section {
    margin-bottom: 30px;
}

.portfolio-section h2 {
    color: #667eea;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.portfolio-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.skill-item {
    background: #e9ecef;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.experience-item, .education-item {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.experience-item h3, .education-item h3 {
    color: #333;
    margin-bottom: 10px;
}

.experience-item .period, .education-item .period {
    color: #666;
    font-style: italic;
    margin-bottom: 10px;
}

.experience-item ul {
    list-style-type: disc;
    padding-left: 20px;
}

.experience-item li {
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .input-section {
        padding: 20px;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

/* Brand Footer Styles */
.brand-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 40px 0;
    margin-top: 50px;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-logo-img {
    width: 65px;
    height: 65px;
}

.footer-logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}


.footer-tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 15px;
    font-style: italic;
}

/* Social Media Pills */
.social-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 8px 12px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    min-width: 50px;
    height: 40px;
    gap: 0;
}

.social-icon {
    width: 24px;
    height: 24px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    flex-shrink: 0;
    transform: scale(1);
}

.social-text {
    opacity: 0;
    max-width: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
    font-weight: 500;
    overflow: hidden;
    margin-left: 0;
}

.social-pill:hover {
    color: #3498db;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    min-width: 120px;
    gap: 8px;
    padding: 8px 16px;
}

.social-pill:hover .social-icon {
    transform: scale(1.1);
}

.social-pill:hover .social-text {
    opacity: 1;
    max-width: 100px;
    margin-left: 0;
}

/* Responsive footer */
@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-links a {
        width: 200px;
        margin: 0 auto;
    }
    
    .footer-logo {
        font-size: 1.5rem;
    }
    
    .social-pill {
        min-width: 120px;
        height: 35px;
    }
    
    .social-text {
        font-size: 0.9rem;
    }
}

/* Popup overlay styles */
.popup-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

/* Popup content styles */
.popup-content {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  position: relative;
  font-family: inherit;
}

.close-btn {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
}
