/*-----------------*\
 AJX Scientific CSS
 Stewart Fullard 
 2026 – Clean Build
\*-----------------*/

/* ==============================
   VARIABLES
============================== */
:root {
    --primary: #0ea5e9;
    --secondary: #06b6d4;
    --accent: #22d3ee;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-light: #ffffff;
}

/* ==============================
   GLOBAL RESET + STICKY FOOTER
============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f172a, #0ea5e9, #06b6d4);
    background-attachment: fixed;
    color: var(--text-light);

    /* Sticky footer layout */
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ==============================
   NAVBAR
============================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    backdrop-filter: blur(15px);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar img {
    height: 50px;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* ==============================
   GENERAL PAGE CONTENT
============================== */
.container {
    padding: 4rem 5%;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* ==============================
   HERO SECTION
============================== */
.hero {
    text-align: center;
    padding: 6rem 5%;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.hero-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    background: white;
    color: #0f172a;
    text-decoration: none;
    transition: 0.3s ease;
}

.hero-btn:hover {
    background: var(--accent);
    color: white;
}

/* ==============================
   GLASS PANEL (Reusable)
============================== */
.glass-panel {
    backdrop-filter: blur(20px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* ==============================
   GRID LAYOUTS
============================== */
.layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 2rem;
}

.about-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* ==============================
   SIDE PANEL
============================== */
.side-panel {
    max-height: 700px;
    overflow-y: auto;
}

.side-panel h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1rem;
    color: var(--accent);
}

.side-panel ul {
    list-style: none;
    margin-bottom: 1rem;
}

.side-panel li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: 0.3s;
}

.side-panel li:hover {
    color: var(--accent);
    padding-left: 5px;
}

.side-panel a {
    color: white;
    text-decoration: none;
}

/* ==============================
   PRODUCT TABLE
============================== */
.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    backdrop-filter: blur(20px);
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    overflow: hidden;
}

.product-table th {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--accent);
}

.product-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.product-table tr:hover {
    background: rgba(255,255,255,0.07);
}

.product-table img {
    width: 80px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.price {
    font-weight: 600;
    color: var(--accent);
}

/* ==============================
   GLASS CARD GRID
============================== */
.glass-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.glass-card {
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}

.glass-card:hover {
    transform: translateY(-8px);
}

/* ==============================
   ABOUT PAGE
============================== */
.glass-panel ul {
    list-style: none;
}

.glass-panel li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.glass-panel li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

/* ==============================
   FOOTER (Sticky Bottom)
============================== */
footer {
    text-align: center;
    padding: 2rem;
    backdrop-filter: blur(15px);
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
    margin-top: auto;
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 992px) {
    .layout,
    .about-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.95);
        position: absolute;
        top: 80px;
        right: 5%;
        padding: 1rem;
        border-radius: 10px;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .page-title {
        font-size: 2rem;
    }
}