/* ============================================================
   Perisian Huda Sdn Bhd — Company Website
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #059669;
  --green-dark: #047857;
  --green-light: #d1fae5;
  --text: #111827;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-dark: #0f172a;
  --border: #e5e7eb;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.logo-svg {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: #059669;
  border-radius: 8px;
  padding: 4px;
}
.logo-text {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.btn-nav {
  background: var(--green) !important;
  color: white !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}
.btn-nav:hover { background: var(--green-dark) !important; }

/* ---- LANGUAGE TOGGLE ---- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  margin-left: 16px;
  font-size: 13px;
  font-weight: 600;
  user-select: none;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.lang-switcher:hover { border-color: var(--green); }
.lang-option { color: var(--text-muted); transition: color 0.2s; }
.lang-option.active { color: var(--text); font-weight: 700; }
.lang-divider { color: var(--border); }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 64px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, #ecfdf5 0%, #f0fdf4 40%, #ffffff 100%);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}
.hero-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 40px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-outline {
  display: inline-block;
  border: 2px solid var(--border);
  color: var(--text);
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.2s;
}
.btn-outline:hover { border-color: var(--text); }

/* ---- SECTIONS ---- */
.section { padding: 100px 0; }
.section-dark {
  background: var(--bg-dark);
  color: white;
}
.section-dark .section-label { color: var(--green); }
.section-dark h2 { color: white; }
.section-dark p { color: #9ca3af; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--green);
  margin-bottom: 16px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 56px;
  line-height: 1.15;
}

/* ---- ABOUT ---- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}
.about-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow 0.2s;
}
.about-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.07); }
.about-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.about-card p { font-size: 14px; color: var(--text-muted); }
.about-body p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 16px;
}

/* ---- PORTFOLIO ---- */
.portfolio-grid { display: grid; gap: 24px; }
.portfolio-card {
  border: 1px solid #1e293b;
  border-radius: var(--radius);
  padding: 48px;
  position: relative;
  background: #1e293b;
}
.portfolio-card.featured { border-color: var(--green); }
.port-badge {
  display: inline-block;
  background: var(--green);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}
.port-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.portfolio-card h3 {
  font-size: 32px;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
}
.port-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--green) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px !important;
}
.portfolio-card > p {
  font-size: 15px;
  max-width: 680px;
  margin-bottom: 28px !important;
  line-height: 1.7;
}
.port-screenshot {
  width: 100%;
  max-width: 680px;
  border-radius: 10px;
  margin: 24px 0;
  border: 1px solid #334155;
  display: block;
}

.port-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.port-features li {
  font-size: 14px;
  color: #d1d5db;
  padding-left: 20px;
  position: relative;
}
.port-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ---- CONTACT ---- */
.contact-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.contact-info {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-map {
  flex: 0 0 55%;
}
.contact-company {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}
.contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--green);
  margin-top: 2px;
}
.contact-detail-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-detail-value {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}
.contact-detail-value a {
  color: var(--green);
  text-decoration: none;
}
.contact-detail-value a:hover { text-decoration: underline; }

/* WhatsApp button */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: white !important;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.1s;
  align-self: flex-start;
}
.btn-whatsapp:hover {
  background: #1ebe5b;
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* ---- FOOTER ---- */
footer {
  background: var(--bg-dark);
  color: #6b7280;
  padding: 40px 0;
  text-align: center;
}
footer p { font-size: 14px; margin-bottom: 4px; }
.footer-reg { font-size: 12px; color: #4b5563; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { gap: 16px; }
  .portfolio-card { padding: 32px 24px; }
  .hero h1 { letter-spacing: -0.5px; }
  .contact-layout {
    flex-direction: column;
    gap: 32px;
  }
  .contact-info,
  .contact-map { flex: none; width: 100%; }
}
@media (max-width: 480px) {
  .nav-links { gap: 10px; }
  .lang-switcher { margin-left: 8px; }
}
