/* Main Variables */
:root {
    --primary-color: #0b0d17;
    --secondary-color: #15192b;
    --accent-color: #00d4ff;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --card-bg: rgba(255, 255, 255, 0.05);
    /* Glassmorphism base */
    --card-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    /* Allow clicks to pass through */
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

a:hover {
    color: #fff;
    text-decoration: none;
}

/* Navbar */
.navbar {
    background: rgba(11, 13, 23, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-color) !important;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color) !important;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #0056b3);
    border: none;
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    transition: transfrom 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
    background: linear-gradient(135deg, #0056b3, var(--accent-color));
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background: radial-gradient(circle at top right, rgba(0, 212, 255, 0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(0, 86, 179, 0.1), transparent 40%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Features / Content Sections */
.section-padding {
    padding: 80px 0;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px;
    transition: transform 0.3s ease, background 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Data Safety & Policy Pages */
.policy-content {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    margin-top: 20px;
}

.policy-content h2 {
    color: var(--accent-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.policy-content p,
.policy-content ul {
    color: var(--text-muted);
    line-height: 1.7;
}

.data-safety-item {
    border-bottom: 1px solid var(--card-border);
    padding: 20px 0;
}

.data-safety-item:last-child {
    border-bottom: none;
}

.badge-collected {
    background-color: rgba(0, 212, 255, 0.2);
    color: var(--accent-color);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Footer */
footer {
    background: var(--secondary-color);
    padding: 50px 0 20px;
    border-top: 1px solid var(--card-border);
    margin-top: auto;
}

.footer-link {
    display: block;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-link:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

/* Admin Styles */
.admin-login-box {
    max-width: 400px;
    margin: 100px auto;
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
}

.admin-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-control {
    background: var(--primary-color);
    border: 1px solid var(--card-border);
    color: var(--text-color);
}

.form-control:focus {
    background: var(--primary-color);
    color: var(--text-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.55);
    opacity: 1;
}

.form-control:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.form-control::-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.55);
}

/* Visibility Fixes */
.text-muted {
    color: #b0b3b8 !important;
    /* Lighter grey for better visibility on dark bg */
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    color: #ffffff !important;
}

p,
li,
span,
div {
    color: rgba(255, 255, 255, 0.9);
}

/* Fix Bootstrap Cards if used */
.card {
    background-color: var(--card-bg);
    border-color: var(--card-border);
    color: var(--text-color);
}

/* Fix Tables if used */
.table {
    color: var(--text-color);
    border-color: var(--card-border);
}

.table th,
.table td {
    border-color: var(--card-border);
}
