/* ===== VARIABLES ===== */
:root {
  --green: #8DC63F;
  --green-dark: #6aaa2a;
  --blue: #25B5E8;
  --blue-dark: #0d8fc4;
  --navy: #1A237E;
  --navy-dark: #0d1557;
  --white: #ffffff;
  --light-bg: #f7f9fc;
  --text: #2d3748;
  --text-light: #718096;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(26,35,126,0.10);
  --shadow-lg: 0 8px 40px rgba(26,35,126,0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 800; color: var(--navy);
}
.nav-logo img { width: 44px; height: 44px; object-fit: contain; }
.nav-logo strong { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links li a {
  padding: 8px 14px; border-radius: 8px;
  font-weight: 600; font-size: 0.9rem; color: var(--text);
  transition: var(--transition);
}
.nav-links li a:hover { background: var(--light-bg); color: var(--navy); }
.btn-whatsapp {
  background: #25D366; color: white !important;
  padding: 10px 20px !important; border-radius: 50px !important;
  font-weight: 700 !important; display: flex; align-items: center; gap: 6px;
  transition: var(--transition) !important;
}
.btn-whatsapp:hover { background: #1ebe5a !important; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--transition); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white; padding: 14px 28px; border-radius: 50px;
  font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
  transition: var(--transition); box-shadow: 0 4px 16px rgba(141,198,63,0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(141,198,63,0.45); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--navy);
  padding: 14px 28px; border-radius: 50px;
  font-weight: 700; font-size: 1rem;
  border: 2px solid var(--navy); cursor: pointer;
  transition: var(--transition);
}
.btn-secondary:hover { background: var(--navy); color: white; transform: translateY(-3px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--green);
  padding: 10px 22px; border-radius: 50px;
  font-weight: 700; font-size: 0.9rem;
  border: 2px solid var(--green); cursor: pointer;
  transition: var(--transition); margin-top: 12px;
}
.btn-outline:hover { background: var(--green); color: white; }

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 60px; }
.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(141,198,63,0.15), rgba(37,181,232,0.15));
  color: var(--navy); padding: 6px 18px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; margin-bottom: 14px; border: 1px solid rgba(141,198,63,0.3);
}
.section-badge.light {
  background: rgba(255,255,255,0.2); color: white; border-color: rgba(255,255,255,0.3);
}
.section-header h2 { font-size: 2.4rem; font-weight: 900; color: var(--navy); margin-bottom: 16px; line-height: 1.2; }
.section-header p { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; padding-top: 72px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #1a4a7e 100%);
  position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/hero_bg.png') center/cover no-repeat;
  opacity: 0.35;
}
.hero-content {
  flex: 1; display: flex; align-items: center; justify-content: space-between;
  gap: 48px; padding: 80px 80px 40px; position: relative; z-index: 1;
  max-width: 1300px; margin: 0 auto; width: 100%;
}
.hero-text { flex: 1; max-width: 560px; }
.hero-badge {
  display: inline-block; background: rgba(141,198,63,0.2);
  color: var(--green); padding: 6px 16px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 700; margin-bottom: 20px;
  border: 1px solid rgba(141,198,63,0.4);
}
.hero-text h1 {
  font-size: 3.2rem; font-weight: 900; color: white; line-height: 1.15; margin-bottom: 20px;
}
.hero-text h1 .highlight { color: var(--green); }
.hero-text p { font-size: 1.15rem; color: rgba(255,255,255,0.8); margin-bottom: 32px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-langs { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.hero-langs > span { color: rgba(255,255,255,0.6); font-size: 0.85rem; font-weight: 600; padding-top: 4px; white-space: nowrap; }
.lang-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lang-tags span {
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85);
  padding: 3px 10px; border-radius: 20px; font-size: 0.78rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.15);
}

