:root {
    --bg-color: #0a0a0a;
    --bg-alt: #111111;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --accent: #8b5cf6;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --card-bg: #1a1a1a;
    --border: #333333;
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-links .btn-primary {
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-image: url('images/pcb-background.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, var(--bg-color) 0%, transparent 40%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.gradient-text {
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease, transform 0.2s;
}

.btn-secondary:hover {
    border-color: var(--text-main);
    transform: translateY(-2px);
}

/* Sections General */
.service-section {
    padding: 6rem 0;
}

.alt-bg {
    background-color: var(--bg-alt);
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Service Cards */
.service-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
}

/* Use Cases Section */
.use-cases-header {
    margin-top: 5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.use-cases-header h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.use-cases-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.use-case-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(26, 26, 26, 0.5) 100%);
    padding: 0;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.use-case-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.use-case-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.use-case-card:hover::before {
    opacity: 1;
}

.use-case-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.use-case-card h4,
.use-case-card p,
.use-case-tags {
    padding: 0 2.5rem;
}

.use-case-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
    color: var(--text-main);
}

.use-case-subtitle {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0 2.5rem;
}

.use-case-card>p:not(.use-case-subtitle) {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.use-case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 2.5rem;
}

.tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.use-case-card:hover .tag {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
}

/* Manufacturing Section */
.service-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
}

.feature-list li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.circuit-grid {
    width: 100%;
    height: 300px;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    border-radius: 16px;
    border: 1px solid var(--border);
    position: relative;
}

.circuit-grid::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Manufacturing Types Section */
.manufacturing-types-header {
    margin-top: 5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.manufacturing-types-header h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.manufacturing-types-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.manufacturing-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.manufacturing-type-card {
    background: var(--card-bg);
    padding: 0;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.manufacturing-type-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.manufacturing-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.manufacturing-type-card .type-badge {
    margin: 1.5rem 0 1rem 2.5rem;
}

.manufacturing-type-card h4,
.manufacturing-type-card>p,
.manufacturing-type-card .type-features {
    padding: 0 2.5rem;
}

.manufacturing-type-card>p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.type-features {
    list-style: none;
    margin-top: 1.5rem;
    padding-bottom: 2.5rem;
}

.type-features li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.type-features li:last-child {
    border-bottom: none;
}

.type-features li::before {
    content: "✓";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.ai-card {
    background: linear-gradient(180deg, var(--card-bg) 0%, rgba(10, 10, 10, 0) 100%);
    padding: 2rem;
    border-radius: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.ai-card h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border);
}

.contact-info h2 {
    margin-bottom: 1.5rem;
}

/* AI Section */
.ai-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ai-card {
    background: linear-gradient(180deg, var(--card-bg) 0%, rgba(10, 10, 10, 0) 100%);
    padding: 2rem;
    border-radius: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.ai-card h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border);
}

.contact-info h2 {
    margin-bottom: 1.5rem;
}

.info-item {
    margin-top: 1.5rem;
}

.info-item .label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.info-item .value {
    font-size: 1.1rem;
    font-weight: 500;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-main);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.full-width {
    width: 100%;
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .service-grid-2,
    .contact-wrapper,
    .ai-showcase,
    .use-cases-grid,
    .manufacturing-types-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        padding: 1.5rem;
    }
}