:root {
  --ink: #17212b;
  --muted: #66717d;
  --blue: #2864dc;
  --blue-dark: #1d4da9;
  --pale: #edf4ff;
  --line: #dfe6ef;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fbfcfe;
  font-family: "DM Sans", sans-serif;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

.nav-wrap {
  height: 82px;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid #edf0f4;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 10px; color: white; background: var(--blue);
  font-family: "Manrope", sans-serif; box-shadow: 0 8px 18px rgba(40,100,220,.18);
}
.nav-links { display: flex; gap: 34px; margin-left: auto; margin-right: 42px; }
.nav-links a { color: #66717d; font-size: 15px; font-weight: 600; position: relative; }
.nav-links a.active, .nav-links a:hover { color: var(--blue); }
.nav-links a.active::after {
  content: ""; position: absolute; width: 18px; height: 2px;
  border-radius: 2px; background: var(--blue); left: 50%; bottom: -12px; transform: translateX(-50%);
}
.nav-contact { padding: 12px 18px; border: 1px solid #cad5e4; border-radius: 9px; font-size: 14px; font-weight: 700; }
.nav-contact:hover { border-color: var(--blue); color: var(--blue); }
.menu-toggle { display: none; border: 0; background: none; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px; }

.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 38px;
  padding-top: 36px;
  padding-bottom: 58px;
}
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--blue); font-weight: 700; font-size: 14px; }
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: #3ab77a; box-shadow: 0 0 0 5px #e8f7ef; }
.hero h1 {
  margin: 20px 0 8px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(48px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -4px;
}
.hero h1 strong { color: var(--blue); display: block; }
.hero-subtitle { font-size: clamp(18px, 2vw, 22px); margin: 20px 0 14px; font-weight: 600; }
.hero-subtitle span { color: var(--blue); }
.hero-subtitle b { color: #adb7c3; margin: 0 4px; }
.hero-description { max-width: 555px; color: var(--muted); line-height: 1.75; font-size: 16px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 50px; padding: 0 22px; border-radius: 9px; font-weight: 700; font-size: 14px; transition: .2s ease; }
.btn-primary { background: var(--blue); color: white; box-shadow: 0 10px 22px rgba(40,100,220,.18); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-secondary { border: 1px solid #d3dce8; background: white; }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.hero-stats { display: flex; margin-top: 38px; }
.hero-stats div { min-width: 120px; padding-right: 24px; margin-right: 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.hero-stats div:last-child { border: 0; }
.hero-stats strong { font-family: "Manrope", sans-serif; font-size: 21px; }
.hero-stats span { color: #8a95a2; font-size: 12px; margin-top: 3px; }

.hero-visual { height: 500px; position: relative; display: grid; place-items: center; }
.portrait {
  width: 390px; height: 445px; border-radius: 180px 180px 28px 28px;
  background: linear-gradient(145deg, #edf4ff, #dbe8fb);
  position: relative; overflow: hidden;
  box-shadow: 0 24px 60px rgba(51,83,130,.12);
  border: 1px solid #dde8f7;
}
.portrait-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(40,100,220,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(40,100,220,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.avatar {
  position: absolute; width: 250px; height: 250px; border-radius: 50%;
  background: linear-gradient(145deg, #3c78e5, #1d4da9);
  left: 50%; bottom: 55px; transform: translateX(-50%);
  box-shadow: inset 0 0 0 12px rgba(255,255,255,.12), 0 25px 40px rgba(40,100,220,.22);
  display: grid; place-items: center;
}
.avatar::before { content: ""; position: absolute; width: 105px; height: 105px; border-radius: 50%; background: #f3c7a5; top: 32px; }
.avatar::after { content: ""; position: absolute; width: 148px; height: 105px; border-radius: 65px 65px 18px 18px; background: #eef3fb; bottom: -8px; }
.avatar span { position: relative; z-index: 2; color: white; font-family: "Manrope", sans-serif; font-weight: 800; font-size: 24px; transform: translateY(52px); }
.code-card {
  position: absolute; z-index: 3; background: #202936; color: white;
  border-radius: 10px; box-shadow: 0 16px 36px rgba(23,33,43,.18);
}
.code-card-top { width: 190px; height: 112px; top: 44px; right: -5px; padding: 12px 14px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; }
.dot.red { background:#f16d6d}.dot.yellow{background:#ecc46b}.dot.green{background:#63c98d}
.code-card pre { margin: 12px 0 0; font-size: 10px; line-height: 1.55; }
.code-blue { color:#82aaff}.code-green{color:#82d8ae}
.status-card {
  position: absolute; z-index: 4; left: -14px; bottom: 78px;
  display: flex; align-items: center; gap: 11px; background: white;
  border: 1px solid #edf0f4; border-radius: 12px; padding: 12px 16px;
  box-shadow: 0 15px 35px rgba(42,63,91,.13);
}
.status-icon { width: 38px; height: 38px; border-radius: 50%; background: #e8f7ef; color:#32a56c; display:grid; place-items:center; font-weight:800; }
.status-card div { display:flex; flex-direction:column }.status-card strong{font-size:13px}.status-card small{color:#929dab;margin-top:2px}

.section { padding-top: 90px; padding-bottom: 90px; }
.section-heading { margin-bottom: 38px; }
.section-kicker { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 10px; }
.section-heading h2, .cta h2 { font-family:"Manrope",sans-serif; font-size:clamp(32px,4vw,44px); letter-spacing:-2px; margin:0; }
.about-grid { display:grid; grid-template-columns:.8fr 1.4fr; gap:80px; align-items:start; }
.about-grid > p { color:var(--muted); line-height:1.8; font-size:17px; margin:0; }
.about-grid > p strong { color:var(--ink); }
.about-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.about-cards article { border:1px solid var(--line); border-radius:12px; padding:20px; background:white; }
.about-cards article span { color:var(--blue); font-size:12px; font-weight:800 }
.about-cards h3 { font-size:16px; margin:28px 0 8px }.about-cards p{color:var(--muted);font-size:13px;line-height:1.6;margin:0}

.skills-section { background:#f4f7fb; }
.skill-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.skill-card { background:white; border:1px solid #e6ebf2; border-radius:12px; padding:24px; position:relative; transition:.2s }
.skill-card:hover { transform:translateY(-5px); box-shadow:0 18px 40px rgba(45,74,112,.08); }
.skill-number { position:absolute; right:18px; top:18px; color:#bac4cf; font-size:11px; font-weight:800 }
.skill-icon { width:48px;height:48px;border-radius:10px;display:grid;place-items:center;font-weight:800;margin-bottom:38px }
.skill-icon.html { background:#fff0e8;color:#ef6a2e }.skill-icon.js{background:#fff8cf;color:#8c7412}.skill-icon.php{background:#eceeff;color:#4d58a8}.skill-icon.db{background:#e8f4ff;color:#3180bb}
.skill-card h3 { margin:0 0 8px;font-size:16px }.skill-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.6}

.project-heading { display:flex; justify-content:space-between; align-items:end }
.project-heading > p { max-width:410px;color:var(--muted);line-height:1.7 }
.project-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px }
.project-card { border:1px solid var(--line); border-radius:14px; overflow:hidden; background:white }
.project-preview { height:260px; position:relative; overflow:hidden }
.preview-one { background:linear-gradient(135deg,#e8f1ff,#ccdffc); padding:28px }
.browser-dots { height:18px;width:100%;border-radius:6px 6px 0 0;background:white;padding:6px }.browser-dots i{display:inline-block;width:5px;height:5px;border-radius:50%;background:#bec8d5;margin-right:3px}
.preview-ui { height:190px;background:#fff;border-radius:0 0 8px 8px;padding:25px }.preview-ui>span{display:block;width:100px;height:10px;border-radius:5px;background:#2c67c9;margin-bottom:18px}.preview-ui>div{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.preview-ui b{height:90px;border-radius:8px;background:linear-gradient(145deg,#edf3fb,#d9e5f5)}
.preview-two { background:linear-gradient(135deg,#263344,#17212b); display:flex;align-items:center;justify-content:center;gap:16px }
.phone { width:122px;height:220px;border:6px solid #ebf0f5;border-radius:18px;background:#f7f9fc;padding:18px 10px;transform:rotate(-5deg)}.phone-small{height:190px;width:105px;transform:rotate(7deg) translateY(12px);margin-left:-8px}.phone span{display:block;width:42px;height:42px;border-radius:50%;background:#3c78e5;margin:0 auto 20px}.phone b{display:block;height:8px;border-radius:4px;background:#d8e1ec;margin:12px 8px}.phone b:last-child{height:38px;background:#dfe9f7}
.project-info { height:90px;display:flex;align-items:center;justify-content:space-between;padding:18px 22px }.project-info p{color:var(--blue);font-size:11px;font-weight:800;text-transform:uppercase;margin:0 0 5px}.project-info h3{margin:0;font-size:17px}.project-info>span{width:38px;height:38px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center}

.cta { min-height:180px; margin-bottom:90px; border-radius:16px;background:linear-gradient(120deg,#2864dc,#1d4da9);color:white;padding:42px 48px;display:flex;align-items:center;justify-content:space-between }
.cta .section-kicker { color:#bcd2ff }.cta h2{font-size:38px}.btn-light{background:white;color:var(--blue)}
footer { border-top:1px solid var(--line); background:white }.footer-inner{height:110px;display:flex;align-items:center;justify-content:space-between}.footer-inner p{color:#8b96a3;font-size:13px}

@media (max-width: 900px) {
  .nav-links { display:none; position:absolute; top:82px; left:0; right:0; background:white; padding:22px 24px; margin:0; border-bottom:1px solid var(--line); }
  .nav-links.open { display:flex; flex-direction:column; gap:18px }
  .nav-links a.active::after { display:none }
  .nav-contact { display:none }.menu-toggle{display:block}
  .hero { grid-template-columns:1fr; padding-top:60px }.hero-visual{grid-row:1;height:440px}.portrait{width:350px;height:400px}.hero-copy{text-align:center}.eyebrow,.hero-actions,.hero-stats{justify-content:center}.hero-description{margin-inline:auto}.hero h1 strong{display:inline}
  .about-grid { grid-template-columns:1fr;gap:30px }.skill-grid{grid-template-columns:1fr 1fr}.project-heading{align-items:start}
}
@media (max-width: 600px) {
  .container { width:min(100% - 32px,1120px) }.nav-wrap{height:72px}.nav-links{top:72px}
  .brand { font-size:14px }.brand-mark{width:34px;height:34px}
  .hero { min-height:auto;padding-top:20px }.hero-visual{height:390px}.portrait{width:280px;height:340px}.avatar{width:210px;height:210px}.avatar::before{width:88px;height:88px}.avatar::after{width:125px}
  .code-card-top{right:-2px;top:20px;transform:scale(.82)}.status-card{left:-2px;bottom:42px}
  .hero h1{font-size:48px;letter-spacing:-3px}.hero-subtitle{font-size:17px}.hero-stats div{min-width:92px;margin-right:12px;padding-right:12px}
  .section{padding-top:65px;padding-bottom:65px}.about-cards{grid-template-columns:1fr}.skill-grid{grid-template-columns:1fr}.project-grid{grid-template-columns:1fr}.project-heading{display:block}.project-heading>p{margin-top:15px}
  .project-preview{height:220px}.cta{margin-bottom:65px;padding:32px 24px;display:block}.cta h2{font-size:30px;margin-bottom:24px}.footer-inner{height:auto;padding-top:24px;padding-bottom:24px;gap:16px;flex-direction:column;text-align:center}.footer-inner p{margin:0}
}
