:root {
    --primary-blue: #0056b3;
    --secondary-blue: #003366;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 86, 179, 0.85);
    color: white;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    transition: all 0.4s ease-in-out;
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: scale(1);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
}

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-gray);
    scroll-behavior: smooth;
    padding-top: 76px;
}

/* Header Styles */
.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 50px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                url('../images/ndt-card.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    display: flex;
    align-items: center;
    padding: 6rem 0;
}

/* Core Values Section */
.value-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

/* About Section */
.about-card {
    padding: 2rem;
    border-radius: 10px;
    background: var(--light-gray);
}

/* Services Section */
.service-card {
    height: 100%;
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 2rem;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Achievements */
.achievement-timeline {
    position: relative;
    padding: 2rem 0;
}

.achievement-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Contact Form */
.contact-form {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
}

.contact-info-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.contact-info-card i {
    color: var(--primary-blue);
}

.contact-info-card h3 {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.contact-info-card h4 {
    color: var(--dark-gray);
}

.contact-info-card p {
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--secondary-blue);
    color: white;
    padding: 3rem 0;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    color: var(--light-gray);
}

/* Responsive Design */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
        padding: 4rem 0;
    }
    
    .value-card, .about-card, .service-card {
        margin-bottom: 1rem;
    }

    .achievement-timeline {
        padding: 1rem;
    }

    .achievement-card {
        margin: 1rem 0;
    }
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.gallery-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-section .row {
    margin: 0 -15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 2rem;
    cursor: pointer;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
    background: white;
}

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

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 86, 179, 0.8);
    color: white;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1050;
    padding: 2rem;
}

.gallery-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-modal-content {
    max-width: 800px;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
}

.gallery-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--dark-gray);
    cursor: pointer;
}

@media (max-width: 768px) {
    .gallery-item img {
        height: 200px;
    }

    .gallery-modal {
        padding: 1rem;
    }

    .gallery-modal-content {
        padding: 1rem;
    }
}

/* Clients Section */
.client-logo-scroll {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 1rem 0;
}

.client-logo-scroll .logos {
    display: inline-block;
    animation: scroll 20s linear infinite;
}

.client-logo-scroll .logos img {
    height: 60px;
    margin: 0 40px;
    vertical-align: middle;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.client-logo-scroll .logos img:hover {
    filter: grayscale(0%);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.certification-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    margin: 0 auto;
    max-width: 250px;
}

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

.certification-item i {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.certification-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.certification-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--dark-gray);
}