/* VARIABLES */
:root {
  --primary: #0d6a38;
  --primary-dark: #0a5d2c;
  --secondary: #1a8c4e;
  --light: #f9fbf8;
  --dark-text: #0f172a;
  --border: #e2e8f0;
  --card-bg: white;
  --shadow: 0 4px 12px rgba(13, 106, 56, 0.1);
}

[data-theme="dark"] {
  --light: #0f172a;
  --card-bg: #1e293b;
  --border: #334155;
  --dark-text: #f1f5f9;
  --shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--light);
  color: var(--dark-text);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

.container { width: 90%; max-width: 1100px; margin: 0 auto; }

/* HEADER */
header {
  background-color: var(--primary);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.6rem; font-weight: 700; }
nav a { color: white; text-decoration: none; margin-left: 1.5rem; font-weight: 500; }
nav a:hover { text-decoration: underline; }
#theme-toggle {
  background: none; border: none; color: white; font-size: 1.2rem; cursor: pointer;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 4rem 0;
  text-align: center;
}
.hero-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255,255,255,0.2);
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.8rem;
  margin-bottom: 1rem;
}
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 1.5rem; }
.btn {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.3s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0,0,0,0.2); }
.btn.download { background: #4ade80; color: #0f172a; }
.btn.whatsapp { background: #25D366; color: white; }

/* SECTIONS */
.section {
  padding: 3rem 0;
  background-color: var(--card-bg);
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.section h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 2rem;
}

/* SERVICES & DOWNLOADS GRID */
.services-grid, .downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.service-card, .download-card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.service-card:hover { transform: translateY(-5px); }
.service-card h3, .download-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* CONTACT GRID */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-item span { font-size: 2rem; margin-bottom: 0.5rem; }
.contact-item a { color: var(--primary); text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }

/* FOOTER */
footer {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 3rem;
}

/* AI CHAT PANEL */
#ai-chat-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(13, 106, 56, 0.4);
  z-index: 1000;
  font-weight: bold;
}

#ai-chat-panel {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 350px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  z-index: 999;
  overflow: hidden;
}
#ai-chat-panel.active { display: flex; }

.chat-header {
  background: var(--primary);
  color: white;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}
.chat-header button {
  background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer;
}

#chat-messages {
  flex: 1;
  padding: 1rem;
  height: 300px;
  overflow-y: auto;
  background: #f8fafc;
}
.msg {
  padding: 0.8rem;
  margin-bottom: 0.8rem;
  border-radius: 8px;
  max-width: 85%;
  word-wrap: break-word;
}
.msg.ai { background: #e3f2fd; }
.msg.user { background: #e8f5e9; margin-left: auto; text-align: right; }

#user-input {
  width: 100%;
  padding: 12px;
  border: none;
  outline: none;
  font-size: 1rem;
  border-top: 1px solid var(--border);
}
#ai-chat-panel button {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-img { width: 180px; height: 180px; }
  nav { display: none; }
  }
