/*
Theme Name: SKL Academic Portfolio
Theme URI: https://example.com/skl-academic-portfolio
Author: ChatGPT
Description: Academic portfolio theme for Dr. Sai Kiran Lakkaraju with tabbed sections.
Version: 1.0.2
Text Domain: skl-portfolio
*/

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --background: #ffffff;
    --surface: #f8fafc;
    --border: #e5e7eb;
}

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--surface);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--background);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    padding: 60px 80px;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color);
}

.header-content {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 40px;
    align-items: center;
}

.profile-section { text-align: center; }

.profile-image {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    margin-bottom: 15px;
}

.contact-info { font-size: 14px; opacity: 0.9; }

.title-section h1 {
    font-size: 3.2rem;
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.title-section .title { font-size: 1.4rem; opacity: 0.9; margin-bottom: 15px; font-weight: 300; }
.title-section .institution { font-size: 1.1rem; opacity: 0.8; }

.nav {
    background: var(--background);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-list { display: flex; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }

.nav-link {
    display: block;
    padding: 20px 30px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

.content { padding: 60px 80px; min-height: 600px; }
.section { display: none; }
.section.active { display: block; animation: fadeIn 0.4s ease-out; }

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

.section-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-color);
}

/* Home Section */
.overview { margin-bottom: 50px; }
.overview-text { font-size: 1.1rem; line-height: 1.8; margin-bottom: 30px; color: var(--text-secondary); }

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.highlight-card {
    background: var(--surface);
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: 4px;
    border-left: 4px solid var(--secondary-color);
}
.highlight-card h3 { font-size: 1.3rem; margin-bottom: 20px; color: var(--primary-color); font-weight: 600; }
.highlight-card ul { list-style: none; }
.highlight-card li {
    padding: 6px 0;
    position: relative;
    padding-left: 20px;
    color: var(--text-secondary);
}
.highlight-card li::before { content: '•'; position: absolute; left: 0; color: var(--accent-color); font-weight: bold; }

/* Education Section */
.education-timeline { position: relative; padding-left: 30px; }
.education-timeline::before {
    content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: var(--border);
}
.education-item {
    position: relative; margin-bottom: 40px; background: var(--background);
    border: 1px solid var(--border); padding: 30px; margin-left: 30px; border-radius: 4px;
}
.education-item::before {
    content: ''; position: absolute; left: -46px; top: 35px; width: 12px; height: 12px;
    background: var(--secondary-color); border: 3px solid var(--background); border-radius: 50%;
}
.year-badge {
    background: var(--primary-color); color: white; padding: 6px 15px; border-radius: 3px;
    font-size: 14px; font-weight: 600; display: inline-block; margin-bottom: 15px;
}
.degree-title { font-size: 1.4rem; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.institution-name { color: var(--text-secondary); font-style: italic; margin-bottom: 15px; font-size: 1.1rem; }
.thesis-info { background: #f8f9fa; padding: 20px; border-left: 3px solid var(--accent-color); border-radius: 0 3px 3px 0; margin-top: 15px; }
.thesis-info strong { color: var(--primary-color); }

/* Teaching & Industry Sections */
.position-item {
    background: var(--surface); border: 1px solid var(--border); padding: 30px;
    margin-bottom: 25px; border-radius: 4px; border-left: 4px solid var(--secondary-color);
}
.position-header { display: flex; justify-content: between; align-items: flex-start; margin-bottom: 15px; flex-wrap: wrap; gap: 15px; }
.position-title { font-size: 1.3rem; font-weight: 600; color: var(--primary-color); margin-bottom: 5px; }
.company-name { color: var(--text-secondary); font-size: 1.1rem; font-style: italic; }
.duration {
    background: var(--accent-color); color: white; padding: 4px 12px; border-radius: 20px;
    font-size: 13px; font-weight: 600; white-space: nowrap;
}
.position-description { color: var(--text-secondary); margin-top: 15px; }

.projects-list { margin-top: 20px; }
.projects-list h4 { color: var(--primary-color); margin-bottom: 10px; font-size: 1.1rem; }
.projects-list ul { list-style: none; padding-left: 0; }
.projects-list li { padding: 4px 0; padding-left: 20px; position: relative; color: var(--text-secondary); }
.projects-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent-color); }

/* Research Section */
.publications-list { list-style: none; }
.publication-item {
    background: var(--surface); border: 1px solid var(--border); padding: 25px; margin-bottom: 20px;
    border-radius: 4px; border-left: 4px solid var(--accent-color);
}
.publication-text { line-height: 1.6; color: var(--text-secondary); }

.footer { background: var(--text-primary); color: white; text-align: center; padding: 40px; font-size: 14px; }

/* Responsive Design */
@media (max-width: 768px) {
    .content, .nav-container { padding: 30px 30px; }
    .header { padding: 40px 30px; }
    .header-content { grid-template-columns: 1fr; text-align: center; gap: 25px; }
    .title-section h1 { font-size: 2.4rem; }
    .nav-list { flex-wrap: wrap; }
    .nav-link { padding: 15px 20px; font-size: 14px; }
    .highlights-grid { grid-template-columns: 1fr; }
    .education-timeline { padding-left: 0; }
    .education-timeline::before { display: none; }
    .education-item { margin-left: 0; }
    .education-item::before { display: none; }
    .position-header { flex-direction: column; align-items: flex-start; }
}
