/* ===== CSS VARIABLES ===== */
/* Webkit prefix for older browsers */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Fix for older Firefox */
html {
    scroll-behavior: smooth;
    -webkit-scroll-behavior: smooth;
}

/* Flexbox fallback for IE10 */
.services-grid {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
}

/* Grid fallback for IE11 */
@supports (display: grid) {
    .services-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Backdrop filter fallback */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Linear gradient fallback */
.hero-background {
    background: #0f1d28;
    background: -webkit-linear-gradient(135deg, #243140 0%, #0f1d28 50%, #6c4211 100%);
    background: linear-gradient(135deg, #243140 0%, #0f1d28 50%, #6c4211 100%);
}

/* Transform fallback */
button, a {
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

button:hover, a:hover {
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
}

/* Transition fallback */
a, button, .service-card {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* Filter fallback */
@supports (filter: blur(10px)) {
    .mobile-menu {
        filter: blur(0);
    }
}
:root {
    --color-primary: #977004;
    --color-primary-light: #fbbc57;
    --color-primary-dark: #6c4211;
    --color-blue: #243140;
    --color-blue-dark: #0f1d28;
    --color-green: #80bf1f;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-grey-light: #f7f7f7;
    --color-grey: #e5e5e5;
    --color-grey-dark: #707070;
    --color-text: #000000;
    --color-text-muted: #707070;
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
    padding-top: 80px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ===== CONTAINER ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 1024px) {
    .container { padding: 0 2rem; }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: var(--transition);
    white-space: nowrap;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.75rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(151, 112, 4, 0.3);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-white:hover {
    background-color: var(--color-grey-light);
    transform: translateY(-2px);
}

.btn-outline-white {
    background-color: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ===== ALERTS ===== */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: rgba(128, 191, 31, 0.1);
    border-left-color: var(--color-green);
    color: #1f6b1f;
}

.alert-error {
    background-color: rgba(255, 68, 68, 0.1);
    border-left-color: #ff4444;
    color: #8b0000;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 2rem;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    width: 180px;
    height: auto;
}

.nav-desktop {
    display: none;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .nav-desktop { display: flex; }
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-black);
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
    font-weight: 600;
}

/* Mobile Menu */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .menu-toggle { display: none; }
}

.menu-bar {
    width: 30px;
    height: 3px;
    background: var(--color-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active .menu-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active .menu-bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .menu-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--color-blue-dark) 0%, var(--color-blue) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right 0.5s ease;
    z-index: 999;
    padding-top: 80px;
}

.mobile-menu.active { right: 0; }

.mobile-link {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-white);
    transition: all 0.3s ease;
}

.mobile-link:hover { color: var(--color-primary-light); }

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 6rem 2rem 4rem;
    background: linear-gradient(135deg, var(--color-blue-dark) 0%, var(--color-blue) 100%);
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><rect width="60" height="60" fill="none"/><circle cx="30" cy="30" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.page-header-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    opacity: 0.9;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 50%, var(--color-primary-dark) 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    background-color: rgba(251, 188, 87, 0.2);
    border: 1px solid rgba(251, 188, 87, 0.3);
    border-radius: 9999px;
}

.hero-badge span {
    color: var(--color-primary-light);
    font-weight: 500;
    font-size: 0.875rem;
}

.hero-title {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.text-highlight { color: var(--color-primary-light); }

.hero-description {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons { flex-direction: row; }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 1.25rem;
    padding: 0.25rem;
}

.scroll-dot {
    width: 0.5rem;
    height: 0.75rem;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 0.25rem;
    margin: 0 auto;
    animation: pulse 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 6rem 0;
    background-color: var(--color-grey-light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    color: var(--color-blue-dark);
}

.section-description {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 42rem;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
    background-color: var(--color-white);
    border: 2px solid var(--color-grey);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(151, 112, 4, 0.5);
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(151, 112, 4, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--color-primary);
}

.service-icon svg {
    color: var(--color-primary);
    transition: var(--transition);
}

.service-card:hover .service-icon svg {
    color: var(--color-white);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-description {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 6rem 0;
    background-color: var(--color-white);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

.features-intro {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .features-list { grid-template-columns: repeat(2, 1fr); }
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.check-icon {
    color: var(--color-green);
    flex-shrink: 0;
}

.features-visual {
    position: relative;
}

.experience-badge {
   width: 100%;
    min-height: 300px;
    background-image: 
        url("/images/Machine+ Sand.png"),
        url("/images/Mark + Sitesand.png"),
        url("/images/Dr Mark+ action.png");
    background-repeat: no-repeat;
    background-position: left center, center center, right center;
    background-size: 33.33% 100%, 33.33% 100%, 33.33% 100%; /* split into 3 */
    
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.experience-number {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.experience-text {
    font-size: 1.25rem;
}

.visual-decoration {
    position: absolute;
    background-color: rgba(239, 185, 98, 0.2);
    border-radius: 1rem;
    z-index: -1;
}

.decoration-1 {
    width: 12rem;
    height: 12rem;
    bottom: -1.5rem;
    right: -1.5rem;
}

.decoration-2 {
    width: 8rem;
    height: 8rem;
    top: -1.5rem;
    left: -1.5rem;
    background-color: rgba(36, 49, 64, 0.2);
}

/* ===== CTA SECTION ===== */
.cta-section {
   width: 100%;
   opacity: 0.9;
    min-height: 300px;

    background-image: 
        url("/images/Tracktor+ road.png"),
        url("/images/payloader.png"),
        url("/images/machiner.png"),
        url("/images/machiner2.png"),
        url("/images/Sand Tipper.png"),
        url("/images/machiner3.png"),
        url("/images/machiner4.png");

    background-repeat: no-repeat;

    /* positions evenly from left → right */
    background-position: 
        0% center,
        16.66% center,
        33.33% center,
        50% center,
        66.66% center,
        83.33% center,
        100% center;

    /* each takes 1/7 of the width */
    background-size:
        14.28% 100%,
        14.28% 100%,
        14.28% 100%,
        14.28% 100%,
        14.28% 100%,
        14.28% 100%,
        14.28% 100%;

    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.cta-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
  font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1rem 2rem;
    box-shadow: 
        0 8px 32px rgba(151, 112, 4, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-description {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1rem 2rem;
    box-shadow: 
        0 8px 32px rgba(151, 112, 4, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .cta-buttons { flex-direction: row; }
}

/* ===== STATS SECTION ===== */
.stats {
    padding: 4rem 0;
    background: var(--color-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    background: var(--color-grey-light);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.stat-label {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* ===== STORY SECTION ===== */
.story-section {
    padding: 6rem 0;
    background: var(--color-grey-light);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .story-grid { grid-template-columns: repeat(2, 1fr); }
}

.story-text h2 {
    margin-bottom: 1.5rem;
}

.story-text p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.visual-card {
    aspect-ratio: 4/3;
    border-radius: 1rem;
    overflow: hidden;

    /* Four background images */
    background-image:
        url("/images/Dr. Mark+ Machine.png"),
        url("/images/Dr Mark+ Mentor.png"),
        url("/images/Tracktor+ road.png"),
        url("/images/Machine+ Sand.png");

    background-repeat: no-repeat;

    /* Positions (2×2 grid) */
    background-position:
        left top,
        right top,
        left bottom,
        right bottom;

    /* Each image is 50% width × 50% height */
    background-size:
        50% 50%,
        50% 50%,
        50% 50%,
        50% 50%;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}


/* ===== VALUES SECTION ===== */
.values-section {
    padding: 6rem 0;
    background-color: var(--color-white);
}

.visual-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1rem 2rem;
    box-shadow: 
        0 8px 32px rgba(151, 112, 4, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.visual-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.6s ease;
}

.visual-text:hover::before {
    left: 100%;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .values-grid { grid-template-columns: repeat(4, 1fr); }
}

.value-card {
    background-color: var(--color-white);
    border: 2px solid var(--color-grey);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(151, 112, 4, 0.5);
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.value-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.value-description {
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== TEAM SECTION ===== */
.team-section {
    padding: 6rem 0;
    background: var(--color-grey-light);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .team-grid { grid-template-columns: repeat(4, 1fr); }
}

.team-member {
    background: var(--color-white);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.member-avatar {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.member-role {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* ===== CERTIFICATIONS SECTION ===== */
.certifications-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 50%, var(--color-blue-dark) 100%);
    color: var(--color-white);
}

.certifications-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 3rem;
    justify-items: center;
}

@media (min-width: 768px) {
    .certifications-grid { grid-template-columns: repeat(4, 1fr); }
}

.certification-item {
  display: block;          /* so the whole box is clickable */
    text-decoration: none;   /* remove underline */
    color: inherit;          /* keep your original text color */
    
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.certification-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ===== PROCESS SECTION ===== */
.process-section {
    padding: 6rem 0;
    background: var(--color-white);
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .process-grid { grid-template-columns: repeat(4, 1fr); }
}

.process-step {
    background: var(--color-grey-light);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.process-step h3 {
    margin-bottom: 0.75rem;
}

.process-step p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ===== BENEFITS SECTION ===== */
.benefits-section {
    padding: 6rem 0;
    background: var(--color-grey-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .benefits-grid { grid-template-columns: repeat(4, 1fr); }
}

.benefit-card {
    background: var(--color-white);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    margin-bottom: 0.75rem;
}

.benefit-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 6rem 0;
    background: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-grid { grid-template-columns: 2fr 1fr; }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-grey);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(151, 112, 4, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-row { grid-template-columns: repeat(2, 1fr); }
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-info {
    background: var(--color-grey-light);
    padding: 2rem;
    border-radius: 1rem;
    height: fit-content;
}

.contact-info h2 {
    margin-bottom: 2rem;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item h3 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.info-item p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

.info-item a {
    color: var(--color-primary);
    font-weight: 600;
}

.info-item a:hover {
    color: var(--color-primary-dark);
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
    padding: 6rem 0;
    background: var(--color-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

.project-card {
    background: var(--color-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
     width: 100%;
    height: 250px;
    background-image: url("/images/Machine+\ Sand.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image {
     width: 100%;
    height: 250px;
    background-image: url("/images/Machine+\ Sand.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.project-content {
    padding: 1.5rem;
}

.project-header {
    margin-bottom: 1rem;
}

.project-header h3 {
    margin-bottom: 0.75rem;
}

.project-category {
    display: inline-block;
    background: rgba(151, 112, 4, 0.1);
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.project-footer {
    border-top: 1px solid var(--color-grey);
    padding-top: 1rem;
}

.project-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.project-status.completed {
    background: rgba(128, 191, 31, 0.2);
    color: #2d5f0f;
}

.project-status.ongoing {
    background: rgba(251, 188, 87, 0.2);
    color: #6c4211;
}

.project-status.planning {
    background: rgba(36, 49, 64, 0.2);
    color: #0f1d28;
}

.projects-stats {
    padding: 4rem 0;
    background: var(--color-grey-light);
}

.stat-box {
    text-align: center;
    padding: 2rem;
}

.stat-box .stat-number {
    font-size: 2.5rem;
}

/* ===== SERVICE DETAIL ===== */
.service-detail {
    padding: 6rem 0;
    background: var(--color-white);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .detail-grid { grid-template-columns: 2fr 1fr; }
}

.detail-content h2 {
    margin-bottom: 1rem;
}

.service-intro {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.detail-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.detail-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.detail-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.detail-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-green);
    font-weight: 700;
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .process-steps { grid-template-columns: repeat(2, 1fr); }
}

.step {
    background: var(--color-grey-light);
    padding: 1.5rem;
    border-radius: 1rem;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.step-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step h4 {
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .cta-buttons { flex-direction: row; }
}

/* Detail Sidebar */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: var(--color-grey-light);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: var(--transition);
}

.sidebar-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.sidebar-card h3 {
    margin-bottom: 1rem;
}

.sidebar-card ul {
    list-style: none;
}

.sidebar-card li {
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 0.75rem;
}

.sidebar-card li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.service-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-primary);
    font-weight: 500;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--color-primary-dark);
    padding-left: 0.5rem;
}

.quick-facts {
    background: linear-gradient(135deg, rgba(151, 112, 4, 0.05) 0%, rgba(251, 188, 87, 0.05) 100%);
}

.fact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.fact-item:last-child {
    border-bottom: none;
}

.fact-label {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.fact-value {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.25rem;
}

.contact-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
}

.contact-card h3 {
    color: var(--color-white);
}

.contact-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.related-services-section {
    padding: 6rem 0;
    background: var(--color-grey-light);
}

/* ===== ERROR PAGES ===== */
.not-found-section {
    padding: 8rem 2rem;
    background: var(--color-white);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.not-found-content {
    text-align: center;
    max-width: 36rem;
}

.not-found-title {
    font-size: 8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1;
}

.not-found-message {
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.not-found-description {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .error-buttons { flex-direction: row; }
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--color-blue-dark);
    color: var(--color-white);
    padding: 4rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.125rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.footer-links,
.footer-services,
.footer-contact {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-primary-light);
    padding-left: 0.5rem;
}

.footer-services li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-item svg {
    color: var(--color-primary-light);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--color-primary-light);
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--color-primary);
    border-radius: 50%;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
    .footer-bottom { flex-direction: row; }
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--color-primary-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    body { padding-top: 70px; }
    
    .page-header { padding: 4rem 1rem 2rem; }
    
    .services-section,
    .features-section,
    .cta-section,
    .story-section,
    .values-section,
    .team-section,
    .certifications-section,
    .process-section,
    .benefits-section,
    .contact-section,
    .projects-section {
        padding: 3rem 0;
    }
    
    .hero-section { min-height: 70vh; }
    
    .section-title { font-size: 2rem; }
    
    .not-found-title { font-size: 5rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.75rem; }
    
    .hero-description { font-size: 1rem; }
    
    .not-found-title { font-size: 3.5rem; }
    
    .not-found-message { font-size: 1.25rem; }
}