:root {
    --primary: #003366;
    --secondary: #007BFF;
    --accent: #FFD700;
    --light: #f8f9fa;
    --dark: #333;
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--dark);
    padding-top: 80px;
    /* Header height */
    background-color: white;

    overflow-x: hidden;

}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Navigation Bar */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Ensure navbar stays above content */
    background-color: #003366;
}

nav {
    display: flex;
    align-items: center;
    /* Vertical centering */
    justify-content: space-between;
    padding: 15px 0;
    height: 30px;
    /* Set fixed height */
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    /* Match nav height */
}

.logo-img {
    height: 40px;
    /* Adjust based on your logo */
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.site-name {
    color: white;
    margin: 0;
    /* Match nav height */
    font-weight: bold;
    font-size: larger;
}



.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
    /* Ensure links are vertically centered */
    height: 100%;
    list-style: none;
}

.nav-links a {
    color: white;
    padding: 0 15px;
    /* No vertical padding */
    font-size: 1rem;
    font-weight: bold;
    line-height: 60px;
    /* Match nav height */
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgb(42, 94, 173);
    text-decoration: none;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        box-sizing: border-box;
        background: white;
        /* Ensure background is set */
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-10px);
        opacity: 0;
        height: fit-content;
        transition: all 0.3s ease;
        z-index: 999;
        /* Ensure menu is above other elements */
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        background: white !important;
    }

    .nav-links a {
        justify-content: flex-start;
        padding: 10px 15px;
        line-height: normal;
        color: black;
    }

    .nav-links a:hover {
        background: #86b5e7 !important;
    }

    .nav-links li {
        margin-bottom: 15px;
    }
}

/* Sections */
section {
    padding: 40px 0;
}

.section-title {
    color: var(--primary);
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--secondary);
    margin: 15px auto;
}

/* Industries & Products */
.industries-grid,
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.industry-card,
.product-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.industry-card:hover,
.product-card:hover {
    transform: translateY(-5px);
}

/* Industry Cards */
.industry-card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    padding: 30px;
    position: relative;
    overflow: hidden;
    text-align: center;
    /* Staggered delay */
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Icon Container Animation */
.icon-container {
    background: var(--secondary);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    transform: translateY(0);
    animation: iconBounce 1s ease-out;
}

.icon-container:hover {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
}

/* Entrance Animation */
@keyframes entrance {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Icon Bounce Animation */
@keyframes iconBounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }
}

/* Scroll Animation Trigger Class */
.industry-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.industry-icon {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1);
}


