/*
   Rev. Dr. Tumuhimbise Jasper Website
   Main Stylesheet - Bootstrap Enhanced
*/

:root {
    --primary-color: #0a5a72;
    --secondary-color: #e67e22;
    --dark-color: #2c3e50;
    --light-color: #f5f8fa;
    --text-color: #333;
    --transition: all 0.3s ease;
}

/* ============= Base Styles ============= */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #074559;
    border-color: #074559;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    position: relative;
}

.section-divider {
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 15px auto 25px;
}

/* ============= Navigation ============= */
.navbar {
    padding: 15px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.3rem;
}

.nav-cta-btn {
    margin-left: 1rem !important;
    padding: 8px 20px !important;
    border-radius: 25px !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 90, 114, 0.3);
    color: white !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* ============= Hero Section ============= */
.hero {
    height: 100vh;
    min-height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/IMG_2674.JPG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* ============= About Section ============= */
.about-img {
    height: 100%;
    overflow: hidden;
}

.about-img img {
    transition: transform 0.5s ease;
}

.about-img:hover img {
    transform: scale(1.05);
}

.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(10, 90, 114, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white !important;
    font-size: 1rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* ============= Resume Section ============= */
.nav-pills .nav-link {
    color: var(--text-color);
    border-radius: 30px;
    padding: 8px 20px;
    margin: 0 5px;
    font-weight: 500;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.timeline {
    position: relative;
    padding: 0;
    list-style: none;
    margin: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background-color: #e9ecef;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    padding-bottom: 30px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 4px solid white;
    box-shadow: 0 0 0 2px rgba(10, 90, 114, 0.2);
}

.project-card {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: var(--transition);
}

.project-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

/* ============= Books Section ============= */
.book-img {
    max-height: 400px;
    overflow: hidden;
}

/* ============= Videos Section ============= */
.video-wrapper {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    overflow: hidden;
}

/* ============= Contact Section ============= */
.contact-icon {
    font-size: 1.25rem;
}

.social-links .social-icon {
    margin-right: 10px;
}

.form-message {
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 500;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============= Footer ============= */
footer a {
    transition: var(--transition);
}

footer a:hover {
    color: white !important;
}

footer .social-icon {
    background-color: rgba(255, 255, 255, 0.1);
}

footer .social-icon:hover {
    background-color: var(--primary-color);
}

/* ============= Animation Classes ============= */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* ============= Responsive Styles ============= */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline-marker {
        width: 14px;
        height: 14px;
        top: 5px;
    }
}

@media (max-width: 575.98px) {
    .nav-pills .nav-link {
        padding: 6px 12px;
        margin: 0 2px;
        font-size: 0.9rem;
    }
}