/* YG Engineering Design System - Enhanced Dark Industrial Theme */
:root {
    /* Colors */
    --background: hsl(220, 13%, 9%);
    --foreground: hsl(0, 0%, 98%);
    --card: hsl(220, 13%, 11%);
    --card-foreground: hsl(0, 0%, 98%);
    --primary: hsl(45, 48%, 56%);
    --primary-foreground: hsl(220, 13%, 9%);
    --secondary: hsl(220, 13%, 15%);
    --secondary-foreground: hsl(0, 0%, 98%);
    --muted: hsl(220, 13%, 15%);
    --muted-foreground: hsl(0, 0%, 65%);
    --border: hsl(220, 13%, 20%);
    --input: hsl(220, 13%, 15%);

    /* Engineering-specific design tokens */
    --gear-gold: hsl(45, 48%, 56%);
    --industrial-dark: hsl(220, 13%, 9%);
    --steel-gray: hsl(220, 13%, 15%);
    --machinery-border: hsl(220, 13%, 25%);

    /* Surfaces */
    --bg-hero: hsl(220, 13%, 10%);
    --bg-accent: hsl(45, 93%, 58%);
    --bg-card: hsl(220, 13%, 12%);

    /* Shadows */
    --shadow-gear: 0 0 30px hsl(45, 93%, 58%, 0.3);
    --shadow-card: 0 10px 40px hsl(220, 13%, 5%, 0.4);
    --shadow-elevated: 0 20px 60px hsl(220, 13%, 5%, 0.6);

    --radius: 0.75rem;

    /* Type */
    --font-logo: 'Orbitron', sans-serif;
    --font-heading: 'Orbitron', monospace;
    --font-body: 'Rajdhani', sans-serif;
}

/* Fonts */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
.font-engineering {
    font-family: var(--font-heading);
}

.font-display {
    font-family: var(--font-body);
}

/* Utility Classes */
.text-gear-gold {
    color: var(--gear-gold) !important;
}

.bg-steel-gray {
    background-color: var(--steel-gray) !important;
}

.section-padding {
    padding: 5rem 0;
}

/* Messages */
.messages-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1060;
    max-width: 400px;
}

.messages-container .alert {
    margin-bottom: 10px;
    box-shadow: var(--shadow-card);
}

/* Header */
.header-fixed {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
    background: rgba(17, 21, 28, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--machinery-border);
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    text-decoration: none;
}

.logo-img {
    height: 5.5rem;
    width: 5.5rem;
    margin-right: 0.75rem;
}

.brand-text {
    font-family: var(--font-logo);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--foreground);
}

.brand-tagline {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    color: var(--muted-foreground);
    line-height: 1.2;
}

.navbar-nav .nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--foreground);
    transition: color 0.3s ease;
    margin: 0 0.5rem;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--gear-gold);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gear-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.navbar-toggler {
    border: none;
    background: none;
    color: var(--foreground);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: var(--bg-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 120px; /* navbar height */
    box-sizing: border-box;
}

.hero-section .row.min-vh-100,
.hero-section .row.align-items-center {
    min-height: unset !important;
    width: 100%;
    margin: 0;
}

.hero-section .container {
    width: 100%;
}

/* Scale down the spinning gear so it doesn't eat vertical space */
.gear-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 1rem;
}

.gear-icon {
    width: 4rem;
    height: 4rem;
    color: var(--gear-gold);
}

/* Tighten up hero typography spacing */
.hero-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    color: var(--foreground);
    line-height: 1.1;
    margin-bottom: 0.75rem !important;
}

.tagline-main {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 500;
    color: var(--gear-gold);
    margin-bottom: 0.5rem !important;
}

.tagline-sub {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: var(--muted-foreground);
    max-width: 44rem;
    line-height: 1.6;
    margin-bottom: 1.25rem !important;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
    align-items: center;
}

.hero-logo {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0.75rem !important;
}

.hero-stats {
    margin-top: 1.5rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gear-gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-body);
    color: var(--muted-foreground);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
    --bs-btn-color: var(--industrial-dark);
    --bs-btn-bg: hsl(45, 48%, 56%);
    --bs-btn-border-color: hsl(45, 48%, 56%);
    --bs-btn-hover-color: var(--industrial-dark);
    --bs-btn-hover-bg: hsl(45, 48%, 50%);
    --bs-btn-hover-border-color: hsl(45, 48%, 50%);
    --bs-btn-active-color: var(--industrial-dark);
    --bs-btn-active-bg: hsl(45, 48%, 45%);
    --bs-btn-active-border-color: hsl(45, 48%, 45%);
    --bs-btn-disabled-color: var(--industrial-dark);
    --bs-btn-disabled-bg: hsl(45, 48%, 56%);
    --bs-btn-disabled-border-color: hsl(45, 48%, 56%);
    --bs-btn-focus-shadow-rgb: 199, 173, 92;
}

