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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Header section */
.header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.profile-educ-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.profile-educ-image:hover {
    transform: scale(1.05);
}

.header-content {
    flex: 1;
}

.header-content h1 {
    font-size: 3rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* Contact links */
.contact-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Navigation */
.main-nav {
    margin-bottom: 2rem;
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid transparent;
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.nav-link.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Section styles */
.section {
    margin-bottom: 3rem;
}

.section h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 1.5rem;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* About section */
.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.about-content p {
    margin-bottom: 1.5rem;
}

/* Overview grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.overview-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.overview-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.overview-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.overview-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.overview-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Education section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.education-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    position: relative;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.education-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    line-height: 1.3;
}

.education-card h4 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.education-card .institution {
    color: #667eea;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.education-card .institution a {
    color: #667eea;
    text-decoration: none;
}

.education-card .institution a:hover {
    text-decoration: underline;
}

.education-card .date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.education-card .description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.education-card .description a {
    color: #667eea;
    text-decoration: none;
}

.education-card .description a:hover {
    text-decoration: underline;
}

/* Honors and Course Lists */
.honors, .course-list {
    margin-top: 1rem;
    font-size: 0.95rem;
}

.honors strong, .course-list strong {
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}

.honors ul, .course-list ul {
    margin: 0.5rem 0 0 1rem;
    padding: 0;
    list-style-type: disc;
}

.honors li, .course-list li {
    margin-bottom: 0.3rem;
    color: #666;
}

/* Projects section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-card p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-details {
    margin: 1.5rem 0;
}

.project-details strong {
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}

.project-details ul {
    margin: 0.5rem 0 0 1rem;
    padding: 0;
    list-style-type: disc;
}

.project-details li {
    margin-bottom: 0.3rem;
    color: #666;
}

.project-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-right: 1rem;
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.achievement {
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
}

/* Skills section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.skill-category h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.skill-category li {
    color: #666;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.skill-category li:hover {
    background: rgba(102, 126, 234, 0.2);
}

/* Resume section */
.resume-section {
    text-align: center;
}

.resume-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.resume-page {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}

.resume-page:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.resume-page img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.resume-page::after {
    content: '🔍 Click to view full size';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    font-weight: 500;
}

.resume-page:hover::after {
    opacity: 1;
}

/* Awards section */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.award-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.award-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.award-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.award-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.award-card li {
    color: #666;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 5px;
    line-height: 1.4;
}

.award-card li strong {
    color: #333;
}

/* Experience section */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.experience-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.experience-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.experience-card .company {
    color: #667eea;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.experience-card .date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.experience-details ul {
    margin: 0.5rem 0 0 1rem;
    padding: 0;
    list-style-type: disc;
}

.experience-details li {
    margin-bottom: 0.5rem;
    color: #666;
    line-height: 1.5;
}

/* References section */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.reference-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.reference-card h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.reference-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.reference-item {
    padding: 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    line-height: 1.5;
}

.reference-item strong {
    color: #333;
    font-size: 1.1rem;
}

.reference-item em {
    color: #667eea;
    font-weight: 500;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    color: #666;
}

.footer p {
    margin-bottom: 0.5rem;
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .header {
        flex-direction: column;
        text-align: center;
    }

    .header-content h1 {
        font-size: 2.5rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .contact-links {
        justify-content: center;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .education-grid,
    .projects-grid,
    .awards-grid,
    .experience-grid,
    .references-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .resume-gallery {
        grid-template-columns: 1fr;
    }

    .lightbox-nav {
        display: none;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 0.5rem;
        padding: 1rem;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .project-card,
    .education-card,
    .award-card,
    .experience-card {
        padding: 1.5rem;
    }

    .lightbox-close {
        top: -30px;
        font-size: 1.5rem;
    }
}
