/* ============================================================
   Erik's Reef Tank - Main Stylesheet
   Colors: #0B2D72 (Deep Navy), #0992C2 (Ocean Blue),
           #0AC4E0 (Reef Cyan), #F6E7BC (Sandy Cream)
   ============================================================ */

:root {
    --navy: #0B2D72;
    --ocean: #0992C2;
    --cyan: #0AC4E0;
    --sand: #F6E7BC;
    --navy-dark: #061d4a;
    --navy-light: #0e3a8f;
    --ocean-dark: #077a9e;
    --cyan-light: #3dd4ec;
    --sand-light: #faf3e0;
    --sand-dark: #e8d5a0;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(11,45,114,0.08);
    --shadow: 0 4px 16px rgba(11,45,114,0.1);
    --shadow-lg: 0 12px 40px rgba(11,45,114,0.15);
    --shadow-xl: 0 20px 60px rgba(11,45,114,0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a { color: var(--ocean); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--cyan); }

/* ---- NAVIGATION ---- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(11, 45, 114, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(9, 146, 194, 0.2);
    padding: 0 2rem;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(6, 29, 74, 0.98);
    box-shadow: var(--shadow-lg);
}
.nav-container {
    max-width: 1400px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 70px;
}
.nav-brand {
    display: flex; align-items: center; gap: 12px;
    font-size: 1.4rem; font-weight: 800; color: var(--white);
    letter-spacing: -0.02em;
}
.nav-brand img { height: 36px; width: 36px; border-radius: 8px; }
.nav-brand span { background: linear-gradient(135deg, var(--cyan), var(--sand));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.8); font-weight: 500; font-size: 0.9rem;
    transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
    color: var(--white); background: rgba(10, 196, 224, 0.15);
}
.nav-links a.active { background: rgba(10, 196, 224, 0.25); }

.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    padding: 8px; color: var(--white);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---- HERO SECTION ---- */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 40%, var(--ocean-dark) 100%);
    overflow: hidden; padding-top: 70px;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%230AC4E008" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,154.7C672,160,768,192,864,186.7C960,181,1056,139,1152,128C1248,117,1344,139,1392,149.3L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"/></svg>') no-repeat bottom;
    background-size: cover; opacity: 0.5;
}
.hero-content {
    position: relative; z-index: 2; text-align: center;
    max-width: 800px; padding: 2rem;
}
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem); color: var(--white);
    margin-bottom: 1rem; font-weight: 800;
}
.hero h1 .highlight {
    background: linear-gradient(135deg, var(--cyan), var(--sand));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 1.25rem; color: rgba(255,255,255,0.7);
    margin-bottom: 2rem; max-width: 600px; margin-inline: auto;
}
.hero-stats {
    display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
    margin-top: 2rem;
}
.hero-stat {
    text-align: center; padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(10,196,224,0.2);
    border-radius: var(--radius); backdrop-filter: blur(10px);
}
.hero-stat-value {
    font-size: 2rem; font-weight: 800; color: var(--cyan);
    display: block;
}
.hero-stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

.hero-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 50px;
    background: linear-gradient(135deg, var(--ocean), var(--cyan));
    color: var(--white); font-weight: 600; font-size: 1rem;
    border: none; cursor: pointer;
    box-shadow: 0 4px 20px rgba(10, 196, 224, 0.3);
    transition: var(--transition);
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(10, 196, 224, 0.4);
    color: var(--white);
}

/* Animated bubbles */
.bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bubble {
    position: absolute; bottom: -20px;
    background: radial-gradient(circle at 30% 30%, rgba(10,196,224,0.15), rgba(10,196,224,0.05));
    border-radius: 50%; border: 1px solid rgba(10,196,224,0.1);
    animation: rise linear infinite;
}
@keyframes rise {
    0% { transform: translateY(0) scale(1); opacity: 0.6; }
    100% { transform: translateY(-110vh) scale(0.3); opacity: 0; }
}

/* Swimming fish in hero */
.swimming-fish {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.swimming-fish .fish {
    position: absolute;
    will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
    .swimming-fish { display: none; }
}

/* ---- SECTIONS ---- */
.section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}
.section-header {
    text-align: center; margin-bottom: 3rem;
}
.section-header h2 {
    margin-bottom: 0.75rem;
    position: relative; display: inline-block;
}
.section-header h2::after {
    content: ''; position: absolute; bottom: -8px; left: 50%;
    transform: translateX(-50%); width: 60px; height: 3px;
    background: linear-gradient(135deg, var(--ocean), var(--cyan));
    border-radius: 2px;
}
.section-header p { color: var(--gray-500); font-size: 1.1rem; max-width: 600px; margin: 1rem auto 0; }

