/* Custom Properties - Premium Dark Emerald Design System */
:root {
    --bg-primary: #040806;
    --bg-secondary: #0a110d;
    --bg-card: rgba(10, 20, 15, 0.5);
    --bg-navbar: rgba(4, 8, 6, 0.75);
    
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-glow: rgba(16, 185, 129, 0.35);
    
    --secondary: #34d399;
    --accent: #a3e635; /* Lime accent for energetic highlights */
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-inverse: #040806;
    
    --border: rgba(255, 255, 255, 0.06);
    --border-highlight: rgba(16, 185, 129, 0.2);
    
    --font-title: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* CSS Reset & General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Background Glows */
.bg-decoration {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation: pulse-glow-anim 15s infinite alternate;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: #064e3b;
    bottom: -200px;
    left: -100px;
    animation: pulse-glow-anim 20s infinite alternate-reverse;
}

.glow-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 40%;
    left: 40%;
    opacity: 0.05;
}

@keyframes pulse-glow-anim {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.2); }
}

/* Typography Components */
h1, h2, h3, h4 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }

.section-header {
    max-width: 700px;
    margin-bottom: 4rem;
}

.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.subheading {
    font-family: var(--font-title);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.25rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Buttons & Badges */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: var(--text-inverse);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: 1.125rem 2.25rem;
    font-size: 1.1rem;
}

.btn-glow {
    position: relative;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
    filter: blur(12px);
    opacity: 0.4;
    transition: var(--transition-smooth);
}

.btn-glow:hover::after {
    opacity: 0.8;
    filter: blur(18px);
}

.badge-wrapper {
    margin-bottom: 1.5rem;
}

.badge {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--border-highlight);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Glassmorphism Card Base */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-highlight);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

/* Navbar Styling */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    background: var(--bg-navbar);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 0.75rem 0;
}

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

.brand-logo {
    height: 45px;
    width: auto;
    filter: brightness(1.75) contrast(1.1) drop-shadow(0 0 8px rgba(16, 185, 129, 0.2));
    transition: var(--transition-smooth);
}