.btn-outline-primary {
    --bs-btn-color: hsl(45, 48%, 56%);
    --bs-btn-border-color: hsl(45, 48%, 56%);
    --bs-btn-hover-color: var(--industrial-dark);
    --bs-btn-hover-bg: hsl(45, 48%, 56%);
    --bs-btn-hover-border-color: hsl(45, 48%, 56%);
    --bs-btn-active-color: var(--industrial-dark);
    --bs-btn-active-bg: hsl(45, 48%, 50%);
    --bs-btn-active-border-color: hsl(45, 48%, 50%);
    --bs-btn-focus-shadow-rgb: 199, 173, 92;
}

.btn-outline-secondary {
    --bs-btn-color: var(--muted-foreground);
    --bs-btn-border-color: var(--border);
    --bs-btn-hover-color: var(--foreground);
    --bs-btn-hover-bg: var(--secondary);
    --bs-btn-hover-border-color: var(--machinery-border);
    --bs-btn-active-color: var(--foreground);
    --bs-btn-active-bg: var(--secondary);
    --bs-btn-active-border-color: var(--machinery-border);
}

/* Section Titles */
.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--foreground);
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 48rem;
    line-height: 1.7;
}

.section-text {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

/* Mission Card */
.mission-card {
    background: var(--bg-card);
    border: 1px solid var(--machinery-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mission-card:hover {
    box-shadow: var(--shadow-elevated);
}

.mission-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gear-gold);
}

.mission-text {
    font-family: var(--font-body);
    color: var(--foreground);
    line-height: 1.7;
    margin: 0;
}

/* Capability Cards */
.capability-card {
    background: var(--bg-card);
    border: 1px solid var(--machinery-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.capability-card:hover {
    box-shadow: var(--shadow-elevated);
    border-color: var(--gear-gold);
}

.capability-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--gear-gold);
    transition: all 0.3s ease;
}

.capability-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--foreground);
    transition: color 0.3s ease;
}

.capability-card:hover .capability-title {
    color: var(--gear-gold);
}

.capability-text {
    font-family: var(--font-body);
    color: var(--muted-foreground);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

/* Project Cards */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--machinery-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    box-shadow: var(--shadow-elevated);
}

.project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.project-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gear-gold);
}

.project-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--foreground);
    margin: 0;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--gear-gold);
}

.project-status {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: var(--font-body);
    border: 1px solid;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-live {
    background-color: rgba(34, 197, 94, 0.2);
    color: rgb(74, 222, 128);
    border-color: rgba(34, 197, 94, 0.5);
}

.status-development {
    background-color: rgba(234, 179, 8, 0.2);
    color: var(--gear-gold);
    border-color: rgba(234, 179, 8, 0.5);
}

.status-completed {
    background-color: rgba(59, 130, 246, 0.2);
    color: rgb(96, 165, 250);
    border-color: rgba(59, 130, 246, 0.5);
}

.project-type {
    color: var(--gear-gold);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-description {
    color: var(--muted-foreground);
    font-family: var(--font-body);
    line-height: 1.7;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.25rem 0.5rem;
    background-color: var(--steel-gray);
    color: var(--foreground);
    font-size: 0.75rem;
    border-radius: 0.25rem;
    font-family: var(--font-body);
    border: 1px solid var(--machinery-border);
    transition: all 0.3s ease;
}

/* Service Cards */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--machinery-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card:hover {
    box-shadow: var(--shadow-elevated);
    border-color: var(--gear-gold);
}

.service-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--foreground);
    position: relative;
    z-index: 10;
    transition: color 0.3s ease;
}

.service-card:hover .service-title {
    color: var(--gear-gold);
}

.service-description {
    font-family: var(--font-body);
    color: var(--muted-foreground);
    line-height: 1.7;
    position: relative;
    z-index: 10;
}

.service-features {
    list-style: none;
    padding: 0;
    position: relative;
    z-index: 10;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
    color: var(--foreground);
    font-size: 0.875rem;
}

.service-features i {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gear-gold);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.service-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gear-gold);
    position: relative;
    z-index: 10;
}

/* Custom Solutions Card */
.custom-solutions-card {
    background: var(--bg-card);
    border: 1px solid var(--machinery-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    max-width: 64rem;
    position: relative;
    overflow: hidden;
}

.custom-solutions-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--foreground);
    position: relative;
    z-index: 10;
}

