:root {
    --primary: #fbaf32;
    --primary-dark: #e59a1f;
    --dark: #1a1a1a;
    --light: #f4f7f6;
    --text: #444444;
    --text-muted: #777777;
    --white: #ffffff;
    --footer-bg: #111111;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* --- Top Bar --- */
.top-bar {
    background: var(--dark);
    color: #999;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 500;
}

.top-bar-info a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.top-bar-info a:hover {
    color: var(--primary);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info {
    display: flex;
    gap: 25px;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-info i {
    color: var(--primary);
    font-size: 14px;
}

/* --- Header --- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--dark);
}

.nav-logo {
    height: 45px;
    transition: var(--transition);
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo h2 {
    font-size: 22px;
    letter-spacing: 1px;
    margin: 0;
    color: var(--dark);
    text-transform: uppercase;
}

.logo span {
    color: var(--primary);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

nav ul li a:hover::after, nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary);
}

/* --- Page Header --- */
.page-header {
    background: #333;
    background-size: cover;
    background-position: center;
    padding: 70px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    color: var(--white);
    font-size: clamp(36px, 6vw, 54px);
    text-transform: uppercase;
    margin: 0;
    font-weight: 800;
    letter-spacing: 4px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    position: relative;
    display: inline-block;
    animation: fadeInUp 0.8s ease-out;
}

.page-header h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(251, 175, 50, 0.4);
}

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

/* --- Section General --- */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h3 {
    font-size: clamp(24px, 4vw, 36px);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.6)), url('../media/workshop/MECSLIS HF320 – High-Speed Precision WireCut EDM.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(32px, 5vw, 64px);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-desc {
    font-size: clamp(16px, 2vw, 20px);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
    color: rgba(255,255,255,0.95);
    font-weight: 400;
}

.section-desc {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    text-align: center;
    color: var(--text);
}

/* --- Who We Are & About --- */
.who-we-are-flex, .about-flex {
    display: flex;
    gap: 50px;
    align-items: center;
}

.who-we-are-text, .about-text {
    flex: 1.2;
}

.who-we-are-image, .about-image {
    flex: 0.8;
}

.who-we-are-image img, .about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 20px 20px 0 rgba(251, 175, 50, 0.1);
    transition: var(--transition);
}

.who-we-are-image img:hover, .about-image img:hover {
    box-shadow: 10px 10px 0 var(--primary);
    transform: translate(5px, 5px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: var(--white);
    padding: 35px 25px;
    text-align: center;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 5px solid var(--primary);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.stat-card h3 {
    color: var(--primary);
    font-size: 42px;
    margin-bottom: 5px;
    font-weight: 800;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* --- Specialization / Tech Grid --- */
.specialization {
    background: var(--dark);
    color: var(--white);
}

.specialization .section-title h3 {
    color: var(--white);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.tech-card {
    background: rgba(255,255,255,0.03);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
    border-radius: 8px;
}

.tech-card:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(251, 175, 50, 0.2);
}

.tech-card:hover h4, .tech-card:hover p {
    color: var(--dark);
}

.tech-card h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
}

.tech-card p {
    font-size: 15px;
    margin: 0;
    opacity: 0.9;
}

/* --- UI Components --- */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: var(--dark);
    padding: 16px 40px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(251, 175, 50, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 175, 50, 0.4);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    text-decoration: none;
    transition: 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* --- Service Cards (Shared) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 50px 35px;
    text-align: center;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: var(--primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 32px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
    transform: rotateY(360deg);
}

.service-card h4 {
    margin-bottom: 15px;
    font-size: 20px;
}

.spec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    justify-content: center;
}

.tag {
    background: var(--light);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--dark);
}

/* --- CTA Banner (Shared) --- */
.cta-banner {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-banner h2 {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 20px;
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    height: 300px;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(251, 175, 50, 0.2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    padding: 30px;
    text-align: center;
    color: var(--white);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay h4 {
    margin: 0 0 10px;
    font-size: 18px;
    text-transform: uppercase;
    color: var(--primary);
}

.gallery-overlay p {
    font-size: 14px;
    margin: 0;
    font-weight: 500;
    color: var(--white);
    opacity: 0.9;
}

/* --- Contact Page Styles --- */
.contact-flex {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-form-col {
    flex: 1.2;
    min-width: 350px;
}

.contact-info-col {
    flex: 0.8;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.info-card {
    background: var(--light);
    padding: 40px;
    border-radius: 8px;
    border-left: 6px solid var(--primary);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.info-card h4 {
    margin-bottom: 25px;
    font-size: 22px;
}

.info-card p {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    align-items: center;
}

.info-card i {
    color: var(--primary);
    font-size: 20px;
    width: 30px;
    height: 30px;
    background: rgba(251, 175, 50, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.map-wrapper {
    height: 300px;
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- Footer --- */
footer {
    background: var(--footer-bg);
    color: #999;
    padding: 80px 0 30px;
    font-size: 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 30px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links ul li {
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-links ul li a {
    color: #999;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
    display: inline-block;
}

.footer-contact p {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 4px;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.about-text h3 {
    margin-bottom: 20px;
}

.about-features {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    color: var(--primary);
    font-size: 24px;
}

.feature-item h5 {
    margin: 0;
}

.read-more-link {
    display: inline-block;
    margin-top: 25px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
}

.service-card .read-more-link {
    margin-top: 15px;
    font-size: 14px;
}

.read-more-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.read-more-link i {
    margin-left: 5px;
}

.vision-text {
    max-width: 900px;
    margin: 0 auto;
    font-style: italic;
    font-size: 1.1rem;
    text-align: center;
}

.cta-banner {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('../media/workshop/EDM\ BG.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: var(--white);
}

.cta-banner h2 {
    color: var(--white);
    font-size: clamp(28px, 4vw, 36px);
    margin-bottom: 20px;
}

.cta-banner p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo h2 {
    color: var(--white);
    margin: 0;
}

.footer-logo h2 span {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border: 4px solid var(--white);
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 35px;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--primary);
}

/* --- Helper Classes --- */
.bg-light {
    background-color: var(--light) !important;
}

.bg-dark {
    background-color: var(--dark) !important;
    color: var(--white);
}

.text-primary {
    color: var(--primary) !important;
}

/* --- Responsiveness --- */
@media (max-width: 992px) {
    .services-grid, .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-flex, .who-we-are-flex {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .about-image, .who-we-are-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }

    .about-features {
        justify-content: center;
    }
    section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .services-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .top-bar-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .top-bar-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 25px 20px;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        padding: 0 15px;
    }

    .nav-toggle {
        display: block;
        order: 2;
        font-size: 24px;
        color: var(--dark);
    }

    .logo {
        order: 1;
    }

    .logo h2 {
        font-size: 20px;
    }

    .nav-logo {
        height: 38px;
    }

    nav {
        display: none;
        width: 100%;
        order: 3;
        background: var(--white);
    }

    nav.active {
        display: block;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 12px 20px;
        border-bottom: 1px solid rgba(0,0,0,0.03);
    }

    nav ul li a::after {
        display: none;
    }

    .hero h1 {
        font-size: 32px;
        letter-spacing: 2px;
    }
    
    .section-title h3 {
        font-size: 26px;
    }
    
    .cta-banner h2 {
        font-size: 26px;
    }

    .footer-grid {
        gap: 40px;
    }
}
