/* Color Palette */
:root {
    --primary-color: #003366; /* Deep blue for headers and accents */
    --secondary-color: #e9982f; /* Orange for highlights */
    --background-light: #f8f9fa; /* Light background */
    --text-dark: #333; /* Dark text */
    --text-light: #666; /* Lighter text for descriptions */
    --shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Industries Section */
.industries-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0;
    background: var(--background-light);
    border-radius: 12px;
}

/* Industry Card */
.industry-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0; /* Subtle border */
}

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

/* Entry Animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered Animation Delays */
.industry-card:nth-child(1) { animation-delay: 0.3s; }
.industry-card:nth-child(2) { animation-delay: 0.6s; }
.industry-card:nth-child(3) { animation-delay: 0.9s; }

/* Card Layout */
.industry-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Image Gallery */
.card-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
}

.card-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 2px solid #e0e0e0;
}

.card-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Video Styling */
.card-video, .card-video-large {
    width: 100%;
    max-width: 90%;
    margin: auto;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 2px solid #e0e0e0;
}

.card-video {
    height: 550px;
}

.card-video-large {
    max-width: 40%;
    height: 450px;
}

.card-video:hover, .card-video-large:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Text Section */
.card-bottom {
    padding: 25px;
    text-align: center;
    background: linear-gradient(180deg, #f8f9fa, #ffffff); /* Subtle gradient */
    border-top: 1px solid #e0e0e0;
}

.card-bottom h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.card-bottom p {
    color: var(--text-light);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Full-Screen Modal */
.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fullscreen-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.3s ease;
    cursor: zoom-out;
    margin: auto;
    margin-top: 5vh;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
}

.close-modal img {
    width: 30px;
    height: 30px;
    filter: invert(1); /* Make the close icon white */
}

.close-modal:focus {
    outline: 2px solid #007BFF;
    outline-offset: 2px;
}

.card-video:focus, .card-video-large:focus {
    outline: 2px solid #007BFF;
    outline-offset: 2px;
}

.image-caption {
    color: white;
    margin-top: 20px;
    font-size: 1.1em;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 20px;
    border-radius: 20px;
    font-style: italic;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .industry-card {
        padding: 15px;
    }

    .card-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .card-gallery img {
        height: 100px;
        border-width: 1px;
    }

    .card-bottom h3 {
        font-size: 1.2rem;
    }

    .card-bottom p {
        font-size: 0.9rem;
    }

    .card-video {
        height: 300px;
    }

    .card-video-large {
        max-width: 90%;
        height: 250px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 80%;
    }

    .close-modal {
        top: 10px;
        right: 20px;
    }

    .image-caption {
        font-size: 0.9em;
        padding: 5px 10px;
    }
}

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

    .card-gallery img {
        height: 150px;
    }

    .card-video {
        height: 200px;
    }

    .card-video-large {
        height: 150px;
    }

    .modal-content {
        max-height: 70%;
    }
}

/* Footer Styling */
.site-footer {
    background: var(--primary-color);
    color: white;
    padding: 40px 0;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 10px;
    font-size: 1rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.social-icons a:hover img {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 20px;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-section h3 {
        font-size: 1.1em;
    }

    .footer-section li {
        font-size: 0.9em;
    }
}