/* ---- CARDS ---- */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}
.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
    border-color: rgba(9,146,194,0.3);
}
.card-body { padding: 1.5rem; }
.card-img {
    width: 100%; height: 220px; object-fit: cover;
    border-bottom: 1px solid var(--gray-100);
}

/* ---- GRID LAYOUTS ---- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }

/* ---- EQUIPMENT SECTION ---- */
.equipment-card {
    display: flex; gap: 1rem; padding: 1.25rem;
    background: var(--white); border-radius: var(--radius);
    border: 1px solid var(--gray-200); transition: var(--transition);
}
.equipment-card:hover {
    border-color: var(--ocean); box-shadow: var(--shadow);
}
.equipment-icon {
    flex-shrink: 0; width: 48px; height: 48px;
    background: linear-gradient(135deg, rgba(9,146,194,0.1), rgba(10,196,224,0.1));
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}
.equipment-info h4 { font-size: 1rem; margin-bottom: 4px; }
.equipment-info .model { color: var(--ocean); font-size: 0.85rem; font-weight: 600; }
.equipment-info .specs { color: var(--gray-500); font-size: 0.8rem; margin-top: 2px; }
.equipment-info .notes { color: var(--gray-400); font-size: 0.8rem; font-style: italic; margin-top: 4px; }

.status-badge {
    display: inline-block; padding: 2px 10px; border-radius: 50px;
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.status-active { background: rgba(16,185,129,0.1); color: var(--success); }
.status-planned { background: rgba(245,158,11,0.1); color: var(--warning); }
.status-inactive { background: rgba(148,163,184,0.1); color: var(--gray-500); }
.status-deceased { background: rgba(239,68,68,0.1); color: var(--danger); }

/* ---- LIVESTOCK CARDS ---- */
.livestock-card { overflow: hidden; }
.livestock-card .card-img { height: 200px; position: relative; }
.livestock-name-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 1rem; background: linear-gradient(transparent, rgba(11,45,114,0.8));
    color: var(--white);
}
.livestock-name-overlay h3 { font-size: 1.1rem; color: var(--white); }
.livestock-name-overlay .sci-name { font-style: italic; font-size: 0.8rem; opacity: 0.8; }

.livestock-meta {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-top: 0.75rem;
}
.meta-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 50px;
    font-size: 0.75rem; font-weight: 500;
    background: var(--gray-100); color: var(--gray-600);
}

