* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    background-image: url('https://wallpaperaccess.com/full/1930875.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    color: #333;
    margin: 0;
    padding: 0;
    animation: fadeInEffect 0.3s ease-in, backgroundAnimation 15s infinite alternate;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.logo-container {
    margin-top: -20px;
    width: 90vw;
    margin-left: calc(-50vw + 50%);
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    padding: 0; 
    overflow: hidden; 
}

.logo {
    width: 100%;
    height: auto;
    max-height: 170px;
    display: block;
    margin: 0 auto;
    padding: 5px 0;
    
}
.header {
    background-color: #031a4e;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    max-height: 90px;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}
.header h1 {
    font-size: 2em !important;
    margin: 0 !important;
    color: white;
    text-align: center; 
}

.header-links {
    display: flex;
    gap: 20px;
}

.header p {
    font-size: 1.2rem;
    color: #6b7280;
    margin-top: 0;
    margin-bottom: 5px; /* Adjust spacing below the tagline */
}

.filter-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.filter-group {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.custom-select select {
    padding: 12px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 350px; 
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.custom-select select:hover {
    border-color: #3498db;
}

.custom-select select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.submit-btn {
    background: #2563eb;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #1e40af;
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(1px);
}


.review-btn {
    position: fixed;
    top: 10px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #2563eb;
    color: white;
    padding: 6px 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.review-btn:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
}


.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}


.star-rating {
    display: flex;
    gap: 4px;
}

.star {
    font-size: 24px;
    cursor: pointer;
    color: #d1d5db;
    transition: color 0.2s ease;
}

.star.active,
.star:hover {
    color: #fbbf24;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.cancel-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background-color: #e2e8f0;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-btn:hover {
    background-color: #cbd5e1;
}


.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}


.projects-summary {
    text-align: center;
    margin-bottom: 20px;
    padding: 12px 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Ensure side-by-side layout */
    gap: 20px; 
    padding: 20px 0;
    width: 100%;
    opacity: 0.96;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInEffect {
    from {
        opacity: 0;
    }
    to {
        opacity: 2;
    }
}

@keyframes backgroundAnimation {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 50% 50%;
    }
    100% {
        background-position: 100% 100%;
    }
}


.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover; 
    display: block; 
    margin-top: -1px; 
    margin: 0;
    padding: 0;
    position: relative;
    top: 0;
    left: 0;
}

.project-card {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    width: 100%; 
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    position: relative;
    padding-top: 0; 
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-content {
    padding: 20px;
}

.project-title {
    font-size: 1.2em;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}

.project-info {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.project-description {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.5;
}


.project-card-header {
    padding: 10px 15px 0; /* Reduce bottom padding */
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    position: relative; /* Ensure proper stacking context */
    z-index: 1; /* Keep the header above the image */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 8px 15px;
    background-color: rgba(248, 249, 250, 0.9); /* Semi-transparent background */
    z-index: 2; /* Keep header above image */
    border-bottom: none;
}

.project-department {
    color: #2563eb;
    font-weight: 600;
    font-size: 0.9rem;
}

.project-year {
    margin-top: 15px;
    color: #666;
    font-size: 0.85rem;
    text-align: right;
}

.no-projects {
    text-align: center;
    padding: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.no-projects h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.no-projects p {
    color: #7f8c8d;
}

.add-project-box {
    position: fixed;
    bottom: 25px;
    right: 10px;
    background-color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    color: #333;
    text-align: center;
    z-index: 1000;
}

.add-project-box a {
    color: #2563eb;
    text-decoration: none;
    font-weight: bold;
}

.add-project-box a:hover {
    text-decoration: underline;
}

.footer-box {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2563eb;
    color: #fff;
    text-align: center;
    padding: 3px 0;
    font-size: 0.9rem;
    z-index: 999;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.view-reviews-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.9rem;
}

.view-reviews-btn:hover {
    background-color: #0056b3;
}

.reviews-container {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.review-item {
    margin-bottom: 15px;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.review-item:last-child {
    border-bottom: none;
}


#viewReviewsModal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%; 
  max-width: 500px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 2000; 
  padding: 15px; 
  overflow-y: auto; 
  max-height: 70%; 
}

#viewReviewsModal .close-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 5px;
  margin-top: 15px;
}

#viewReviewsModal .close-btn:hover {
  background-color: #0056b3;
}

.about-us {
    margin-top: 1.5rem;
    padding: 5rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
    color: #374151;
}

.about-us h3 {
    margin-bottom: 0.5rem;
    color: #2563eb;
    font-size: 1.2rem;
}

.about-us p {
    margin: 0.5rem 0;
    line-height: 1.5;
}

.about-us a {
    color: #2563eb;
    text-decoration: none;
}

.about-us a:hover {
    text-decoration: underline;
}


.about-us-link {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.about-us-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}


#aboutUsModal {
    font-family: 'times new roman', sans-serif;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#aboutUsModal .modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#aboutUsModal .modal-content h2 {
    margin-bottom: 15px;
    color: #2563eb;
}

#aboutUsModal .modal-content p {
    margin: 10px 0;
    line-height: 1.5;
    color: #374151;
}

#aboutUsModal .modal-content a {
    color: #2563eb;
    text-decoration: none;
}