.custom-solutions-card p {
    font-family: var(--font-body);
    color: var(--muted-foreground);
    line-height: 1.7;
    position: relative;
    z-index: 10;
}

/* Contact Section */
.contact-info {
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--machinery-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-icon i {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gear-gold);
    transition: color 0.3s ease;
}

.contact-details h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-details p {
    font-family: var(--font-body);
    color: var(--muted-foreground);
    margin: 0;
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--machinery-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.form-label {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control,
.form-select {
    background-color: var(--input);
    border: 1px solid var(--border);
    color: var(--foreground);
    font-family: var(--font-body);
    transition: all 0.3s ease;
    padding: 0.75rem;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--input);
    border-color: var(--gear-gold);
    color: var(--foreground);
    box-shadow: 0 0 0 0.25rem rgba(234, 179, 8, 0.25);
}

.form-control::placeholder {
    color: var(--muted-foreground);
}

/* Footer */
.footer {
    background-color: var(--industrial-dark);
    border-top: 1px solid var(--machinery-border);
    padding: 3rem 0 1rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--border);
    height: 1px;
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-logo {
    height: 4.25rem;
    width: 4.25rem;
    margin-right: 0.75rem;
}

.footer-brand-text {
    font-family: var(--font-logo);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--foreground);
}

.footer-brand-tagline {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    color: var(--muted-foreground);
    line-height: 1.2;
}

.footer-text {
    font-family: var(--font-body);
    color: var(--muted-foreground);
    line-height: 1.7;
}

.footer-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--foreground);
    font-size: 1.125rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-family: var(--font-body);
    color: var(--muted-foreground);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: var(--gear-gold);
}

.footer-divider {
    border-color: var(--machinery-border);
    margin: 2rem 0 1rem;
}

.footer-bottom {
    font-family: var(--font-body);
    color: var(--muted-foreground);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 5.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    z-index: 1050;
    box-shadow: var(--shadow-card);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}



/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* Homepage */
.eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gear-gold);
    margin-bottom: 1rem;
}

.hero {
    padding: 10rem 0 5rem;
    background: var(--bg-hero);
    border-bottom: 1px solid var(--border);
}

.hero-heading {
    font-weight: 700;
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    line-height: 1.2;
    color: var(--foreground);
    margin-bottom: 1.25rem;
}

.hero-lead {
    font-size: 1.3rem;
    line-height: 1.65;
    color: hsl(0, 0%, 78%);
    max-width: 34rem;
    margin-bottom: 2rem;
}

.hero-note {
    margin: 1.5rem 0 0;
    font-size: 1rem;
    color: var(--muted-foreground);
}

.hero-shot {
    margin: 0;
}

.hero-shot img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--machinery-border);
    border-radius: 10px;
    box-shadow: var(--shadow-elevated);
}

.hero-shot figcaption {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: var(--muted-foreground);
    text-align: center;
}

.section-alt {
    background: hsl(220, 13%, 11%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head {
    max-width: 40rem;
    margin-bottom: 3rem;
}

.section-heading {
    font-weight: 700;
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.section-lead {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--muted-foreground);
}

/* What we can build */
.build-tile {
    display: block;
    height: 100%;
    padding: 1.75rem;
    background: var(--card);
    border: 1px solid var(--machinery-border);
    border-radius: var(--radius);
    color: var(--foreground);
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.build-tile:hover {
    border-color: var(--gear-gold);
    color: var(--foreground);
}

.build-tile i,
.build-tile svg {
    display: block;
    width: 1.75rem;
    height: 1.75rem;
    color: var(--gear-gold);
    margin-bottom: 1rem;
}

.build-tile h3 {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.35;
    margin-bottom: 0.6rem;
}

.build-tile p {
    color: var(--muted-foreground);
    font-size: 1.05rem;
    line-height: 1.55;
    margin: 0;
}

.samples-callout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 2rem;
    border: 1px solid var(--gear-gold);
    border-radius: var(--radius);
    background: var(--steel-gray);
}

.samples-callout h3 {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--foreground);
    margin-bottom: 0.4rem;
}

.samples-callout p {
    color: hsl(0, 0%, 80%);
    font-size: 1.1rem;
    margin: 0;
    max-width: 38rem;
}

.samples-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* How we work */
.steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 0;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: 0 0 2rem 3.5rem;
}

.steps li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gear-gold);
}

.steps h3 {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--foreground);
    margin-bottom: 0.35rem;
}

.steps p {
    color: var(--muted-foreground);
    line-height: 1.65;
    margin: 0;
}

