/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Roboto:wght@300;400;500;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Lato', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
}

@media (min-width: 768px) {
    .container {
        padding: 60px 40px;
    }
}

/* Header Section */
.header {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.profile-section {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-content {
    flex: 1;
}

.name {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.title {
    font-size: 18px;
    font-weight: 400;
    color: #666;
    margin-bottom: 20px;
}

.bio {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
    text-align: justify;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.contact-link {
    color: #1772d0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #f09228;
}

.contact-link i {
    margin-right: 6px;
}

.phone {
    font-size: 15px;
    color: #555;
}

.phone i {
    margin-right: 6px;
}

@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-image {
        width: 160px;
        height: 160px;
        margin-bottom: 20px;
    }

    .name {
        font-size: 28px;
    }

    .title {
        font-size: 16px;
    }

    .bio {
        text-align: center;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

/* Section Styles */
.section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1772d0;
}

/* Experience & Project Entries */
.experience-entry,
.project-entry,
.education-entry {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.experience-entry:last-child,
.project-entry:last-child,
.education-entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 20px;
}

.entry-title-group {
    flex: 1;
}

.entry-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.4;
}

.entry-organization {
    font-size: 16px;
    color: #1772d0;
    font-weight: 500;
    margin-bottom: 4px;
}

.entry-advisor {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 4px;
}

.entry-meta {
    text-align: right;
    flex-shrink: 0;
}

.entry-date {
    display: block;
    font-size: 14px;
    color: #666;
    font-weight: 400;
    margin-bottom: 4px;
}

.entry-location {
    display: block;
    font-size: 14px;
    color: #888;
    font-style: italic;
}

.entry-gpa {
    display: block;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.entry-details {
    list-style: none;
    padding-left: 0;
    margin-top: 12px;
}

.entry-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    text-align: justify;
}

.entry-details li:before {
    content: "•";
    position: absolute;
    left: 5px;
    color: #1772d0;
    font-weight: 700;
}

.entry-courses {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .entry-header {
        flex-direction: column;
        gap: 10px;
    }

    .entry-meta {
        text-align: left;
    }

    .entry-title {
        font-size: 17px;
    }

    .entry-organization {
        font-size: 15px;
    }
}

/* Project Specific Styles */
.project-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.project-tech {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.project-tech strong {
    font-weight: 600;
    color: #1a1a1a;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.skill-group {
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 3px solid #1772d0;
}

.skill-group-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.skill-items {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

@media (min-width: 768px) {
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Footer */
.footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.footer p {
    font-size: 13px;
    color: #888;
}

/* Link Styles */
a {
    color: #1772d0;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #f09228;
}

/* Strong/Bold Text */
strong {
    font-weight: 600;
    color: #1a1a1a;
}

/* Selection Color */
::selection {
    background-color: #1772d0;
    color: white;
}

::-moz-selection {
    background-color: #1772d0;
    color: white;
}

/* Print Styles */
@media print {
    body {
        font-size: 12pt;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .header {
        page-break-after: avoid;
    }

    .section {
        page-break-inside: avoid;
    }

    .experience-entry,
    .project-entry,
    .education-entry {
        page-break-inside: avoid;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
