:root {
    /* Color Palette */
    --clr-bg: #0a0a0f;
    --clr-surface: #13141c;
    --clr-surface-light: #1e202d;

    --clr-primary: #f59e0b;
    /* Amber/Orange for industrial machinery vibe */
    --clr-primary-glow: rgba(245, 158, 11, 0.4);
    --clr-secondary: #10b981;
    /* Green for trust/whatsapp */

    --clr-text: #f3f4f6;
    --clr-text-muted: #9ca3af;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --grad-surface: linear-gradient(180deg, rgba(30, 32, 45, 0.8) 0%, rgba(19, 20, 28, 0.95) 100%);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --container-width: 1280px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Effects */
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Background Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

/* --- TOP BAR --- */
.top-bar {
    background: rgba(10, 10, 15, 0.95);
    border-bottom: var(--border-glass);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    position: relative;
    z-index: 100;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-bar-info,
.top-bar-contact {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-contact a:hover {
    color: var(--clr-primary);
}

.indiamart-trust {
    color: #ffd700;
    font-weight: 600;
}

/* --- MAIN HEADER --- */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 99;
    padding: 1rem 0;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: var(--border-glass);
    transition: var(--transition);
}

.main-header.scrolled {
    padding: 0.75rem 0;
    background: rgba(10, 10, 15, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 8px var(--clr-primary-glow));
    animation: spin-slow 10s linear infinite;
}

.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn-primary-outline) {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:not(.btn-primary-outline)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clr-primary);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary-outline):hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:not(.btn-primary-outline):hover,
.nav-links a.active {
    color: var(--clr-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--clr-text);
    transition: var(--transition);
}

/* BUTTONS */
.btn-primary,
.btn-primary-outline,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
}