.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.contact-card {
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-align: center;
    background: linear-gradient(135deg, white, #f0f0f0);
}

.contact-icon {
    border-radius: 15px;
    margin: 0 auto 20px;
    transition: all 0.3s;
    animation: bounce 1.4s ease-out;
    background-color: var(--secondary);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;

}

.contact-card:hover .contact-icon {
    background: #005bbb;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}


.skip-link {
    position: absolute;
    z-index: 1000;
    background: var(--secondary);
    color: white;
    padding: 8px;
    transform: translateY(-100%);
    transition: transform 0.3s;
}

.skip-link:focus {
    transform: translateY(0);
}


/* Card Styles */
.product-card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    padding: 30px;
    position: relative;
    overflow: hidden;
    text-align: center;

}


/* Navigation Bar */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav a {
    color: #333;
    /* Dark text on white background */
}

nav a:hover {
    background: rgb(14, 71, 146);
}

.menu-toggle {
    color: #333;
}


.product-icon img {
    max-width: 40px;
    max-height: 40px;
    filter: brightness(0) invert(1);
    /* White icon on colored background */
}


/* Add this to your existing media query */
@media (max-width: 768px) {
    .product-icon {
        width: 50px;
        height: 50px;
    }

    .product-icon img {
        max-width: 35px;
        max-height: 35px;
    }
}


.client-carousel {
    position: relative;
    overflow: hidden;
    margin: 40px 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
    gap: 20px;
    touch-action: pan-y;
    user-select: none;
    cursor: grab;
}

.carousel-track:active {
    cursor: grabbing;
    /* Change cursor while dragging */
}

/* Carousel Items */
.carousel-item {
    flex-shrink: 0;
    min-width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 15px;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
}

.carousel-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.carousel-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Navigation Buttons */
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.8rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

.nav-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.nav-button:focus {
    outline: 2px solid #007BFF;
    outline-offset: 2px;
}

.prev {
    left: 10px;
    /* Adjust positioning as needed */
}

.next {
    right: 10px;
    /* Adjust positioning as needed */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .carousel-item {
        min-width: 150px;
        height: 100px;
    }

    .nav-button {
        display: none;
        /* Hide buttons on mobile */
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }
}


.contact-icon img {
    max-width: 40px;
    max-height: 40px;
    filter: brightness(0) invert(1);
    /* White icon on colored background */
}



/* Footer Base Styles */
.site-footer {
    background: linear-gradient(135deg, #003366, #004494);
    color: white;
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 20px 0;
    margin: 0 auto;
}

.footer-section {
    padding: 20px;
}

.footer-section h3 {
    color: #FFD700;
    /* Gold header for contrast */
    margin-bottom: 20px;
    font-size: 1.2em;
}

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

.footer-section li {
    margin-bottom: 10px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-top: 15px;
}

.social-icons a {
    display: block;
    width: 40px;
    height: 40px;
    transition: transform 0.3s;
}

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

.social-icons img {
    width: 100%;
    height: 100%;
    filter: invert(1);
    /* Ensure white icons on dark background */
}

/* Legal Section */
.footer-bottom {
    background: #00264d;
    /* Darker footer gradient */
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.copyright {
    font-size: 0.9em;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.legal-links {
    font-size: 0.9em;
    color: #FFD700;
    display: block;

}

.legal-links a {
    text-decoration: underline;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: #FFB900;
    /* Slightly darker gold on hover */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-section {
        padding: 15px 0;
    }

    .social-icons a {
        width: 35px;
        height: 35px;
    }
}

/* Accessibility Enhancements */
.site-footer a {
    color: white;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}


.footer-bottom::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #FFD700;
}

.hero {
    /* background: */
        /* linear-gradient(rgba(255, 255, 255, 0.5), rgba(192, 192, 192, 0.5)), */
        /* Dark overlay */
        /* url('images/herobg.jpg') center/cover; */
    /* Your background image */

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0px 0;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.342), rgba(192, 192, 192, 0.5)),  url('images/herobg.jpg') center/cover;
    filter: blur(4px);
    z-index: -1; /* Behind the content */
    /* Optional to slightly darken blurred image */
    /* background-color: rgba(0, 0, 0, 0.3);
       background-blend-mode: darken; */
}

/* Hero Content Container */
.hero-content {
    max-width: 850px;
    text-align: center;
    z-index: 1;
    animation: fadeInDown 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    line-height: 1.1;
}



.hero-logo {
    margin-bottom: 40px;
    /* Spacing between logo and content */
}

.animated-logo {
    width: 250px;
    animation: float 3s ease-in-out infinite;
}



@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}



.subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ee9b00;
    /* Your secondary color */
}

.description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0.8;
    font-style: italic;
    color: black;
    font-weight: bold;
}

.cta-button {
    background: linear-gradient(135deg, #007BFF, #005bbb);
    color: white;
    padding: 18px 45px;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}



.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Hero Animation */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Typing Animation */
.typing-text {
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #FFD700;
    animation:
        typing 3s steps(28, end),
        blink-caret 0.75s step-end infinite;
    font-size: 3.5em;
    /* Match hero heading size */
    margin-bottom: 15px;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    50% {
        border-color: transparent;
    }
}

#hero-heading {
    padding: 10px;
}

.product-icon-container {
    background: var(--secondary);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-logo {
        margin-bottom: 20px;
    }

    .animated-logo {
        width: 150px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .description {
        font-size: 1rem;
    }

    .cta-button {
        padding: 12px 30px;
    }

    .hero {
        min-height: 80vh;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
        max-width: 90%;
        margin: 0 auto;
    }

    .animated-logo {
        width: 120px;
    }

    .hero {
        min-height: 60vh;
    }
}

/* .typing-text {
    white-space: normal;
    overflow-wrap: break-word;
} */

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {

    .industry-card,
    .product-card {
        padding: 20px;
    }

    .industry-card h3,
    .product-card h3 {
        font-size: 1.2rem;
    }

    .industry-card p,
    .product-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        min-width: 100px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .contact-card {
        padding: 20px;
    }

    .contact-info h3 {
        font-size: 1.2rem;
    }

    .contact-info p {
        font-size: 0.9rem;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .typing-text {
        white-space: normal;
        overflow-wrap: break-word;
        font-size: 2.5rem;
        /* Already set, but ensuring it scales down */
    }
}

@media (max-width: 480px) {
    .typing-text {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        max-width: 90%;
    }
}



@media (max-width: 768px) {
    .nav-links {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
        /* Match header height */
    }
}