/* ---- WATER PARAMETERS DASHBOARD ---- */
.params-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem;
}
.param-card {
    padding: 1.25rem; background: var(--white);
    border-radius: var(--radius); border: 1px solid var(--gray-200);
    text-align: center; transition: var(--transition);
}
.param-card:hover { border-color: var(--ocean); }
.param-label { font-size: 0.8rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.param-value { font-size: 1.8rem; font-weight: 800; color: var(--navy); margin: 0.25rem 0; }
.param-range { font-size: 0.75rem; color: var(--gray-400); }
.param-card.in-range { border-left: 3px solid var(--success); }
.param-card.out-range { border-left: 3px solid var(--danger); }
.param-card.no-data { border-left: 3px solid var(--gray-300); }

/* ---- CHARTS ---- */
.chart-container {
    background: var(--white); border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200); padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.chart-container canvas { max-height: 350px; }

.chart-toggle-btn {
    padding: 4px 12px;
    border-radius: 20px;
    border: 2px solid;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}
.chart-toggle-btn:hover { opacity: 0.8; transform: scale(1.05); }

/* ---- GALLERY ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.gallery-item {
    position: relative; border-radius: var(--radius);
    overflow: hidden; cursor: pointer;
    aspect-ratio: 4/3;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(transparent 50%, rgba(11,45,114,0.8));
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.25rem; opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h4 { color: var(--white); font-size: 1rem; }
.gallery-overlay p { color: rgba(255,255,255,0.7); font-size: 0.85rem; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.9); display: none;
    align-items: center; justify-content: center;
    padding: 2rem;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); object-fit: contain; }
.lightbox-close {
    position: absolute; top: 1.5rem; right: 1.5rem;
    background: rgba(255,255,255,0.1); border: none; color: white;
    width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
    font-size: 1.5rem; display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ---- FORMS ---- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block; margin-bottom: 0.375rem;
    font-weight: 600; font-size: 0.85rem; color: var(--gray-700);
}
.form-control {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
    font-size: 0.9rem; font-family: inherit;
    background: var(--white); color: var(--gray-800);
    transition: var(--transition);
}
.form-control:focus {
    outline: none; border-color: var(--ocean);
    box-shadow: 0 0 0 3px rgba(9,146,194,0.15);
}
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

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

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.9rem; font-family: inherit;
    border: none; cursor: pointer; transition: var(--transition);
}
.btn-primary {
    background: linear-gradient(135deg, var(--ocean), var(--cyan));
    color: var(--white);
    box-shadow: 0 2px 12px rgba(9,146,194,0.25);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(9,146,194,0.35);
}
.btn-secondary {
    background: var(--gray-100); color: var(--gray-700);
    border: 1px solid var(--gray-200);
}
.btn-secondary:hover { background: var(--gray-200); }
.btn-danger { background: rgba(239,68,68,0.1); color: var(--danger); }
.btn-danger:hover { background: rgba(239,68,68,0.2); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-icon {
    width: 36px; height: 36px; padding: 0;
    border-radius: var(--radius-sm);
}

/* ---- TABLES ---- */
.table-wrapper {
    background: var(--white); border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200); overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.table-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-100);
    flex-wrap: wrap; gap: 1rem;
}
.data-table {
    width: 100%; border-collapse: collapse;
}
.data-table th {
    padding: 0.75rem 1rem; text-align: left;
    font-size: 0.75rem; font-weight: 700; color: var(--gray-500);
    text-transform: uppercase; letter-spacing: 0.5px;
    background: var(--gray-50); border-bottom: 1px solid var(--gray-200);
}
.data-table td {
    padding: 0.75rem 1rem; border-bottom: 1px solid var(--gray-100);
    font-size: 0.875rem;
}
.data-table tbody tr { transition: var(--transition); }
.data-table tbody tr:hover { background: rgba(9,146,194,0.03); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ---- TABS ---- */
.tabs {
    display: flex; gap: 4px;
    padding: 4px; background: var(--gray-100);
    border-radius: var(--radius-sm); margin-bottom: 1.5rem;
    overflow-x: auto; flex-wrap: nowrap;
}
.tab {
    padding: 8px 20px; border-radius: 6px;
    font-weight: 600; font-size: 0.85rem;
    color: var(--gray-500); cursor: pointer;
    transition: var(--transition); white-space: nowrap;
    border: none; background: none;
}
.tab:hover { color: var(--gray-700); }
.tab.active { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ---- MODAL ---- */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 5000;
    background: rgba(11,45,114,0.4); backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center;
    padding: 1rem;
}
.modal-backdrop.active { display: flex; }
.modal {
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl); max-width: 600px; width: 100%;
    max-height: 90vh; overflow-y: auto;
}
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-100);
}
.modal-header h3 { color: var(--navy); }
.modal-close {
    width: 32px; height: 32px; border-radius: 8px;
    border: none; background: var(--gray-100); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: var(--gray-500); transition: var(--transition);
}
.modal-close:hover { background: var(--gray-200); color: var(--gray-700); }
.modal-body { padding: 1.5rem; }
.modal-footer {
    padding: 1rem 1.5rem; border-top: 1px solid var(--gray-100);
    display: flex; justify-content: flex-end; gap: 0.75rem;
}