.btn-primary {
    background: var(--grad-primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px var(--clr-primary-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary::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: var(--transition);
}

.btn-primary:hover::before {
    left: 100%;
    transition: 0.7s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--clr-primary-glow);
}

.btn-primary svg {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.btn-primary:hover svg {
    transform: translateY(3px);
}

.btn-primary-outline {
    background: transparent;
    color: var(--clr-primary);
    border: 2px solid var(--clr-primary);
}

.btn-primary-outline:hover {
    background: var(--clr-primary);
    color: #fff;
    box-shadow: 0 4px 15px var(--clr-primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--clr-text);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary svg {
    width: 20px;
    height: 20px;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    padding: 4rem 0;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 10;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--clr-primary);
    color: var(--clr-primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
}

.gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--clr-text-muted);
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: var(--border-glass);
    width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item span:first-child,
.stat-item .counter {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.stat-item span:last-child {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.stat-item .counter {
    display: inline-block;
}

.hero-visual {
    position: relative;
    height: 600px;
    perspective: 1000px;
}

.floating-machines {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.glass-card {
    background: var(--grad-surface);
    backdrop-filter: blur(16px);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-glass);
}

.hero-visual .glass-card {
    position: absolute;
}

.glass-card img {
    border-radius: var(--radius-md);
    object-fit: cover;
}

.float-1 {
    top: 10%;
    right: 5%;
    width: 60%;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.float-2 {
    bottom: 10%;
    left: 5%;
    width: 50%;
    z-index: 1;
    animation: float 8s ease-in-out infinite reverse;
}

.gear-large {
    position: absolute;
    top: 40%;
    left: 45%;
    font-size: 5rem;
    opacity: 0.2;
    z-index: 0;
    animation: spin-slow 20s linear infinite;
}

/* Animations */
@keyframes spin-slow {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        align-items: center;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .top-bar-info {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
        width: 100%;
    }

    .top-bar-contact {
        justify-content: center;
        width: 100%;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 2rem;
    }
}

/* --- SECTIONS COMMON --- */
.section-padding {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-top: 0.5rem;
}

.header-line {
    height: 4px;
    width: 60px;
    background: var(--grad-primary);
    margin: 1rem 0 1.5rem;
    border-radius: 4px;
}

.header-line.line-center {
    margin: 1rem auto 1.5rem;
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 1rem;
}

.text-muted {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

/* --- MOBILE NAV --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: var(--border-glass);
    }

    .nav-links.active {
        display: flex;
        animation: fadeIn 0.3s ease forwards;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- COMBINED DOCS SECTION (CATALOG + BOOKLET) --- */
.docs-grid {
    display: grid;
    /* Use minmax to prevent content blowout causing one column to crush the other */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
    width: 100%;
}

.doc-column {
    display: flex;
    flex-direction: column;
}

.column-header h3 {
    color: #fff;
    font-size: 1.4rem;
}

.thumbnail-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-glass);
    border: var(--border-glass);
    background: var(--clr-surface);
    width: 100%;
    /* Standardize aspect ratio to fit European A4 style PDFs without stretching too tall */
    aspect-ratio: 1 / 1.414;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
}

.static-thumbnail {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Subscribe Section */
.subscribe-form {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 50px 0 0 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition);
}

.subscribe-input:focus {
    border-color: var(--clr-primary);
    background: rgba(0, 0, 0, 0.5);
}

.mt-3 {
    margin-top: 2rem;
}

/* --- MODALS --- */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-content video {
    width: 100%;
    display: block;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--clr-primary);
}

@media (max-width: 1024px) {
    .docs-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
}

/* --- PRODUCT RANGE SECTION --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--grad-surface);
    backdrop-filter: blur(10px);
    border: var(--border-glass);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.1);
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.product-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #fff;
}

.product-card p {
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.prod-link {
    color: var(--clr-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prod-link:hover {
    color: #fff;
}

/* --- ABOUT SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content p {
    margin-bottom: 1rem;
    color: var(--clr-text-muted);
    font-size: 1.05rem;
}

.about-content strong {
    color: #fff;
}

.about-list {
    list-style: none;
    margin-top: 2rem;
}

.about-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--clr-text);
}

.about-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(245, 158, 11, 0.2), transparent);
    z-index: 1;
    pointer-events: none;
}

/* --- CONTACT SECTION --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background: var(--grad-surface);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: var(--border-glass);
}

.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--clr-primary);
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item .icon {
    font-size: 1.5rem;
    background: rgba(245, 158, 11, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--clr-primary);
}

.info-item h4 {
    color: #fff;
    margin-bottom: 0.25rem;
}

.info-item p {
    color: var(--clr-text-muted);
}

.info-item a:hover {
    color: var(--clr-primary);
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 400px;
    border: var(--border-glass);
}

/* --- FOOTER --- */
.main-footer {
    background: #050508;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul a {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.footer-col ul a:hover {
    color: var(--clr-primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
    background: var(--clr-primary);
    color: #fff;
}

.qr-container {
    background: #fff;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.qr-code {
    width: 120px;
    height: 120px;
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

/* --- FLOATING WHATSAPP --- */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    animation: wa-pulse 2s infinite;
}

.floating-wa svg {
    width: 35px;
    height: 35px;
}

.floating-wa:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

@keyframes wa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* RESPONSIVE MEDIA QUERIES FOR SECTIONS */
@media (max-width: 1024px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-info {
        padding: 2rem 1rem;
    }

    .floating-wa {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .floating-wa svg {
        width: 30px;
        height: 30px;
    }
}

/* --- OVERRIDES (Bug 2 & Bug 3) --- */
.doc-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100%;
}

.doc-actions .btn-primary,
.doc-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.75rem;
    font-size: 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    .thumbnail-container {
        aspect-ratio: 3 / 4;
        max-height: 65vh;
        width: 100%;
    }

    .static-thumbnail {
        width: 100%;
        height: auto;
        max-height: 100%;
        object-fit: contain;
    }

    .docs-grid {
        gap: 1.5rem;
        padding: 0 1rem;
    }
}