/* NeoTox Labs Styles */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(40px);
    z-index: var(--z-overlay);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.logo-icon {
    color: var(--text-primary);
    font-size: 1.2rem;
    opacity: 0.6;
}

.nav-links {
    display: flex;
    gap: 3rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 4rem 4rem;
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    font-size: 0.75rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 400;
    color: var(--text-secondary);
}

.hero-title {
    margin-bottom: 2rem;
}

.hero-title .title-word {
    display: block;
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 200;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 0.9;
    margin-bottom: 0.2rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    font-weight: 300;
    line-height: 1.8;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.stat-item {
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
}

.stat-value {
    font-size: 3rem;
    font-weight: 200;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 400;
}

.hero-visual {
    position: relative;
}

.molecule-container {
    width: 100%;
    height: 500px;
    position: relative;
    opacity: 0.4;
}

/* Sections */
.compounds-section,
.synthesis-section,
.plants-section,
.research-section {
    padding: 8rem 4rem;
    max-width: 1600px;
    margin: 0 auto;
}

.section-title {
    text-align: left;
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 4rem;
    color: var(--text-primary);
    font-weight: 200;
    letter-spacing: -0.02em;
}

.compounds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Compact card like provided mock */
.compound-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
    background: #ffffff0a;
    backdrop-filter: blur(20px);
    border-radius: 2px;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.compound-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(15, 15, 15, 0.8);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Hide large visual in compact mode */
.compound-visual { display: none; }

.compound-name {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -0.01em;
}

.compound-formula {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.compound-info { display: flex; flex-direction: column; gap: 0.3rem; }

.compound-meta { display: none; }
.compound-description { display: none; }

/* Placeholder sections */
.section-placeholder {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 4rem 0;
    font-weight: 300;
}

.compound-btn {
    padding: 0.6rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-secondary);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.compound-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.02);
    transform: translateX(4px);
}

/* Modal */
.modal { 
    display: none; 
    position: fixed; 
    inset: 0; 
    z-index: 10000;
    overflow-y: auto;
}

.modal.active { 
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay { 
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,.75); 
    backdrop-filter: blur(4px); 
}

.modal-content { 
    position: relative; 
    width: min(1200px, 100%);
    max-height: calc(100vh - 4rem);
    background: rgba(10,10,10,0.98); 
    border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 4px; 
    overflow: hidden;
    margin: auto;
}

.modal-close { 
    position: absolute; 
    top: 1rem; 
    right: 1rem; 
    background: transparent; 
    border: 1px solid rgba(255,255,255,.2); 
    color: var(--text-secondary); 
    border-radius: 2px; 
    padding: 8px; 
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.modal-close:hover {
    border-color: rgba(255,255,255,.4);
    background: rgba(255,255,255,.05);
}

.modal-body { 
    display: grid; 
    grid-template-columns: 420px 1fr; 
    gap: 0;
    max-height: calc(100vh - 4rem);
}

.modal-image { 
    background: #fff; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    min-height: 400px;
}

.modal-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    background: #fff; 
}

.modal-details { 
    padding: 2.5rem;
    color: var(--text-primary);
    overflow-y: auto;
    max-height: calc(100vh - 4rem);
}

.modal-details h2 { 
    font-weight: 300; 
    font-size: 1.8rem; 
    margin-bottom: 1rem; 
    padding-right: 2rem;
}

.modal-details p { 
    color: var(--text-secondary); 
    line-height: 1.8; 
    margin-bottom: 1.5rem; 
    font-size: 0.95rem;
}

.details-section { 
    margin-top: 1.5rem; 
}

.details-section h3 { 
    font-size: 0.8rem; 
    letter-spacing: .15em; 
    text-transform: uppercase; 
    color: var(--text-muted); 
    margin-bottom: .8rem;
    font-weight: 500;
}

.details-section ul { 
    list-style: disc; 
    margin-left: 1.25rem; 
    color: var(--text-secondary);
}

.details-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Research Modal Specific Styles */
.research-modal-content {
    max-width: 900px;
}

.research-modal-body {
    padding: 2.5rem;
    overflow-y: auto;
    max-height: calc(100vh - 4rem);
}

.research-modal-details h2 {
    font-weight: 300;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.research-meta {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.meta-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    padding: 0.4rem 0;
}

.meta-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 500;
}

.meta-row span:last-child {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

#researchModalAbstract {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .modal.active {
        padding: 1rem;
    }
    
    .modal-body { 
        grid-template-columns: 1fr;
        max-height: none;
    }
    
    .modal-image { 
        height: 260px;
        min-height: 260px;
    }
    
    .modal-details {
        padding: 1.5rem;
        max-height: none;
    }
    
    .research-modal-body {
        padding: 1.5rem;
    }
    
    .meta-row {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }
}

/* Research Section */
.research-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.research-card {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(40px);
    border-radius: 2px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: start;
}

.research-card:hover {
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(15, 15, 15, 0.8);
}

.research-date {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    opacity: 0.6;
}

.research-content {
    flex: 1;
}

.research-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.research-abstract {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-weight: 300;
    font-size: 0.95rem;
}

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.3rem 0.8rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 400;
}

.research-link {
    color: var(--text-secondary);
    font-weight: 400;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    align-self: center;
    white-space: nowrap;
}

.research-link:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

/* Main Footer */
.main-footer {
    background: var(--secondary-bg);
    padding: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    max-width: 1600px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-weight: 300;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 0.8rem;
}

@media (max-width: 1200px) {
    .compounds-grid,
    .formulas-grid {
        grid-template-columns: 1fr;
    }
    
    .bonds-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        padding: 1.5rem 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-section {
        padding: 100px 2rem 2rem;
    }
    
    .hero-section .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .compounds-section,
    .formulas-section,
    .bonds-section,
    .research-section {
        padding: 4rem 2rem;
    }
    
    .bonds-grid {
        grid-template-columns: 1fr;
    }
    
    .research-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .research-date {
        writing-mode: horizontal-tb;
    }
}
