/* =========================================
   1. Variables & Global Styles
   ========================================= */
:root {
    --primary-color: #0d47a1;
    /* Deep Blue */
    --secondary-color: #ffca28;
    /* Industrial Amber */
    --accent-color: #e65100;
    /* Safety Orange */
    --dark-bg: #1a1a2e;
    /* Dark Blue-Grey */
    --light-bg: #f8f9fa;
    --text-color: #333;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

/* ===== PAGE LOADER ===== */

#loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
}

/* Gear animation */

.gear-loader {
    text-align: center;
    color: white;
}

.gear {
    font-size: 50px;
    margin: 10px;
    color: #f59e0b;
    animation: spin 3s linear infinite;
}

.gear2 {
    font-size: 70px;
    animation-direction: reverse;
}

.gear3 {
    font-size: 40px;
}

.loading-text {
    margin-top: 20px;
    font-size: 18px;
    letter-spacing: 2px;
    color: #ccc;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

body {
    font-family: 'Segoe UI', Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: #f0f2f5;
    overflow-x: hidden;
}

body.parallax-bg {
    background-image: linear-gradient(rgba(240, 242, 245, 0.88), rgba(240, 242, 245, 0.95)), url('../images/Rahul\ Industries.png');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}


a {
    transition: all 0.3s ease;
    text-decoration: none;
}




/* ===== LOGO DESIGN ===== */

.logo-image {
    width: auto;
    height: 90px;
    max-width: 250px;
    object-fit: contain;
    margin-right: 10px;
    transition: all 0.4s ease;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-icon {
    color: #ff6a00;
    font-size: 26px;
}

.logo-main {
    color: #ff6a00;
}

.logo-sub {
    color: #1f2937;
}



/* Dark navbar background support */
.navbar.scrolled .logo-sub {
    color: white;
}

/* Sections */
.section-padding {
    padding: 80px 0;
    scroll-margin-top: 90px;
    position: relative;
    z-index: 1;
    /* Removed white background to let body bg show for glassmorphism */
}

.bg-light-custom {
    background-color: rgba(248, 249, 250, 0.85);
    backdrop-filter: blur(5px);
}

.bg-light {
    background-color: rgba(248, 249, 250, 0.85) !important;
    backdrop-filter: blur(5px);
}

/* =========================================
   2. Navbar
   ========================================= */



.custom-logo {
    text-decoration: none;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-icon {
    font-size: 28px;
    color: #f39c12;
    margin-right: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.company-name {
    font-size: 18px;
    font-weight: 700;
    color: #0c0477;
    letter-spacing: 1px;
}

.Tagline {
    font-size: 11px;
    color: #383838;
}

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 5px 0;
    transition: all 0.4s ease;
}

.navbar.nav-scrolled {
    background: rgba(255, 255, 255, 0.7) !important;
    padding: 3px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar.nav-scrolled .logo-image {
    height: 65px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
    transform: translateX(25px);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 600;
    color: #444 !important;
    margin-left: 15px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-cta {
    background-color: var(--primary-color);
    color: #fff !important;
    border-radius: 30px;
    padding: 8px 25px;
    transition: all 0.3s;
}

.btn-cta:hover {
    background-color: #08306b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 71, 161, 0.3);
}



/* =========================================
   3. Hero Carousel
   ========================================= */



.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text h1 {
    color: white;
    font-size: 60px;
    font-weight: 700;
}

.hero-text p {
    color: white;
    font-size: 20px;
    margin-bottom: 25px;
}

/* =========================================
   4. Glassmorphism Cards
   ========================================= */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card-hover:hover {
    transform: translateY(-10px);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    height: 100%;
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.2);
}

.glass-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
}

/* =========================================
   5. Section Titles
   ========================================= */
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    display: block;
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
}

/* ================= PARALLAX SECTION ================= */

.parallax-section {
    background-image: url('../images/common-types-of-CNC-machine-900x600\ \(1\).jpg');
    min-height: 450px;

    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.parallax-overlay {
    background: rgba(18, 38, 105, 0.65);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.parallax-section h2 {
    font-size: 40px;
    font-weight: 700;
}

.parallax-section p {
    max-width: 700px;
    margin: auto;
}

/* =========================================
   6. Footer
   ========================================= */


.footer-logo {
    width: 150px;
    /* adjust size */
    height: auto;
}

footer:not(.blockquote-footer) {
    background: var(--dark-bg);
    color: #fff;
    padding-top: 50px;
}

footer:not(.blockquote-footer) a {
    color: #b0b0b0;
}

footer:not(.blockquote-footer) a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 40px;
}

/* =========================================
   7. Responsive
   ========================================= */
@media (max-width: 768px) {
    .hero-slider .carousel-item {
        height: 70vh;
    }

    .carousel-caption h5 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .logo-image {
        height: 50px;
        max-width: 200px;
    }
}


@media (max-width: 768px) {
    .stats-section {
        margin-top: 0;
    }

    .section-padding {
        padding: 60px 0;
    }
}

/* =========================================
   8. Stats Section
   ========================================= */

section {
    position: relative;
    clear: both;
}

.stats-section {
    background: var(--primary-color);
    color: #fff;
    position: relative;
    overflow: hidden;
    z-index: 2;
    margin-top: -1px;
    /* removes thin gap issue */
}

#about {
    position: relative;
    z-index: 3;
}

.stat-box {
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.stat-box i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* =========================================
   9. Why Choose Us
   ========================================= */
.feature-icon-box {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.feature-icon-wrapper {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(13, 71, 161, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
    transition: all 0.3s ease;
}

.feature-icon-box:hover .feature-icon-wrapper {
    background: var(--primary-color);
    color: #fff;
    transform: rotateY(360deg);
}

.feature-content h5 {
    font-weight: 700;
    margin-bottom: 5px;
}

.feature-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
}

/* =========================================
   10. Process Section
   ========================================= */
.process-step {
    text-align: center;
    position: relative;
    padding: 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(255, 202, 40, 0.4);
    transition: transform 0.3s ease-in-out;
}

.step-content h5 {
    font-weight: 700;
    margin-bottom: 10px;
}

.process-step:hover .step-number {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 202, 40, 0.6);
}

/* Connecting line for desktop */
@media (min-width: 992px) {
    .process-step::after {
        content: '';
        position: absolute;
        top: 45px;
        right: -50%;
        width: 100%;
        height: 2px;
        background: #e0e0e0;
        z-index: 1;
    }

    .process-step:last-child::after {
        display: none;
    }
}

/* =========================================
   11. Call to Action (CTA)
   ========================================= */
.cta-section {
    background: linear-gradient(rgba(13, 71, 161, 0.9), rgba(13, 71, 161, 0.9)), url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 15px;
}


/* =====================================
   ABSOLUTE FORCE CENTER ALL HEADINGS
   ===================================== */
/* h1,
h2,
h3,
h4,
h5,
h6 {
    text-align: center !important;
    width: 100%;
} */


/* =====================================
   Reviews / Testimonials
   ===================================== */
#reviews .glass-card {
    padding: 40px;
}

.review-quote {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.review-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
}

.review-name {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.review-company {
    font-size: 0.9rem;
    color: #777;
}

/* Center carousel arrows */
#reviewCarousel .carousel-control-prev,
#reviewCarousel .carousel-control-next {
    width: 5%;
}


/* =====================================
   Floating WhatsApp & Call Buttons
   ===================================== */
.floating-actions {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fab-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.fab-btn:hover {
    transform: scale(1.15);
    animation: none;
}

/* WhatsApp */
.fab-btn.whatsapp {
    background-color: #25D366;
    animation: pulse-pop 2s infinite;
}

/* Call */
.fab-btn.call {
    background-color: var(--primary-color);
    animation: pulse-pop-call 2s infinite 1s;
    /* 1s offset so they alternate */
}

@keyframes pulse-pop {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.15);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes pulse-pop-call {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(12, 4, 119, 0.7);
    }

    70% {
        transform: scale(1.15);
        box-shadow: 0 0 0 15px rgba(12, 4, 119, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(12, 4, 119, 0);
    }
}



/* ===============================
   Mobile Fixes
   =============================== */
@media (max-width: 768px) {

    /* Prevent floating buttons from overlapping footer content */
    footer {
        padding-bottom: 90px !important;
    }

    /* Reduce padding on mobile so cards don't become excessively tall */
    #reviews .glass-card {
        padding: 20px;
    }
}

/* ===============================
   Custom Webkit Scrollbar
   =============================== */
::-webkit-scrollbar {
    width: 10px;
    background-color: #f5f5f5;
}

::-webkit-scrollbar-track {
    background-color: #f5f5f5;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #c1c1c1;
    border-radius: 10px;
    border: 2px solid #f5f5f5;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color);
}

.navbar .nav-link {
    position: relative;
    font-weight: 500;
    color: #333;
    padding: 8px 15px;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: #0d6efd;
    /* Primary blue */
}

/* Active page */
.navbar .nav-link.active {
    color: #0d6efd;
    font-weight: 600;
}

/* Underline effect for active & hover */
.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #0d6efd;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 70%;
}

/* ===============================
   BOOTSTRAP 5 NAVBAR ACTIVE FIX
   =============================== */

.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
}

