:root {
  --primary: #2980b9;
  --secondary: #2c3e50;
  --accent: #27ae60;
  --bg-body: #f4f7fa;
  --bg-card: #ffffff;
  --text-main: #34495e;
  --shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* Dark Mode Variables */
body.dark-mode {
  --primary: #3498db;
  --secondary: #ecf0f1;
  --accent: #2ecc71;
  --bg-body: #1a1c20;
  --bg-card: #2c2f36;
  --text-main: #ecf0f1;
}

* { box-sizing: border-box; transition: all 0.3s ease; font-family: 'Roboto', sans-serif; scroll-behavior: smooth; }
body { background: var(--bg-body); color: var(--text-main); margin: 0; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
header { background: rgba(44, 62, 80, 0.95); backdrop-filter: blur(10px); padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.header-content { display: flex; justify-content: space-between; align-items: center; }
header h1 { margin: 0; font-size: 1.8rem; color: #fff; }
header nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
header nav a { color: rgba(255,255,255,0.8); text-decoration: none; font-weight: 600; }
header nav a:hover { color: #fff; }
.theme-toggle { background: none; border: 1px solid rgba(255,255,255,0.3); color: #fff; padding: 5px 10px; border-radius: 20px; cursor: pointer; }

/* HERO */
#hero { background: linear-gradient(135deg, #2980b9 0%, #6dd5fa 100%); color: #fff; padding: 100px 0 80px; text-align: center; border-radius: 0 0 50px 50px; margin-bottom: 50px; }
#hero h2 { font-size: 2.5rem; margin-bottom: 15px; }
.search-container input { width: 100%; max-width: 500px; padding: 15px 25px; border-radius: 30px; border: none; font-size: 1rem; box-shadow: 0 5px 15px rgba(0,0,0,0.2); outline: none; }

/* SERVICE CARD */
.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-bottom: 50px; }
.service-item { background: var(--bg-card); padding: 25px; border-radius: 12px; box-shadow: var(--shadow); border-top: 5px solid var(--primary); display: flex; flex-direction: column; position: relative; }
.service-item:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
.service-item.recommend { border-color: #f1c40f; }
.service-item.recommend::before { content: "BEST SELLER"; position: absolute; top: 15px; right: -30px; background: #f1c40f; color: #000; padding: 5px 40px; transform: rotate(45deg); font-size: 0.8rem; font-weight: bold; }
.service-item h3 { color: var(--primary); text-align: center; font-size: 1.3rem; margin-top: 0; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.service-item p { text-align: center; font-size: 0.95rem; flex-grow: 1; }

/* BUTTONS */
.order-btn { background: var(--primary); color: #fff; border: none; padding: 10px; border-radius: 6px; font-weight: bold; cursor: pointer; width: 100%; margin-top: 10px; }
.order-btn:hover { filter: brightness(1.1); }
.detail-btn { background: transparent; border: 1px solid var(--primary); color: var(--primary); padding: 10px; border-radius: 6px; font-weight: bold; cursor: pointer; width: 100%; margin-top: 5px; }
.detail-btn:hover { background: var(--primary); color: white; }

/* TABLE */
table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
th { background: var(--primary); color: white; padding: 15px; text-align: left; }
td { padding: 15px; border-bottom: 1px solid #eee; color: var(--text-main); }

/* FLOATING WA */
.float-wa { position: fixed; bottom: 20px; right: 20px; background: #25d366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 35px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 10000; transition: transform 0.3s; }
.float-wa:hover { transform: scale(1.1); }

/* MODAL POPUP */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 20000; justify-content: center; align-items: center; animation: fadeIn 0.3s; }
.modal-box { background: var(--bg-card); padding: 30px; border-radius: 15px; width: 90%; max-width: 500px; position: relative; color: var(--text-main); }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 2rem; cursor: pointer; color: #999; }
.close-modal:hover { color: red; }
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }

footer { background: #2c3e50; color: #ecf0f1; text-align: center; padding: 40px 0; margin-top: 60px; }

@media (max-width: 768px) {
  header .container { flex-direction: column; gap: 10px; }
  header nav ul { flex-wrap: wrap; justify-content: center; }
  #hero h2 { font-size: 1.8rem; }
}