/* General Body Styles */
html, body {
    height: 100%;
    font-family: 'Arial', sans-serif;
    background-color: #f4f7fa;
    color: #333;
    line-height: 1.6;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Navbar Styles */
.navbar {
    background-color: #1d2224 !important;
    width: 100%;
    padding: 15px 0;
    font-size: 1.2rem;
}

.navbar-nav {
    flex-direction: row;
    text-align: center;
    margin: 0 auto;
}

.navbar-nav .nav-item {
    transition: transform 0.3s ease;
}

.navbar-nav .nav-item:hover {
    transform: translateY(-5px);
}

.nav-link {
    color: #f6d51c !important;
    margin: 0 15px;
}

.nav-link:hover {
    color: #613a15 !important;
}

/* Hero Section Styles */
.hero {
    background-color: #387a3a;
    color: #f6d51c;
    padding: 50px 0;
    text-align: center;
    border: 1px solid black;
}

/* Features Section Styles */
.features {
    background-color: #f5f5f5;
    color: #1d2224;
    padding: 20px 0;
}

.feature-box {
    background-color: #ffffff;
    color: #1d2224;
    padding: 20px;
    border: 1px solid #387a3a;
    border-radius: 10px;
    height: 100%;
}

.feature-box h3 {
    color: #387a3a;
}

/* Main Content Styles */
.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
    flex: 1;
}

.projects-list, .blog-section {
    flex: 1 1 calc(50% - 20px);
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

/* Added specific styling for .blog-section to avoid unexpected background color */
.blog-section {
    background-color: #ffffff !important; /* Ensures a white background */
}

.carousel {
    overflow: hidden;
}

.project-image {
    object-fit: contain;
    height: 372px;
    width: 100%;
}

/* Project Item Styles */
.project-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000;
    border-radius: 10px;
    padding: 20px;
    height: 400px;
}

.project-item h3 {
    font-size: 2rem;
    color: #007BFF;
    margin-bottom: 10px;
}

.project-item p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.project-item a {
    font-size: 1rem;
    color: #f6d51c;
    text-decoration: none;
    background-color: #007BFF;
    padding: 10px 20px;
    border-radius: 5px;
}

.project-item a:hover {
    background-color: #0056b3;
}

/* Project Card Styles */
.project-card {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    height: 300px;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.project-card-container {
    width: 100%;
    cursor: pointer;
}

.project-card .card-body {
    background-color: rgba(255, 255, 255, 0.8);      /*this code gives the project card its background */
    padding: 20px;
    border-radius: 10px;
}

.project-content {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    text-align: center;
    width: 100%;
}

.project-content h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.project-content p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.project-content a {
    font-size: 1rem;
    color: #fff;
    background-color: #007BFF;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}

.project-content a:hover {
    background-color: #0056b3;
}

/* Blog Post Body Styles */
.blog-post-body {
    padding: 20px;
    text-align: center;
}

/* Footer Styles */
footer.footer {
    background-color: #1d2224;
    padding: 20px 0;
    color: #f6d51c;
    text-align: center;
    margin-top: auto;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links a {
    color: #f6d51c;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
}

.footer-links a:hover {
    color: #613a15;
}

/* Social Icons in Footer */
.social-icons a {
    margin: 0 15px;
}

.social-icons a i {
    font-size: 3rem; /* Adjusted from 5rem to 3rem */
    color: #f6d51c;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a i:hover {
    color: #613a15;
    transform: scale(1.1);
}

.social-icons {
    padding: 20px 0; /* Reduced padding from 40px to 20px */
    text-align: center;
}

/* Media Query for Responsiveness */

@media (max-width: 768px) {
    /* For tablets and smaller devices */
    .navbar-brand img {
        height: 40px;
        width: 50px;
    }
    .footer {
        flex-direction: column; /* Stack items vertically */
        text-align: center;
    }
}

@media (max-width: 576px) {
    /* For phones */
    .navbar-nav .nav-item {
        transform: none; /* Disable hover effect */
    }
    .navbar-nav {
        flex-direction: column; /* Stack items vertically */
    }
    .footer-bottom img {
        margin-left: 0;
    }
}


.projects-section {
    background-color: #f8f9fa;
}

.project-card {
    border: none;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-image {
    border-radius: 8px 8px 0 0;
    object-fit: contain;   /* contain displays the whole image inside the container regardless of size */
    height: 372px;   /* this changes  the height in the project detail page */
}

.card-title {
    color: #000000;   /*this affects the project card in the homepage and the project list page */
    font-weight: 600;
}

.card-text {
    color: #333333; /* Darker grey color */
    font-size: 0.95rem;

.honeypot {
    display: none;
}

.form-group .form-label {
    font-weight: bold;
}

.form-group .form-control {
    margin-top: 8px;
}


}







