:root {
    --primary-color: #2B2E34;
    --secondary-color: #F5F5F5;
    --text-dark: #333333;
    --text-light: #777777;
    --accent-color: #F97316;
    /* Construction Orange */
    --accent-hover: #e0600a;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
    --section-padding: 80px 0;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
    text-transform: uppercase;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-padding);
}

.text-white {
    color: var(--white) !important;
}

.bg-dark {
    background-color: var(--primary-color);
    color: var(--white);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-outline-white {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-white:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.full-width {
    width: 100%;
}

/* Header */
.header {
    background-color: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background-color: var(--primary-color);
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    transition: var(--transition);
}

.header.scrolled .logo img {
    height: 60px;
}

.navbar {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
    margin-right: 30px;
}

.nav-links li a {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.btn-cta-header {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 20px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    border-radius: 4px;
    font-weight: 500;
}

.btn-cta-header:hover {
    background-color: var(--accent-hover);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--white);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--primary-color);
    z-index: 1001;
    transition: 0.5s ease;
    padding: 60px 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: var(--white);
    cursor: pointer;
}

.mobile-nav-links li {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.mobile-nav-links li a {
    color: var(--white);
    font-size: 1.2rem;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 46, 52, 0.7);
    /* Dark overlay */
    z-index: -1;
}

.hero-content {
    color: var(--white);
    max-width: 800px;
    padding-top: 60px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Services Section */
.services {
    background-color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--accent-color);
}

.icon-box {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Custom Fabrication / Split Section */
.split-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.split-layout .text-content {
    flex: 1;
}

.split-layout .image-content {
    flex: 1;
}

.split-layout .image-content img {
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lead-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.feature-list {
    margin: 30px 0;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
}

.feature-list li i {
    color: var(--accent-color);
    margin-right: 15px;
}

/* Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-number {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(43, 46, 52, 0.1);
    line-height: 1;
    margin-bottom: -20px;
    position: relative;
    z-index: 0;
}

.feature-item h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.feature-item p {
    color: var(--text-light);
}

/* Projects Section */
.projects {
    background-color: var(--secondary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    height: 350px;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 30px 20px 20px;
    color: var(--white);
    transform: translateY(20px);
    transition: var(--transition);
}

.project-card:hover .project-info {
    transform: translateY(0);
}

.project-info h4 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.project-info p {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(rgba(31, 78, 216, 0.8), rgba(31, 78, 216, 0.9)), url('../images/aluminium-stainless-steel-workshop-uae.png') no-repeat center center/cover;
    /* Using blue overlay purely for variation or can use primary */
    /* Let's stick to theme: Primary grey overlaying welding */
    background: linear-gradient(rgba(43, 46, 52, 0.9), rgba(43, 46, 52, 0.9)), url('../images/precision-tig-welding-stainless-steel.png') no-repeat center center/cover;
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    background: var(--white);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.contact-info {
    flex: 1;
    background-color: var(--primary-color);
    padding: 60px;
    color: var(--white);
    min-width: 300px;
}

.contact-info h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 40px;
    opacity: 0.8;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-details li i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 20px;
    margin-top: 5px;
}

.contact-details li span {
    display: block;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 5px;
}

.contact-details li a,
.contact-details li p {
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-form-container {
    flex: 1.5;
    padding: 60px;
    min-width: 300px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Footer */
.footer {
    background-color: #1a1c20;
    /* Darker than primary */
    color: #cecece;
    padding-top: 80px;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    /* Make logo white for dark footer */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about h5,
.footer-links h5,
.footer-services h5,
.footer-contact h5 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 12px;
}

.footer-links ul li a,
.footer-services ul li {
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 992px) {

    .header .nav-links,
    .header .btn-cta-header {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .split-layout {
        flex-direction: column-reverse;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .contact-info,
    .contact-form-container {
        padding: 40px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grids */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

.delay-600 {
    transition-delay: 0.6s;
}

/* Specific Animation Types */
.fade-in-left {
    transform: translateX(-50px);
}

.fade-in-left.is-visible {
    transform: translateX(0);
}

.fade-in-right {
    transform: translateX(50px);
}

.fade-in-right.is-visible {
    transform: translateX(0);
}

.zoom-in {
    transform: scale(0.9);
}

.zoom-in.is-visible {
    transform: scale(1);
}

/* Hover Effects Enhancements */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-bottom 0.3s ease;
}

.service-card:hover .icon-box i {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 100%;
    top: 0;
    left: 0;
    transition: all 0.3s ease;
    z-index: -1;
    background-color: rgba(255, 255, 255, 0.2);
}

.btn:hover::after {
    width: 100%;
}