/* modern styling system for LABMIN UNI */
:root {
    --bg-main: #090d16;
    --bg-surface: rgba(17, 24, 39, 0.7);
    --bg-surface-hover: rgba(31, 41, 55, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.35);
    --accent: #14b8a6;
    --accent-glow: rgba(20, 184, 166, 0.3);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Background Glow Effects */
.glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.25;
}

#orb1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -50px;
}

#orb2 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    bottom: -150px;
    left: -100px;
}

/* Institutional Bar */
.inst-bar {
    background: #030712;
    border-bottom: 1px solid var(--border-color);
    padding: 0.6rem 0;
}

.inst-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inst-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.inst-logo img {
    height: 32px;
}

.inst-text strong {
    display: block;
    font-size: 0.85rem;
    color: #e5e7eb;
}

.inst-text span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Header & Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.logo-badge {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-weight: 800;
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.logo-title strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.logo-title small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    font-weight: 600;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    padding-top: 4rem;
    padding-bottom: 6rem;
}

.hero-tag {
    display: inline-block;
    background: rgba(20, 184, 166, 0.1);
    color: var(--accent);
    border: 1px solid rgba(20, 184, 166, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    background: linear-gradient(120deg, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 550px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Crystal Card */
.crystal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.crystal-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.crystal-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.crystal-info {
    padding: 1.5rem;
}

.crystal-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
}

.crystal-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.view-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

/* Section General */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Catalog Grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.mineral-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.mineral-card:hover {
    transform: translateY(-4px);
    background: var(--bg-surface-hover);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.mineral-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.mineral-detail {
    padding: 1.5rem;
}

.strunz {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.mineral-detail h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.mineral-detail p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Services Section */
.services-section {
    background: #06090f;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    transition: all 0.3s;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #020508;
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.footer h4 {
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.6rem;
}

.footer ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 2rem;
        padding-bottom: 3rem;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
