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

:root {
  --bg: #ffffff;
  --fg: #0f172a;
  --muted: #8898aa;
  --border: #e2e8f0;
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --accent: #38bdf8;
  --card-bg: #f8fafc;
  --radius: 12px;
  --nav-h: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; }

/* ── NAV ─────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
#nav.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.06); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo img { height: 32px; }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s;
}
.nav-links a:hover { color: var(--fg); }

.nav-burger { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; margin-left: auto; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  border: 1.5px solid transparent;
}
.btn-sm { padding: 7px 16px; font-size: .82rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--border); color: var(--fg); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-hero-outline { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-hero-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ── SECTIONS ────────────────────────────────────────────────── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 24px;
}

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

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

/* ── HERO ────────────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=1600&q=80');
  background-size: cover;
  background-position: center;
  filter: brightness(.18) saturate(1.4);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #93c5fd;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

#hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: 20px;
  max-width: 700px;
  color: #fff;
}

#hero p {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-tags span {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: #94a3b8;
  font-size: .78rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
}

/* ── CARDS ───────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.07);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

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

/* ── IDENTITY ────────────────────────────────────────────────── */
#identity { background: #f8fafc; }

.identity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 24px;
}

.identity-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.identity-card.featured { border-color: #bfdbfe; }

.identity-icon { font-size: 2rem; margin-bottom: 16px; }

.identity-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.identity-card p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.identity-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.identity-card ul li {
  font-size: .85rem;
  color: var(--fg);
  padding-left: 16px;
  position: relative;
}
.identity-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: .75rem;
}

/* ── ABOUT ───────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text p {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat span {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.03em;
}
.stat small {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
}

.skill-group { margin-bottom: 24px; }
.skill-group h4 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 10px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tags span {
  background: var(--card-bg);
  border: 1px solid var(--border);
  font-size: .8rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 6px;
  color: var(--fg);
}

/* ── CONTACT ─────────────────────────────────────────────────── */
#contact { background: var(--fg); color: #fff; }
#contact .section-label { color: var(--accent); }
#contact h2 { color: #fff; }
#contact .section-sub { color: #94a3b8; }

.contact-inner { text-align: center; }
.contact-inner .section-sub { margin-left: auto; margin-right: auto; }

.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 500;
  transition: background .15s;
}
.contact-link:hover { background: rgba(255,255,255,.12); }

.contact-icon {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
}

/* ── LANG FLAGS (inside card) ────────────────────────────────── */
.lang-flags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.lang-flags span {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--primary);
  font-size: .8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
}

/* ── M365 SECTION ────────────────────────────────────────────── */
#m365 { background: var(--fg); color: #fff; }
#m365 .section-label { color: var(--accent); }
#m365 h2 { color: #fff; }
#m365 .section-sub { color: #94a3b8; }

.m365-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.m365-main h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.m365-main > p {
  font-size: .92rem;
  color: #94a3b8;
  line-height: 1.75;
  margin-bottom: 32px;
}

.m365-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.m365-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.m365-feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.m365-feature strong {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.m365-feature p {
  font-size: .83rem;
  color: #64748b;
  line-height: 1.6;
}

.m365-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.m365-stat-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 20px;
}
.m365-stat-card span {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.03em;
}
.m365-stat-card small {
  font-size: .78rem;
  color: #64748b;
  font-weight: 500;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  background: #0a0f1e;
  padding: 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
footer span {
  font-size: .8rem;
  color: #475569;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links, #nav .btn { display: none; }
  .nav-burger { display: block; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .identity-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .m365-grid { grid-template-columns: 1fr; }
  .m365-side { flex-direction: row; flex-wrap: wrap; }
  .m365-stat-card { flex: 1 1 120px; }

  .about-stats { gap: 20px; }
  .footer-inner { flex-direction: column; text-align: center; }

  #hero h1 { font-size: 2.2rem; }
}

/* Mobile nav open state */
#nav.open .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
#nav.open .btn { display: inline-flex; margin: 0 24px 16px; }
