
:root {
  --bg: #ffffff;
  --surface: #f5f7fb;
  --text: #151925;
  --muted: #667085;
  --blue: #3659e3;
  --blue-dark: #233fb5;
  --border: #e6e9f0;
  --navy: #11182b;
  --radius: 18px;
  --container: 1160px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

h1,
h2,
h3,
.logo {
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.045em;
}

h1,
h2 {
  font-weight: 800;
  line-height: 1.12;
}

p {
  color: var(--muted);
}

section[id] {
  scroll-margin-top: 85px;
}

/* Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(230, 233, 240, 0.85);
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.logo span {
  color: var(--blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a,
.nav-cta {
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a {
  color: #51596a;
}

.nav-links a:hover,
.nav-cta:hover {
  color: var(--blue);
}

.nav-cta {
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 9px;
  white-space: nowrap;
}

.nav-cta span {
  margin-left: 5px;
  color: var(--blue);
}

/* Hero */

.hero {
  min-height: 650px;
  padding-top: 100px;
  padding-bottom: 105px;
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.availability {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  padding: 7px 12px;
  background: #f0f8f2;
  border: 1px solid #dcefe1;
  border-radius: 50px;
  color: #287442;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.status-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #35a65a;
  box-shadow: 0 0 0 3px rgba(53, 166, 90, 0.12);
}

.eyebrow,
.tag {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.7;
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(48px, 5.5vw, 73px);
  line-height: 1.08;
  letter-spacing: -0.065em;
}

.hero h1 span,
.about-grid h2 span,
.approach-section h2 span {
  color: var(--blue);
}

.hero-description {
  max-width: 485px;
  margin-top: 25px;
  font-size: 15px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 13px 19px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

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

.button-primary {
  color: white;
  background: var(--blue);
  box-shadow: 0 8px 22px rgba(54, 89, 227, 0.18);
}

.button-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 12px 26px rgba(54, 89, 227, 0.25);
}

.button-secondary {
  color: var(--text);
  border-color: var(--border);
  background: white;
}

.button-secondary:hover {
  border-color: #b7c3f8;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  font-size: 11px;
  color: var(--muted);
}

.meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a0a7b5;
}

/* Code illustration */

.hero-visual {
  min-height: 370px;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.visual-glow {
  position: absolute;
  z-index: -1;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(77, 107, 237, 0.18),
    rgba(77, 107, 237, 0.03) 65%,
    transparent 72%
  );
}

.code-card {
  width: min(100%, 400px);
  overflow: hidden;
  border: 1px solid #333e57;
  border-radius: 15px;
  background: #131b2d;
  color: #e8edf9;
  box-shadow: 0 35px 75px rgba(22, 35, 76, 0.2);
  transform: rotate(-2deg);
}

.code-topbar {
  min-height: 48px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #29334b;
  color: #9da9c0;
  font-size: 10px;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots i {
  width: 7px;
  height: 7px;
  display: block;
  border-radius: 50%;
  background: #66718a;
}

.window-dots i:first-child {
  background: #ff837a;
}

.window-dots i:nth-child(2) {
  background: #f4c56b;
}

.window-dots i:nth-child(3) {
  background: #6bd49b;
}

.code-content {
  padding: 26px 18px 28px;
  overflow-x: auto;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  line-height: 2.5;
}

.code-content p {
  min-width: 300px;
  color: #e8edf9;
  white-space: pre;
}

.code-muted {
  display: inline-block;
  width: 20px;
  color: #63718e;
}

.code-purple {
  color: #c5a4ff;
}

.code-green {
  color: #a5e6bd;
}

.code-footer {
  padding: 12px 17px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #29334b;
  color: #aab6cc;
  font-size: 10px;
}

.floating-chip {
  position: absolute;
  padding: 11px 15px;
  border: 1px solid #e8ebf3;
  border-radius: 10px;
  background: white;
  color: #26304a;
  box-shadow: 0 12px 30px rgba(20, 32, 66, 0.1);
  font-size: 11px;
  font-weight: 700;
}

.chip-top {
  top: 45px;
  right: -4px;
  transform: rotate(4deg);
}

.chip-bottom {
  bottom: 38px;
  left: -8px;
  transform: rotate(-4deg);
}

.scroll-indicator {
  position: absolute;
  bottom: 26px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #838b9b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.scroll-line {
  width: 29px;
  height: 1px;
  background: var(--blue);
}

/* General sections */

.section {
  padding-top: 105px;
  padding-bottom: 105px;
}

.section-muted {
  background: var(--surface);
}

.about-grid {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 100px;
}

.about-grid h2,
.section-heading h2,
.approach-section h2,
.contact-inner h2 {
  margin-top: 18px;
  font-size: clamp(35px, 4vw, 49px);
  letter-spacing: -0.055em;
}

.about-copy {
  padding-top: 21px;
}

.about-copy p {
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.9;
}

.about-copy .large-copy {
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 7px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.text-link span {
  transition: transform 0.2s ease;
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

/* Section headings */

.section-heading {
  margin-bottom: 39px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.section-heading h2 {
  margin-top: 13px;
  font-size: clamp(32px, 3.5vw, 43px);
}

.section-description {
  max-width: 310px;
  font-size: 13px;
  line-height: 1.8;
}

/* Skills */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.skill-card {
  min-height: 180px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: #bdc8f8;
}

.skill-number {
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.skill-card h3 {
  margin-top: 25px;
  margin-bottom: 8px;
  font-size: 18px;
  letter-spacing: -0.035em;
}

.skill-card p {
  font-size: 12px;
  line-height: 1.8;
}

/* Projects */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}

.project-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e7eaf1;
  border-radius: var(--radius);
  background: white;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(21, 31, 58, 0.08);
}

.project-visual {
  min-height: 225px;
  padding: 17px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-visual::before,
.project-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
}

.project-visual::before {
  width: 220px;
  height: 220px;
  right: -65px;
  top: -90px;
}

.project-visual::after {
  width: 150px;
  height: 150px;
  left: -70px;
  bottom: -65px;
}

.project-green {
  background: linear-gradient(140deg, #1d5a49, #3d9273);
  color: white;
}

.project-blue {
  background: linear-gradient(140deg, #1e326a, #5375d8);
  color: white;
}

.project-sand {
  background: linear-gradient(140deg, #e9e5db, #c9d4e8);
  color: #202b41;
}

.project-index,
.project-category {
  position: absolute;
  z-index: 2;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.project-index {
  top: 17px;
  left: 17px;
}

.project-category {
  right: 17px;
  bottom: 15px;
}

.project-art {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.art-symbol {
  font-size: 39px;
  font-weight: 800;
}

.project-info {
  padding: 23px 20px 25px;
}

.project-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.project-title-row h3 {
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.04em;
}

.project-arrow {
  color: var(--blue);
  font-size: 17px;
}

.project-info > p {
  min-height: 75px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.85;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.tech-tags span {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: #525d70;
  font-size: 9px;
  font-weight: 600;
}

.project-link,
.project-status {
  display: inline-block;
  margin-top: 20px;
  font-size: 11px;
  font-weight: 700;
}

.project-link {
  color: var(--blue);
}

.project-link:hover {
  text-decoration: underline;
}

.project-status {
  color: #667085;
}

/* Approach */

.approach-section h2 {
  margin-bottom: 45px;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.approach-grid article {
  padding: 25px 26px 10px 0;
}

.approach-grid article + article {
  padding-left: 26px;
  border-left: 1px solid var(--border);
}

.approach-grid article > span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.approach-grid h3 {
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 19px;
}

.approach-grid p {
  max-width: 280px;
  font-size: 12px;
  line-height: 1.9;
}

/* Contact */

.contact-section {
  padding: 90px 0;
  overflow: hidden;
  position: relative;
  background: var(--navy);
  color: white;
}

.contact-section::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  top: -210px;
  right: -120px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 45px rgba(255, 255, 255, 0.025),
    0 0 0 90px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
}

.contact-inner .eyebrow {
  color: #9eafff;
}

.contact-inner h2 {
  margin-top: 19px;
  font-size: clamp(39px, 5vw, 59px);
}

.contact-inner h2 span {
  color: #aab8ff;
}

.contact-inner > p:not(.eyebrow) {
  max-width: 480px;
  margin-top: 21px;
  margin-bottom: 29px;
  color: #b5bfd4;
  font-size: 14px;
  line-height: 1.9;
}

.button-light {
  background: white;
  color: var(--navy);
}

.button-light:hover {
  background: #e8ecff;
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 23px;
  margin-top: 32px;
}

.contact-socials a {
  color: #c1cbe0;
  font-size: 12px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-socials a:hover {
  color: white;
}

/* Footer */

.site-footer {
  background: #0c1221;
  color: white;
}

.footer-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-inner .logo {
  font-size: 25px;
}

.footer-inner p {
  color: #9ba6bd;
  font-size: 10px;
}

/* Keyboard accessibility */

a:focus-visible {
  outline: 3px solid #8da0ff;
  outline-offset: 4px;
}

/* Tablet */

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 75px;
    padding-bottom: 95px;
    grid-template-columns: 1fr 0.85fr;
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(43px, 6vw, 60px);
  }

  .hero-visual {
    min-height: 330px;
  }

  .code-content {
    padding-inline: 12px;
    font-size: 10px;
  }

  .chip-top {
    right: -2px;
  }

  .about-grid {
    gap: 45px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-info > p {
    min-height: auto;
  }
}

/* Mobile */

@media (max-width: 620px) {
  .container,
  .about-grid {
    width: calc(100% - 36px);
  }

  .navbar {
    min-height: 68px;
    gap: 12px;
  }

  .logo {
    font-size: 27px;
  }

  .nav-links {
    gap: 13px;
  }

  .nav-links a {
    font-size: 10px;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
    padding-top: 62px;
    padding-bottom: 83px;
  }

  .hero h1 {
    font-size: clamp(46px, 11vw, 64px);
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-visual {
    min-height: 315px;
    margin: 0 6px;
  }

  .code-card {
    width: min(100%, 370px);
  }

  .chip-top {
    top: 15px;
    right: -2px;
  }

  .chip-bottom {
    bottom: 17px;
    left: -2px;
  }

  .scroll-indicator {
    bottom: 22px;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-grid h2,
  .section-heading h2,
  .approach-section h2 {
    font-size: 36px;
  }

  .about-copy {
    padding-top: 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 28px;
  }

  .section-description {
    max-width: 100%;
  }

  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skill-card {
    min-height: auto;
    padding: 22px;
  }

  .skill-card h3 {
    margin-top: 18px;
  }

  .project-visual {
    min-height: 215px;
  }

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

  .approach-grid article,
  .approach-grid article + article {
    padding: 23px 0;
    border-left: none;
    border-bottom: 1px solid var(--border);
  }

  .approach-section h2 {
    margin-bottom: 30px;
  }

  .contact-section {
    padding: 72px 0;
  }

  .contact-inner h2 {
    font-size: 41px;
  }

  .footer-inner {
    padding-top: 23px;
    padding-bottom: 23px;
    flex-wrap: wrap;
  }

  .footer-inner p {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .nav-links {
    gap: 9px;
  }

  .nav-links a {
    font-size: 9px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .meta-divider {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
    .project-logo-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 12px;
      text-align: center;
      padding: 20px;
      box-sizing: border-box;
    }
    .project-logo-image {
      display: block;
      width: 76px;
      height: 76px;
      object-fit: contain;
      padding: 12px;
      border-radius: 18px;
      background: #fff;
      box-shadow: 0 10px 30px rgba(20, 30, 60, 0.10);
    }
    .project-logo-wrap > span:not(.project-monogram) {
      font-weight: 800;
      line-height: 1.25;
    }
    .project-monogram {
      display: grid;
      place-items: center;
      width: 76px;
      height: 76px;
      border-radius: 20px;
      color: #fff;
      background: #172554;
      font: 800 26px/1 Manrope, sans-serif;
      letter-spacing: -1px;
      box-shadow: 0 10px 30px rgba(20, 30, 60, 0.16);
    }
    .cavero-logo-wrap { gap: 8px; }
    .cavero-monogram { background: linear-gradient(135deg, #233b82, #6d8df0); }
    .cavero-logo-wrap small {
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 1.4px;
    }
    @media (max-width: 520px) {
      .project-logo-image, .project-monogram { width: 64px; height: 64px; }
    }
  
/* NAVBAR LOGO */
.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.brand-logo img {
  display: block;
  width: 155px;
  height: 48px;
  max-width: none;
  object-fit: contain;
  object-position: left center;
}

/* FOOTER LOGO */
.footer-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  margin-bottom: 14px;
}

.footer-logo img {
  display: block;
  width: 165px;
  height: 55px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

/* MOBILE */
@media (max-width: 768px) {
  .brand-logo img {
    width: 130px;
    height: 42px;
  }

  .footer-logo img {
    width: 145px;
    height: 48px;
  }
}
