/* --- GLOBAL RESET & TYPOGRAPHY --- */
body {
    font-family: 'Roboto', sans-serif;
    color: #555;
    line-height: 1.6;
    background-color: #f8f9fa; /* Updated to match your course page preference */
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #333;
}

a {
    text-decoration: none;
    color: #0d6efd;
    transition: all 0.3s ease;
}

a:hover {
    color: #0a58ca;
}

/* --- NAVBAR --- */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}
.nav-link {
    font-weight: 500;
    color: #333 !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-left: 15px;
}
.nav-link:hover, .nav-link.active {
    color: #0d6efd !important;
}

/* --- HERO SECTIONS --- */
/* Main Home Hero */
#home {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

/* Sub-page Headers */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 120px 0 60px;
    color: white;
    text-align: center;
    margin-bottom: 40px;
}

.intro-sub {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 20px;
}

.intro h1 {
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 1rem;
}

.social-icons {
    margin-top: 30px;
}

.social-icons a {
    color: white;
    font-size: 1.8rem;
    margin: 0 15px;
}
.social-icons a:hover {
    color: #0d6efd; 
    transform: scale(1.1);
}

/* --- ANIMATIONS --- */
.mouse-icon {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 15px;
    opacity: 0.8;
}

.wheel {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 5px; opacity: 1; }
    100% { top: 25px; opacity: 0; }
}

/* --- SECTIONS GENERAL --- */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #0d6efd;
}

/* --- ABOUT --- */
.profile-photo {
    width: 100%;
    max-width: 250px;
    border-radius: 50%;
    border: 5px solid #f0f0f0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.personal-info {
    text-align: center;
    margin-top: 15px;
}
.personal-info ul {
    list-style: none;
    padding: 0;
}
.personal-info li {
    margin-bottom: 8px;
    color: #555;
}

.list-check {
    list-style: none;
    padding-left: 0;
}
.list-check li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}
.list-check li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #0d6efd;
}

/* --- RESUME TIMELINE --- */
.resume-section {
    background-color: #f8f9fa;
}

.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}
.timeline:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    margin-left: -1.5px;
    background-color: #dcdcdc;
}
.timeline > li {
    position: relative;
    margin-bottom: 50px;
    min-height: 50px;
}
.timeline > li:before, 
.timeline > li:after {
    content: " ";
    display: table;
}
.timeline > li:after {
    clear: both;
}
.timeline > li .timeline-image {
    z-index: 100;
    position: absolute;
    left: 50%;
    width: 120px; 
    height: 50px; 
    margin-left: -60px;
    border: 3px solid #0d6efd;
    border-radius: 50px;
    text-align: center;
    color: #333;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1;
    box-shadow: 0 0 0 7px #f8f9fa;
}
.timeline > li > a {
    display: block;
    text-decoration: none;
    color: inherit;
}
.timeline > li .timeline-panel {
    float: left;
    width: 42%;
    padding: 20px;
    text-align: left;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    position: relative;
}
.timeline > li .timeline-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #0d6efd;
}
.timeline > li.timeline-inverted .timeline-panel {
    float: right;
}
.timeline > li .timeline-panel:before {
    content: " ";
    display: inline-block;
    position: absolute;
    top: 15px;
    right: -15px;
    border-top: 15px solid transparent;
    border-right: 0 solid #d4d4d4;
    border-bottom: 15px solid transparent;
    border-left: 15px solid #d4d4d4;
}
.timeline > li .timeline-panel:after {
    content: " ";
    display: inline-block;
    position: absolute;
    top: 16px;
    right: -14px;
    border-top: 14px solid transparent;
    border-right: 0 solid #fff;
    border-bottom: 14px solid transparent;
    border-left: 14px solid #fff;
}
.timeline > li.timeline-inverted .timeline-panel:before {
    right: auto;
    left: -15px;
    border-left-width: 0;
    border-right-width: 15px;
    border-left-color: #d4d4d4;
    border-right-color: #d4d4d4;
}
.timeline > li.timeline-inverted .timeline-panel:after {
    right: auto;
    left: -14px;
    border-left-width: 0;
    border-right-width: 14px;
    border-left-color: #fff;
    border-right-color: #fff;
}
.timeline-heading h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #333;
    font-weight: 700;
}
.timeline-heading h4 {
    margin-top: 5px;
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}
.timeline-body p {
    margin-bottom: 0;
    margin-top: 10px;
    color: #777;
    font-size: 0.9rem;
}
.timeline-logo {
    max-height: 40px;
    max-width: 100px;
    margin-bottom: 10px;
    display: block;
}

/* --- OTHER COMPONENT STYLES --- */
.bg-light-gray {
    background-color: #f8f9fa;
}

/* Language Cards */
.lang-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px 15px;
    transition: all 0.3s ease;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.lang-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}
.lang-card h6 {
    margin: 0;
    flex-grow: 1;
    text-align: left;
    padding-left: 10px;
}
.lang-level {
    display: inline-block;
    background-color: #0d6efd;
    color: white;
    padding: 2px 10px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-top: 0;
}

/* Publications */
.publication-section-title {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}
.publication-item {
    margin-bottom: 2px; 
    padding-bottom: 2px; 
    border-bottom: 1px solid #eee;
}
.publication-item:last-child {
    border-bottom: none;
}

/* Contact Buttons */
.contact-btn {
    margin: 10px;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s;
}
.btn-email { background-color: #ea4335; color: white; border: none; }
.btn-facebook { background-color: #1877f2; color: white; border: none; }
.contact-btn:hover { color: #fff; transform: translateY(-3px); opacity: 0.9; }

/* Projects */
.project-card {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background-color: #1a1e23;
    color: #fff;
    padding: 40px 0 20px;
    text-align: center;
    margin-top: 60px;
}
.footer-nav {
    margin-bottom: 20px;
    padding: 0;
    list-style: none;
}
.footer-nav li {
    display: inline;
    margin: 0 10px;
}
.footer-nav a {
    color: #ccc;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 500;
}
.footer-nav a:hover {
    color: #0d6efd;
}

/* --- COURSES PAGE STYLES --- */
.course-section-title {
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 10px;
    margin-bottom: 30px;
    margin-top: 40px;
    font-size: 1.5rem;
    font-weight: 700;
}

.course-card {
    background: #fff;
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid #0d6efd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.course-year {
    font-size: 0.85rem;
    color: #777;
    font-weight: 700;
    margin-bottom: 2px;
}

.course-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #333;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.course-org {
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
}

.cert-link {
    font-size: 0.9rem;
    font-weight: 500;
}

.cert-link i {
    margin-right: 5px;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .timeline:before { left: 60px; }
    .timeline > li .timeline-image { left: 60px; width: 100px; height: 40px; margin-left: -50px; font-size: 0.75rem; }
    .timeline > li .timeline-panel { float: right; width: calc(100% - 130px); padding: 15px; margin-left: 20px; }
    .timeline > li.timeline-inverted .timeline-panel { float: right; }
    .timeline > li .timeline-panel:before { right: auto; left: -15px; border-left-width: 0; border-right-width: 15px; border-right-color: #d4d4d4; }
    .timeline > li .timeline-panel:after { right: auto; left: -14px; border-left-width: 0; border-right-width: 14px; border-right-color: #fff; }
    .footer-nav li { display: block; margin: 10px 0; }
}
