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

:root {
  --bg:        #080d14;
  --surface:   #0e1521;
  --card:      #131d2e;
  --border:    #1e2d42;
  --accent:    #10b981;
  --accent2:   #6366f1;
  --accent-dim:#0a7a56;
  --text:      #f0f4f8;
  --muted:     #7a8fa6;
  --mono:      'JetBrains Mono', monospace;
  --sans:      'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 3px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 64px;
  background: rgba(8, 13, 20, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex; gap: 2rem; list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: #000;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: opacity 0.2s, transform 0.2s;
}

.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 6rem clamp(1.5rem, 6vw, 5rem) 4rem;
  position: relative;
  overflow: hidden;
  gap: 3rem;
}

.hero-right {
  flex: 1 1 0;
  min-width: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

#hero-canvas {
  display: block;
  width: 100%;
  height: 480px;
}

@media (max-width: 1100px) {
  .hero-right { min-width: 300px; }
  #hero-canvas { height: 380px; }
}

@media (max-width: 900px) {
  .hero-right { display: none; }
}

.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(16,185,129,0.12) 0%, transparent 70%);
  top: -100px; left: -200px; z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 1.8rem;
  letter-spacing: 0.05em;
}

.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.hero-name {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}

.hero-name span {
  background: linear-gradient(135deg, #10b981, #34d399, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-family: var(--mono);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--muted);
  margin-bottom: 1.6rem;
  letter-spacing: 0.04em;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #b0c0d4;
  max-width: 640px;
  line-height: 1.75;
  margin-bottom: 2.4rem;
}

.hero-desc strong { color: var(--accent); font-weight: 600; }

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 24px rgba(16,185,129,0.3);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 32px rgba(16,185,129,0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(16,185,129,0.05);
  transform: translateY(-2px);
}

/* ── SECTION COMMON ── */
section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 6vw, 5rem);
}

.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.8rem;
  line-height: 1.15;
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 3.5rem;
}

/* ── STATS ── */
#stats {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem clamp(1.5rem, 6vw, 5rem);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2px;
}

.stat-item {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute; top: 20%; right: 0;
  height: 60%; width: 1px;
  background: var(--border);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #10b981, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── SERVICES ── */
#services { background: var(--bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.service-card {
  background: var(--card);
  padding: 2.2rem;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 0.25s;
}

.service-card:hover { background: #19253a; }
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

.si-wp   { background: rgba(16,185,129,0.1); }
.si-woo  { background: rgba(99,102,241,0.1); }
.si-perf { background: rgba(251,191,36,0.1); }
.si-api  { background: rgba(239,68,68,0.1); }
.si-ai   { background: rgba(168,85,247,0.1); }
.si-dev  { background: rgba(14,165,233,0.1); }

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.service-card p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.65;
}

.service-tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-top: 1.1rem;
}

.tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.18);
  color: var(--accent);
  letter-spacing: 0.03em;
}

/* ── SKILLS ── */
#skills { background: var(--surface); }

.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .skills-layout { grid-template-columns: 1fr; }
}

.skills-group { margin-bottom: 2rem; }

.skills-group-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.skill-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.9rem;
}

.skill-name {
  font-size: 0.87rem;
  color: var(--text);
  font-weight: 500;
  min-width: 160px;
}

.skill-track {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 1rem;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), #34d399);
  transform-origin: left;
  animation: fillBar 1.2s ease-out forwards;
  transform: scaleX(0);
}

@keyframes fillBar {
  to { transform: scaleX(1); }
}

.skill-pct {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  min-width: 32px;
  text-align: right;
}

.tech-chips {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}

.chip {
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}

.chip:hover { border-color: var(--accent); color: var(--accent); }

/* ── EXPERIENCE ── */
#experience { background: var(--bg); }

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--border), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2.4rem; top: 0.4rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 10px rgba(16,185,129,0.5);
}

.timeline-meta {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.timeline-company {
  font-size: 0.75rem;
  font-family: var(--mono);
  color: var(--accent);
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
}

.timeline-period {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
}

.timeline-role {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.timeline-list {
  list-style: none;
  padding: 0;
}

.timeline-list li {
  font-size: 0.88rem;
  color: #9ab0c8;
  padding: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.6;
}

.timeline-list li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

/* ── CONTACT ── */
#contact {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

.contact-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact-line {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 1.1rem;
}

.contact-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-value {
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-value:hover { color: var(--accent); }

.availability {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.2);
  display: flex; align-items: center; gap: 0.8rem;
}

.avail-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

.avail-text {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.avail-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── FORM ── */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.contact-form label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--mono);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}

.contact-form textarea { resize: vertical; min-height: 130px; }

.contact-form select option { background: var(--card); }

.form-submit {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 20px rgba(16,185,129,0.25);
  letter-spacing: 0.02em;
}

.form-submit:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(16,185,129,0.4);
}

/* ── FORM NOTICES ── */
.fl-notice {
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
}

.fl-notice-success {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--accent);
}

.fl-notice-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
}

/* ── FOOTER ── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1.5rem, 6vw, 5rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--mono);
}

.footer-links { display: flex; gap: 1.5rem; }

.footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

/* ── MOBILE NAV ── */
.nav-toggle {
  display: none;
  background: none; border: none;
  color: var(--text); cursor: pointer;
  font-size: 1.3rem;
}

@media (max-width: 680px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
}
