/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f5f7fa; color: #333; line-height: 1.6; }
a { text-decoration: none; color: inherit; }

/* ===== Navbar ===== */
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  background: #1a1a2e; padding: 1rem 2rem; position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.nav-brand { color: #fff; font-size: 1.4rem; font-weight: 700; letter-spacing: 1px; }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { color: #ccc; transition: color 0.2s; font-weight: 500; }
.nav-links a:hover { color: #e94560; }
.hamburger { display: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 0.7rem 1.6rem; border-radius: 6px;
  font-weight: 600; cursor: pointer; transition: all 0.2s; border: 2px solid transparent; font-size: 0.95rem;
}
.btn-primary { background: #e94560; color: #fff; }
.btn-primary:hover { background: #c73652; transform: translateY(-1px); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: #1a1a2e; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.85rem; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff; text-align: center; padding: 5rem 2rem;
}
.hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.highlight { color: #e94560; }
.hero p { font-size: 1.2rem; color: #aac; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== Section Common ===== */
section { padding: 4rem 2rem; max-width: 1100px; margin: 0 auto; }
section h2 { text-align: center; font-size: 2rem; margin-bottom: 2.5rem; color: #1a1a2e; }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.card {
  background: #fff; border-radius: 12px; padding: 2rem; text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.5rem; color: #1a1a2e; }

/* ===== API Demo ===== */
.api-demo { background: #fff; border-radius: 12px; padding: 2rem; box-shadow: 0 4px 15px rgba(0,0,0,0.08); text-align: center; }
.api-demo p { margin-bottom: 1rem; color: #555; }
.api-buttons { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.5rem; }
.api-output {
  background: #1a1a2e; color: #a8ff78; padding: 1.2rem; border-radius: 8px;
  text-align: left; font-size: 0.85rem; white-space: pre-wrap; min-height: 80px; max-height: 250px; overflow-y: auto;
}

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  color: #fff; text-align: center; padding: 4rem 2rem; max-width: 100%;
}
.page-header h1 { font-size: 2.5rem; }
.page-header p { color: #aac; margin-top: 0.5rem; }

/* ===== About ===== */
.about-content { max-width: 800px; margin: 0 auto 2rem; }
.about-text h2 { text-align: left; font-size: 1.5rem; margin: 1.5rem 0 0.5rem; }
.stack-list { list-style: none; padding: 0; }
.stack-list li { padding: 0.4rem 0; font-size: 1rem; }

/* ===== Team ===== */
.team-card .avatar {
  width: 64px; height: 64px; border-radius: 50%; background: #e94560; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  font-size: 1.1rem; margin: 0 auto 1rem;
}
.role { color: #888; font-size: 0.9rem; }

/* ===== Services ===== */
.price { font-size: 1.5rem; font-weight: 700; color: #e94560; margin: 1rem 0; }

/* ===== Contact ===== */
.contact-section { max-width: 1000px; margin: 0 auto; padding: 3rem 2rem; }
.alert { padding: 1rem; border-radius: 8px; margin-bottom: 1.5rem; font-weight: 500; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-form { background: #fff; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 600; color: #444; }
.form-group input, .form-group textarea {
  width: 100%; padding: 0.75rem; border: 1.5px solid #ddd; border-radius: 6px;
  font-size: 0.95rem; transition: border-color 0.2s; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #e94560; }
.contact-info { padding: 2rem; }
.contact-info h3 { margin-bottom: 0.8rem; color: #1a1a2e; }
.contact-info p { margin-bottom: 0.5rem; color: #555; }
.contact-info hr { margin: 1.5rem 0; border: none; border-top: 1px solid #eee; }
.contact-info code { background: #f0f0f0; padding: 2px 6px; border-radius: 4px; font-size: 0.85rem; }

/* ===== 404 ===== */
.error-page { text-align: center; padding: 6rem 2rem; max-width: 100%; }
.error-code { font-size: 8rem; color: #e94560; line-height: 1; }
.error-content h2 { font-size: 2rem; margin: 1rem 0 0.5rem; }
.error-content p { color: #888; margin-bottom: 2rem; }

/* ===== Footer ===== */
.footer { background: #1a1a2e; color: #aac; text-align: center; padding: 2rem; margin-top: 3rem; }
.footer-links { margin-top: 0.5rem; }
.footer-links a { color: #e94560; margin: 0 0.5rem; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: #1a1a2e; padding: 1rem 2rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .hero h1 { font-size: 2rem; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .error-code { font-size: 5rem; }
}
