/* MPIP Electronics - Industrial Precision Design */

/* CSS Variables - Emerald & Gold Premium Theme */
:root {
    --gold: #d4a853;
    --gold-light: #e8c87a;
    --gold-dark: #b8924a;
    --emerald: #047857;
    --emerald-light: #059669;
    --emerald-dark: #065f46;
    --dark: #0a0f0d;
    --dark-card: #111916;
    --dark-lighter: #1a2420;
    --text-light: #f0fdf4;
    --text-muted: #9ca3af;
    --grid-color: rgba(4, 120, 87, 0.15);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--dark);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Blueprint Grid Background */
.grid-bg {
    position: relative;
    background: 
        linear-gradient(180deg, var(--dark) 0%, #0d1512 50%, var(--dark) 100%);
}

.grid-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.8;
    pointer-events: none;
}

.grid-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(var(--grid-color) 2px, transparent 2px),
        linear-gradient(90deg, var(--grid-color) 2px, transparent 2px);
    background-size: 250px 250px;
    opacity: 0.5;
    pointer-events: none;
}

/* Gold Accent Line */
.gold-line {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.4s ease;
    background: var(--dark);
}

.navbar.scrolled {
    background: rgba(10, 15, 13, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gold);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-icon {
    width: 55px;
    height: 55px;
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-icon::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--gold);
    top: -1px;
    left: -1px;
}

.logo-icon::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--gold);
    bottom: -1px;
    right: -1px;
}

.logo-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 4px;
}

.logo-sub {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::before {
    content: '//';
    margin-right: 5px;
    color: var(--emerald);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a:hover::before {
    opacity: 1;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    position: relative;
}

.mobile-menu-btn span {
    width: 30px;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 2rem 80px;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    z-index: 1;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-label span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--emerald-light);
    letter-spacing: 3px;
}

.hero-label::before,
.hero-label::after {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--emerald);
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero h1 .highlight {
    color: var(--gold);
    position: relative;
    display: inline-block;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    opacity: 0.5;
}

.hero-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 500px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 2.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.4s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
    position: relative;
}

.btn-primary {
    background: var(--gold);
    color: var(--dark);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 15px;
    height: 15px;
    border-top: 2px solid var(--gold-light);
    border-left: 2px solid var(--gold-light);
    transition: all 0.3s ease;
}

.btn-primary::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 15px;
    height: 15px;
    border-bottom: 2px solid var(--gold-light);
    border-right: 2px solid var(--gold-light);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translate(-3px, -3px);
}

.btn-primary:hover::before,
.btn-primary:hover::after {
    width: 100%;
    height: 100%;
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chip-diagram {
    width: 350px;
    height: 350px;
    position: relative;
}

.chip-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: var(--dark-card);
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chip-core span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 2px;
}

.chip-pins {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pin-group {
    position: absolute;
}

.pin-group.top { top: -115px; left: 50%; transform: translateX(-50%); display: flex; gap: 15px; }
.pin-group.bottom { bottom: -115px; left: 50%; transform: translateX(-50%); display: flex; gap: 15px; }
.pin-group.left { left: -115px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 15px; }
.pin-group.right { right: -115px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 15px; }

.pin {
    width: 4px;
    height: 50px;
    background: linear-gradient(to bottom, var(--emerald), var(--gold));
}

.pin-group.left .pin,
.pin-group.right .pin {
    width: 50px;
    height: 4px;
    background: linear-gradient(to right, var(--emerald), var(--gold));
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed var(--emerald);
    border-radius: 50%;
    opacity: 0.3;
}

.orbit-1 { width: 200px; height: 200px; }
.orbit-2 { width: 280px; height: 280px; }
.orbit-3 { width: 360px; height: 360px; animation: rotate 30s linear infinite; }

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.data-point {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--gold);
    animation: pulse-point 2s infinite;
}

.data-point:nth-child(1) { top: 0; left: 50%; }
.data-point:nth-child(2) { bottom: 0; left: 50%; }
.data-point:nth-child(3) { top: 50%; left: 0; }
.data-point:nth-child(4) { top: 50%; right: 0; }

@keyframes pulse-point {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

/* Sections */
section {
    padding: 120px 2rem;
    position: relative;
}

.section-header {
    margin-bottom: 5rem;
}

.section-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--emerald-light);
    letter-spacing: 3px;
    margin-bottom: 1rem;
    display: block;
}

.section-header h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.section-header h2 span {
    color: var(--gold);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
}

/* About Section */
.about-content {
    max-width: 1400px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: start;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.9;
}

.about-text p:first-of-type::first-letter {
    font-size: 4rem;
    float: left;
    line-height: 1;
    margin-right: 1rem;
    color: var(--gold);
    font-weight: 700;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.metric-box {
    padding: 2rem;
    background: var(--dark-card);
    border-left: 3px solid var(--gold);
    position: relative;
}

.metric-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.metric-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Locations */
.locations-panel {
    background: var(--dark-card);
    padding: 3rem;
    border: 1px solid rgba(212, 168, 83, 0.2);
}

.location-item {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.location-item:last-child {
    border-bottom: none;
}

.location-city {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.location-city i {
    color: var(--gold);
    font-size: 1rem;
}

.location-type {
    font-size: 0.85rem;
    color: var(--emerald-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Products Section */
.products-container {
    max-width: 1400px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: rgba(212, 168, 83, 0.1);
}

.product-cell {
    background: var(--dark);
    padding: 3rem 2.5rem;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
}

.product-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.product-cell:hover {
    background: var(--dark-card);
}

.product-cell:hover::before {
    transform: scaleX(1);
}

.product-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--emerald);
    margin-bottom: 1.5rem;
}

.product-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.product-cell:hover .product-icon {
    transform: scale(1.1);
}

.product-cell h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.product-cell p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Partners Section */
.partners-container {
    max-width: 1200px;
    margin: 0 auto;
}

.partners-marquee {
    overflow: hidden;
    padding: 3rem 0;
    border-top: 1px solid rgba(212, 168, 83, 0.2);
    border-bottom: 1px solid rgba(212, 168, 83, 0.2);
}

.partners-track {
    display: flex;
    gap: 5rem;
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partner-item {
    flex-shrink: 0;
    text-align: center;
}

.partner-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.3rem;
    white-space: nowrap;
}

.partner-location {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Contact Section */
.contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info {
    padding: 3rem;
    background: var(--dark-card);
    border: 1px solid rgba(212, 168, 83, 0.2);
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-detail i {
    width: 45px;
    height: 45px;
    background: var(--gold);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail-text h4 {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.contact-detail-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 0;
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--gold);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.3);
}

.form-group textarea {
    resize: none;
    min-height: 120px;
}

/* Form Success */
.form-success {
    display: none;
    text-align: center;
    padding: 3rem;
}

.form-success.show {
    display: block;
}

.form-success i {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.form-success h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: var(--dark-card);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(212, 168, 83, 0.2);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1.5rem;
    max-width: 300px;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-col h4 {
    color: var(--gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-col ul a:hover {
    color: var(--text-light);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-text {
        margin: 0 auto 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
    
    .nav-links a {
        font-size: 1.5rem;
        color: var(--text-light);
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
}
