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

body {
    font-family: 'Work Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Header and Navigation */
header {
    background-color: #2c3e50;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover,
nav a.active {
    background-color: #34495e;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Featured Projects Section */
.featured-projects {
    margin-bottom: 3rem;
}

.featured-projects h2 {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.featured-projects .project-grid {
    display: grid;
    grid-template-columns: repeat(2, 400px);
    gap: 2rem;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.featured-projects .project-card {
    max-width: 400px;
    margin: 0;
}

.project-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.project-card h3 {
    color: #2c3e50;
    padding: 1.5rem 1.5rem 1rem;
    font-size: 1.4rem;
}

.project-card p {
    color: #666;
    padding: 0 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.project-card ul {
    padding: 0 1.5rem 1rem;
    margin-left: 1.5rem;
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

.project-card ul li {
    margin-bottom: 0.5rem;
}

.project-card a {
    color: #3498db;
    text-decoration: none;
}

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

.project-links {
    padding: 0 1.5rem 1rem;
    display: flex;
    gap: 1rem;
}

.project-links a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.project-links a:hover {
    text-decoration: underline;
}

.tech-stack {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-stack span {
    background-color: #f0f2f5;
    color: #2c3e50;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
}

/* Projects Page Specific Styles */
.projects-header {
    text-align: center;
    margin-bottom: 3rem;
}

.projects-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.project {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.project h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

.project-content img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.project-description {
    font-size: 1.1rem;
}

.project-description p {
    margin-bottom: 1rem;
}

.project-description ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.project-description a {
    color: #3498db;
    text-decoration: none;
}

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

/* About Page Styles */
.about-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.profile-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #4b5563;
}

.skills-section {
    margin-top: 3rem;
}

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

.skill-card {
    background: #f3f4f6;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.skill-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Contact Page Styles */
.contact-content {
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: #2c3e50;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #34495e;
}

.contact-form {
    padding: 0.5rem;
}

.contact-form h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-form p {
    margin-bottom: 1.5rem;
    color: #4b5563;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.social-link:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #2c3e50;
    color: #fff;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-content {
        grid-template-columns: 1fr;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .project-card img {
        height: 100%;
    }
}

@media (max-width: 900px) {
    .featured-projects .project-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .featured-projects .project-card {
        margin: 0 auto;
    }
}

/* Projects Page Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 400px));
    gap: 2rem;
    justify-content: center;
}

.projects-grid .project-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.projects-grid .project-card-img {
    flex: 0 0 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-grid .project-card-img img {
    width: 240px;
    height: 300px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.10);
    background: #f4f4f4;
}

.projects-grid .project-card-content {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
}

.projects-grid .project-card h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.projects-grid .project-card p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.projects-grid .project-card ul {
    margin-left: 1.5rem;
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

.projects-grid .project-card ul li {
    margin-bottom: 0.5rem;
}

.projects-grid .project-card a {
    color: #3498db;
    text-decoration: none;
}

.projects-grid .project-card a:hover {
    text-decoration: underline;
}

.projects-grid .project-card .project-links {
    padding: 0 1.5rem 1rem;
    display: flex;
    gap: 1rem;
}

.projects-grid .project-card .project-links a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.projects-grid .project-card .project-links a:hover {
    text-decoration: underline;
}

.projects-grid .project-card {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}


@media (max-width: 900px) {
    .projects-grid .project-card {
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
        padding: 1rem;
    }

    .projects-grid .project-card-img {
        height: auto;
        flex: 0 0 auto;
    }

    .projects-grid .project-card-img img {
        width: 100%;
        height: auto;
        max-width: 350px;
        margin: 0 auto;
    }
}

/* About Summary Section (index.html) */
.about-summary {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    padding: 2.5rem 2rem 2rem 2rem;
    margin: 2.5rem auto 3rem auto;
    max-width: 1000px;
}

.about-container {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.about-left {
    flex: 0 0 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.about-profile-img {
    width: 160px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.10);
    margin-bottom: 0.5rem;
}

.cv-btn {
    display: inline-block;
    background: #2c3e50;
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    margin: 1rem 0 1.5rem 0;
    transition: background 0.2s;
}

.cv-btn:hover {
    background: #34495e;
}

.about-right {
    flex: 1 1 0;
}

.about-right h2 {
    font-family: 'MuseoModerno', cursive;
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    color: #2c3e50;
}

.about-right p {
    margin-bottom: 1rem;
    color: #222;
    font-size: 1.08rem;
}

.about-right ul {
    margin-left: 1.2rem;
    margin-bottom: 1rem;
    color: #222;
    font-size: 1.05rem;
}

.about-right ul li {
    margin-bottom: 0.3rem;
}

.about-activities-work {
    display: flex;
    gap: 3rem;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.about-activities,
.about-work {
    flex: 1 1 0;
}

.about-activities h3,
.about-work h3,
.about-strengths h3 {
    font-family: 'MuseoModerno', cursive;
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.7rem;
    font-weight: 700;
}

.about-activities ul,
.about-work ul {
    margin-left: 1.2rem;
    color: #444;
    font-size: 1.02rem;
}

.about-activities ul li,
.about-work ul li {
    margin-bottom: 0.3rem;
}

.about-strengths {
    text-align: center;
    margin-top: 1.5rem;
}

.about-strengths h3 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    color: #2c3e50;
}

.about-strengths p {
    color: #6b7280;
    font-size: 1.05rem;
    font-weight: 500;
}

@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .about-activities-work {
        flex-direction: column;
        gap: 1.5rem;
    }
}

.projects-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    max-width: 1000px;
    margin: 2.5rem auto 3rem auto;
    padding: 2.5rem 2rem 2rem 2rem;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-header h1 {
    font-family: 'MuseoModerno', cursive;
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 0.7rem;
}

.page-header .subtitle {
    font-size: 1.15rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .projects-container {
        max-width: 98vw;
        padding: 1.2rem 0.5rem;
    }
}

.academic-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    max-width: 1000px;
    margin: 2.5rem auto 3rem auto;
    padding: 2.5rem 2rem 2rem 2rem;
}

.academic-logos {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.academic-logo {
    height: 7rem;
    width: auto;
    object-fit: contain;
    background: #f4f4f4;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(44, 62, 80, 0.06);
    padding: 0.5rem 1rem;
}

.academic-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.academic-text {
    flex: 1 1 350px;
    min-width: 300px;
}

.academic-section {
    margin-bottom: 2.5rem;
}

.academic-section h2 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.academic-section ul {
    margin-left: 1.5rem;
    color: #333;
    font-size: 1rem;
    line-height: 1.7;
}

.academic-section ul li {
    margin-bottom: 0.5rem;
}

.academic-images {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.academic-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
    background: #f4f4f4;
    box-shadow: 0 1px 4px rgba(44, 62, 80, 0.08);
    padding: 0.5rem;
}

@media (max-width: 900px) {
    .academic-container {
        max-width: 98vw;
        padding: 1.2rem 0.5rem;
    }

    .academic-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .academic-logos {
        gap: 1rem;
    }

    .academic-img {
        width: 240px;
        height: 240px;
    }
}
