:root {
  --font-family: 'Plus Jakarta Sans', sans-serif;
  --bg-dark: #f8fafc;
  --bg-section: #ffffff;
  --bg-card: #f1f5f9;
  --text-main: #0f172a;
  --text-sub: #64748b;
  --primary-color: #7c3aed;
  --primary-hover: #6d28d9;
  --accent-color: #0284c7;
  --border-color: #e2e8f0;
  --placeholder-bg: rgba(124, 58, 237, 0.05);
  --placeholder-border: rgba(124, 58, 237, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-family); background-color: var(--bg-dark); color: var(--text-main); line-height: 1.6; scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }

/* Wireframe Visual Placeholder */
.wireframe-image-placeholder {
  width: 100%; height: 100%; min-height: 160px;
  background: var(--placeholder-bg); border: 2px dashed var(--placeholder-border);
  border-radius: var(--radius-md); display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: var(--primary-color);
  gap: 0.5rem; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.05em; padding: 1rem;
}
.wireframe-image-placeholder i { font-size: 2.2rem; opacity: 0.9; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.6rem; border-radius: var(--radius-sm); font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.05em; cursor: pointer; border: none;
  transition: all 0.25s ease;
}
.btn-primary { background: var(--primary-color); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3); }
.btn-block { width: 100%; }

.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(124, 58, 237, 0.1); color: var(--primary-color);
  border: 1px solid rgba(124, 58, 237, 0.25); padding: 0.3rem 0.8rem;
  border-radius: 20px; font-size: 0.75rem; font-weight: 800; margin-bottom: 1.25rem;
}

/* Section Title & Underlines */
.section-title { font-size: 1.8rem; font-weight: 800; letter-spacing: 0.05em; margin-bottom: 0.5rem; color: var(--text-main); }
.underline-line { width: 60px; height: 3px; background: var(--primary-color); margin-bottom: 0.35rem; border-radius: 2px; }
.underline-line.short { width: 35px; margin-bottom: 1.5rem; }

/* Sticky Header */
.header { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; padding: 1.1rem 0; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.header-container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.15rem; letter-spacing: 0.08em; color: var(--text-main); }
.logo-icon { width: 34px; height: 34px; background: var(--primary-color); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: #fff; }
.nav { display: flex; gap: 2rem; }
.nav-link { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; color: var(--text-sub); transition: color 0.2s ease; }
.nav-link:hover, .nav-link.active { color: var(--primary-color); }

/* Section 1: Hero */
.hero-section { padding: 5rem 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-title { font-size: 2.8rem; font-weight: 800; line-height: 1.2; margin-bottom: 1.25rem; color: var(--text-main); }
.hero-desc { color: var(--text-sub); font-size: 1.05rem; margin-bottom: 2rem; }
.hero-placeholder { min-height: 300px; box-shadow: var(--shadow); }

/* Section 2: About */
.about-section { padding: 5rem 0; background: var(--bg-section); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.about-lead { font-size: 1.15rem; color: var(--text-sub); margin-bottom: 2.5rem; max-width: 800px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.stat-card { background: #f8fafc; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.75rem; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.stat-number { display: block; font-size: 2.5rem; font-weight: 800; color: var(--primary-color); }
.stat-label { font-size: 0.9rem; color: var(--text-sub); font-weight: 600; }

/* Section 3: Services */
.services-section { padding: 5rem 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.service-card { background: var(--bg-section); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.5rem; transition: transform 0.25s ease, border-color 0.25s ease; box-shadow: var(--shadow); }
.service-card:hover { transform: translateY(-5px); border-color: var(--primary-color); }
.service-image-box { height: 140px; margin-bottom: 1.25rem; }
.service-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-main); }
.service-desc { color: var(--text-sub); font-size: 0.875rem; }

/* Section 4: Portfolio */
.portfolio-section { padding: 5rem 0; background: var(--bg-section); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2rem; }
.portfolio-placeholder { min-height: 180px; box-shadow: var(--shadow); }

/* Section 5: Contact */
.contact-section { padding: 5rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.contact-desc { color: var(--text-sub); font-size: 1rem; margin-bottom: 1.5rem; }
.contact-details { display: flex; flex-direction: column; gap: 0.75rem; }
.detail-item { display: flex; align-items: center; gap: 0.75rem; color: var(--text-main); font-size: 0.95rem; }
.detail-item i { color: var(--primary-color); }
.contact-form-box { background: var(--bg-section); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 2rem; box-shadow: var(--shadow); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-input { width: 100%; padding: 0.85rem 1rem; background: #f8fafc; border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-main); font-family: inherit; font-size: 0.9rem; }
.form-input:focus { outline: none; border-color: var(--primary-color); }
.form-feedback { margin-top: 1rem; color: #16a34a; font-size: 0.85rem; font-weight: 700; }
.form-feedback.hidden { display: none; }

/* Footer */
.footer { background: #ffffff; border-top: 1px solid var(--border-color); padding: 2rem 0; color: var(--text-sub); font-size: 0.85rem; }

@media (max-width: 900px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.2rem; }
  .nav { display: none; }
}

/* Global Mobile Viewport Overflow Protection */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
img, svg, video, iframe, canvas {
  max-width: 100%;
  height: auto;
}