/* ---- TOAST NOTIFICATIONS ---- */
.toast-container {
    position: fixed; top: 80px; right: 1rem; z-index: 9000;
    display: flex; flex-direction: column; gap: 0.5rem;
}
.toast {
    padding: 12px 20px; border-radius: var(--radius-sm);
    font-size: 0.875rem; font-weight: 500;
    box-shadow: var(--shadow-lg); animation: slideIn 0.3s ease;
    display: flex; align-items: center; gap: 8px;
    max-width: 400px;
}
.toast-success { background: var(--success); color: var(--white); }
.toast-error { background: var(--danger); color: var(--white); }
.toast-info { background: var(--ocean); color: var(--white); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---- CARE GUIDE DETAIL ---- */
.care-detail {
    display: grid; grid-template-columns: 1fr 2fr; gap: 2rem;
    align-items: start;
}
.care-detail-img {
    width: 100%; border-radius: var(--radius-lg); overflow: hidden;
    aspect-ratio: 1; position: sticky; top: 90px;
}
.care-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.care-detail-body h2 { margin-bottom: 0.5rem; }
.care-detail-body .sci-name {
    font-style: italic; color: var(--ocean); font-size: 1.1rem;
    margin-bottom: 1.5rem; display: block;
}
.care-info-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem;
    margin: 1.5rem 0;
}
.care-info-item {
    padding: 1rem; background: var(--gray-50);
    border-radius: var(--radius-sm); border: 1px solid var(--gray-200);
}
.care-info-item label { font-size: 0.75rem; color: var(--gray-500); text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }
.care-info-item span { display: block; font-weight: 600; color: var(--navy); margin-top: 2px; }

.care-guide-text {
    line-height: 1.8; color: var(--gray-700); font-size: 1rem;
    margin-top: 1.5rem; padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* ---- FOOTER ---- */
.footer {
    background: var(--navy-dark); color: rgba(255,255,255,0.6);
    padding: 3rem 2rem 1.5rem; margin-top: 3rem;
}
.footer-content {
    max-width: 1400px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: start;
    flex-wrap: wrap; gap: 2rem;
}
.footer h4 { color: var(--sand); margin-bottom: 0.75rem; font-size: 1rem; }
.footer p { font-size: 0.875rem; line-height: 1.6; }
.footer-bottom {
    max-width: 1400px; margin: 2rem auto 0;
    padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center; font-size: 0.8rem;
}

/* ---- UPLOAD AREA ---- */
.upload-area {
    border: 2px dashed var(--gray-300); border-radius: var(--radius);
    padding: 2rem; text-align: center; cursor: pointer;
    transition: var(--transition);
}
.upload-area:hover, .upload-area.dragover {
    border-color: var(--ocean); background: rgba(9,146,194,0.03);
}
.upload-area svg { width: 48px; height: 48px; color: var(--gray-400); margin-bottom: 0.75rem; }
.upload-area p { color: var(--gray-500); font-size: 0.9rem; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .care-detail { grid-template-columns: 1fr; }
    .care-detail-img { position: static; max-height: 400px; }
}
@media (max-width: 768px) {
    .navbar { padding: 0 1rem; }
    .nav-links {
        position: fixed; top: 70px; left: 0; right: 0;
        background: rgba(11,45,114,0.98); flex-direction: column;
        padding: 1rem; gap: 0; transform: translateY(-100%);
        transition: var(--transition); opacity: 0; pointer-events: none;
    }
    .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
    .nav-toggle { display: block; }
    .hero h1 { font-size: 2rem; }
    .hero-stats { gap: 1rem; }
    .section { padding: 3rem 1rem; }
    h2 { font-size: 1.6rem; }
    .params-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
    .data-table { font-size: 0.8rem; }
    .data-table th, .data-table td { padding: 0.5rem 0.75rem; }
    .table-wrapper { overflow-x: auto; }
}
@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .hero-stat { padding: 0.75rem 1rem; }
}

/* ---- PAGE-SPECIFIC STYLES ---- */
.page-header {
    padding: 8rem 2rem 3rem;
    background: linear-gradient(135deg, var(--navy-dark), var(--navy), var(--ocean-dark));
    text-align: center; color: var(--white);
}
.page-header h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-header p { color: rgba(255,255,255,0.7); font-size: 1.1rem; }

/* Breadcrumb */
.breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem; color: rgba(255,255,255,0.5);
    justify-content: center; margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--cyan); }

/* Loading spinner */
.spinner {
    width: 40px; height: 40px; border: 3px solid var(--gray-200);
    border-top-color: var(--ocean); border-radius: 50%;
    animation: spin 0.8s linear infinite; margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty state */
.empty-state {
    text-align: center; padding: 3rem;
    color: var(--gray-400);
}
.empty-state svg { width: 64px; height: 64px; margin-bottom: 1rem; opacity: 0.5; }
.empty-state h3 { color: var(--gray-500); margin-bottom: 0.5rem; }
