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

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
    font-weight: 400;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Layout Components */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 2px 8px var(--shadow);
}

.left-buttons, .right-buttons {
    display: flex;
    align-items: center;
}

.left-buttons {
    gap: 15px;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 30px 20px;
    padding-top: 80px; /* Space for top bar */
}

/* Header Section */
.header {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
}

.profile-section {
    display: flex;
    align-items: flex-start;
}

.profile-info {
    flex: 1;
}

/* Button Components */
.theme-toggle, .language-toggle {
    background: none;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow);
}

.theme-toggle:hover, .language-toggle:hover {
    background: var(--hover-color);
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

/* Typography */
.name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.location {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.location a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
}

.location a:hover {
    color: var(--text-secondary);
}

/* Section Components */
.section {
    margin-bottom: 25px;
}

.section.full-width, .section.column {
    width: 100%;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 6px;
}

/* Grid Layout */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

/* Content Sections */
.summary-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary-section {
    border-left: 3px solid var(--border-color);
    padding-left: 15px;
}

.summary-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    text-align: justify;
    margin-bottom: 0;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-category {
    margin-bottom: 10px;
}

.skill-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.skill-list {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Experience & Education */
.experience-item, .education-item {
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

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

.experience-header, .education-header {
    margin-bottom: 10px;
}

.education-header {
    margin-bottom: 8px;
}

.company, .institution {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--text-color);
}

.period {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.degree {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.description {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.achievements {
    list-style: none;
    padding-left: 0;
}

.achievements li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.achievements li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-color);
    font-weight: bold;
}

.skills-developed {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

.skills-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skills-list {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-style: italic;
}

/* Languages & Contact */
.languages p {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text-muted);
    padding: 5px 0;
}

.languages strong {
    color: var(--text-color);
}

.contact-info {
    text-align: center;
    padding: 25px 0;
    border-top: 2px solid var(--border-color);
}

.availability, .mission, .connect {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}

.social-link i {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .two-column-layout {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        height: 50px;
        padding: 0 15px;
    }
    
    .left-buttons {
        gap: 12px;
    }
    
    .container {
        padding: 20px 15px;
        padding-top: 70px;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .name {
        font-size: 1.8rem;
    }
    
    .title {
        font-size: 1rem;
    }
    
    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .social-link {
        width: 180px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .top-bar {
        height: 45px;
        padding: 0 10px;
    }
    
    .left-buttons {
        gap: 10px;
    }
    
    .container {
        padding: 15px 10px;
        padding-top: 65px;
    }
    
    .name {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .company, .institution {
        font-size: 0.95rem;
    }
    
    .achievements li {
        font-size: 0.8rem;
    }
    
    .two-column-layout {
        gap: 18px;
    }
}

/* Print Styles */
@media print {
    body {
        font-size: 11px;
        line-height: 1.3;
    }
    
    .container {
        max-width: none;
        padding: 15px;
    }
    
    .name {
        font-size: 1.6rem;
    }
    
    .section {
        margin-bottom: 20px;
    }
    
    .two-column-layout {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .social-links {
        display: none;
    }
}

.download-button {
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Footer download button - hidden by default */
.footer-download {
    display: none !important;
}

/* Mobile Button Styles */
@media (max-width: 768px) {
    .theme-toggle, .language-toggle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .download-button {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .theme-toggle, .language-toggle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .download-button {
        padding: 6px 10px;
        font-size: 11px;
    }
}
