/*
Theme Name: Spectara
Description: Aerosol Intelligence Platform - Custom WordPress theme for Spectara's MALDI-TOF mass spectrometry technology showcase.
Version: 1.0.0
Author: Spectara Inc.
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0a0a0a;
    overflow-x: hidden;
}

.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 30% 20%, rgba(120, 119, 198, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 119, 48, 0.1) 0%, transparent 50%),
                linear-gradient(135deg, #0a0a0a 0%, #151515 50%, #0a0a0a 100%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.spectara-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s ease;
}

.spectara-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.logo-icon {
    font-size: 24px;
}

.logo:hover {
    color: #ff7730;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: #cccccc;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff7730;
}

.nav-mobile {
    display: none;
}

.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #ff7730 50%, #7777c6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text .tagline {
    font-size: 1.4rem;
    color: #ff7730;
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-text p {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Enhanced dashboard panel */
.hero-demo {
    background: rgba(10, 14, 24, 0.92);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(99, 140, 255, 0.35);
    box-shadow:
        0 0 40px rgba(59, 130, 246, 0.12),
        0 0 80px rgba(119, 119, 198, 0.07),
        0 30px 60px -15px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.hero-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #7777c6, #ff7730, transparent);
    opacity: 0.8;
}

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
}

.demo-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 20px;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.demo-content {
    position: relative;
}

.spectrum-display {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 25px;
    position: relative;
}

.spectrum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.spectrum-info {
    display: flex;
    gap: 30px;
    align-items: center;
}

.location-info {
    display: flex;
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.info-value {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.spectrum-title {
    color: #cccccc;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.spectrum-chart {
    width: 100%;
    height: 250px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    position: relative;
}

/* Panels grid below the spectrum chart */
.dashboard-lower-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.metrics-overlay {
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.metrics-title {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.metric-row:last-child {
    margin-bottom: 0;
}

.metric-row .label {
    color: #888;
    font-size: 0.8rem;
}

.metric-row .value {
    color: #ff7730;
    font-weight: 600;
    font-size: 0.9rem;
}

.particle-toggle {
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.toggle-title {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.particle-sizes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.size-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.size-label {
    color: #888;
}

.size-count {
    color: #7777c6;
    font-weight: 600;
}

/* Core Capabilities */
.capabilities {
    padding: 120px 0;
    background: rgba(255, 255, 255, 0.02);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.section-header p {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 700px;
    margin: 0 auto;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.capability-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff7730, #7777c6);
    border-radius: 20px 20px 0 0;
}

.capability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.capability-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.capability-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.capability-card p {
    color: #cccccc;
    margin-bottom: 20px;
    line-height: 1.7;
}

.spec-list {
    list-style: none;
}

.spec-list li {
    padding: 5px 0;
    color: #aaaaaa;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.spec-list li::before {
    content: '▸';
    color: #ff7730;
    margin-right: 10px;
    font-weight: bold;
}

/* Trusted By Section */
.trusted-by {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.01);
}

.trusted-by .section-header h2 {
    font-size: 2.2rem;
    color: #cccccc;
    font-weight: 600;
}

.trusted-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.trusted-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trusted-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.trusted-logo {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
    filter: grayscale(1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.trusted-item:hover .trusted-logo {
    filter: grayscale(0);
    opacity: 1;
}

.trusted-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.trusted-description {
    font-size: 0.9rem;
    color: #888888;
}

/* Technology Section */
.technology {
    padding: 120px 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
    margin-top: 60px;
}

.tech-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #ff7730;
}

.tech-specs {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin-top: 60px;
}

.tech-specs h3 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 1.4rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.spec-item {
    text-align: center;
}

.spec-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #7777c6;
    margin-bottom: 5px;
}

.spec-label {
    font-size: 0.9rem;
    color: #cccccc;
}

/* Products Section */
.products {
    padding: 120px 0;
    background: rgba(255, 255, 255, 0.02);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.product-icon {
    font-size: 2rem;
}

.product-card h3 {
    font-size: 2rem;
    color: #ffffff;
}

.product-card .subtitle {
    color: #ff7730;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 119, 48, 0.1), rgba(119, 119, 198, 0.1));
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact p {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: linear-gradient(135deg, #ff7730, #ff9955);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 119, 48, 0.4);
    color: white;
}

/* Footer */
.spectara-footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    text-align: center;
    color: #888888;
}

.footer-content p {
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff7730;
}

.copyright {
    margin-top: 30px;
    color: #666;
}

.admin-note {
    margin-top: 20px;
    opacity: 0.7;
}

.admin-note a {
    color: #ff7730;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .trusted-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-mobile {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .trusted-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .spectrum-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .dashboard-lower-panels {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
	
	.spectrum-chart {
    	height: 160px;
	}
}

/* WordPress specific styles */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Admin bar adjustments */
body.admin-bar .spectara-nav {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .spectara-nav {
        top: 46px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}