body {
    background-color: #f8f9fa;
    transition: background-color 0.6s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.sidebar {
    background-color: #ffffff;
    border-right: 1px solid #e9ecef;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tagline {
    font-size: 0.95rem;
    color: #6c757d;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: #495057;
    transition: color 0.3s ease;
}

.contact-icon:hover {
    color: #0d6efd; /* Bootstrap primary blue */
}


/* --- Navigation Link Styling --- */

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: #495057;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-link i {
    color: #6c757d;
    transition: color 0.3s ease;
}

.nav-link:hover {
    background-color: #f8f9fa;
    color: #212529;
}

.nav-link:hover i {
    color: #212529;
}

.nav-link.active {
    background-color: #eef5ff;
    color: #0d6efd;
    font-weight: 600;
}

.nav-link.active i {
    color: #0d6efd;
}

.main-content {
    margin-left: 280px;
    padding: 2rem;
}


/* --- STYLES FOR ABOUT ME PAGE --- */

.profile-intro h1 {
    font-size: 2.5rem;
    color: #2c3e50;
}
.video-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}
.video-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #34495e;
}
.video-card video {
    border-radius: 6px;
}
.education-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem 1.5rem;
}
.education-item {
    padding: 1rem 0;
}
.education-item:not(:last-child) {
    border-bottom: 1px solid #f1f3f5;
}
.education-item h5 {
    font-weight: 600;
}
.education-item p {
    margin: 0;
    color: #6c757d;
}


/* --- STYLES FOR WORKS & RESEARCH PAGES --- */

/* Grid container for the cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem; /* Space between cards */
}
.project-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.project-image {
    flex: 0 0 220px;
    overflow: hidden;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.project-card:hover .project-image img {
    transform: scale(1.05);
}
.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.project-content h4 {
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.truncated-text {
    color: #555;
    line-height: 1.6;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}
.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1rem 0;
}
.skill-badge {
    background: #eef5ff;
    color: #0056b3;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 16px;
    border: 1px solid #dbe9ff;
}
.card-actions {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}
.toggle-btn, .pdf-btn {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-weight: 500;
    padding: 0;
}
.toggle-btn:hover, .pdf-btn:hover {
    text-decoration: underline;
}

/* --- STYLES FOR MODALS --- */

/* PDF Modal Iframe */
.pdf-modal iframe {
    width: 100%;
    height: 80vh;
    border: none;
}

/* Project Detail Modal */
#projectDetailModal .modal-content {
    border-radius: 12px;
    border: none;
}
#projectDetailModal .modal-header {
    border-bottom: 1px solid #f0f0f0;
}
#projectDetailModal .modal-title {
    font-weight: 600;
}
#modalProjectBody {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    text-align: justify;
}
#modalProjectImage {
    border-radius: 8px;
    margin-bottom: 2rem !important;
    max-height: 400px;
    width: auto;
    object-fit: cover;
}
#modalProjectDescription {
    color: #333;
    line-height: 1.7;
}
#modalProjectDescription strong {
    color: #2c3e50;
    display: block;
    margin-top: 1em;
}