:root {
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --text-main: #020617;
    --text-muted: #64748b;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
    --nav-bg: rgba(255, 255, 255, 0.8);
    --footer-bg: #020617;
    --footer-text: #ffffff;
    --font-main: 'Outfit', sans-serif;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

.bg-light {
    background-color: var(--bg-light);
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.highlight {
    color: var(--primary);
}

/* Typography */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--primary);
    z-index: 1001;
    position: relative;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 2.25rem;
    cursor: pointer;
    z-index: 1010;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem;
    height: 48px;
    width: 48px;
    display: none;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn-primary,
.btn-primary-small {
    background-color: var(--primary);
    color: white;
    font-weight: 500;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-primary-small {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

.btn-primary:hover,
.btn-primary-small:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-main);
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 1rem 2rem;
    font-weight: 500;
    border-radius: 99px;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    border-color: var(--text-muted);
}

.w-full {
    width: 100%;
}

/* Layout */
.section {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.grid {
    display: grid;
    gap: 2rem;
    max-width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.hero h1 {
    font-size: 4rem;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    opacity: 0.6;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #4f46e5, #ec4899);
    top: 10%;
    right: 10%;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    bottom: 10%;
    left: 10%;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glass);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: absolute;
    top: 10%;
    left: 0%;
    animation: float 6s ease-in-out infinite;
}

.card-product {
    top: 42%;
    right: 0%;
    left: auto;
    animation-delay: 1.5s;
}

.card-2 {
    top: auto;
    bottom: 10%;
    left: 10%;
    right: auto;
    animation-delay: 3s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.block-icon {
    font-size: 2.5rem;
    color: var(--primary);
    background: var(--bg-main);
    padding: 0.75rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.glass-text {
    display: flex;
    flex-direction: column;
}

.glass-text strong {
    font-size: 1.1rem;
    color: var(--text-main);
}

.glass-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Cards Grid */
.cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Feature Layout */
.feature-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feat-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature-item h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.hero-main-img {
    position: relative;
    max-width: 85%;
    max-height: 400px;
    z-index: 1;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    animation: float 8s ease-in-out infinite;
}

/* Machine Showcase */
.machine-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.machine-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.machine-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.machine-img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    max-width: 100%;
    mix-blend-mode: multiply;
    /* Global fix for white backgrounds */
}

.machine-info {
    padding: 1.25rem 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Projects */
.projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.project-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 3rem;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.primary-border {
    border: 2px solid var(--primary);
}

.project-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--bg-light);
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.tag-primary {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

.project-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.project-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
    font-weight: 500;
}

.project-features i {
    color: var(--primary);
    font-size: 1.25rem;
}

/* Portfolio */
.portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.port-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    transition: background 0.2s ease;
}

.port-item:hover {
    background: white;
    box-shadow: var(--shadow-lg);
}

.port-icon-wrapper {
    width: 50px;
    height: 50px;
    background: var(--bg-main);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.port-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.port-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--bg-main);
    padding: 4rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    width: 100%;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.method {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.method i {
    font-size: 1.5rem;
    color: var(--primary);
    background: var(--bg-light);
    padding: 0.75rem;
    border-radius: 12px;
}

.method a:hover {
    color: var(--primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-light);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.recaptcha-mock {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 4rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.footer-content p {
    color: #94a3b8;
}

.footer-seo {
    font-size: 0.85rem;
    color: #64748b;
    max-width: 800px;
    line-height: 1.6;
}

.footer-seo strong {
    color: #94a3b8;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #cbd5e1;
    font-weight: 500;
}

.footer-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-visual {
        height: 400px;
    }
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        padding: 8rem 1.25rem 4rem;
        text-align: center;
        gap: 3rem;
        overflow: hidden;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .feature-layout,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
    }

    .glass-card {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 1rem;
    }

    .hero-visual {
        flex-direction: column;
        height: auto;
        width: 100%;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        padding: 4rem 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.25rem;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .section {
        padding: 5rem 1.25rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .contact-container {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }

    .contact-info h2 {
        font-size: 2rem;
        word-break: break-word;
    }

    .nav-content {
        padding: 0 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .project-card {
        padding: 2rem 1.5rem;
    }

    .nav-menu {
        width: 100%;
        max-width: none;
    }
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    margin-top: 1.5rem;
}

.btn-text:hover {
    gap: 0.75rem;
}

/* Form Alerts */
.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.alert-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #d1fae5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.reference-logos-wrapper {
    position: relative;
    padding: 3rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.reference-logos-wrapper h4 {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.partner-shape-1 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #4f46e5, #ec4899);
    top: -80px;
    right: -80px;
    opacity: 0.4;
    filter: blur(80px);
}

.partner-shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    bottom: -60px;
    left: -60px;
    opacity: 0.3;
    filter: blur(70px);
}

.partner-logo-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.partner-logo-item {
    width: 160px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: grayscale(1) opacity(0.5);
    cursor: pointer;
    user-select: none;
}

.partner-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    mix-blend-mode: multiply;
    /* Global fix for white backgrounds */
}

.partner-logo-item:hover {
    filter: grayscale(0) opacity(1);
    transform: translateY(-2px);
}

.partner-logo-item:hover img {
    transform: scale(1.05);
}

/* Fine-tuning widths if needed for better separation */
.logo-vevor {
    width: 180px;
}

.logo-geekbuying {
    width: 110px;
}

.logo-banggood {
    width: 140px;
}

.logo-monport {
    width: 110px;
}

@media (max-width: 768px) {
    .partner-logo-item {
        width: 120px;
        height: 60px;
    }

    .partner-logo-container {
        gap: 1.5rem;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 9999;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner-content {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-title {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
    font-weight: 700;
}

.cookie-banner-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: block;
}

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 1.25rem;
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .cookie-banner-actions button {
        flex: 1;
    }
}