/* 
   New Gen Microscopes - Premium Theme 
   Colors: Deep Royal Blue, Scientific Teal, Clean White
*/

:root {
    --primary: #0f172a;
    /* Slate 900 */
    --primary-light: #1e293b;
    /* Slate 800 */
    --accent: #0ea5e9;
    /* Sky 500 */
    --accent-dark: #0284c7;
    /* Sky 600 */
    --text-dark: #334155;
    /* Slate 700 */
    --text-light: #94a3b8;
    /* Slate 400 */
    --bg-light: #f8fafc;
    /* Slate 50 */
    --white: #ffffff;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    /* Can swap to Playfair Display for headers if desired */
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

.tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: #e0f2fe;
    color: var(--accent-dark);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    color: var(--accent);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--primary-light);
    position: relative;
    font-size: 0.95rem;
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-links a:not(.btn-nav):hover::after {
    width: 100%;
}

.btn-nav {
    padding: 8px 20px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 4px;
}

.btn-nav:hover {
    background-color: var(--accent);
    color: var(--white);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    color: var(--white);
}

.slider-wrapper {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-content {
    position: relative;
    z-index: 2;
    padding-top: 60px;
    /* Offset for navbar */
    max-width: 800px;
    margin-left: max(20px, (100% - 1200px) / 2);
    /* Align left container */
}

/* Animation for slide content */
.slide.active .eyebrow {
    animation: fadeInUp 0.8s 0.2s forwards;
}

.slide.active h1 {
    animation: fadeInUp 0.8s 0.4s forwards;
}

.slide.active p {
    animation: fadeInUp 0.8s 0.6s forwards;
}

.slide.active .btn-group {
    animation: fadeInUp 0.8s 0.8s forwards;
}

.slide-content .eyebrow {
    display: block;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
}

.slide-content h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(30px);
}

.slide-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translateY(30px);
}

.btn-group {
    display: flex;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats Section */
.stats-section {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0;
    margin-top: -5px;
    /* ensure no gap */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 5px;
}

.stat-item p {
    color: #94a3b8;
    font-weight: 500;
}

/* Product Section */
.section-header {
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.category {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.description {
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-link {
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.btn-link:hover {
    color: var(--accent);
}

/* Features Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.split-content>p {
    color: var(--text-light);
    /* Actually text-dark is better for reading, checking var */
    color: #475569;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-list i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-top: 5px;
}

.feature-list h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.feature-list p {
    font-size: 0.95rem;
    color: #64748b;
}

.split-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.split-image img {
    border-radius: 20px;
    /* Redundant but safe */
}

.floating-card {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: var(--white);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 2rem;
    color: var(--accent);
}

.floating-card span {
    font-weight: 700;
    color: var(--primary);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Footer */
.footer {
    background-color: #0f172a;
    color: #e2e8f0;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li a {
    color: #94a3b8;
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-col ul li i {
    width: 25px;
    color: var(--accent);
}

.logo.light {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .slide-content h1 {
        font-size: 3rem;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .floating-card {
        left: 20px;
    }
}


/* Contact Page */
.page-header {
    height: 40vh;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-top: 60px;
    /* offset fixed nav */
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 60px;
}

.contact-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #e2e8f0;
}

.form-subtitle {
    margin-bottom: 30px;
    color: #64748b;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition);
    background-color: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.submit-btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 16px;
    border-left: 4px solid var(--accent);
}

.info-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.info-card h3 i {
    color: var(--accent);
}

.contact-link {
    display: block;
    color: var(--primary);
    font-weight: 500;
    margin-top: 5px;
}

.contact-link:hover {
    color: var(--accent);
}

.text-accent {
    color: var(--accent);
    font-weight: 600;
}

/* Media Queries Update */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}