/* Base Styles & Typography */
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #1a1a1a;
}

p {
    font-weight: 400;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

/* Custom Colors (Improved Palette) */
:root {
    --primary-blue: #0d52a1;
    --secondary-blue: #1e3a8a;
    --light-blue-bg: #e0f2fe;
    --light-gray-bg: #f8f9fa;
    --dark-text: #212529;
    --medium-text: #495057;
    --rf-color: #008bc0;
    --emc-color: #f67a1c;
    --pcb-color: #1fae66;
    --photonics-color: #197e3f;
    --satnow-color: #2058bf;
    --pe-color: #620f87;
    --buildbot-color: #469bd5;
}

.text-primary-blue {
    color: var(--primary-blue);
}

.text-secondary-blue {
    color: var(--secondary-blue);
}

.bg-light-blue {
    background-color: var(--light-blue-bg);
}

.bg-light-gray {
    background-color: var(--light-gray-bg);
}

.text-dark {
    color: var(--dark-text);
}

.text-muted {
    color: var(--medium-text);
}

/* General Enhancements */
.shadow-sm-hover:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease-in-out;
}

.transition {
    transition: all 0.3s ease-in-out;
}

.rounded-lg {
    border-radius: 0.5rem !important;
}

/* Header */
header {
    border-bottom: 1px solid #eee;
}

.hover-primary:hover {
    color: var(--primary-blue) !important;
}

/* Hero Section */
.hero-background {
    background-image: url('/image/17.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

    .hero-background::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.65);
        z-index: 0;
    }

    .hero-background .container {
        position: relative;
        z-index: 2;
    }

    .hero-background h1 {
        font-size: 3.5rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
        color: #fff;
    }

    .hero-background h5 {
        font-size: 1.25rem;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
        color: #f0f0f0;
    }

/* Canvas Overlay in Hero */
#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Our Network Section - Combined Blocks */
.industry-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 150px;
    max-height: 150px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    /*margin-bottom: 1rem;*/
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .industry-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.1);
    }

    .industry-card .card-image-wrapper {
        flex: 0 0 40%; /* Image takes 40% width */
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0.5rem;
        background-color: #fff;
        box-sizing: border-box;
    }

        .industry-card .card-image-wrapper img {
            max-width: 90%;
            max-height: 120px;
            width: auto;
            height: auto;
            object-fit: contain;
            display: block;
        }

    .industry-card .card-text-content {
        flex: 1;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
        background-color: var(--light-gray-bg);
        box-sizing: border-box;
    }

        .industry-card .card-text-content h3 {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
            line-height: 1.2;
        }

        .industry-card .card-text-content p {
            font-size: 0.85rem;
            margin-bottom: 0.75rem;
            color: var(--medium-text);
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .industry-card .card-text-content .btn {
            padding: 0.3rem 0.8rem;
            font-size: 0.8rem;
            border: 1px solid #ccc;
            color: var(--dark-text);
            background-color: #fff;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            white-space: nowrap;
        }

            .industry-card .card-text-content .btn:hover {
                background-color: var(--primary-blue);
                color: #fff;
                border-color: var(--primary-blue);
                box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            }

    /* Specific Industry Colors for H3 */
    .industry-card .rf {
        color: var(--rf-color);
    }

    .industry-card .emc {
        color: var(--emc-color);
    }

    .industry-card .pcb {
        color: var(--pcb-color);
    }

    .industry-card .photonics {
        color: var(--photonics-color);
    }

    .industry-card .satnow {
        color: var(--satnow-color);
    }

    .industry-card .pe {
        color: var(--pe-color);
    }

    .industry-card .buildbot {
        color: var(--buildbot-color);
    }


/* Contact Form */
.form-floating label {
    color: var(--medium-text);
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(13, 82, 161, 0.25);
}

.btn-dark {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
}

    .btn-dark:hover {
        background-color: var(--primary-blue);
        border-color: var(--primary-blue);
    }


    .address-section h3 {
        color: #061f64;
    }

.address-section p {
    font-size: 18px;
    display: flex;
    align-items: start;
    justify-content: flex-start;
}

    .address-section p i{
        margin-top:5px;
    }

.address-section a {
    color: #0d52a1;
}


    /* Footer */
    footer {
        background-color: #212529 !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    footer p {
        color: #ced4da !important;
        margin-bottom: 0;
        font-size: 0.9rem;
    }

/* Responsive Adjustments */
@media (max-width: 575px) {
    .hero-background {
        padding: 70px 0;
    }

        .hero-background h1 {
            font-size: 2.5rem;
        }

        .hero-background h5 {
            font-size: 1rem;
        }

    .industry-card {
        flex-direction: column;
        min-height: auto;
        max-height: none;
        margin-bottom:0.5rem;
    }

        .industry-card .card-image-wrapper {
            flex: none;
            width: 100%;
            padding: 1rem;
            height: 150px;
        }

            .industry-card .card-image-wrapper img {
                max-width: 100%;
                max-height: 120px;
            }

        .industry-card .card-text-content {
            flex: none;
            width: 100%;
            padding: 1.5rem;
            text-align: center;
            align-items: center;
            order:1;
        }

            .industry-card .card-text-content h3 {
                font-size: 1.1rem;
                margin-bottom: 0.3rem;
            }

            .industry-card .card-text-content p {
                font-size: 0.8rem;
                margin-bottom: 0.5rem;
                -webkit-line-clamp: 4;
            }

            .industry-card .card-text-content .btn {
                font-size: 0.75rem;
                padding: 0.2rem 0.6rem;
            }
    /* Remove order-md classes as they're no longer needed with single card structure */
    .order-md-1, .order-md-2 {
        order: initial !important;
    }
}

@media (max-width: 480px) {
    .hero-background {
        padding: 50px 0;
    }

        .hero-background h1 {
            font-size: 2rem;
        }
}
