* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    background: #f5f5f5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 100px;
    margin-bottom: 30px;
}

/* NAVBAR */
.menubar.active > .logo {
    padding: 20px;
}

.menubar.active > .logo > h5 {
    font-size: clamp(0.8rem, 2vw, 1rem);
    font-weight: bold;
}

/* NAVBAR END */

.top-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.mission-vision {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-out;
}

.team-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.5s ease-out;
}

.bottom-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-out;
}

h2 {
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    color: #2c3e50;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #3498db;
    display: inline-block;
}

.section-header h2 {
    margin-bottom: 0px;
}

.gallery-container p {
    color: white;
    margin-bottom: 1rem;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    text-align:center;
}

ul {
    list-style-position: inside;
    color: #34495e;
    padding-left: 1rem;
}

li {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.team-members {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-flow: wrap;
    gap: 1.5rem;
}

.team-member {
    display: flex;
    flex-direction: column;
    width: 30%;
    min-width: 175px;
    align-items: center;
    align-self: stretch;
    gap: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    background: #f8f9fa;
    transition: transform 0.3s ease;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
        rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

.bottom-content .team-member {
    width: 15%;
}

.team-member:hover {
    transform: translateY(-10px);
    background: #e9ecef;
}

.member-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    background: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.member-info {
    flex: 1;
    text-align: center;
}

.member-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.member-position {
    color: #7f8c8d;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .top-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section {
        padding: 1.5rem;
    }

    .team-member {
        flex-direction: column;
        text-align: center;
    }

    .member-image {
        width: 120px;
        height: 120px;
    }
}

/* COMPLETED PROJECTS */

.gallery-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #1f2937;
    font-size: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0 4rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px,
        rgba(0, 0, 0, 0.22) 0px 15px 12px;
    height: 300px;
}

.gallery-item.docs {
    box-shadow: none;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-content {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    color: white;
    padding: 1rem;
    transition: bottom 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-content {
    bottom: 0;
}

.gallery-title-text {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    text-align:center;
}

.gallery-description {
    font-size: 0.9rem;
    line-height: 1.4;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}

.gallery-item.active .gallery-description {
    max-height: 200px;
    opacity: 1;
    margin-top: 0.5rem;
}

/* Loading animation */
.gallery-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .gallery-item {
        height: 100%;
    }

    .gallery-title-text {
        font-size: 1.1rem;
    }

    .gallery-description {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-title {
        font-size: 1.5rem;
    }
}

/* CSS of the section */
.section {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
    padding-right: 10px;
    padding-left: 10px;
}

.section-header:hover {
    background-color: #f8fafc;
}

.arrow {
    width: 12px;
    height: 12px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.section.active .arrow {
    transform: rotate(-135deg);
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: white;
}

.section.active .section-content {
    max-height: 500px; /* Adjust this value based on your content */
}

.section-content p {
    margin: 0;
    padding: 16px;
    line-height: 1.6;
    color: #4a5568;
}

.section-content ul {
    margin: 0;
    padding: 16px 16px 16px 40px;
    list-style-type: disc;
    color: #4a5568;
}

.section-content li {
    margin-bottom: 8px;
}

.section-content li:last-child {
    margin-bottom: 0;
}

/* Documents Gallery */
.gallery-container {
    margin-top: 0;
    margin-bottom: 0px;
    padding-bottom: 0px;
    display: flex;
    flex-direction: column;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 0;
    list-style: none;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .gallery-item img {
        height: 100%;
        object-position: center;
    }
}

.page-title {
    text-align: center;
    padding: 1rem 0;
    background: linear-gradient(135deg, #f0f4f8 0%, #cedbe7 100%);
    margin-bottom: 3rem;
}

.page-title p {
    color: #666;
}

.page-title h1 {
    color: #2c3e50;
    font-size: 2.5rem;
}

.contact-banner {
    background: linear-gradient(135deg, #2c3e50 0%, #c0392b 100%);
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
}

.contact-banner h2 {
    margin-bottom: 1rem;
    color: whitesmoke;
}

.contact-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.contact-button:hover {
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}
