:root {
    --bg-color: #0f1316; /* Very dark, almost black-green */
    --card-bg: #1a1f24;
    --text-primary: #ffffff;
    --text-secondary: #c0c0c0;
    --accent-color: #00b0ff; /* Sky Blue */
    --accent-secondary: #007bb6; /* Deeper Blue */
    --border-radius: 12px;
    --font-main: 'Inter', sans-serif;
}

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

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    padding: 60px 0 40px;
    text-align: center;
    background: url('../images/top_upper_banner.png') no-repeat center center;
    background-size: cover;
    min-height: 508px; /* Increased height by another ~40% */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Cards */
.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border: 1px solid #333;
}

.card-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.status-indicator {
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-indicator.online {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

/* Grafana Embed */
.grafana-embed-container {
    position: relative;
    width: 100%;
    height: 470px; /* Increased from 450px to fit Google Sheets chart chrome */
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Hide scrollbars */
}

.grafana-embed-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    /* If using a placeholder image as src, we might want object-fit, 
       but for iframe it doesn't apply. This is just for the demo layout. */
}

/* Stats Cards */
.stat-card {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-top: 10px;
}

.placeholder-overlay {
    position: absolute;
    text-align: center;
    pointer-events: none;
    background: rgba(0,0,0,0.7);
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

/* Gallery Grid */
.description-section .card-body {
    padding: 30px;
    color: var(--text-secondary);
}

.description-section h2 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.gallery-section h2 {
    margin-bottom: 20px;
    font-weight: 400;
    color: var(--text-secondary);
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Force 2 columns */
    gap: 20px;
}

.image-card .img-wrapper {
    height: 200px;
    overflow: hidden;
}

.placeholder-img {
    width: 100%;
    height: 100%;
}

.image-card .card-body {
    padding: 20px;
}

.image-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

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

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid #222;
    margin-top: 60px;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .grafana-embed-container { height: 300px; }
}