.navbar-nav .nav-link.active {
    color: #0d6efd !important;
    font-weight: 600;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 6px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    padding: 20px;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

.project-overlay p {
    font-size: 0.9rem;
}


@media (max-width: 480px) {

    /* Force the main navbar to stay within the screen */
    .navbar {
        width: 100% !important;
        max-width: 100vw !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* This container usually causes the overflow if it has a fixed width */
    .navbar .container,
    .navbar .container-fluid {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Prevent the text from pushing the button off-screen */
    .company-name {
        font-size: 13px !important;
        max-width: 60% !important;
        /* Forces the name to stay on the left */
        word-wrap: break-word;
    }

    /* Ensure the toggle button stays on the right edge */
    .navbar-toggler,
    .navbar-toggler-icon {
        margin-right: 0 !important;
        padding: 5px !important;
        flex-shrink: 0 !important;
        /* Prevents the button from being squashed */
    }
}

/* ================= HERO CAROUSEL MOBILE OPTIMIZATION ================= */

@media (max-width: 480px) {

    /* Center the hero content and add safe padding */
    .hero-text {
        padding: 0 20px !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        /* Ensure it uses the full height of the item */
    }

    /* Scale down the main heading */
    .hero-text h1 {
        font-size: 26px !important;
        /* Smaller, punchier size for mobile */
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
        font-weight: 700;
    }

    /* Adjust the description text */
    .hero-text p {
        font-size: 15px !important;
        line-height: 1.4 !important;
        margin-bottom: 25px !important;
        max-width: 90%;
        /* Keeps text from hitting the very edges */
        margin-left: auto;
        margin-right: auto;
    }

    /* Resize the buttons for better thumb-tap ergonomics */
    .hero-text .btn {
        font-size: 14px !important;
        padding: 10px 25px !important;
        width: auto !important;
        /* Prevents button from stretching full-width unless desired */
        display: inline-block;
    }

    /* Ensure the carousel item itself doesn't overflow */
    .carousel-item {
        height: 80vh;
        /* Adjust height based on your design preference */
        min-height: 400px;
    }

    .whatsapp {
        bottom: 20px !important;
        background-color: #25d366 !important;
        color: white !important;
    }

    .call {
        bottom: 85px !important;
        /* 20px (gap) + 50px (button) + 15px (spacing) */
        background-color: #007bff !important;
        color: white !important;
    }


    body {
        overflow-x: hidden !important;
        width: 100vw !important;
    }
}

.inquiry-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 280px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    display: none;
    z-index: 9999;
    animation: fadeInUp 0.5s ease;
}

.inquiry-header {
    background: #0d6efd;
    color: #fff;
    padding: 10px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
}

.inquiry-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.inquiry-body {
    padding: 10px;
}

.inquiry-body textarea {
    width: 100%;
    height: 80px;
    resize: none;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.inquiry-body button {
    width: 100%;
    background: #25D366;
    border: none;
    color: #fff;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
}

/* Animation */
@keyframes fadeInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =========================================
   Industry Marquee Animation
   ========================================= */
.industry-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
}

.industry-marquee::before,
.industry-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15rem;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.industry-marquee::before {
    left: 0;
    background: linear-gradient(to right, #212529, transparent);
}

.industry-marquee::after {
    right: 0;
    background: linear-gradient(to left, #212529, transparent);
}

.industry-track {
    display: inline-flex;
    animation: scroll-industries 30s linear infinite;
}

.industry-track:hover {
    animation-play-state: paused;
}

.industry-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 250px;
    padding: 30px;
    margin: 0 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.industry-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 202, 40, 0.15);
    border-color: var(--secondary-color, #ffca28);
}

.industry-item h5 {
    margin-top: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}

@keyframes scroll-industries {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 8 - 30px * 8));
    }
}

@media (max-width: 768px) {

    .industry-marquee::before,
    .industry-marquee::after {
        width: 3rem;
    }

    .industry-item {
        width: 200px;
        padding: 20px;
        margin: 0 10px;
    }

    @keyframes scroll-industries {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-200px * 8 - 20px * 8));
        }
    }
}

footer .col-md-2 a::before,
footer .col-md-3 a::before {
    content: "➤ ";
}


footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    padding-left: 5px;
    color: #ffc107 !important;
}