/* INMECHA INC - Main Stylesheet */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #1a202c;
    --secondary-dark: #2d3748;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-100: #f3f4f6;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --green-500: #10b981;
    --green-600: #059669;
    --purple-600: #9333ea;
    --orange-600: #ea580c;
    --red-600: #dc2626;
    --yellow-600: #ca8a04;
    --teal-600: #0891b2;
    --pink-600: #db2777;
    --indigo-600: #4f46e5;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--gray-100);
    background: linear-gradient(120deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    min-height: 100vh;
}

/* Typography */
h1 { font-size: 3rem; font-weight: 700; line-height: 1.2; }
h2 { font-size: 2.25rem; font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.4; }
h4 { font-size: 1.25rem; font-weight: 600; }
p { margin-bottom: 1rem; }

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    z-index: 50;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

nav .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gray-100);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-brand:hover {
    color: var(--blue-400);
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-link {
    color: var(--gray-100);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-400);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue-400);
}

/* Mobile Menu Toggle (CSS Only) */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: var(--gray-100);
    height: 2px;
    width: 100%;
    position: absolute;
    transition: all 0.3s ease;
}

.nav-toggle-label span::before {
    content: '';
    top: -8px;
}

.nav-toggle-label span::after {
    content: '';
    bottom: -8px;
}

.nav-toggle:checked ~ .nav-menu {
    transform: translateX(0);
}

.nav-toggle:checked ~ .nav-toggle-label span {
    background: transparent;
}

.nav-toggle:checked ~ .nav-toggle-label span::before {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle:checked ~ .nav-toggle-label span::after {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 1.5rem 4rem;
    text-align: center;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-dark {
    background: var(--gray-900);
}

.section-gradient {
    background: linear-gradient(120deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
}

/* Cards */
.card {
    background: var(--gray-800);
    border-radius: 0.5rem;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--blue-600);
    color: white;
}

.btn-primary:hover {
    background: var(--blue-700);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--blue-400);
    border: 2px solid var(--blue-400);
}

.btn-secondary:hover {
    background: var(--blue-400);
    color: var(--gray-900);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 0.375rem;
    color: var(--gray-100);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--blue-400);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.form-input:valid {
    border-color: var(--green-500);
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: var(--red-600);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-blue { background: var(--blue-600); color: white; }
.badge-green { background: var(--green-600); color: white; }
.badge-purple { background: var(--purple-600); color: white; }
.badge-orange { background: var(--orange-600); color: white; }
.badge-red { background: var(--red-600); color: white; }
.badge-yellow { background: var(--yellow-600); color: white; }

/* Footer */
footer {
    background: var(--gray-900);
    padding: 3rem 0;
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

.animate-pulse {
    animation: pulse 4s ease infinite;
}

/* Product Cards */
.product-card {
    background: var(--gray-800);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-400), var(--purple-600));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

.product-header {
    padding: 2rem;
    background: linear-gradient(135deg, var(--gray-700), var(--gray-800));
}

.product-body {
    padding: 2rem;
}

.wavelength-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

/* Specifications Table */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.spec-table th {
    background: var(--gray-700);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--blue-400);
}

.spec-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-700);
}

.spec-table tr:hover {
    background: rgba(96, 165, 250, 0.05);
}

/* CSS-Only Tabs */
.tab-container {
    margin: 2rem 0;
}

.tab-input {
    display: none;
}

.tab-label {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gray-700);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0.5rem 0.5rem 0 0;
}

.tab-input:checked + .tab-label {
    background: var(--gray-800);
    color: var(--blue-400);
}

.tab-content {
    display: none;
    padding: 2rem;
    background: var(--gray-800);
    border-radius: 0 0.5rem 0.5rem 0.5rem;
    animation: fadeIn 0.5s ease;
}

.tab-input:checked ~ .tab-content {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .nav-toggle-label {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        right: 0;
        background: var(--gray-900);
        flex-direction: column;
        padding: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        min-width: 250px;
        height: calc(100vh - 60px);
    }
    
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-blue { color: var(--blue-400); }
.text-gray { color: var(--gray-400); }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.relative { position: relative; }
.absolute { position: absolute; }
.rounded { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.bg-gray-800 { background: var(--gray-800); }
.bg-gray-900 { background: var(--gray-900); }