@property --accent {
    syntax: '<color>';
    inherits: true;
    initial-value: #FF6A00;
}

@property --accent-transparent {
    syntax: '<color>';
    inherits: true;
    initial-value: rgba(255, 106, 0, 0.1);
}

:root {
    /* Base Industrial Theme (Shared Across Modes) */
    --color-bg-primary: #0F1113;
    --color-bg-secondary: #171B20;
    --color-surface: #1E2329;
    --color-border: #2A3138;
    --color-text-primary: #F3F5F7;
    --color-text-secondary: #AAB3BC;
    --color-text-muted: #7C858F;

    /* Map to existing structural variables */
    --bg-color: var(--color-bg-primary);
    --bg-darker: var(--color-bg-secondary);
    --card-bg: var(--color-surface);
    --border-color: var(--color-border);
    --text-primary: var(--color-text-primary);
    --text-secondary: var(--color-text-secondary);
    /* V2 Precision Animation Timings */
    --trans-accent: all 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --trans-lift: all 200ms ease-out;
    --trans-atmosphere: opacity 500ms ease-in-out, background 500ms ease-in-out;
    --trans-reveal: all 280ms ease-out;
}

/* Default State (When no quote option is chosen) */
:root,
[data-service-theme="default"],
html:not([data-service-theme]) {
    --color-accent-primary: #FF6A00;
    --color-accent-secondary: #FF8533;
    --color-accent-glow: #FFA366;
    --color-accent-soft: #FFC299;

    --accent: var(--color-accent-primary);
    --accent-secondary: var(--color-accent-secondary);
    --accent-hover: #E65C00;
    --glow-shadow: 0 4px 15px rgba(255, 106, 0, 0.2);
    --glow-shadow-lg: 0 10px 25px rgba(255, 106, 0, 0.3);
    --accent-transparent: rgba(255, 106, 0, 0.1);
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    z-index: 0;
}

@keyframes ambientPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.15);
        opacity: 1;
    }
}

/* Global Atmosphere Glow */
body::before {
    content: '';
    position: fixed;
    top: -20vh;
    left: -10vw;
    width: 120vw;
    height: 120vh;
    background: radial-gradient(ellipse at 50% 0%, var(--accent-transparent) 0%, transparent 80%);
    pointer-events: none;
    z-index: -1;
    transition: --accent-transparent 1s cubic-bezier(0.25, 1, 0.5, 1), background 1s cubic-bezier(0.25, 1, 0.5, 1);
    animation: ambientPulse 12s ease-in-out infinite alternate;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-primary);
    position: relative;
    transition: var(--trans-accent);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-transparent);
    margin: 10px auto 0;
    border-radius: 2px;
    transition: var(--trans-accent);
}

.bg-darker {
    background-color: var(--bg-darker);
}

/* Header & Nav */
header {
    background-color: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo span {
    color: var(--accent);
}

#navbar {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 600;
    transition: var(--trans-accent);
}

.lang-switcher-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: var(--trans-accent);
    padding: 5px;
    letter-spacing: 0.5px;
}

.lang-toggle:hover,
.lang-toggle.active {
    color: var(--accent);
}

.lang-divider {
    color: var(--text-secondary);
    opacity: 0.3;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--trans-lift), background 350ms cubic-bezier(0.4, 0, 0.2, 1), border-color 350ms cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-4px);
    box-shadow: var(--glow-shadow);
    border-color: var(--accent);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--accent);
}

.btn-secondary:hover {
    background-color: var(--accent-transparent);
    transform: translateY(-4px);
    box-shadow: var(--glow-shadow);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 70px;
    background-color: var(--bg-darker);
    transition: background 0.3s ease;
}

[data-service-theme="default"] .hero {
    background: linear-gradient(rgba(95, 107, 118, 0.08), rgba(15, 17, 21, 0.95)), url('images/hero-bg.jpg') center/cover;
}

[data-service-theme="fdm"] .hero {
    background: linear-gradient(rgba(0, 174, 239, 0.08), rgba(15, 17, 21, 0.95)), url('images/hero-bg.jpg') center/cover;
}

[data-service-theme="cnc"] .hero {
    background: linear-gradient(rgba(255, 106, 0, 0.05), rgba(15, 17, 21, 0.95)), url('images/hero-bg.jpg') center/cover;
}

