/* Core Variables & Reset */
:root {
    --primary: #1a2a6c; /* Royal Blue */
    --accent: #b28d42;  /* Gold */
    --bg-color: #f8f9fa;
    --text-color: #333333;
    --card-bg: #ffffff;
    --nav-bg: #ffffff;
    --footer-bg: #111111;
    --border: #e0e0e0;
}

[data-theme="dark"] {
    --primary: #2b3b7d;
    --accent: #d4af37;
    --bg-color: #121212;
    --text-color: #f1f1f1;
    --card-bg: #1e1e1e;
    --nav-bg: #1a1a1a;
    --border: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--nav-bg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}

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

/* Dropdowns */
.dropdown { position: relative; }
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    top: 100%;
    left: 0;
    list-style: none;
    overflow: hidden;
}
.dropdown:hover .dropdown-content { display: block; animation: fadeIn 0.3s ease; }
.dropdown-content li a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
}

/* Buttons & Inputs */
.cta-btn {
    background-color: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s;
}
.cta-btn:hover { transform: translateY(-3px); }

input, select, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--card-bg);
    color: var(--text-color);
}

#theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; }

/* Page Logic */
.page { display: none; padding: 60px 5%; animation: fadeIn 0.5s ease; min-height: 70vh; }
.page.active { display: block; }
.container { max-width: 1200px; margin: 0 auto; }
h2 { font-size: 2.5rem; color: var(--primary); margin-bottom: 30px; text-align: center; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(rgba(43, 44, 50, 0.8), rgba(5, 6, 7, 0.9)),  center/cover;
    color: #fff;
    border-radius: 20px;
    margin-bottom: 40px;
}
.hero h1 { font-size: 4rem; margin-bottom: 20px; color: var(--accent); }

/* Features & Gallery */
.features-grid, .gallery-grid, .stats-grid, .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.feature-card, .stat-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.feature-card i { font-size: 2.5rem; color: var(--accent); margin-bottom: 15px; }
.gallery-grid img { width: 100%; border-radius: 10px; transition: transform 0.3s; }
.gallery-grid img:hover { transform: scale(1.05); }

/* Admin Dashboard */
.dashboard-container { display: flex; gap: 30px; }
.sidebar { background: var(--card-bg); padding: 20px; border-radius: 10px; width: 250px; }
.sidebar li { list-style: none; padding: 15px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.dashboard-content { flex: 1; }

/* ID Card Generator */
.id-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.hidden { display: none; }
.id-card {
    background: #fff; /* Always white to look like real PVC card */
    color: #000;
    width: 350px;
    border: 2px solid var(--primary);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin: 0 auto;
}
.id-brand, .id-brand-bottom { text-align: center; font-weight: bold; color: var(--primary); }
.id-brand { border-bottom: 2px solid var(--accent); padding-bottom: 10px; margin-bottom: 15px; }
.id-brand-bottom { border-top: 2px solid var(--accent); padding-top: 10px; margin-top: 15px; font-size: 1.2rem; }
.id-details p { margin-bottom: 8px; font-size: 0.9rem; }
.signatures { display: flex; justify-content: space-between; margin-top: 25px; }
.sign-box { border-top: 1px dashed #000; font-size: 0.7rem; padding-top: 5px; width: 45%; text-align: center; }
.disclaimer { font-size: 0.7rem; text-align: center; margin-top: 10px; font-style: italic; color: red; }

/* Footer */
footer { background: var(--footer-bg); color: #fff; padding: 50px 5% 20px; margin-top: 50px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; border-bottom: 1px solid #333; padding-bottom: 30px; }
.footer-social a { color: #fff; font-size: 1.5rem; margin-right: 15px; }
.footer-bottom { text-align: center; padding-top: 20px; font-size: 0.9rem; color: #aaa; }

/* Mobile Optimization */
@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--nav-bg); }
    .nav-links.active { display: flex; }
    .hamburger { display: block; }
    .id-wrapper, .dashboard-container, .contact-grid { grid-template-columns: 1fr; }
}