:root {
    --primary: #0066ff;
    --primary-dark: #004ecc;
    --dark: #0a0a0a;
    --text-main: #ffffff;
    --text-dim: #b0b0b0;
    --bg-light: #f8faff;
    
    /* Typography Updates: All set to Poppins */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Ensuring the alias points to the new body font */
    --poppins: var(--font-body);
    scroll-behavior: smooth;
}

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

body {
    background: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/*  NAVIGATION  */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 6%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 400;
    font-size: 0.95rem;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #151515;
    width: 200px;
    padding: 1rem;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    list-style: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    padding: 160px 6% 80px;
    display: flex;
    align-items: center;
    position: relative;
    background: url('images/heroimage.jpg') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(57, 136, 255, 0.589) 0%, rgba(10, 10, 10, 0.95) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    width: 100%;
    align-items: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-title span {
    color: white;
    opacity: 0.8;
    font-weight: 300;
}

.hero-desc {
    max-width: 550px;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}


/* Timeline Card */
.timeline-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.card-img-wrap {
    height: 220px;
    overflow: hidden;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 2rem;
}

.card-body h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-family: var(--font-heading);
}

/* --- BUTTONS --- */
.btn-primary,
.btn-nav {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid white;
    padding: 0.9rem 2rem;
    border-radius: 4px;
    margin-left: 1rem;
    cursor: pointer;
}

/* Cards Wrapper - Absolute stacking */
/* --- CNC STYLE HORIZONTAL STACKING --- */
#services-section {
    background: #010101;
    padding-top: 100px;
}

.main-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.panel {
    position: absolute;
    top: 0;
    height: 100vh;
    display: flex;
    width: 100%;
    background-color: #010101;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.8);
    will-change: transform;
}

/* Offset positions for the stacking effect */
.panel-1 {
    z-index: 1;
    left: 0;
}

.panel-2 {
    z-index: 2;
    left: 80px;
    width: calc(100% - 80px);
    transform: translateX(100%);
}

.panel-3 {
    z-index: 3;
    left: 160px;
    width: calc(100% - 160px);
    transform: translateX(100%);
}

/* The Vertical Spine */
.panel-spine {
    width: 80px;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 100px 0 40px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.spine-number {
    color: var(--primary);
    font-weight: 700;
    text-align: center;
}

.spine-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 14px;
    text-align: center;
}

.panel-inner {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8vw;
}

.content-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--primary);
    margin-bottom: 20px;
}

/* CNC Teardrop Image Shape */
.content-image {
    width: 450px;
    height: 450px;
    border-radius: 200px 200px 20px 200px;
    /* Exact CNC shape */
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 102, 255, 0.3);
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* Aligns everything to the left */
    gap: 1.5rem;
    /* Creates equal space between title, p, and buttons */
    max-width: 550px;
    z-index: 2;
}

/* Overlapping Buttons with Hover */
.btn-link {
    padding: 12px 25px;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    margin-right: 15px;
    transition: 0.3s;
    font-weight: 600;
}

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

/*  SERVICES GRID */
.services {
    padding: 100px 6%;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-top: 0.5rem;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    position: relative;
    background: #151515;
    /* Fallback */
    height: 250px;
    padding: 2rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, border-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* SERVICE CARD STYLING */
.service-card {
    /* Frosted glass */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem 1rem;
    border-radius: 8px;
    /* Subtle stroke border */
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    /* Soft blue glow shadow */
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.05);
}

.service-card h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* TASK 4: FAB & MODAL */
/* TASK 4: WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 65px;
    height: 65px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    fill: white;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
}

.modal-content {
    background: #111;
    padding: 4rem;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    border: 1px solid var(--primary);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.strength {
    padding: 100px 0;
}

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

.metric h2.counter {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3rem;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 15px;
}

.fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 10px;
}

.hero-desc.reveal-text {
    color: rgba(255, 255, 255, 0.2);
    /* Dimmed state */
    transition: color 0.3s ease;
}

/* --- MOBILE RESPONSIVENESS --- */

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        /* Stack hero content */
        text-align: center;
        gap: 2rem;
    }

    .hero-desc {
        margin: 0 auto 2.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns for tablets */
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Hide standard links; usually replaced by a burger menu */
    }

    .hero {
        padding: 120px 5% 40px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        /* Stack statistics */
        gap: 2rem;
        padding: 0 10%;
    }

    .services-grid {
        grid-template-columns: 1fr;
        /* 1 column for phones */
    }

    .modal-content {
        width: 90%;
        padding: 2.5rem 1.5rem;
    }

    /* Adjust the Scroll Showcase for touch */
    .text-block h2 {
        font-size: 2rem;
    }

    .text-block p {
        padding: 0 20px;
    }
}

.services-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.services-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 3rem 0;
    color: var(--text-dim);
    font-size: 1.1rem;
}