/* CSS Variables - Monochrome Dark Luxury */
:root {
    /* Backgrounds */
    --bg-primary: #000000;
    --bg-secondary: #09090B;
    --bg-tertiary: #18181B;

    /* Monochrome Accents (Greyscale) */
    --primary-50: #F8FAFC;
    --primary-100: #F1F5F9;
    --primary-200: #E2E8F0;
    --primary-300: #CBD5E1;
    --primary-400: #94A3B8;
    --primary-500: #64748B;
    /* Base Grey */
    --primary-600: #475569;
    --primary-700: #334155;
    --primary-800: #1E293B;
    --primary-900: #0F172A;

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #E4E4E7;
    --text-tertiary: #A1A1AA;

    /* Functional */
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glow-color: rgba(255, 255, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: linear-gradient(135deg, #FFFFFF 0%, #94A3B8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glow-primary {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.glow-primary-soft {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
}

.logo-text {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--text-primary);
}

.btn-primary-sm {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.btn-primary-sm:hover {
    background: var(--primary-200);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#scroll-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6;
    /* Dim video slightly */
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 60px;
}

.hero-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary-300);
    margin-bottom: 16px;
    display: block;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-tertiary);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-outline {
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    z-index: 2;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--text-primary);
    border-radius: 50%;
    animation: mouse-scroll 1.5s infinite;
}

@keyframes mouse-scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* Social Proof */
.social-proof {
    background: var(--bg-secondary);
    padding: 60px 0;
    border-bottom: 1px solid var(--glass-border);
}

.proof-text {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 40px;
    letter-spacing: 0.1em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-item span:not(.stat-number) {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-500);
}

.stat-label {
    display: block;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Sections General */
.section {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.2rem;
    color: var(--text-tertiary);
    max-width: 600px;
}

/* MDUE Section */
.mdue-section {
    background: var(--bg-primary);
}

/* Glass Card (Shared) */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 32px;
    border-radius: 20px;
    transition: transform 0.3s;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
}

.pb3d-interweaved-visual {
    margin: 60px 0;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.full-width-breakout {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    border-left: none;
    border-right: none;
    max-width: none;
}

.pb3d-interweaved-visual img {
    width: 100%;
    height: auto;
    display: block;
}

/* PB3D System Advantages */
.pb3d-intro-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.pb3d-text-content h2 {
    margin-bottom: 24px;
}

.pb3d-highlight {
    font-size: 1.1rem;
    color: var(--primary-400);
    font-weight: 500;
    margin-top: 12px;
    letter-spacing: 0.05em;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.advantage-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.advantage-card h4 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.advantage-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.advantage-list {
    list-style: none;
    padding-left: 0;
    margin-top: auto;
    /* Push list to bottom if needed, but flex-col handles flow */
}

.advantage-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

.advantage-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-400);
}

/* Responsive for PB3D */
@media (max-width: 900px) {
    .pb3d-intro-block {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Services Grid (Flip Cards) */
.services-section {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card-flip {
    height: 450px;
    perspective: 1000px;
    cursor: pointer;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border-radius: 24px;
}

.service-card-flip:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 24px;
    overflow: hidden;
}

.service-card-front {
    background-color: var(--bg-tertiary);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    filter: grayscale(100%);
}

.service-card-front:hover .service-image {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    text-align: left;
}

.service-overlay h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.service-card-back {
    transform: rotateY(180deg);
    background: var(--bg-tertiary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.service-card-back h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.service-card-back p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.service-tags {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.service-tags span {
    font-size: 0.8rem;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 50px;
    letter-spacing: 0.05em;
}

/* Contact Section */
.contact-section {
    padding-bottom: 120px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    padding: 0;
}

.contact-content {
    padding: 60px;
}

.contact-form {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 16px;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.contact-visual {
    background: #000;
}

.contact-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    filter: grayscale(100%);
}

.btn-block {
    width: 100%;
    text-align: center;
    cursor: pointer;
    border: none;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-logo {
    height: 32px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.footer-brand p {
    color: var(--text-tertiary);
    line-height: 1.6;
}

.footer-links h4 {
    margin-bottom: 24px;
    color: var(--text-primary);
}

.footer-links a {
    display: block;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--text-primary);
    padding-left: 5px;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-title {
        font-size: 3rem;
    }

    .mdue-showcase {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-visual {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* CNC Section Styles */
.cnc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.cnc-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cnc-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.4s;
}

.cnc-card:hover .cnc-img {
    transform: scale(1.05);
}

.cnc-content h3 {
    margin-bottom: 8px;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.cnc-content p {
    color: var(--text-secondary);
    line-height: 1.5;
}