/* Phone Mockup */
.hero-visual { flex-shrink: 0; }
.phone-mockup {
  width: 300px; background: #1a1a2e;
  border-radius: 32px; padding: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.1);
}
.phone-screen { background: #ece5dd; border-radius: 22px; overflow: hidden; }
.chat-header {
  background: #075E54; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
}
.chat-avatar {
  width: 38px; height: 38px; background: var(--green);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem;
}
.chat-info strong { display: block; color: white; font-size: 0.9rem; }
.chat-info span { color: rgba(255,255,255,0.7); font-size: 0.75rem; }
.chat-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow-y: auto; }
.msg {
  padding: 8px 12px; border-radius: 12px; font-size: 0.78rem; line-height: 1.5;
  max-width: 85%; animation: fadeIn 0.3s ease;
}
.msg.bot { background: white; align-self: flex-start; border-bottom-left-radius: 2px; color: var(--text); }
.msg.user { background: #dcf8c6; align-self: flex-end; border-bottom-right-radius: 2px; color: var(--text); }

/* Hero Stats */
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 0; background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 80px; position: relative; z-index: 1;
}
.stat { text-align: center; padding: 0 40px; }
.stat-num { display: block; font-size: 2rem; font-weight: 900; color: var(--green); }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); font-weight: 600; }
.stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.2); }

/* ===== HOW IT WORKS ===== */
.how-it-works { padding: 100px 0; background: var(--white); }
.steps {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 0; flex-wrap: wrap; margin-bottom: 48px;
}
.step {
  flex: 1; min-width: 200px; max-width: 240px;
  text-align: center; padding: 32px 20px; position: relative;
}
.step-icon {
  width: 72px; height: 72px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: white; margin: 0 auto 12px; position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.step-num {
  position: absolute; top: -8px; right: -8px;
  width: 24px; height: 24px; background: var(--navy);
  color: white; border-radius: 50%; font-size: 0.75rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }
.step-arrow {
  display: flex; align-items: center; padding-top: 36px;
  color: var(--green); font-size: 1.2rem;
}
.cta-center { text-align: center; }

/* ===== SERVICES ===== */
.services { padding: 100px 0; background: var(--light-bg); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: white; border-radius: var(--radius); padding: 32px 24px;
  box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--border);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--green); }
.service-icon {
  width: 56px; height: 56px; background: linear-gradient(135deg, rgba(141,198,63,0.15), rgba(37,181,232,0.15));
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--navy); margin-bottom: 16px;
}
.service-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.service-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }
.service-card-more { border: 2px dashed var(--green); background: rgba(141,198,63,0.04); }

/* ===== FOR BUSINESS ===== */
.for-business {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: white;
}
.business-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.business-text .section-badge { margin-bottom: 16px; }
.business-text h2 { font-size: 2.2rem; font-weight: 900; color: white; margin-bottom: 16px; line-height: 1.2; }
.business-text > p { color: rgba(255,255,255,0.8); margin-bottom: 28px; font-size: 1.05rem; line-height: 1.7; }
.business-benefits { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.business-benefits li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: rgba(255,255,255,0.85); }
.business-benefits li i { color: var(--green); margin-top: 3px; flex-shrink: 0; }
.business-benefits li strong { color: white; }
.business-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.business-cta .btn-secondary { border-color: rgba(255,255,255,0.4); color: white; }
.business-cta .btn-secondary:hover { background: rgba(255,255,255,0.15); }

/* Dashboard Preview */
.dashboard-preview {
  background: rgba(255,255,255,0.05); border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15); overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