[data-service-theme="drawing"] .hero {
    background: linear-gradient(rgba(58, 134, 255, 0.08), rgba(15, 17, 21, 0.95)), url('images/hero-bg.jpg') center/cover;
}

[data-service-theme="modeling"] .hero {
    background: linear-gradient(rgba(123, 97, 255, 0.08), rgba(15, 17, 21, 0.95)), url('images/hero-bg.jpg') center/cover;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
}

.hero-advantages {
    display: flex;
    gap: 30px;
    justify-content: center;
    color: var(--text-secondary);
}

.advantage {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

/* Grid System */
.grid {
    display: grid;
    gap: 30px;
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.products-grid,
.machines-grid,
.materials-grid,
.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    transition: var(--trans-lift), border-color 350ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--glow-shadow-lg);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--accent);
}

/* Products */
.product-card {
    padding: 0;
    overflow: hidden;
}

.placeholder-img {
    background-color: #2a2d35;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.product-img {
    height: 200px;
    width: 100%;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
}

.product-info .material {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-info .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 15px;
}

/* Form Styles */
.quote-form-container,
.contact-form-container {
    background-color: var(--card-bg);
    padding: 25px 35px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--accent-transparent);
    transition: var(--trans-accent);
}

.form-group {
    margin-bottom: 15px;
}

input[type="radio"],
input[type="checkbox"] {
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
    cursor: pointer;
    transition: var(--trans-accent);
}

.radio-group label {
    transition: var(--trans-accent), var(--trans-lift);
    border: 1px solid transparent;
    padding: 8px 12px;
    border-radius: 6px;
    background: transparent;
    transform: scale(1);
    box-shadow: 0 0 0 transparent;
}

.radio-group label:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.radio-group label:has(input:checked) {
    transform: scale(1.015);
    background: var(--accent-transparent);
    border-color: var(--accent);
    box-shadow: var(--glow-shadow);
    color: var(--text-primary);
}

.group-half {
    display: flex;
    gap: 15px;
}

.group-half .half {
    flex: 1;
}

.group-third {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.group-third>div {
    min-width: 0;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-secondary);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-transparent);
}

input[type="file"] {
    padding: 10px;
    background-color: var(--bg-color);
}

/* Color Selection Circles */
.color-circle {
    cursor: pointer;
    position: relative;
    display: inline-block;
}

.color-circle input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.color-circle .circle {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: var(--transition);
    border: 2px solid transparent;
}

.color-circle input[type="radio"]:checked~.circle {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--bg-color), 0 0 0 4px var(--accent);
}

.color-circle:hover .circle {
    transform: scale(1.05);
}

.form-message {
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}

/* Dynamic Form Options Wrapper */
.dynamic-options-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    margin-bottom: 20px;
}

.process-options-block {
    grid-column: 1;
    grid-row: 1;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: var(--trans-atmosphere);
    transform: translateY(10px);
}

