/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    transition: background-color 0.3s, color 0.3s;
}

body.dark {
    background-color: #121212;
    color: #e0e0e0;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background-color 0.3s;
}

body.dark .navbar {
    background-color: #1e1e1e;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.site-name {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s, transform 0.3s;
}

body.dark .nav-menu a {
    color: #e0e0e0;
}

.nav-menu a:hover {
    color: #007bff;
    transform: translateY(-2px);
}

.nav-menu a.active {
    color: #007bff;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.3s;
}

.btn.primary {
    background-color: #007bff;
    color: white;
}

.btn.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn.primary:hover {
    background-color: #0056b3;
}

/* Prompts Section */
.prompts-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.prompts-section h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

#search-bar {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 1rem;
}

.category-buttons {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: none;
    background-color: #e9ecef;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter-btn.active {
    background-color: #007bff;
    color: white;
}

.prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.prompt-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

body.dark .prompt-card {
    background-color: #2a2a2a;
}

.prompt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.prompt-card p {
    margin-bottom: 1rem;
}

.copy-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.copy-btn:hover {
    background-color: #218838;
}

/* About Section */
.about-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    text-align: center;
}

/* Contact Section */
.contact-section {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
}

.social-links {
    margin-bottom: 1rem;
}

.social-icon {
    margin: 0 0.5rem;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.2);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-menu {
        margin-top: 1rem;
    }

    .nav-menu li {
        margin-left: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .filters {
        flex-direction: column;
    }

    #search-bar {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}
/* ===== NAVBAR TEXT VISIBILITY FIX (FINAL) ===== */

.navbar {
  background-color: #ffffff;
}

.site-name {
  font-size: 1.6rem;
  font-weight: 600;
  color: #0f172a;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 24px;
}

.nav-menu a {
  color: #0f172a;              /* Force visible text */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Active link */
.nav-menu a.active {
  color: #2563eb;
}

/* Hover effect */
.nav-menu a:hover {
  color: #38bdf8;
}

/* ===== DARK MODE FIX ===== */

body.dark .navbar {
  background-color: #020617;
}

body.dark .site-name {
  color: #ffffff;
}

body.dark .nav-menu a {
  color: #ffffff;              /* Force white text */
}

body.dark .nav-menu a.active {
  color: #38bdf8;
}
.prompts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px; /* prompt ke beech spacing */
  margin-top: 20px;
}
.prompt-card {
  background: #fff; /* light mode background */
  color: #333;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.prompt-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.prompt-card p {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.copy-btn {
  padding: 6px 12px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.copy-btn:hover {
  background: #45a049;
}
@media (max-width: 600px) {
  .prompts-grid {
    grid-template-columns: 1fr; /* small screens me single column */
  }
}