/* ================= CSS VARIABLES ================= */
:root {
    --primary-color: #515151; /* Deep Industrial Blue */
    --secondary-color: #0755af; /* Safety Orange */
    --text-color: #334155;
    --heading-color: #0F172A;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
}

/* ================= RESET & BASE ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4 {
    color: var(--heading-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* ================= BUTTONS ================= */
/* --- Global Button Transition --- */
.btn-modern, .btn-call, .btn-outline {
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Space for icons */
    cursor: pointer;
}

/* --- Primary Action (Modern) --- */
.btn-modern {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-modern:hover {
    background-color: transparent;
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* --- Call Button (Rounded with Pulse) --- */
.btn-call {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px; /* Fully rounded for a "Action" feel */
    font-weight: 600;
    border: 2px solid var(--secondary-color);
}

.btn-call:hover {
    background-color: var(--white);
    color: var(--secondary-color);
    transform: scale(1.05);
}

/* --- Outline Button (Hero/Secondary) --- */
.btn-outline {
    background-color: transparent;
    color: var(--white);
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* --- Layout Helpers --- */
.center-btn {
    text-align: center;
    margin-top: 40px;
}
/* ================= GRID LAYOUTS ================= */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* ================= HEADER ================= */
/* ================= TOP BAR ================= */
/* Hide top bar on scroll via JS class */
.top-bar.hidden {
    transform: translateY(-100%);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= MODERN FLOATING HEADER ================= */
.floating-header {
    position: fixed;
    top: 55px; /* Starting position below top-bar */
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.8); /* Glass effect */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 100px; /* Perfect Pill shape */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Scrolled State: Transitions to the top with a more compact feel */
.floating-header.scrolled {
    top: 15px;
    width: 90%; /* Shrinks slightly for a 'floating' feel */
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 30px;
}

/* Nav Links Styling */
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--heading-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* ================= LOGO ================= */
.logo img {
    height: 45px;
    width: auto;
    transition: height 0.3s ease;
}

.floating-header.scrolled .logo img {
    height: 38px; /* Shrink logo on scroll */
}

/* ================= RESPONSIVE ================= */
@media (max-width: 991px) {
    .floating-header {
        border-radius: 15px; /* Less rounded on mobile */
        width: 95%;
    }
    .nav-container { height: 60px; padding: 0 20px; }
}
/* ================= HERO ================= */
/* ================= MODERN LAYERS HERO DESIGN ================= */
.hero-redesign {
    /* Uses the Deep Blue as the core industrial background */
    background: radial-gradient(circle at center, #d1e1ec -50%, #0755af 90%);
    color: var(--text-light);
    padding: 100px 0; /* Modern, spacious padding */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Text gets more space */
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 10; /* Sits above the gears */
}

/* TEXT COLUMN STYLING */
.hero-text-block h1 {
    color: var(--heading-light);
    font-size: 3rem; /* Large, modern title */
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-text-block p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #cbd5e1;
    line-height: 1.6;
}

/* HIGHLY VISIBLE PRECISION HIGHLIGHT */
.hero-text-block .highlight {
    color: var(--secondary-color); /* Orange highlight for tolerance */
    font-weight: 700;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 2px;
}

/* IMAGE COLUMN STYLING (IMAGE_0.PNG) */
.hero-image-block {
    position: relative;
    display: flex;
    justify-content: center;
}

.main-image-frame {
    /* Modern hex-like shape frame for the industrial shot */
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    border: 5px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.main-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    /* Apply a modern "blueprint" tint on hover to be interactive */
    filter: sepia(0) hue-rotate(0) saturate(1);
    transition: var(--transition);
}

.hero-image-block:hover .main-image {
    filter: sepia(1) hue-rotate(200deg) saturate(1.5);
}

/* ================= BACKGROUND ROTATING GEARS (SVG) ================= */
.gear-layer {
    position: absolute;
    top: 50;
    left: 10;
    width: 100%;
    height: 100%;
    z-index: 1; /* Sits behind content */
    opacity: 0.1; /* Very subtle transparency */
}

.gear {
    position: absolute;
    /* Uses dynamic SVG gears with brand color and perpetual rotation */
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="%23FFFFFF" d="M96.4 56.4L88.9 49l7.5-7.4a6 6 0 0 0-.1-8.5l-6-6a6 6 0 0 0-8.5-.1L74.4 34.5 67 27.1l7.4-7.5a6 6 0 0 0-.1-8.5l-6-6a6 6 0 0 0-8.5-.1L52.4 12.5 45 5.1l7.5-7.4a6 6 0 0 0-.1-8.5l-6-6a6 6 0 0 0-8.5-.1L30.4.5 23-.9 30.5-8.3a6 6 0 0 0-.1-8.5l-6-6a6 6 0 0 0-8.5-.1L8.4-12.5 1-19.9l7.5-7.4a6 6 0 0 0-.1-8.5l-6-6a6 6 0 0 0-8.5-.1L-6-23.5 -13.4-30.9 -6-38.3a6 6 0 0 0-.1-8.5l-6-6A6 6 0 0 0-20.6-53L-28-45.5 -35.4-52.9 -28-60.3a6 6 0 0 0-.1-8.5l-6-6A6 6 0 0 0-42.6-74.9L-50-67.5 -57.4-74.9a6 6 0 0 0-.1-8.5l-6-6A6 6 0 0 0-70.6-89.9L-78-82.5 -85.4-89.9a6 6 0 0 0-.1-8.5l-6-6A6 6 0 0 0-98.6-104.9 -106-97.5l-7.4-7.4a6 6 0 0 0-.1-8.5l-6-6a6 6 0 0 0-8.5-.1L-116-103.5l-7.4-7.4 -7.5 7.4a6 6 0 0 0-.1 8.5l6 6a6 6 0 0 0 8.5.1L-109.6-96.5l-7.4 7.4 -7.5-7.4a6 6 0 0 0-.1-8.5l-6-6a6 6 0 0 0-8.5-.1 -106-97.5l-7.4 7.4 -7.5-7.4a6 6 0 0 0-.1-8.5l-6-6a6 6 0 0 0-8.5-.1 -106-97.5l-7.4 7.4Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    animation: rotate-gear 60s linear infinite; /* Perpetual rotation */
}

/* Gear 1: Large and slow in the bottom left */
.gear-large {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -100px;
    opacity: 0.05; /* Subtle transparency difference */
    animation-duration: 90s;
}

/* Gear 2: Small and faster in the top right */
.gear-small {
    width: 150px;
    height: 150px;
    top: -50px;
    right: 50px;
    animation-direction: reverse; /* Rotates clockwise */
}

/* Rotation Keyframes */
@keyframes rotate-gear {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================= SERVICES SECTION ================= */
/* Container Background for contrast */
.bg-light-gray { background-color: #f8fafc; }

.section-header-modern {
    margin-bottom: 50px;
}

.section-header-modern .top-subtitle {
    color: var(--secondary-color); /* Your Orange */
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.section-header-modern h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    line-height: 1.2;
}

/* Service Card V2 */
.service-card-v2 {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: var(--secondary-color);
}

.card-icon-box {
    background: var(--primary-color); /* Dark Blue */
    color: #fff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.service-card-v2 h3 {
    margin-bottom: 5px;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.card-subtitle {
    display: block;
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.service-card-v2 p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Bullet List */
.card-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.card-list li {
    font-size: 0.9rem;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-list li i {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* Link */
.card-link {
    margin-top: auto;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.card-link:hover {
    gap: 15px;
}

/* ================= ABOUT PREVIEW ================= */
/* ================= ABOUT MODERN SECTION ================= */
.about-modern-section {
    background-color: #0f172a; /* Deep Navy Background */
    padding: 100px 0;
    color: #ffffff;
    overflow: hidden;
}

.grid-2-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Image Wrapper with Floating Accent */
.about-image-wrapper {
    position: relative;
    padding: 20px;
}

.image-accent-box {
    position: absolute;
    bottom: -20px;
    right: 0;
    width: 80%;
    height: 80%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    z-index: 1;
}

.main-image-frame {
    position: relative;
    z-index: 2;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.about-img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.about-img:hover {
    transform: scale(1.05);
}

/* Text Content */
.about-subtitle {
    color: var(--secondary-color); /* Your Orange */
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 15px;
}

.about-text-content h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #fff;
}

.about-text-content p {
    color: #94a3b8; /* Soft blue-gray for readability */
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* Feature List */
.about-features {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 500;
    color: #e2e8f0;
}

.about-features li i {
    color: var(--secondary-color); /* Orange checkmarks */
    font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .grid-2-about {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .about-text-content h2 {
        font-size: 2.2rem;
    }
}
/* ================= FEATURES ================= */
.feature-box {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
}

.feature-box i {
    font-size: 30px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* ================= MODERN CTA SECTION ================= */
.cta-redesign {
    position: relative;
    background-color: var(--primary-color); /* Deep Blue */
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}

/* Industrial Blueprint Grid Background Effect */
.cta-redesign::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
            linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px; /* Size of the grid squares */
    z-index: -1;
}

.cta-content {
    max-width: 800px; /* Keeps the text from stretching too wide on big screens */
    margin: 0 auto;
    position: relative;
}

/* Glowing Precision Accent */
.cta-accent-line {
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color); /* Safety Orange */
    margin: 0 auto 30px auto;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(234, 88, 12, 0.6); /* Orange glow */
}

.cta-redesign h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.cta-redesign p {
    color: #cbd5e1; /* Light slate gray */
    font-size: 1.15rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allows buttons to stack nicely on mobile */
}

/* Enhanced Buttons specifically for the CTA */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.2);
}

.cta-btn:hover {
    transform: translateY(-3px); /* Lifts the button up smoothly when hovered */
    box-shadow: 0 15px 25px rgba(234, 88, 12, 0.4);
}

.cta-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    border-color: rgba(255, 255, 255, 0.3); /* Softer white border */
}

.cta-btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .cta-redesign {
        padding: 70px 20px;
    }
    .cta-redesign h2 {
        font-size: 2rem;
    }
    .cta-actions {
        flex-direction: column;
        gap: 15px;
    }
    .cta-btn, .cta-btn-outline {
        width: 100%;
        justify-content: center;
    }
}
/* ================= FOOTER ================= */
.site-footer {
    background-color: var(--white);
    color: var(--text-color);
    border-top: 1px solid #e2e8f0; /* Soft border above the footer */
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding: 60px 20px;
}

.footer-col h3 {
    color: var(--heading-color); /* Dark blue/slate for headings */
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    color: var(--text-color);
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-color);
    transition: var(--transition);
    font-weight: 500;
}

.footer-col ul li a:hover {
    color: var(--secondary-color); /* Safety Orange on hover */
    padding-left: 5px; /* Slight modern indent on hover */
}

/* ================= FOOTER CONTACT LIST ================= */
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.footer-contact-list i {
    color: var(--secondary-color); /* Orange icons */
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 4px;
}

.footer-contact-list p,
.footer-contact-list a {
    color: var(--text-color); /* Dark text for white background */
    margin: 0;
}

.footer-contact-list a:hover {
    color: var(--secondary-color);
    padding-left: 0; /* Prevents the indent effect on contact links */
}

/* ================= FOOTER BOTTOM BAR ================= */
.footer-bottom {
    text-align: center;
    padding: 20px;
    background-color: var(--bg-light); /* Very light gray */
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-weight: 500;
}
/* ================= MOBILE RESPONSIVE ================= */
/* ================= DESKTOP NAVIGATION FIX ================= */
.nav-links {
    display: flex !important;
    flex-direction: row !important; /* Forces the links to sit side-by-side */
    align-items: center;
    gap: 25px; /* Spacing between the links */
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
}

/* Hide the hamburger menu on desktop */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    margin-left: 15px;
}

/* ================= MOBILE NAVIGATION (Below 991px) ================= */
@media (max-width: 991px) {
    /* Show hamburger menu on mobile */
    .menu-toggle {
        display: block;
    }

    /* Stack links vertically and hide them on mobile until clicked */
    .nav-links {
        display: none !important;
        flex-direction: column !important;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px 0;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        border-radius: 0 0 20px 20px;
    }

    /* Shows the mobile menu when the toggle is clicked (via JavaScript) */
    .nav-links.active {
        display: flex !important;
    }
}
/* ================= MODERN FOOTER ENGINEERING TICKER ================= */
.footer-ticker {
    background-color: var(--secondary-color); /* Uses your Safety Orange */
    color: var(--white);
    padding: 20px 0; /* Modern, spacious padding */
    overflow: hidden;
    position: relative;
    border-top: 3px solid var(--heading-color); /* Matches your original design */
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1); /* Subtle modern shadow */
}

/* Ensure FontAwesome icons within the ticker look correct */
.footer-ticker i {
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.ticker-track {
    display: flex;
    width: max-content; /* Critical for seamless looping */
    animation: scroll-ticker 35s linear infinite; /* Slightly slower for modern legibility */
}

/* Duplicated lists for seamless loop */
.ticker-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

/* Styling for service items */
.ticker-list li {
    display: flex;
    align-items: center;
    font-family: 'Poppins', sans-serif; /* Matches your brand font */
    font-size: 1.25rem; /* Larger, readable size */
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
    padding: 0 10px; /* Spacing within the item */
}

/* Specific engineering icons next to services */
.ticker-list .service-icon {
    font-size: 1.4rem;
    margin-right: 15px; /* Spacing from text */
    color: rgba(255, 255, 255, 0.8); /* Slightly transparent for modern look */
}

/* Styling for the Gear separators (replacing the old dots) */
.ticker-list .separator {
    color: var(--heading-color); /* Original separator color */
    opacity: 0.6; /* Subtle modern transparency */
    font-size: 1.5rem; /* Slightly larger separator icon */
    padding: 0 40px; /* Wide spacing between items */
}

/* Animation magic for seamless looping */
@keyframes scroll-ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Scroll the track exactly half its width */
    }
}

/* Modern hover effect: Pause the animation on hover */
.footer-ticker:hover .ticker-track {
    animation-play-state: paused;
}
/* ================= FOOTER CONTACT LIST ================= */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px; /* Modern, breathable spacing */
}

.footer-contact-list i {
    color: var(--secondary-color); /* Uses your Safety Orange */
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 4px; /* Perfectly aligns the icon with the first line of text */
}

.footer-contact-list p {
    margin: 0;
    line-height: 1.6;
    color: #94A3B8; /* Matches your footer slate text */
}

.footer-contact-list a {
    color: #94A3B8;
    transition: var(--transition);
}

.footer-contact-list a:hover {
    color: var(--secondary-color);
}
/* ================= CUSTOM ORANGE SCROLLBAR ================= */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color); /* Safety Orange */
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c2410c; /* Slightly darker orange on hover */
}

/* ================= BACK TO TOP BUTTON ================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color); /* Changes to Blue on hover */
    transform: translateY(-5px);
}

/* ================= CUSTOM MOUSE CURSOR ================= */
/* Hide default cursor on desktop for a cleaner look (optional) */
@media (min-width: 992px) {
    body {
        cursor: none;
    }
    a, button, input, textarea, select {
        cursor: none;
    }
}

.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color); /* Orange dot */
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color); /* Blue outline */
    transition: width 0.2s ease-out, height 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out;
}
/* ================= FAQ ACCORDION ================= */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background-color: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: left;
    background-color: var(--bg-light);
    color: var(--heading-color);
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: #f1f5f9;
}