.dp-header {
  background: rgba(0,0,0,0.3); padding: 12px 16px;
  display: flex; align-items: center; gap: 6px;
}
.dp-dot { width: 10px; height: 10px; border-radius: 50%; }
.dp-dot.red { background: #ff5f57; }
.dp-dot.yellow { background: #febc2e; }
.dp-dot.green { background: #28c840; }
.dp-title { margin-left: 8px; font-size: 0.78rem; color: rgba(255,255,255,0.5); font-weight: 600; }
.dp-body { padding: 20px; }
.dp-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.dp-stat {
  background: rgba(255,255,255,0.07); border-radius: 10px; padding: 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.dp-stat span:last-child { font-size: 0.72rem; color: rgba(255,255,255,0.5); }
.dp-num { font-size: 1.4rem; font-weight: 900; }
.dp-num.green { color: var(--green); }
.dp-num.blue { color: var(--blue); }
.dp-num.navy { color: #7986cb; }
.dp-bar-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.dp-bars { display: flex; flex-direction: column; gap: 8px; }
.dp-bar-row { display: flex; align-items: center; gap: 8px; }
.dp-bar-row > span { font-size: 0.72rem; color: rgba(255,255,255,0.6); width: 70px; flex-shrink: 0; }
.dp-bar {
  background: linear-gradient(90deg, var(--green), var(--blue));
  height: 22px; border-radius: 6px; display: flex; align-items: center; padding: 0 8px;
  transition: width 1s ease;
}
.dp-bar span { font-size: 0.68rem; color: white; font-weight: 700; white-space: nowrap; }

/* ===== WHY US ===== */
.why-us { padding: 100px 0; background: white; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.why-card {
  padding: 32px 24px; border-radius: var(--radius);
  border: 1px solid var(--border); transition: var(--transition);
  background: white;
}
.why-card:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-4px); }
.why-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: white; margin-bottom: 16px;
}
.why-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.why-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; }

/* ===== PARENT COMPANY ===== */
.parent-company {
  padding: 60px 0; background: var(--light-bg);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.parent-inner { display: flex; justify-content: center; }
.parent-text { text-align: center; max-width: 600px; }
.parent-label { font-size: 0.85rem; color: var(--text-light); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.mdiga-logo { width: 160px; margin: 0 auto 20px; }
.parent-text p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; margin-bottom: 8px; }
.parent-text strong { color: var(--navy); }

/* ===== CONTACT ===== */
.contact { padding: 100px 0; background: white; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.contact-card {
  text-align: center; padding: 40px 24px; border-radius: var(--radius);
  border: 1px solid var(--border); transition: var(--transition);
}
.contact-card:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-4px); }
.contact-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: white; margin: 0 auto 16px;
}
.contact-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.contact-card p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 12px; }
.contact-link { color: var(--navy); font-weight: 700; font-size: 1rem; transition: var(--transition); }
.contact-link:hover { color: var(--green); }

/* ===== FOOTER ===== */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.8); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { width: 60px; margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 6px; }
.footer-brand strong { color: white; }
.footer-parent { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-top: 8px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; background: rgba(255,255,255,0.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); font-size: 1rem; transition: var(--transition);
}
.footer-social a:hover { background: var(--green); color: white; }
.footer-links h4, .footer-contact h4 { color: white; font-size: 0.9rem; font-weight: 800; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-links ul li a:hover { color: var(--green); }
.footer-contact p { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.footer-contact p i { color: var(--green); width: 16px; }
.footer-contact a { color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-contact a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-bottom a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-bottom a:hover { color: var(--green); }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 60px; height: 60px; background: #25D366;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: white;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: var(--transition); animation: pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,0.6); animation: none; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,0.8), 0 0 0 8px rgba(37,211,102,0.15); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content { padding: 60px 40px 40px; gap: 32px; }
  .hero-text h1 { font-size: 2.6rem; }
  .business-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: white; padding: 16px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero-content { flex-direction: column; padding: 40px 24px; text-align: center; }
  .hero-text h1 { font-size: 2rem; }
  .hero-buttons { justify-content: center; }
  .hero-langs { justify-content: center; }
  .hero-stats { padding: 20px 24px; flex-wrap: wrap; gap: 16px; }
  .stat-divider { display: none; }
  .phone-mockup { width: 260px; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); padding: 0; }
  .section-header h2 { font-size: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero-text h1 { font-size: 1.7rem; }
  .hero-buttons { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}
