/* Reset and Base Styles */
* {
    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-color: #fff;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.name {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.contact {
    font-size: 1.1rem;
    opacity: 0.8;
}

.contact span {
    margin: 0 5px;
}

.contact a {
    color: inherit;
    text-decoration: none;
}

.contact a:hover,
.contact a:focus {
    text-decoration: underline;
    opacity: 1;
}

.contact .location {
    color: inherit;
}

/* Navigation */
.nav {
    background: #1a202c;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.nav-menu a:hover {
    background: #2d3748;
    transform: none;
}

/* Main Content */
.main {
    padding: 40px 0;
}

/* Sections */
.section {
    margin-bottom: 60px;
    scroll-margin-top: 80px;
}

.section-title {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid #4a5568;
    font-weight: 300;
}

/* Experience Items */
.experience-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(45, 55, 72, 0.1);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.experience-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(45, 55, 72, 0.15);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.experience-header h3 {
    color: #2d3748;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.period {
    background: #4a5568;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(74, 85, 104, 0.2);
}

.experience-details {
    color: #555;
}

.position {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 5px;
}

.department, .organization {
    font-style: italic;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.location {
    color: #7f8c8d;
    margin-bottom: 10px;
}

.gpa {
    font-weight: 600;
    color: #38a169;
    margin-bottom: 10px;
}

.achievements {
    margin-top: 15px;
    padding-left: 20px;
}

.achievements li {
    margin-bottom: 10px;
    text-align: justify;
}

/* Publications */
.publication-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(45, 55, 72, 0.1);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.publication-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(45, 55, 72, 0.15);
}

.publication-item h3 {
    color: #2d3748;
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.authors {
    font-style: italic;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.authors strong {
    color: #2d3748;
}

.type {
    color: #e74c3c;
    font-weight: 600;
    margin-bottom: 15px;
}

.summary, .contribution {
    margin-bottom: 15px;
    text-align: justify;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-category {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(45, 55, 72, 0.1);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(45, 55, 72, 0.15);
}

.skill-category h3 {
    color: #2d3748;
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a5568;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 8px 0;
    color: #555;
    border-bottom: 1px solid #ecf0f1;
}

.skill-category li:last-child {
    border-bottom: none;
}

/* Awards */
.awards-list {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(45, 55, 72, 0.1);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.awards-list:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(45, 55, 72, 0.15);
}

.award-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #ecf0f1;
    flex-wrap: wrap;
}

.award-item:last-child {
    border-bottom: none;
}

.award-name {
    font-weight: 600;
    color: #2d3748;
}

.award-date {
    color: #7f8c8d;
    font-weight: 500;
}

/* Links */
.link {
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.link:hover {
    color: #2d3748;
    border-bottom: 1px solid #4a5568;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .name {
        font-size: 2.2rem;
    }

    .title {
        font-size: 1.2rem;
    }

    .contact {
        font-size: 1rem;
    }

    .contact span {
        display: block;
        margin: 5px 0;
    }

    .nav-menu {
        flex-direction: column;
    }

    .nav-menu a {
        padding: 12px 20px;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .award-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .award-date {
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .experience-item, .publication-item, .skill-category, .awards-list {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .nav {
        display: none;
    }

    .header {
        background: #2c3e50 !important;
        -webkit-print-color-adjust: exact;
    }

    .section {
        break-inside: avoid;
        margin-bottom: 30px;
    }

    .experience-item, .publication-item {
        break-inside: avoid;
        margin-bottom: 15px;
    }
}