.brand-logo:hover {
    transform: scale(1.05);
    filter: brightness(2) contrast(1.1) drop-shadow(0 0 12px rgba(16, 185, 129, 0.35));
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section Styling */
.hero {
    padding: 10rem 0 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-trust {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.hero-trust p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Visual wrapper & Mockup */
.visual-wrapper {
    position: relative;
    perspective: 1000px;
}

.main-mockup {
    position: relative;
    overflow: hidden;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    transform: rotateY(-10deg) rotateX(10deg);
    box-shadow: -20px 20px 50px rgba(0,0,0,0.6);
    transition: var(--transition-smooth);
}

.main-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.mockup-img {
    border-radius: calc(var(--radius-lg) - 4px);
    width: 100%;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

/* Floating Elements */
.floating-element {
    animation: floating-anim 4s ease-in-out infinite alternate;
}

@keyframes floating-anim {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-15px); }
}

.whatsapp-alert-card {
    position: absolute;
    bottom: 20px;
    left: -30px;
    width: 280px;
    background: rgba(20, 30, 25, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(37, 211, 102, 0.3); /* WA Green border highlight */
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.wa-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.wa-icon {
    color: #25D366;
    font-size: 1.5rem;
}

.wa-header h4 {
    font-size: 0.85rem;
    font-weight: 700;
}

.wa-header span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.wa-body p {
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Pillars Section */
.pillars {
    padding: 6rem 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
}

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

.pillar-card {
    padding: 3rem 2.5rem;
    text-align: center;
}

.pillar-icon-wrapper {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.75rem;
    display: inline-block;
}

.pillar-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* Features Section */
.features {
    padding: 8rem 0;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    margin-bottom: 8rem;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse .feature-content,
.feature-row.reverse .feature-visual {
    direction: ltr;
}

.feature-badge {
    font-family: var(--font-title);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-content h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    margin-bottom: 1.5rem;
}

.feature-content p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.feature-list i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Chat Simulator Component */
.chat-simulator {
    background: #0b141a;
    border-radius: calc(var(--radius-lg) - 4px);
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
    border: 1px solid #1f2c34;
}

.chat-header {
    background: #1f2c34;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px; height: 40px;
    background: #00a884;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
}

.chat-info h5 { font-size: 0.95rem; }
.chat-info span { font-size: 0.75rem; color: #8696a0; }

.chat-messages {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #0b141a;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png'); /* Typical subtle WA dark background pattern */
    background-blend-mode: overlay;
    min-height: 240px;
}

.message {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    position: relative;
    box-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

.message.received {
    background: #202c33;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.message.alert-msg {
    background: #4f2727; /* Dark red alert tone */
    border: 1px solid #bd2b2b;
}

.msg-time {
    display: block;
    text-align: right;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.25rem;
}

.pulse-glow {
    animation: subtle-pulse 3s infinite;
}

@keyframes subtle-pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.2); }
    70% { box-shadow: 0 0 30px 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Quality Circular Stat Card */
.quality-card {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.circular-progress-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 2rem;
}

.circular-progress {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circular-progress circle {
    width: 100%;
    height: 100%;
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    cx: 100;
    cy: 100;
    r: 85;
}

.circular-progress circle.bg {
    stroke: rgba(255, 255, 255, 0.05);
}

.circular-progress circle.fg {
    stroke: url(#grad1); /* Linked visually below with css mask/dash or static color */
    stroke: var(--primary);
    stroke-dasharray: 534; /* 2 * pi * 85 */
    stroke-dashoffset: calc(534 - (534 * 99.4) / 100);
}

.progress-value {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.progress-value h3 { font-size: 2.5rem; color: var(--text-main); }
.progress-value span { font-size: 0.85rem; color: var(--text-muted); }

.stats-mini-grid {
    display: flex;
    gap: 2rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    width: 100%;
    justify-content: center;
}

.mini-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mini-stat span { font-size: 0.8rem; color: var(--text-muted); }
.mini-stat strong { font-size: 1.25rem; font-family: var(--font-title); }

/* Machinery Section */
.machinery {
    padding: 6rem 0;
}

.wide-card {
    overflow: hidden;
    padding: 0;
}

.machinery-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

.machinery-img-wrapper {
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    position: relative;
}

.machinery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.machinery-grid:hover .machinery-img {
    transform: scale(1.05);
}

.machinery-content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge-china {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    align-self: flex-start;
}

.machinery-content h2 { font-size: 2.5rem; margin-bottom: 1.25rem; }
.machinery-content p { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.1rem; }

.machinery-features {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.m-feat {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* About Section */
.about {
    padding: 8rem 0;
    background: radial-gradient(circle at center right, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
}

.about-text h2 { font-size: 2.75rem; margin-bottom: 1.5rem; }
.about-text p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1.1rem; }

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.stat-item span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.brand-showcase-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-orb {
    position: absolute;
    width: 250px; height: 250px;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.2;
    z-index: -1;
}

.about-card {
    padding: 3rem 2.5rem;
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: rgba(16, 185, 129, 0.4);
    margin-bottom: 1.5rem;
}

blockquote {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.quote-author {
    display: flex;
    flex-direction: column;
}

.quote-author strong { font-size: 1.1rem; }
.quote-author span { font-size: 0.85rem; color: var(--text-muted); }

/* Footer & CTA Final */
.footer {
    padding: 6rem 0 2rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    position: relative;
}

.cta-final-card {
    padding: 5rem;
    text-align: center;
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.1), transparent 60%), var(--bg-card);
    margin-bottom: 6rem;
}

.cta-final-card h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.cta-final-card p { font-size: 1.25rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 3rem auto; }

.cta-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.contact-direct {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.contact-direct span { font-size: 0.9rem; color: var(--text-muted); }
.contact-direct strong { font-size: 1.5rem; color: var(--text-main); font-family: var(--font-title); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 1.25rem;
    max-width: 300px;
}

.footer-grid h4 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-links ul, .footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-contact li {
    color: var(--text-muted);
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

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

.copyright {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Animation Class Setup */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive Queries */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 5rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .feature-row, .feature-row.reverse {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    
    .feature-list {
        align-items: center;
        margin-bottom: 2rem;
    }
    
    .machinery-grid {
        grid-template-columns: 1fr;
    }
    
    .machinery-img-wrapper {
        height: 300px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .brand-showcase-container {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* JS can toggle class in future */
    }
    
    .nav-actions {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero {
        padding: 8rem 0 4rem 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-actions {
        flex-direction: column;
        gap: 2rem;
    }
    
    .contact-direct {
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .whatsapp-alert-card {
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
    }
}
