@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
  /* Colors */
  --bg:           #ffffff;
  --bg-soft:      #f8fafc;
  --text:         #111827;
  --muted: #69717e;
  --accent:       hsl(231, 80%, 58%);
  --accent-hover: hsl(231, 80%, 48%);
  --border:       #e5e7eb;

  /* Layout */
  --radius:       10px;
  --max-width:    1160px;
  --nav-height:   60px;
  --transition:   0.18s ease;

  --fs-h1:    1.75rem;
  --fs-h2:    1.375rem;
  --fs-h3:    1.125rem;
  --fs-body:  1rem;
  --fs-small: 0.875rem;

  --fw-h1:     620;
  --fw-h2:     400;
  --fw-h3:     400;
  --fw-body:   500;
  --fw-nav:    600;
  --fw-strong: 700;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: inherit;
}

html {
  scroll-behavior: smooth;
  font-size: 110%;
}

body {
  font-family: 'Open Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-h1);
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-h2);
  color: var(--text);
  line-height: 1.3;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-h3);
  color: var(--text);
  line-height: 1.4;
}

p {
  font-size: var(--fs-body);
  font-weight: var(--fw-body);
  line-height: 1.75;
  color: var(--muted);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: disc;
  padding-left: 1.2rem;
}

li {
  font-size: var(--fs-body);
  font-weight: var(--fw-body);
  color: var(--muted);
  margin-bottom: 0.4rem;
  line-height: 1.7;
}


/* Layout */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section label - small uppercase blue heading */
.section-label {
  font-size: 0.72rem;
  font-weight: var(--fw-strong);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

/* Navigation — fixed sticky bar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: var(--fs-small);
  font-weight: var(--fw-nav);
  color: var(--text);
  transition: color var(--transition);
}

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

.nav-burger {
  display: none;
}

/* Header — intro / hero */
header {
  padding: calc(var(--nav-height) + 5rem) 0 5rem;
  border-bottom: 1px solid var(--border);
}

.header-layout {
  display: flex;
  align-items: center;
  gap: 5rem;
}

.header-text {
  flex: 1;
}

header h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.5rem;
}

header h2 {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.25rem;
  letter-spacing: normal;
  text-transform: none;
}

header p {
  max-width: 560px;
}

/* Avatar */
.avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: fit-content;
}

.avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px dashed var(--accent);
  opacity: 0.45;
  animation: spin 12s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.avatar {
  display: block;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--border);
}

/* Sections */
section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}


/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: var(--fs-small);
  font-weight: var(--fw-strong);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text);
  font-size: var(--fs-small);
  font-weight: var(--fw-strong);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color var(--transition), color var(--transition);
}

.btn-secondary:hover {
  border-color: var(--text);
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* About */
.about-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Skills */
.skills-grid {
  display: flex;
  flex-direction: column;
}

.skill-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.skill-row:last-child {
  border-bottom: none;
}

.skill-category {
  font-size: 0.8rem;
  font-weight: var(--fw-strong);
  color: var(--text);
  width: 90px;
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.skill-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.skill-icon {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: var(--fw-body);
  color: var(--muted);
}

.skill-icon img {
  width: 20px;
  height: 20px;
}

/* Experience */
.exp-list {
  display: flex;
  flex-direction: column;
}

.exp-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.exp-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.exp-company {
  font-size: var(--fs-body);
  font-weight: var(--fw-strong);
  color: var(--text);
  display: block;
}

.exp-role {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--accent);
  display: block;
  margin-top: 0.1rem;
}

.exp-date {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

/* Education */
.edu-list {
  display: flex;
  flex-direction: column;
}

.edu-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.edu-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.edu-school {
  font-size: var(--fs-body);
  font-weight: var(--fw-strong);
  color: var(--text);
  display: block;
}

.edu-degree {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--accent);
  display: block;
  margin-top: 0.1rem;
}

.edu-date {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.project-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-card h3 {
  margin-bottom: 0.25rem;
}

.project-stack {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.5rem;
}

.project-stack img {
  width: 20px;
  height: 20px;
}

.project-card a {
  color: var(--accent);
  font-size: var(--fs-small);
  font-weight: var(--fw-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.project-card a:hover {
  color: var(--accent-hover);
}

/* Certifications */
#certifications {
  background: var(--bg-soft);
}

.certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.cert-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cert-item img {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.cert-name {
  font-size: var(--fs-small);
  font-weight: var(--fw-strong);
  color: var(--text);
  display: block;
  margin-bottom: 0.2rem;
}

.cert-issuer {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--muted);
  display: block;
  margin-bottom: 0.35rem;
}

.cert-desc {
  font-size: 0.78rem;
  font-weight: var(--fw-body);
  color: var(--muted);
  line-height: 1.5;
}

/* Contact */
#contact {
  border-bottom: none;
}

.contact-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-layout h2 {
  margin-bottom: 0.4rem;
}

.contact-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-size: var(--fs-small);
  font-weight: var(--fw-strong);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color var(--transition), color var(--transition);
}

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

.contact-btn img {
  width: 18px;
  height: 18px;
}

/* Footer */
footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

footer p {
  font-size: 0.8rem;
  text-align: center;
}


/* Responsive */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 1.25rem;
  }

  nav {
    padding: 0 1.25rem;
  }

  .nav-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }

  .nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.25rem;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  header {
    padding: calc(var(--nav-height) + 2.5rem) 0 3rem;
  }

  .header-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .avatar {
    width: 160px;
    height: 160px;
  }

  section {
    padding: 3.5rem 0;
  }

  .skill-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .certs-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    flex-direction: column;
    align-items: flex-start;
  }
}
