* {
  box-sizing: border-box;
}

:root {
  --ink: #101827;
  --muted: #344054;
  --line: #1c2533;
  --paper: #ffffff;
  --bg: #eef1f5;
  --accent: #111827;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.55;
}

.controls {
  position: fixed;
  right: 22px;
  top: 18px;
  z-index: 20;
  display: flex;
  gap: 8px;
}

.controls button {
  border: 1px solid #cbd1d9;
  background: rgba(255,255,255,.94);
  color: #111827;
  padding: 9px 13px;
  border-radius: 8px;
  cursor: pointer;
  font: 600 12px Inter, sans-serif;
  box-shadow: 0 5px 20px rgba(0,0,0,.08);
}

.controls button:hover {
  transform: translateY(-1px);
}

.resume {
  width: min(950px, calc(100% - 32px));
  margin: 35px auto;
  background: var(--paper);
  min-height: 1200px;
  box-shadow: 0 18px 60px rgba(15,23,42,.12);
  padding: 48px 54px 55px;
}

.hero {
  text-align: center;
  padding-bottom: 36px;
}

.hero h1 {
  margin: 0;
  font: 600 38px/1 "Barlow Condensed", sans-serif;
  letter-spacing: 2px;
}

.headline {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 500;
}

.contact {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
  font-size: 11px;
}

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

.layout {
  display: grid;
  grid-template-columns: 225px 1fr;
  gap: 27px;
}

.sidebar {
  padding-right: 24px;
  border-right: 2px solid var(--line);
}

section {
  margin-bottom: 27px;
}

.sidebar h2,
.content h2 {
  position: relative;
  margin: 0 0 12px;
  font: 600 17px/1 "Barlow Condensed", sans-serif;
  letter-spacing: 1px;
}

.sidebar h2::before,
.sidebar h2::after,
.content h2::before {
  content: "°";
  font-family: Arial, sans-serif;
  font-size: 15px;
  vertical-align: 2px;
  margin-right: 8px;
}

.sidebar h2::after {
  margin-left: 8px;
  margin-right: 0;
}

.sidebar p,
.sidebar a,
.skills li,
.links a {
  font-size: 12px;
}

.sidebar p {
  margin: 0 0 4px;
  text-align: center;
}

.sidebar a {
  display: block;
  text-align: center;
  color: inherit;
  margin-top: 3px;
}

.skills,
.links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills li {
  text-align: center;
  margin: 8px 0;
}

.links a {
  margin: 8px 0;
}

.content {
  min-width: 0;
}

.resume-section {
  position: relative;
  padding-left: 1px;
  margin-bottom: 27px;
}

.content h2 {
  padding-left: 0;
}

.content h2::before {
  content: "●";
  font-size: 7px;
  position: absolute;
  left: -31px;
  top: 5px;
}

.content h2::after {
  content: "";
  position: absolute;
  left: -27px;
  top: 15px;
  bottom: -22px;
  width: 2px;
  background: var(--line);
}

.resume-section:last-child h2::after {
  display: none;
}

.content p,
.content li {
  font-size: 13px;
  margin-top: 0;
}

.tagline {
  font-style: italic;
  margin-bottom: 12px !important;
}

.project {
  margin-bottom: 17px;
}

.project h3,
.content article h3 {
  margin: 0 0 5px;
  font-size: 13px;
  line-height: 1.4;
}

.project p,
.project ul {
  margin-bottom: 0;
}

.project ul {
  padding-left: 22px;
}

a {
  text-underline-offset: 2px;
}

body.dark {
  --ink: #eef2f7;
  --muted: #c7ced8;
  --line: #dce2ea;
  --paper: #151a21;
  --bg: #080b10;
}

body.dark .controls button {
  background: #171d26;
  color: #f4f6f8;
  border-color: #343d4a;
}

@media (max-width: 760px) {
  .controls {
    position: sticky;
    top: 10px;
    justify-content: flex-end;
    margin: 10px;
  }

  .resume {
    width: calc(100% - 16px);
    margin: 8px auto;
    padding: 34px 24px;
  }

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

  .sidebar {
    border-right: 0;
    border-bottom: 2px solid var(--line);
    padding-right: 0;
    padding-bottom: 20px;
  }

  .contact {
    flex-direction: column;
    gap: 4px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .content h2::before,
  .content h2::after {
    display: none;
  }
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  body {
    background: white;
  }

  .controls {
    display: none !important;
  }

  .resume {
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    box-shadow: none;
    padding: 14mm 14mm 13mm;
  }

  .project,
  .resume-section,
  article {
    break-inside: avoid;
  }

  body.dark {
    --ink: #101827;
    --paper: #ffffff;
    --line: #1c2533;
  }
}


.floating-contact-profolio {
  position: fixed;
  left: 20px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
}

.floating-contact-profolio {
  bottom: 40px;
}

.floating-contact-profolio:hover {
  transform: translateX(4px);
  background: linear-gradient(135deg, rgba(255, 77, 141, 0.3), rgba(155, 92, 255, 0.3));
  border-color: rgba(255, 77, 141, 0.5);
  box-shadow: 0 8px 24px rgba(255, 77, 141, 0.25);
}

.floating-contact-bday .bday-gift-icon {
  font-size: 1.1rem;
  animation: float-bday 2s ease-in-out infinite alternate;
}

@keyframes float-bday {
  from { transform: translateY(0px) rotate(-5deg); }
  to { transform: translateY(-3px) rotate(5deg); }
}

.floating-contact-profolio i {
  font-size: 1.1rem;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}