/* General Styles */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

.login-body {
    overflow: hidden;
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Login Page Styles */
.login-container {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.login-form {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    width: 350px;
    z-index: 10;
}

.login-form h2 {
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

/* Logo styles */
.logo-container {
    text-align: right;
    margin-bottom: 35px;
}

.logo-container img {
    max-width: 100%;
    height: auto;
    max-height: 140px;
}

/* Button styles */
.btn-primary {
    background-color: #d6001f !important;
    border-color: #d6001f !important;
	margin-bottom: 8px;
	height: 45px;
	align-items: center;
    justify-content: center;
	text-align:center;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #b5001a !important;
    border-color: #b5001a !important;
}

a.btn.btn-primary.w-100 {
      text-align: center;
    }

.btn-outline-secondary:hover {
    background-color: #d6001f !important;
    border-color: #d6001f !important;
}

/* Project Overview Styles */
.project-card {
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    overflow: hidden;
}

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

.project-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .card-img-top {
    transform: scale(1.05);
}

.project-card .card-title {
    font-weight: 600;
	margin-top: 25px;
}

.project-card .card-text {
    color: #6c757d;
}

.project-card .card-text.description {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #333;
    /* Ensure consistent height with ellipsis for overflow */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 100%; /* Approximately 3 lines of text */
}

/* Gallery Styles */
.gallery-container {
    padding: 20px 0;
}

.gallery-item {
    margin-bottom: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s, opacity 0.3s;
	border-radius: 5px;
}

.gallery-item:hover img {
    opacity: 0.9;
    transform: scale(1.03);
}

/* lightgallery custom styles */
.lg-backdrop {
    background-color: rgba(0, 0, 0, 0.9);
}

.lg-toolbar .lg-icon {
    color: #fff;
}

.lg-outer .lg-thumb-item.active, 
.lg-outer .lg-thumb-item:hover {
    border-color: #d6001f;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .project-card .card-img-top,
    .gallery-item img {
        height: 160px;
    }
    
    .login-form {
        width: 90%;
        max-width: 350px;
    }
}

.mb-4 {
	margin-bottom: 145px;
}

.h1 {
	font-size: 28px;
}

/* Footer links on login page */
.login-footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.login-footer a {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 10px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
}

.login-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Preloader styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(214, 0, 31, 0.2);
    border-top-color: #d6001f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}