.process-options-block.active-process-options {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.success {
    color: #4caf50;
}

.error {
    color: #f44336;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Machines & Materials */
.coming-soon {
    background-color: #121418;
    border: 1px dashed var(--border-color);
    opacity: 0.6;
    filter: grayscale(40%);
}

.coming-soon:hover {
    transform: none;
    border-color: var(--border-color);
    box-shadow: none;
}

.coming-soon h3 {
    color: var(--text-secondary);
}

.machine-specs,
.mat-stats {
    list-style: none;
    margin-top: 15px;
    color: var(--text-secondary);
}

.machine-specs li {
    margin-bottom: 8px;
}

.mat-desc {
    margin-top: 10px;
    margin-bottom: 15px;
}

.mat-stats span {
    display: block;
    margin-bottom: 5px;
}

.mat-apps {
    margin-top: 15px;
    color: var(--accent);
}

.mat-avail {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

/* Material Tabs */
.material-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.tab-btn {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.tab-btn.active {
    background-color: var(--accent);
    color: var(--bg-color);
    border-color: var(--accent);
    box-shadow: var(--glow-shadow);
}

/* Gallery */
.gallery-item {
    height: 250px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    font-weight: 600;
    font-size: 1.2rem;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--accent);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-content-wrapper {
    max-width: 90%;
    max-height: 90%;
    width: 800px;
    height: 600px;
    font-size: 2rem;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* About & Contact */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.whatsapp-btn {
    margin-top: 20px;
    background-color: #25D366;
    color: #fff;
    border-color: #25D366;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    color: #fff;
    border-color: #128C7E;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* Footer */
footer {
    background-color: rgba(6, 7, 9, 0.95);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--accent);
}

.footer-links {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

/* Drag and Drop File Upload */
.drop-zone {
    max-width: 100%;
    height: 140px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    color: var(--text-secondary);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    background-color: var(--bg-color);
    margin-top: 5px;
    position: relative;
    overflow: hidden;
}

.drop-zone:hover {
    border-color: var(--accent);
    background-color: rgba(59, 130, 246, 0.05);
}

.drop-zone--over {
    border-style: solid;
    border-color: var(--accent);
    background-color: rgba(59, 130, 246, 0.1);
}

.drop-zone__input {
    display: none;
}

.drop-zone__prompt {
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.drop-zone__icon {
    width: 35px;
    height: 35px;
    stroke: var(--accent);
}

.drop-zone__filename {
    font-weight: 500;
    color: var(--text-color);
    margin-top: 5px;
    font-size: 0.95rem;
}

/* Responsive */
/* --- V2 Premium Animation System --- */

/* FDM Layer Build Animation */
@keyframes layerBuild {
    0% {
        background-position: 0 100%;
        opacity: 0.1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        background-position: 0 0;
        opacity: 0;
    }
}

[data-service-theme="fdm"] .anim-layer {
    background: linear-gradient(180deg, transparent 0%, var(--accent-glow) 50%, transparent 100%);
    background-size: 100% 200%;
    animation: layerBuild 2.5s linear infinite;
    pointer-events: none;
}

/* CNC and Cutting cinematic animations removed by user request */

/* Modeling Wireframe Reveal */
@keyframes wireframeReveal {
    0% {
        box-shadow: inset 0 0 0 1px var(--accent);
        background-color: transparent;
        opacity: 0.3;
    }

    100% {
        box-shadow: inset 0 0 0 0 transparent;
        background-color: var(--accent-transparent);
        opacity: 1;
    }
}

[data-service-theme="modeling"] .anim-wireframe {
    animation: wireframeReveal 450ms ease-out forwards;
}

/* Soft Glow Pulse (Active States) */
@keyframes softGlowPulse {
    0% {
        box-shadow: 0 0 5px var(--accent-transparent);
    }

    100% {
        box-shadow: 0 0 20px var(--accent-transparent), 0 0 5px var(--accent);
    }
}

.anim-glow-pulse {
    animation: softGlowPulse 1.8s ease-in-out infinite alternate;
}

/* Technical Staggered Section Reveal */
.reveal-element {
    opacity: 0;
    transform: translateY(4px);
    transition: var(--trans-reveal);
}

.reveal-element.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger-1 {
    transition-delay: 50ms;
}

.reveal-stagger-2 {
    transition-delay: 100ms;
}

.reveal-stagger-3 {
    transition-delay: 150ms;
}

.reveal-stagger-4 {
    transition-delay: 200ms;
}

/* Mode Atmosphere Shift */
.atmosphere-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    transition: var(--trans-atmosphere);
    opacity: 0;
    background: radial-gradient(circle at 50% 0%, var(--accent-transparent) 0%, transparent 60%);
}

.cinematic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -2;
}

[data-service-theme]:not([data-service-theme="default"]) .atmosphere-overlay {
    opacity: 1;
}

/* Accessibility - Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal-element {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-advantages {
        flex-direction: column;
        gap: 15px;
    }

    .group-half {
        flex-direction: column;
        gap: 0;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 20px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }
}

/* Language Selection Gateway */
.language-gateway {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.language-gateway.hidden {
    opacity: 0;
    pointer-events: none;
}

.gateway-content {
    background-color: var(--card-bg);
    padding: 50px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent);
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    transform: translateY(0);
    transition: transform 0.5s ease;
}

.language-gateway.hidden .gateway-content {
    transform: translateY(-20px);
}

.gateway-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}