/* Resume Template - Two-column sidebar layout */

/* Layout */
.resume-container {
    position: relative;
    display: grid;
    grid-template-columns: 320px 1fr;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-primary);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

/* On very wide screens, add some side padding so it doesn't touch edges */
@media (min-width: 1500px) {
    .resume-container {
        margin: 2rem auto;
        border-radius: 12px;
    }
}

/* Sidebar */
.sidebar {
    background: var(--sidebar-bg, linear-gradient(180deg, #2c3e50 0%, #1a252f 100%));
    color: white;
    padding: 2rem 1.5rem;
}

[data-theme="dark"] .sidebar {
    background: linear-gradient(180deg, #1e3a5f 0%, #0d1b2a 100%);
}

.profile-photo {
    text-align: center;
    margin-bottom: 2rem;
}

.photo-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Contact List */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.contact-list .icon {
    flex-shrink: 0;
    width: 1.2rem;
    text-align: center;
}

.contact-list a {
    color: white;
    text-decoration: none;
    word-break: break-word;
    transition: opacity 0.3s;
}

.contact-list a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Skills in Sidebar */
.skill-group {
    margin-bottom: 1.25rem;
}

.skill-group h4 {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0.5rem 0;
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    font-size: 0.85rem;
    gap: 0.5rem;
}

.skill-name {
    flex-shrink: 0;
    min-width: 50px;
}

.skill-bar {
    flex: 1;
    max-width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.skill-level {
    font-size: 0.7rem;
    letter-spacing: -1px;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tool-tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Language List */
.language-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.language-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.85rem;
}

.proficiency {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Interests */
.interests {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.interest-tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
}

/* Main Content */
.main-content {
    padding: 2rem 2.5rem;
}

.header {
    margin-bottom: 2rem;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.tagline {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin: 0.5rem 0 0 0;
}

/* Sections */
.section {
    margin-bottom: 2rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.section-icon {
    font-size: 1.1rem;
}

.about-text {
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Timeline for Education */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
}

.timeline-marker::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 12px;
    width: 2px;
    height: calc(100% + 1rem);
    background: var(--border-color);
}

.timeline-item:last-child .timeline-marker::after {
    display: none;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-header h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
}

.timeline-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.timeline-subtitle {
    color: var(--accent-color);
    margin: 0.25rem 0;
    font-style: italic;
}

.timeline-org {
    color: var(--text-secondary);
    margin: 0;
}

/* Highlight Box for CGPA */
.highlight-box {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-accent);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.cgpa-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cgpa-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Achievements Box */
.achievements-box {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.achievements-box h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.achievements-box ul {
    margin: 0;
    padding-left: 1.25rem;
}

.achievements-box li {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

/* FYP Card */
.fyp-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
}

.fyp-title {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.fyp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.fyp-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.fyp-status {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.fyp-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.fyp-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    background: var(--accent-light);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.fyp-supervisor {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.project-card {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-name {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.project-tech span {
    background: var(--bg-primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.project-link {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.85rem;
}

.project-link:hover {
    text-decoration: underline;
}

/* Experience */
.experience-item {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.experience-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.experience-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.experience-org {
    color: var(--accent-color);
    margin: 0.25rem 0 0.75rem 0;
    font-size: 0.9rem;
}

.experience-points {
    margin: 0;
    padding-left: 1.25rem;
}

.experience-points li {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

/* Certifications */
.cert-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cert-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.cert-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
    .resume-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        padding: 1.5rem;
        order: 2;
    }
    
    .main-content {
        padding: 1.5rem;
        order: 1;
    }
}

@media (max-width: 600px) {
    .name {
        font-size: 2rem;
    }
    
    .timeline-header {
        flex-direction: column;
    }
    
    .fyp-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .highlight-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
}
