:root {
  --bg: #0B0F14;
  --bg-soft: #10151C;
  --surface: #131A22;
  --surface-2: #182029;
  --border: #232C36;
  --text: #EAF1F2;
  --muted: #8CA0A8;
  --android: #3DDC84;
  --flutter: #54C5F8;
  --gradient: linear-gradient(120deg, var(--android), var(--flutter));

  --display: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--android);
  color: #06110B;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--flutter);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 28px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--android);
}

.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ambient background glow */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient::before,
.ambient::after {
  content: '';
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.22;
}

.ambient::before {
  background: var(--android);
  top: -220px;
  right: -160px;
}

.ambient::after {
  background: var(--flutter);
  bottom: -260px;
  left: -180px;
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-social {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  flex-shrink: 0;
}

.nav-social svg {
  width: 17px;
  height: 17px;
  fill: var(--text);
}

.nav-social:hover {
  transform: translateY(-2px);
  border-color: var(--flutter);
  background: var(--surface-2);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  font-size: 14.5px;
  color: var(--muted);
}

nav a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  font-size: 18px;
  cursor: pointer;
}

@media (max-width: 820px) {
  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }

  nav ul.open {
    max-height: 340px;
  }

  nav ul li {
    padding: 14px 28px;
    border-top: 1px solid var(--border);
  }

  .nav-toggle {
    display: block;
  }
}

/* ---------- Hero (profile on the right) ---------- */
.hero {
  padding: 88px 0 96px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-copy {
  order: 1;
}

.hero-visual {
  order: 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.version-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}

.version-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--android);
  box-shadow: 0 0 8px var(--android);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(36px, 4.6vw, 54px);
  line-height: 1.1;
  margin: 6px 15px 20px;
  letter-spacing: -0.02em;
}

.hero p.lede {
  max-width: 520px;
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.btn {
  font-family: var(--body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 26px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-solid {
  background: var(--gradient);
  color: #06110B;
}

.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(61, 220, 132, 0.4);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--flutter);
  color: var(--flutter);
  transform: translateY(-2px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ---------- Social icons ---------- */
.social-row {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.social-icon img {
  width: 19px;
  height: 19px;
  opacity: 0.9;
}

.social-icon:hover {
  transform: translateY(-3px);
  border-color: var(--flutter);
  background: var(--surface-2);
}

.social-icon.gh:hover { border-color: var(--text); }
.social-icon.li:hover { border-color: #0A66C2; }

@media (max-width: 900px) {
  .social-row {
    justify-content: center;
  }
}

/* profile visual */
.photo-ring {
  position: relative;
  width: 350px;
  height: 350px;
}

.photo-ring .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gradient);
  padding: 3px;
  animation: spin 16s linear infinite;
}

.photo-ring .ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg);
}

.photo-frame {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 60px;
  font-weight: 600;
  overflow: hidden;
}

.photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.badge {
  position: absolute;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 12px;
  font-family: var(--mono);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
  animation: float 6s ease-in-out infinite;
}

.badge img {
  width: 14px;
  height: 14px;
}

.badge.b1 {
  top: -6px;
  right: 4%;
  animation-delay: 0s;
}

.badge.b2 {
  bottom: 10%;
  left: -18px;
  animation-delay: 1.4s;
}

.badge.b3 {
  bottom: -10px;
  right: 14%;
  animation-delay: 2.8s;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 56px 0 60px;
    text-align: center;
  }

  .hero-copy {
    order: 2;
  }

  .hero-visual {
    order: 1;
    margin-bottom: 12px;
  }

  .hero p.lede {
    margin-left: 15px;
    margin-right: 15px;
  }

  .hero-actions,
  .hero-meta {
    justify-content: center;
  }
}

/* ---------- Section shell ---------- */
section {
  padding: 84px 0;
}

.section-head {
  margin-bottom: 30px;
}

.section-head h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 32px;
  margin: 10px 0 0;
  letter-spacing: -0.01em;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
}

.about-text p {
  color: var(--muted);
  font-size: 16.5px;
  margin: 0 0 18px;
}

.about-text strong {
  color: var(--text);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

.stat-card .num {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
}

.stat-card .label {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Timeline (experience) ---------- */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}

.t-item {
  position: relative;
  padding-bottom: 36px;
}

.t-item:last-child {
  padding-bottom: 0;
}

.t-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--android);
}

.t-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 26px;
}

.t-role {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
}

.t-org {
  color: var(--flutter);
  font-size: 14.5px;
  margin-top: 2px;
}

.t-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.t-project {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--android);
  margin-top: 14px;
}

.t-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14.5px;
}

.t-card li {
  margin-bottom: 6px;
}

/* ---------- Education ---------- */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

.edu-card .deg {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16.5px;
}

.edu-card .school {
  color: var(--flutter);
  font-size: 14px;
  margin-top: 6px;
}

.edu-card .yr {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}


.edu-card ul {
  margin: 5;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14.5px;
}

.edu-card li {
  margin-bottom: 8px;
}

@media (max-width: 700px) {
  .edu-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Projects ---------- */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.proj-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.proj-card:hover {
  transform: translateY(-6px);
  border-color: var(--android);
  box-shadow: 0 16px 40px -16px rgba(61, 220, 132, 0.3);
}

.proj-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--android);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.proj-card h3 {
  font-family: var(--display);
  font-size: 20px;
  margin: 0 0 6px;
}

.proj-client {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.proj-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14.5px;
}

.proj-card li {
  margin-bottom: 8px;
}


@media (max-width: 760px) {
  .proj-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Skills ---------- */
.skills-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 70px;
  row-gap: 40px;
  align-items: start;
}

.skill-cat {
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 13.5px;
  transition: border-color .2s ease, transform .2s ease;
}

.chip:hover {
  border-color: var(--flutter);
  transform: translateY(-2px);
}

.chip img {
  width: 15px;
  height: 15px;
}

@media (max-width: 700px) {
  .skills-groups {
    grid-template-columns: 1fr;
  }
}

/* ---------- Strengths ---------- */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.strength-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  gap: 14px;
}

.strength-card .mark {
  font-family: var(--display);
  font-weight: 700;
  color: var(--android);
  font-size: 20px;
  flex-shrink: 0;
}

.strength-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

@media (max-width: 760px) {
  .strength-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact ---------- */
#contact {
  padding-top: 90px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px 72px;
  align-items: start;
}

.contact-grid h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
  margin: 10px 0 16px;
}

.contact-grid p {
  margin: 0 0 22px;
  max-width: 430px;
  line-height: 1.75;
  color: var(--muted);
}

.contact-form {
  background: linear-gradient(180deg, rgba(19, 26, 34, 0.96), rgba(16, 21, 28, 0.96));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.5);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 14.5px;
}

.contact-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-list a {
  border-bottom: 1px solid var(--border);
}

.contact-list a:hover {
  color: var(--android);
  border-color: var(--android);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--body);
  font-size: 14.5px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--flutter);
  outline: none;
}

.form-note {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: -8px;
  margin-bottom: 18px;
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
footer {
  padding: 32px 0 44px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ring {
    animation: none;
  }

  .badge {
    animation: none;
  }
}


/*-------------contact--------------*/

.contact-icons {
  display: flex;
  gap: 18px;
  margin-top: 20px;
}

.contact-icons a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #333;
  color: #ffffff;
  font-size: 20px;
  text-decoration: none;
  transition: 0.3s ease;
}

.contact-icons a:hover {
  transform: translateY(-4px);
  border-color: #00d9ff;
  color: #00d9ff;
}