.accordion-header i {
    color: var(--secondary-color); /* Safety Orange */
    transition: transform 0.3s ease;
}

.accordion-header.active {
    color: var(--secondary-color);
    background-color: var(--white);
    border-bottom: 1px solid #e2e8f0;
}

.accordion-header.active i {
    transform: rotate(45deg); /* Rotates the plus into an X */
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--white);
}

.accordion-content p {
    padding: 20px 25px;
    margin: 0;
    color: var(--text-color);
}
/* ================= BACKGROUND ROTATING GEARS ================= */
.gear-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Stays behind text */
    overflow: hidden;
    pointer-events: none; /* Stops gears from blocking clicks */
}

.gear {
    position: absolute;
    color: var(--white);
    opacity: 0.05; /* Faint watermark effect */
    animation: spin linear infinite;
}

/* Big Gear - Bottom Left */
.gear-large {
    font-size: 500px;
    bottom: -150px;
    left: -100px;
    animation-duration: 60s;
}

/* Medium Gear - Top Right */
.gear-medium {
    font-size: 300px;
    top: -50px;
    right: -50px;
    animation-duration: 40s;
    animation-direction: reverse; /* Spins backward to mesh with others */
}

/* Small Gear - Center Top */
.gear-small {
    font-size: 150px;
    top: 10%;
    left: 40%;
    opacity: 0.03;
    animation-duration: 25s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================= GRINDING SPARKS ANIMATION ================= */
.sparks-container {
    position: absolute;
    top: 50%; /* Aligns with where the grinding wheel would touch */
    right: -20px; /* Starts just outside the image frame */
    width: 200px;
    height: 20px;
    z-index: 20;
    pointer-events: none;
}

.spark {
    position: absolute;
    top: 30%;
    left: 0;
    height: 1px;
    background: #fff;
    border-radius: 2px;
    /* Glow effect mimicking hot steel */
    box-shadow: 0 0 5px #EA580C, 0 0 10px #EA580C, 0 0 15px #f59e0b;
    /* Uses CSS variables injected from HTML for randomness */
    transform-origin: right center;
    animation: fly-spark var(--dur) linear infinite;
    animation-delay: var(--del);
    opacity: 0; /* Hidden until animation starts */
}

@keyframes fly-spark {
    0% {
        transform: rotate(var(--rot)) translateX(0);
        width: 10px;
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: rotate(var(--rot)) translateX(250px);
        width: 40px; /* Sparks stretch as they fly fast */
        opacity: 0;
    }
}