/********** Template CSS **********/
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --primary: #0A2A43;     /* Deep Industrial Blue */
    --accent: #F5A623;     /* Engineering Orange */
    --secondary: #1F6F78;  /* Steel Teal */

    --dark-bg: #121212;
    --section-bg: #1E1E1E;
    --light-bg: #F4F6F8;

    --text-dark: #1C1C1C;
    --text-light: #EAEAEA;
    --text-muted: #9CA3AF;

    --border: #3A3A3A;

    /* Bootstrap compatibility variables */
    --bs-primary: #1f1f1f;
    --bs-secondary: #3a3a3a;
    --bs-dark: #121212;
    --bs-light: #e6e6e6;
    --bs-white: #ffffff;
    --bs-muted: #9a9a9a;
}


.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

#spinner .spinner-grow {
    animation: spinner-grow 1.5s ease-in-out infinite;
}

@keyframes spinner-grow {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}


/*** Button ***/
.btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: #F5A623;
    border: none;
    color: #121212;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

.btn-primary:hover {
    background: #d18b1c;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.4);
}

.btn-outline-primary {
    border-color: #F5A623;
    color: #F5A623;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #F5A623;
    color: #121212;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.3);
}


/*** Navbar ***/
.navbar {
    background: linear-gradient(90deg, #0A2A43, #1F6F78);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 15px 0;
    z-index: 999;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: linear-gradient(90deg, #0A2A43, #1F6F78);
    box-shadow: 0 5px 20px rgba(0,0,0,0.7);
    padding: 10px 0;
}

.navbar-logo {
    height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.navbar.scrolled .navbar-logo {
    height: 65px;
    max-width: 180px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-tagline {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #EAEAEA;
    opacity: 0.8;
    font-weight: 300;
    text-transform: uppercase;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.navbar.scrolled .logo-tagline {
    font-size: 9px;
}

.navbar .nav-link {
    color: #EAEAEA;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    padding: 5px 10px;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #F5A623;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-50%);
}

.navbar .nav-link:hover {
    color: #F5A623;
    transform: translateY(-2px);
}

.navbar .nav-link:hover::after {
    width: 80%;
}

.navbar .nav-link.active {
    color: #F5A623;
}

.navbar .nav-link.active::after {
    width: 80%;
}



/*** Header ***/
body {
    padding-top: 0;
}

.carousel-caption {
    background: linear-gradient(
        rgba(0,0,0,0.75),
        rgba(0,0,0,0.85)
    );
    animation: fadeInUp 1s ease-out;
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-item img {
    transition: transform 0.6s ease-in-out;
}

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

.page-header {
    background: linear-gradient(
        rgba(0,0,0,0.85),
        rgba(0,0,0,0.85)
    ), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}


/*** Title ***/
.title {
    animation: fadeInUp 0.8s ease-out;
}

.title h5 {
    color: #F5A623;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInLeft 0.8s ease-out 0.2s both;
}

.title h1 {
    color: #EAEAEA;
    font-weight: 700;
    animation: fadeInRight 0.8s ease-out 0.4s both;
}



/*** Service ***/
.service-item.service-item-left,
.service-item.service-item-right {
    background: linear-gradient(
        135deg,
        #2b2b2b,
        #121212
    );
    box-shadow: inset 0 0 40px rgba(0,0,0,0.6);
}

.service-item .service-img::before {
    border: 3rem solid rgba(255,255,255,0.05);
}



/*** Team ***/
.team-item .team-name,
.team-item .team-body .team-before,
.team-item .team-body .team-after {
    background: rgba(18,18,18,0.85);
}

.team-item span {
    font-size: 14px;
    letter-spacing: 1px;
}



/*** Testimonial ***/
.testimonial-carousel {
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    margin-top: 35px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dots .owl-dot {
    width: 60px;
    height: 60px;
    margin: 0 5px;
    padding: 10px;
    background: var(--bs-dark);
    border-radius: 100px;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot img {
    opacity: .1;
    transition: .5s;
    border-radius: 100px;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}


/*** Footer ***/
.footer {
    background-color: #0f0f0f;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer p,
.footer a {
    color: var(--bs-muted);
}

.footer a:hover {
    color: var(--bs-white);
}

.footer-logo {
    height: 120px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(245, 166, 35, 0.3));
}

.logo-tagline-footer {
    font-size: 11px;
    letter-spacing: 2px;
    color: #9CA3AF;
    opacity: 0.9;
    font-weight: 300;
    text-transform: uppercase;
    text-align: center;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.footer a:hover .logo-tagline-footer {
    color: #F5A623;
    opacity: 1;
}

/*** Background Colors ***/
.bg-secondary {
    background-color: #1E1E1E !important;
    color: #EAEAEA;
}

.container-fluid {
    background-color: #121212;
}

/*** Smooth Scroll ***/
html {
    scroll-behavior: smooth;
}

/*** Scroll Reveal ***/
.reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/*** Premium Animations ***/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/*** Parallax Effect ***/
.parallax {
    transition: transform 0.3s ease-out;
}

/*** Stagger Animation ***/
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stagger-item.animate {
    opacity: 1;
    transform: translateY(0);
}


/*** Mobile ***/
@media (max-width: 768px) {
    body {
        background-color: #0f0f0f;
        color: #e6e6e6;
    }

    .btn-primary {
        width: 100%;
        padding: 14px 20px;
    }

    /* Navbar Mobile */
    .navbar {
        padding: 10px 0;
    }

    .navbar-logo {
        height: 50px;
        max-width: 150px;
    }

    .navbar .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    .navbar-toggler {
        padding: 4px 8px;
        font-size: 1rem;
    }

    .navbar-collapse {
        margin-top: 15px;
        padding: 15px;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 8px;
    }

    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 10px 0;
        font-size: 16px;
    }

    /* Carousel Mobile */
    .carousel-item img {
        height: 60vh;
        object-fit: cover;
        min-height: 300px;
    }

    .carousel-caption {
        padding: 20px 15px;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
    }

    .carousel-caption .title {
        margin: 0 !important;
        padding: 0 !important;
    }

    .carousel-caption .title h5 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .carousel-caption .title h1 {
        font-size: 24px !important;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .carousel-caption p {
        font-size: 14px !important;
        margin-bottom: 15px !important;
        padding: 0 10px;
    }

    .carousel-caption .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* About Section Mobile */
    .container-fluid.bg-secondary {
        padding: 40px 15px !important;
    }

    .title h1 {
        font-size: 28px;
    }

    .title h5 {
        font-size: 12px;
    }

    .col-lg-7, .col-lg-5 {
        margin-bottom: 30px;
    }

    .col-lg-5 img {
        width: 100%;
        height: auto;
    }

    /* Product Cards Mobile */
    .product-card {
        margin-bottom: 20px;
        padding: 15px;
    }

    .product-card img {
        margin-bottom: 15px;
    }

    .product-card h4 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .product-meta {
        font-size: 13px;
        line-height: 1.6;
    }

    /* Vision/Mission Mobile */
    .vision-mission-box {
        padding: 20px;
        margin-bottom: 20px;
    }

    .vision-mission-box h4 {
        font-size: 1.2rem;
    }

    .vision-mission-box p {
        font-size: 14px;
    }

    /* Application Areas Mobile */
    #features .container {
        padding: 40px 15px !important;
    }

    #features .row .col-md-2 {
        margin-bottom: 10px;
    }

    #features .p-3 {
        padding: 12px 8px !important;
        font-size: 13px;
    }

    /* Contact Form Mobile */
    #contact .container {
        padding: 40px 15px !important;
    }

    #contact .title h1 {
        font-size: 24px;
    }

    .form-control {
        font-size: 16px;
        padding: 12px 15px;
    }

    /* Footer Mobile */
    .footer-logo {
        height: 80px;
        max-width: 180px;
    }

    .logo-tagline-footer {
        font-size: 9px;
        letter-spacing: 1px;
    }

    /* Back to Top Mobile */
    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
    }

    /* General Mobile Adjustments */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .py-5 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .mb-4 {
        margin-bottom: 20px !important;
    }

    .mb-5 {
        margin-bottom: 25px !important;
    }

    /* Feature List Mobile */
    .feature-list .list-group-item {
        padding: 12px 15px;
        font-size: 14px;
    }

    .feature-list .feature-icon {
        font-size: 16px;
        width: 30px;
        height: 30px;
        margin-right: 10px;
    }

    /* Title Center Mobile */
    .title-center h1 {
        font-size: 24px;
    }

    .title-center h5 {
        font-size: 12px;
    }

    .title-center p {
        font-size: 14px;
        padding: 0 10px;
    }
}

/* Extra Small Devices */
@media (max-width: 576px) {
    .carousel-caption .title h1 {
        font-size: 20px !important;
    }

    .carousel-caption p {
        font-size: 12px !important;
    }

    .title h1 {
        font-size: 22px;
    }

    .product-card h4 {
        font-size: 16px;
    }

    .product-meta {
        font-size: 12px;
    }

    .navbar-logo {
        height: 45px;
        max-width: 130px;
    }

    .carousel-item img {
        height: 50vh;
        min-height: 250px;
    }
}

/*** Product Card ***/
.product-card {
    background: #1E1E1E;
    border: 1px solid #3A3A3A;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 166, 35, 0.1), transparent);
    transition: left 0.5s;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(245, 166, 35, 0.25);
    border-color: #F5A623;
}

.product-card img {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.product-card img {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 20px;
}

.product-card a {
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card a:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.product-card a img {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 20px;
    display: block;
}

.product-card h4 {
    color: #F5A623;
}

.product-meta {
    font-size: 14px;
    color: #bfbfbf;
}

.feature-badge {
    display: inline-block;
    padding: 6px 14px;
    margin: 4px;
    font-size: 12px;
    border-radius: 50px;
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    letter-spacing: 0.5px;
}

/*** Feature Icons ***/
.feature-list .feature-icon {
    color: #F5A623;
    font-size: 18px;
    margin-right: 12px;
    padding: 8px;
    background: rgba(245, 166, 35, 0.1);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: float 4s ease-in-out infinite;
}

.feature-list .list-group-item {
    transition: all 0.3s ease;
}

.feature-list .list-group-item:hover {
    transform: translateX(5px);
    background-color: rgba(245, 166, 35, 0.05) !important;
}

.feature-list .list-group-item:hover .feature-icon {
    background: rgba(245, 166, 35, 0.3);
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
}

/*** Vision / Mission Boxes ***/
.vision-mission-box {
    background: #1E1E1E;
    border: 1px solid #3A3A3A;
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.vision-mission-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.vision-mission-box:hover::after {
    opacity: 1;
}

.vision-mission-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(245, 166, 35, 0.2);
    border-color: #F5A623;
}

.vision-mission-box h4 {
    color: #F5A623;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.vision-mission-box h4 i {
    color: #F5A623;
}

.vision-mission-box p {
    color: #EAEAEA;
    line-height: 1.8;
    margin-bottom: 0;
}

