:root {
  --font-family: 'Plus Jakarta Sans', sans-serif;
  --font-code: 'Fira Code', monospace;
  --bg-dark: #0a0c10;
  --bg-card: #12161f;
  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --primary-color: #22c55e;
  --accent-color: #a855f7;
  --border-color: rgba(34, 197, 94, 0.2);
  --placeholder-bg: rgba(34, 197, 94, 0.08);
  --placeholder-border: rgba(34, 197, 94, 0.35);
  --radius-sm: 8px;
  --radius-md: 14px;
}

* { 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; }
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: 180px;
  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; padding: 1rem;
}
.wireframe-image-placeholder i { font-size: 2.5rem; opacity: 0.9; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.4rem; border-radius: var(--radius-sm); font-weight: 800;
  font-size: 0.85rem; cursor: pointer; border: none; transition: all 0.25s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--primary-color), #16a34a); color: #000; }
.btn-primary:hover { transform: translateY(-2px); color: #fff; }
.btn-outline { border: 1px solid var(--border-color); color: var(--text-main); background: rgba(255, 255, 255, 0.04); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn-lg { padding: 0.9rem 1.8rem; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* Header */
.header { background: rgba(18, 22, 31, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; padding: 1.1rem 0; }
.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; font-family: var(--font-code); color: var(--primary-color); }
.logo-icon { width: 36px; height: 36px; background: var(--primary-color); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: #000; }
.nav { display: flex; gap: 2rem; }
.nav-link { font-size: 0.85rem; font-weight: 700; color: var(--text-sub); }
.nav-link:hover { color: var(--primary-color); }

/* Hero */
.hero-section { padding: 5rem 0; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.code-tag { font-family: var(--font-code); color: var(--primary-color); background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); padding: 0.35rem 0.9rem; border-radius: 6px; font-size: 0.85rem; display: inline-block; margin-bottom: 1.25rem; }
.headline { font-size: 2.8rem; font-weight: 800; line-height: 1.2; margin-bottom: 1.25rem; }
.subtitle { color: var(--text-sub); font-size: 1.05rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; }
.hero-placeholder { min-height: 300px; }

/* Skills */
.skills-section { padding: 4.5rem 0; background: var(--bg-card); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.section-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.5rem; }
.section-subtitle { color: var(--text-sub); font-size: 1rem; margin-bottom: 3rem; }
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.skill-card { background: var(--bg-dark); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.75rem 1.25rem; transition: transform 0.25s ease; }
.skill-card:hover { transform: translateY(-5px); border-color: var(--primary-color); }
.skill-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.skill-icon.react { color: #61dafb; }
.skill-icon.node { color: #68a063; }
.skill-icon.db { color: #38bdf8; }
.skill-icon.aws { color: #f97316; }
.skill-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.skill-card p { color: var(--text-sub); font-size: 0.85rem; }

/* Projects */
.projects-section { padding: 4.5rem 0; }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 3rem; }
.project-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; }
.project-thumb { min-height: 180px; border-radius: 0; }
.project-info { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.project-tag { font-size: 0.7rem; font-weight: 800; color: var(--primary-color); margin-bottom: 0.25rem; letter-spacing: 0.05em; }
.project-info h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.project-info p { color: var(--text-sub); font-size: 0.9rem; margin-bottom: 1.25rem; flex-grow: 1; }
.project-tech-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.project-tech-pills span { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color); font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 4px; color: var(--primary-color); font-family: var(--font-code); }

/* Booking / Contact */
.booking-section { padding: 4.5rem 0; background: var(--bg-card); border-top: 1px solid var(--border-color); }
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.booking-desc { color: var(--text-sub); margin-bottom: 2rem; }
.booking-form-box { background: var(--bg-dark); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 2rem; }
.dev-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.35rem; }
.form-input { width: 100%; padding: 0.85rem 1rem; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-main); font-family: inherit; font-size: 0.9rem; }
.form-feedback { margin-top: 1rem; color: #4ade80; font-size: 0.85rem; font-weight: 700; }
.form-feedback.hidden { display: none; }

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

@media (max-width: 900px) {
  .hero-grid, .skills-grid, .projects-grid, .booking-grid { grid-template-columns: 1fr; }
  .headline { 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;
}
