:root {
    --color-primary: #FFD700;
    /* Electric Yellow */
    --color-primary-hover: #ffcc00;
    --color-primary-soft: rgba(255, 215, 0, 0.15);

    --color-bg-dark: #0f0f0f;
    --color-bg-card: rgba(30, 30, 30, 0.6);
    --color-bg-card-hover: rgba(40, 40, 40, 0.8);

    --color-text-light: #ffffff;
    --color-text-muted: #a0a0a0;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --spacing-container: 24px;
    --border-radius-lg: 16px;
    --border-radius-sm: 8px;

    --shadow-glow: 0 0 20px rgba(255, 215, 0, 0.3);
    --backdrop-blur: blur(12px);
}

/* Premium Polish: Selection & Scrollbar */
::selection {
    background: var(--color-primary);
    color: #000;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f0f0f;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
    border: 2px solid #0f0f0f;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 215, 0, 0.03) 0%, transparent 20%);
}

h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-container);
}

.text-primary {
    color: var(--color-primary);
}

/* Header */
.header {
    background-color: rgba(15, 15, 15, 0.8);
    backdrop-filter: var(--backdrop-blur);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: padding 0.3s;
}

.header.scrolled {
    padding: 0.75rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
}

.nav {
    display: none;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
        gap: 2rem;
    }

    .nav-link {
        font-weight: 500;
        font-size: 1rem;
        position: relative;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -5px;
        left: 0;
        background-color: var(--color-primary);
        transition: width 0.3s;
    }

    .nav-link:hover::after {
        width: 100%;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.glow-effect {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 120px;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
    background-image:
        linear-gradient(45deg, #111 25%, transparent 25%, transparent 75%, #111 75%, #111),
        linear-gradient(45deg, #111 25%, transparent 25%, transparent 75%, #111 75%, #111);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Utility: Fade In Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Glass Cards */
.glass-card {
    background: var(--color-bg-card);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: transform 0.3s, background-color 0.3s, border-color 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    background-color: var(--color-bg-card-hover);
    border-color: var(--color-primary-soft);
}

/* Services */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 2rem;
}

@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: 3fr 2fr;
    }
}

.about-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-text {
    /* removed max-width limitation for grid layout */
    margin: 0;
}

.lead-text {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #e0e0e0;
}

.services-list {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.services-list li {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.services-list li::before {
    content: '›';
    color: var(--color-primary);
    font-size: 2rem;
    margin-right: 15px;
    line-height: 0;
    position: relative;
    top: -2px;
}

/* Pricing */
.glass-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    background: var(--color-primary);
    filter: blur(80px);
    opacity: 0.2;
}

.pricing-main-text {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.pricing-sub-text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

/* Contact */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    text-align: center;
    padding: 3rem 1.5rem;
}

.contact-item h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 2px;
}

.contact-link {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.contact-link:hover {
    color: var(--color-primary);
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: #050505;
    padding: 3rem 0;
    text-align: center;
    color: #555;
    font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 768px) {
    .header-content {
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .header .btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Extra small screens */
@media (max-width: 380px) {
    .header-content {
        gap: 0.25rem;
    }

    .logo {
        font-size: 1rem;
    }

    .header .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.7rem;
    }
}

/* Gallery - Premium Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.gallery-item {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 0;
    /* Remove padding for images */
}

.gallery-placeholder {
    display: none;
    /* Hide placeholder if still there */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(4px);
    color: var(--color-primary);
    text-align: center;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Full Excavator Hero Animation */
/* Full Excavator Hero Animation */
.excavator-wrapper {
    position: absolute;
    bottom: 0;
    right: 5%;
    width: 400px;
    height: 300px;
    z-index: 0;
    pointer-events: none;
    /* Let click pass through to container */
}

.excavator-hero-container {
    width: 100%;
    height: 100%;
    opacity: 0.9;
    pointer-events: auto;
    /* Enable clicks */
    cursor: pointer;
    transform: scaleX(-1);
    /* Face left towards text */
    transition: transform 0.3s;
}

.excavator-hero-container:active {
    transform: scaleX(-1) scale(0.98);
    /* Press effect */
}

/* Responsive adjustment */
@media (max-width: 900px) {
    .hero {
        padding-bottom: 2rem;
    }

    .excavator-wrapper {
        position: relative;
        /* Normal flow on mobile */
        right: auto;
        bottom: auto;
        width: 100%;
        max-width: 320px;
        height: auto;
        margin: 2rem auto 0;
        /* Space below buttons */
    }

    .excavator-hero-container {
        opacity: 0.9;
        /* Ensure scaleX(-1) persists */
        transform: scaleX(-1);
    }
}

.excavator-full-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.1));
}

