
:root {
    --bg-base: #060b13;
    --bg-panel: #0d1627;
    --bg-panel-hover: #152238;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --primary: #00d2ff;
    --primary-glow: rgba(0, 210, 255, 0.3);
    --secondary: #3a7bd5;
    --accent-warm: #ffaa00;
    --success: #00e676;
    --border-light: rgba(0, 210, 255, 0.15);
    
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover { color: #fff; text-shadow: 0 0 8px var(--primary-glow); }

.container {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Nav - Smart Dashboard Feel */
header {
    background: rgba(13, 22, 39, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo span { color: var(--primary); }
.logo::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}
nav ul li a {
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    position: relative;
}
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--primary);
}
nav ul li a:hover, nav ul li a.active { color: #fff; }
nav ul li a:hover::after, nav ul li a.active::after { width: 100%; }

.menu-toggle { display: none; color: var(--primary); font-size: 1.8rem; cursor: pointer; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
    color: #fff;
}
.btn-secondary {
    background: transparent;
    border: 1px solid var(--primary);
    box-shadow: inset 0 0 10px rgba(0,210,255,0.1);
}
.btn-secondary:hover {
    background: rgba(0, 210, 255, 0.1);
}

/* Sections */
.section { padding: 80px 0; }
.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.section-title span {
    color: var(--primary);
}

/* Cards (Widgets) */
.product-grid, .category-grid, .features-grid, .hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.card, .product-card, .category-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}
.card::before, .product-card::before, .category-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.card:hover, .product-card:hover, .category-card:hover {
    transform: translateY(-5px);
    background: var(--bg-panel-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--primary-glow);
    border-color: rgba(0, 210, 255, 0.4);
}
.card:hover::before, .product-card:hover::before, .category-card:hover::before { opacity: 1; }

.product-card img, .category-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-light);
}
.product-card-content { padding: 25px; }
.product-card-content h3 { font-size: 1.4rem; margin-bottom: 10px; color: var(--primary); }
.product-card-content p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.95rem; }

/* Category Cards specific */
.category-card { height: 300px; }
.category-card img { height: 100%; border: none; }
.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,11,19,0.9) 0%, rgba(6,11,19,0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}
.category-overlay h3 { color: #fff; font-size: 1.8rem; margin-bottom: 10px; }
.category-overlay p { color: var(--primary); font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px;}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('hero-modern-smart-home-interior.jpg') center/cover;
    opacity: 0.3;
    z-index: -2;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg-base) 0%, rgba(6,11,19,0.7) 100%);
    z-index: -1;
}
.hero-content {
    max-width: 650px;
    z-index: 1;
}
.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}
.hero h1 span { color: var(--primary); display: block;}
.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}
.hero-badges {
    display: flex; gap: 15px; margin-bottom: 2rem; flex-wrap: wrap;
}
.badge {
    padding: 6px 12px;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--primary);
    display: flex; align-items: center; gap: 6px;
}
.badge::before { content:''; width:8px; height:8px; background:var(--success); border-radius:50%; box-shadow:0 0 5px var(--success); }

/* System Status Bar (Niche specific) */
.system-status {
    background: var(--bg-panel);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 15px 0;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.status-grid { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.status-item { display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
.status-item strong { color: #fff; }
.status-item .dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.online { background: var(--success); box-shadow: 0 0 8px var(--success); }
.dot.warning { background: var(--accent-warm); box-shadow: 0 0 8px var(--accent-warm); }

/* Footer */
footer {
    background: var(--bg-panel);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-light);
    margin-top: 50px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--text-muted); }
.footer-col ul li a:hover { color: var(--primary); padding-left: 5px; }
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Specific Sub-page Headers */
.page-header {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(13,22,39,1) 0%, var(--bg-base) 100%);
    border-bottom: 1px solid var(--border-light);
}
.page-header h1 { font-size: 3.5rem; margin-bottom: 15px; color: var(--primary); }
.page-header p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    nav {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: var(--bg-panel);
        border-bottom: 1px solid var(--border-light);
        display: none;
    }
    nav.active { display: block; }
    nav ul { flex-direction: column; padding: 20px; gap: 15px; text-align: center; }
    .hero h1 { font-size: 3rem; }
    .hero { padding: 60px 0; text-align: center; }
    .hero::after { background: linear-gradient(0deg, var(--bg-base) 0%, rgba(6,11,19,0.7) 100%); }
    .hero-badges { justify-content: center; }
    .status-grid { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }
    .btn { width: 100%; margin-bottom: 10px; }
}
