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

body {
    font-family: 'Arial', sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

/* Header with background image */
header {
    background-image: url('assets/header-photo.jpg');
    background-size: cover;
    background-position: center;
    height: 200px;
    width: 100%;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.header-text {
    position: absolute;
    bottom: 20px;
    left: 50px;
    z-index: 1;
    color: white;
}

.header-text h1 {
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    font-weight: 600;
}

.header-text span {
    font-weight: 700;
}

.header-text small {
    font-size: 1rem;
    font-weight: 400;
    margin-left: 10px;
    opacity: 0.9;
}

/* Navigation Bar */
nav {
    background-color: white;
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

nav a {
    color: #003366;
    text-decoration: none;
    margin: 0 20px;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: rgba(0, 102, 204, 0.1);
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.3);
}

/* Main container: aligns all content to the right (used on multi-section pages) */
main {
    display: flex;
    justify-content: flex-end;
    padding: 20px 20px;
}

/* Sections inside main (About, Projects, Contact) */
main>section {
    max-width: 700px;
    width: 100%;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border-radius: 10px;
}

/* Section titles */
section h2 {
    font-size: 2rem;
    color: #003366;
    margin-bottom: 10px;
    border-bottom: 2px solid #003366;
    padding-bottom: 5px;
}

/* Project cards */
.project {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #fafafa;
    transition: transform 0.2s ease;
}

.project:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.project h3 {
    margin-bottom: 8px;
    color: #00509e;
}

/* Footer */
footer {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9rem;
    margin-top: 40px;
}

/* Centered layout for the About page */
.about-centered {
    max-width: 1100px;
    margin: 40px auto;
    text-align: center;
    padding: 5x;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.about-centered h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: #003366;
}

.about-centered p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Responsive behavior */
@media (max-width: 768px) {
    main {
        justify-content: center;
        padding: 20px;
    }

    nav a {
        display: inline-block;
        margin: 10px 10px;
    }

    header h1 {
        font-size: 2.2rem;
        text-align: center;
    }

    .header-text {
        left: 20px;
        bottom: 15px;
    }
}
.about-with-photo {
    display: flex;
    max-width: 1200px;
    width: 90%;
    margin: 40px auto;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    align-items: center;
    gap: 40px;
}

.about-image img {
    width: 200px;
    height: 260px;
    object-fit: cover;
    border-radius: 50% / 40%;
    /* Oval shape */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.about-text {
    flex: 1;
    min-width: 0;
}

.about-text h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: #003366;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Responsive tweak */
@media (max-width: 1024px) {
    .about-with-photo {
        width: 95%;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .about-with-photo {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        width: 95%;
        gap: 20px;
    }

    .about-image img {
        width: 160px;
        height: 200px;
    }

    .about-text {
        text-align: left;
        /* Keep text left-aligned even when container is centered */
    }
}

.resume-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.resume-section h2 {
  font-size: 2rem;
  color: #003366;
  border-bottom: 2px solid #003366;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.job {
  margin-bottom: 30px;
}

.job h3 {
  color: #00509e;
  font-size: 1.25rem;
}

.job-location {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}

.job ul {
  list-style: disc;
  padding-left: 20px;
}

.job ul li {
  margin-bottom: 8px;
}

.education {
  margin-top: 20px;
}

.education h3 {
  font-size: 1.2rem;
  color: #00509e;
}

.education p {
  margin: 4px 0;
}
/* experiences */
.resume-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.resume-section h2 {
    font-size: 2rem;
    color: #003366;
    border-bottom: 2px solid #003366;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.job {
    margin-bottom: 30px;
}

.job h3 {
    color: #00509e;
    font-size: 1.25rem;
}

.job-location {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.job ul {
    list-style: disc;
    padding-left: 20px;
}

.job ul li {
    margin-bottom: 8px;
}

.education {
    margin-top: 20px;
}

.education h3 {
    font-size: 1.2rem;
    color: #00509e;
}

.education p {
    margin: 4px 0;
}

/* Contact */
.contact-section {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.contact-section h2 {
    font-size: 2rem;
    color: #003366;
    border-bottom: 2px solid #003366;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-item i {
    margin-right: 15px;
    font-size: 1.4rem;
    color: #00509e;
    background-color: #eaf3ff;
    padding: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item a {
    text-decoration: none;
    color: #003366;
    font-weight: bold;
}

.contact-item a:hover {
    text-decoration: underline;
}
.contact-item img.icon {
    width: 40px;
    height: 40px;
    object-fit: cover;
    /* Crop if needed */
    margin-right: 15px;
    border-radius: 50%;
    background-color: #eaf3ff;
    padding: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/*Projects */
.projects-section {
    max-width: 1100px;
    margin: 60px auto;
    text-align: center;
}

.projects-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.project-card {
    background-color: #ffffff;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    width: 360px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: #bbb;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.07);
}

.project-card h3 {
    color: #003366;
    margin-bottom: 10px;
}

.project-card p {
    font-size: 0.95rem;
    color: #555;
}

.project-card.empty {
    opacity: 0.5;
    pointer-events: none;
}

/* Modal styling */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    color: #003366;
    margin-bottom: 15px;
}

.modal-content p {
    line-height: 1.6;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #000;
}

.project-graphs {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.project-graphs img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}
/* Testimonials Section */ 
.testimonials-section {
    max-width: 1200px;
    width: 90%;
    margin: 10px auto;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 12px;
    text-align: center;
}

.testimonials-section h2 {
    font-size: 2rem;
    color: #003366;
    margin-bottom: 30px;
    border-bottom: 2px solid #003366;
    padding-bottom: 10px;
    display: inline-block;
}

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

.testimonial-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}

.testimonial-link:hover {
    transform: translateY(-3px);
}

.testimonial-card {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: left;
    position: relative;
    border: 1px solid #e1e5e9;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.testimonial-link:hover .testimonial-card {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #0077b5;
}

.testimonial-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 12px;
}

.recommender-info {
    flex: 1;
    min-width: 0;
}

.recommender-info strong {
    display: block;
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.recommender-info span {
    display: block;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.3;
    margin-bottom: 4px;
}

.recommendation-date {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

.linkedin-logo {
    flex-shrink: 0;
    margin-left: 10px;
}

.linkedin-logo img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.testimonial-link:hover .linkedin-logo img {
    opacity: 1;
}

.testimonial-card blockquote {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
    font-style: normal;
    border: none;
    padding: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-card blockquote {
        font-size: 0.9rem;
    }
}