/* Enquiry */
.btn-whatsapp {
    --bs-btn-color: #fff;
    --bs-btn-bg: #1f9d55;
    --bs-btn-border-color: #1f9d55;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #198348;
    --bs-btn-hover-border-color: #198348;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #156f3d;
    --bs-btn-active-border-color: #156f3d;
    display: inline-flex;
    align-items: center;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: hsl(0, 0%, 80%);
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.contact-list i {
    width: 1.1rem;
    height: 1.1rem;
    color: var(--gear-gold);
    flex-shrink: 0;
}

.contact-list a {
    color: inherit;
    text-decoration: none;
}

.contact-list a:hover {
    color: var(--gear-gold);
}

.optional {
    color: var(--muted-foreground);
    font-weight: 400;
}

@media (max-width: 991.98px) {
    .hero {
        padding: 8rem 0 3.5rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }

    .logo-img {
        height: 3.25rem;
        width: 3.25rem;
    }

    .brand-tagline {
        font-size: 0.6rem;
    }

    .hero-section {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 2rem;
        text-align: center;
        overflow-y: auto;
        align-items: flex-start;
    }

    .hero-section .container {
        padding-top: 1.5rem;
        padding-bottom: 1rem;
    }

    .hero-logo {
        justify-content: center;
        margin-bottom: 0.5rem !important;
    }

    .gear-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .gear-container {
        margin-bottom: 0.5rem;
    }

    .hero-title {
        font-size: clamp(1.4rem, 7vw, 2rem) !important;
        margin-bottom: 0.5rem !important;
    }

    .tagline-main {
        font-size: 1rem !important;
        margin-bottom: 0.4rem !important;
    }

    .tagline-sub {
        font-size: 0.875rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.5;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        margin-top: 1.5rem;
    }

    .hero-stats .stat-number {
        font-size: 1.5rem;
    }

    .hero-stats .stat-label {
        font-size: 0.75rem;
    }

    .gear-text {
        font-size: 1rem;
    }

    .messages-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 2.75rem;
        width: 2.75rem;
    }

    .brand-text {
        font-size: 1rem;
    }

    .brand-tagline {
        font-size: 0.55rem;
    }

    .hero-section {
        padding-top: 90px;
    }

    .section-padding {
        padding: 2rem 0;
    }

    .contact-form-card,
    .mission-card,
    .custom-solutions-card {
        padding: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .back-to-top {
        right: 0.875rem;
        bottom: 4.9rem;
    }
}

/* Scroll margin for anchor links */
#about,
#services,
#projects,
#contact {
    scroll-margin-top: 96px;
}

/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover effects for interactive elements */
.interactive-hover {
    transition: all 0.3s ease;
}

.interactive-hover:hover {
    box-shadow: var(--shadow-elevated);
}

/* HERO CLICK FIX: keep pattern layer behind everything */
.hero-section {
  position: relative;
}

.hero-patterns .pattern {
  pointer-events: none !important;
}

/* Put actual content above the overlay */
.hero-section .container,
.hero-content,
.hero-stats {
  position: relative;
  z-index: 2;
}

.custom-solutions-card * {
  position: relative;
  z-index: 10;
}

/* Inner page headers: compact instead of full screen, centred text */
.hero-section {
    height: auto;
    min-height: 0;
    padding: 10rem 0 4rem;
}

.hero-section .row.min-vh-100 {
    min-height: 0 !important;
}

.hero-section .text-center .tagline-sub {
    margin-left: auto;
    margin-right: auto;
}

.hero-section .text-center .hero-buttons,
.hero-section .text-center .hero-logo {
    justify-content: center;
}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: 0;
        padding: 8rem 0 3rem;
    }
}

/* Floating WhatsApp button */
.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1050;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1f9d55;
    color: #fff;
    box-shadow: var(--shadow-card);
    transition: background-color 0.15s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    background: #198348;
    color: #fff;
}

@media (max-width: 991.98px) {
    .whatsapp-float {
        right: 0.75rem;
        bottom: 0.75rem;
        width: 52px;
        height: 52px;
    }
}

/* Staff access: quiet footer link, and a dashboard button (logged in only) on the left */
.staff-link {
    color: var(--muted-foreground);
    text-decoration: none;
}

.staff-link:hover {
    color: var(--gear-gold);
}

.dashboard-float {
    position: fixed;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 1050;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--steel-gray);
    border: 1px solid var(--machinery-border);
    color: var(--foreground);
    box-shadow: var(--shadow-card);
}

.dashboard-float:hover {
    border-color: var(--gear-gold);
    color: var(--gear-gold);
}

@media (max-width: 991.98px) {
    .dashboard-float {
        left: 0.75rem;
        bottom: 0.75rem;
    }
}