#aboutUsModal .modal-content a:hover {
    text-decoration: underline;
}

#aboutUsModal .close-btn {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
}

#aboutUsModal .close-btn:hover {
    background-color: #1e40af;
}

#motiveModal .modal-content {
    text-align: center;
    max-width: 400px;
}

#motiveModal .modal-content {
    text-align: center;
    max-width: 400px;
    margin: 0 auto; /* Center the modal content */
}

#motiveModal h2 {
    color: #2563eb;
    margin-bottom: 15px;
    font-size: 1.8em; /* Adjust font size for better visibility */
    font-family: 'Arial', sans-serif; /* Use a clean font for the heading */
    text-align: center; /* Ensure the heading is centered */
}

.tagline {
    font-family: 'Times New Roman';
    font-size: 1.2em;
    font-weight: 700;
    color: #000000;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    transform: 0;
    margin: 20px 0;
}

/* AI Assistants Section */
.ai-assistants {
    margin-top: 1.5rem;
    padding: 1rem;
}

.ai-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.ai-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s;
    width: 80px;
    text-align: center;
}

.ai-link:hover {
    transform: translateY(-3px);
}

.ai-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    border-radius: 8px;
}

.ai-assistants h3 {
    margin-bottom: 1.5rem; /* Add spacing below the title */
    text-align: center; /* Center the title */
    font-size: 1.2rem; /* Optional: Adjust font size for better readability */
    color: #333; /* Optional: Ensure consistent color */
}

#projectDetailsModal .close-btn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

#projectDetailsModal .close-btn:hover {
    background-color: #ff4d4d;
}

.project-details-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Project Modal Image Container */
.project-modal-image-container {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Project Modal Image */
.project-modal-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

#motiveModal .modal-content {
    text-align: center;
    max-width: 400px;
}

#motiveModal .modal-content {
    text-align: center;
    max-width: 400px;
    margin: 0 auto; /* Center the modal content */
}

#motiveModal h2 {
    color: #2563eb;
    margin-bottom: 15px;
    font-size: 1.8em; /* Adjust font size for better visibility */
    font-family: 'Arial', sans-serif; /* Use a clean font for the heading */
    text-align: center; /* Ensure the heading is centered */
}

/* Motive Modal Close Button – match About Us style */
#motiveModal .motive-close-btn {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

#motiveModal .motive-close-btn:hover {
    background-color: #1e40af;
}

@media (max-width: 1024px) {
    .container {
        padding: 15px;
    }

    .header h1 {
        font-size: 2em;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Adjust for smaller screens */
    }

    .custom-select select {
        width: 300px; /* Increased from 250px */
    }

    .submit-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }
}

@media (max-width: 790px) {
    .container {
        padding: 10px;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Adjust for tablets */
    }

    .custom-select select {
        width: 250px; /* Increased from 200px */
    }

    .submit-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .review-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .star {
        font-size: 20px;
    }
}

@media (max-width: 490px) {
    .header h1 {
        font-size: 1.5em;
    }

    .projects-grid {
        grid-template-columns: 1fr; /* Stack items on small screens */
    }

    .custom-select select {
        width: 100%;
        min-width: 280px; /* Added minimum width */
    }

    .submit-btn {
        width: 100%;
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .modal-content {
        padding: 15px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 14px;
    }

    .star {
        font-size: 18px;
    }

}