/* Animations - Default IDLE state */
.track-treads {
    stroke-dasharray: 5, 5;
    /* Idle: subtle movement to show engine is running/vibration */
    animation: track-roll 2s linear infinite;
}

.excavator-chassis {
    transform-origin: 90px 150px;
    /* Idle: subtle engine rumble vibration (Translation only, NO rotation) */
    animation: body-vibrate 0.5s ease-in-out infinite alternate;
    transform: rotate(0deg);
    /* Safety enforcement */
}

.boom-group {
    transform-origin: 110px 120px;
    /* Idle: ready position */
    transform: rotate(0deg);
    transition: transform 0.5s;
}

.stick-group {
    transform-origin: 180px 80px;
    transform: rotate(0deg);
    transition: transform 0.5s;
}

.bucket-group-full {
    transform-origin: 240px 130px;
    transform: rotate(0deg);
    transition: transform 0.5s;
}

/* DIGGING Action Classes (Applied via JS) */
.excavator-hero-container.digging .excavator-chassis {
    /* Chassis stays rock solid during digging */
    animation: none;
    transform: rotate(0deg);
}

.excavator-hero-container.digging .boom-group {
    animation: boom-dig 2s ease-in-out;
}

.excavator-hero-container.digging .stick-group {
    animation: stick-dig 2s ease-in-out;
}

.excavator-hero-container.digging .bucket-group-full {
    animation: bucket-dig 2s ease-in-out;
}

/* Keyframes */
@keyframes track-roll {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: 20;
    }
}

@keyframes boom-lift {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(-15deg);
    }

    100% {
        transform: rotate(-5deg);
    }
}

@keyframes stick-move {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(25deg);
    }

    100% {
        transform: rotate(10deg);
    }
}

@keyframes bucket-curl {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(-40deg);
    }

    100% {
        transform: rotate(-10deg);
    }
}



@keyframes body-vibrate {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(1.5px) rotate(0deg);
    }
}

@keyframes boom-dig {

    0%,
    100% {
        transform: rotate(0deg);
    }

    30% {
        transform: rotate(-25deg);
    }

    /* Reach up/out */
    50% {
        transform: rotate(10deg);
    }

    /* Dig down */
    70% {
        transform: rotate(-15deg);
    }

    /* Liability lift */
}

@keyframes stick-dig {

    0%,
    100% {
        transform: rotate(0deg);
    }

    30% {
        transform: rotate(30deg);
    }

    /* Reach out */
    50% {
        transform: rotate(-20deg);
    }

    /* Scoop in */
    70% {
        transform: rotate(0deg);
    }
}

@keyframes bucket-dig {

    0%,
    100% {
        transform: rotate(0deg);
    }

    30% {
        transform: rotate(-20deg);
    }

    /* Open bucket */
    50% {
        transform: rotate(45deg);
    }

    /* Curl in */
    70% {
        transform: rotate(-10deg);
    }

    /* Dump/Reset */
}

/* Super Polish - Particles / Background Detail */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 215, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

.footer-ico {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    opacity: 0.7;
}

.footer-legal {
    margin-top: 5px;
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-legal a:hover {
    color: var(--color-primary);
    text-decoration: underline;
    opacity: 1;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.8rem;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 10px 20px rgba(220, 39, 67, 0.4);
}

.social-link.facebook:hover {
    background: #1877F2;
    box-shadow: 0 10px 20px rgba(24, 119, 242, 0.4);
}