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

:root {
  color-scheme: light;
  --ink: #f8fafc;
  --muted: rgba(248, 250, 252, 0.7);
  --dark: #2f374c;
  --darker: #242b3c;
  --accent: #10b981;
  --panel: rgba(47, 55, 76, 0.85);
  --panel-strong: rgba(36, 43, 60, 0.92);
  --border: rgba(255, 255, 255, 0.1);
}

body {
  font-family: "Montserrat", system-ui, sans-serif;
  background: #1f2534;
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
  cursor: url("assets/cat_cursor.png") 8 14, auto;
}

a,
button,
[role="button"],
input,
textarea,
select {
  cursor: url("assets/cat_cursor.png") 8 14, pointer;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.05);
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      120deg,
      rgba(31, 37, 52, 0.92) 30%,
      rgba(31, 37, 52, 0.5) 100%
    ),
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.08),
      transparent 55%
    );
  z-index: 1;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(20px, 6vw, 96px);
  background: rgba(47, 55, 76, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 10;
  backdrop-filter: blur(8px);
}

.brand-logo {
  width: 83px;
  height: 83px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

.brand-logo.big {
  width: 108px;
  height: 108px;
  margin-bottom: 14px;
}

.nav-links {
  display: flex;
  gap: 26px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.2em;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  opacity: 0.85;
  transition: color 0.2s ease;
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0.35)
  );
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: -1;
}

.nav-links a:hover::after {
  opacity: 1;
}

.lang {
  position: relative;
  display: inline-flex;
  padding: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.lang-toggle {
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.caret {
  font-size: 10px;
  opacity: 0.7;
}

.lang-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(31, 37, 52, 0.9);
  border: 1px solid var(--border);
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 150px;
  z-index: 5;
}

.lang.open .lang-menu {
  display: flex;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-btn.active,
.lang-btn:hover {
  background: #fff;
  color: #1f2534;
}

.flag {
  font-size: 14px;
}

.flag-img {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 140px clamp(20px, 6vw, 96px) 80px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 12px;
  color: var(--muted);
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(40px, 6vw, 72px);
  margin: 12px 0;
}

.hero-role {
  font-size: 18px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-summary {
  max-width: 520px;
  margin: 18px 0 28px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.page-updated {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.cta {
  background: var(--accent);
  color: #0b1220;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(16, 185, 129, 0.3);
}

.cta.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--ink);
}

.cta-email {
  background: var(--accent);
  color: #0b1220;
}

.cta-linkedin {
  background: #0a66c2;
  color: #fff;
}

.cta-github {
  background: #ffffff;
  color: #111827;
}

.cta-gitlab {
  background: #f4b400;
  color: #1f2534;
}

.cta-icon {
  width: 16px;
  height: 16px;
}

.cta-github .cta-icon,
.cta-gitlab .cta-icon {
  filter: none;
}

.hero-media {
  display: grid;
  gap: 20px;
}

.intro-card,
.video-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.25);
}

.intro-card p {
  color: var(--muted);
}

.intro-quote {
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  margin: 8px 0;
}

.intro-card {
  display: flex;
  gap: 18px;
  align-items: center;
}

.intro-card .profile-photo {
  flex-shrink: 0;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  margin-bottom: 12px;
  color: var(--muted);
}

.video-frame {
  position: relative;
  padding-top: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


.section {
  padding: 80px clamp(20px, 6vw, 96px);
  scroll-margin-top: 100px;
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}

.section-number {
  font-size: 30px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.4);
}

.section-header h2 {
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.ghost-btn {
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 260px;
}

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

.section-sub {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}

.tech-section {
  background: rgba(47, 55, 76, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-progress {
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
}

.tech-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--accent));
  transform-origin: left;
  transform: scaleX(0);
  animation: techProgress var(--tech-interval, 3.2s) linear infinite;
}

.tech-section.paused .tech-progress-bar {
  animation-play-state: paused;
}

.tech-carousel {
  position: relative;
  min-height: 320px;
}

.tech-group {
  position: absolute;
  inset: 0;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  display: grid;
  gap: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tech-group h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.tech-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.rtl-flow {
  direction: rtl;
}

.rtl-flow .tech-group,
.rtl-flow .tech-items,
.rtl-flow .tech-tile {
  direction: ltr;
}

.tech-group.active {
  opacity: 1;
  transform: translateY(0);
  z-index: 1;
}

.tech-carousel.show-all {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.tech-carousel.show-all .tech-group {
  position: static;
  opacity: 1;
  transform: none;
}

.tech-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.tech-actions .ghost-btn {
  margin-left: 0;
}

@keyframes techProgress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.tech-tile {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.tech-tile img {
  width: 36px;
  height: 36px;
}

.aws-logo {
  width: 54px;
  height: auto;
}

.certs {
  background: rgba(36, 43, 60, 0.9);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.cert-groups {
  display: grid;
  gap: 26px;
}

.cert-group {
  display: grid;
  gap: 12px;
}

.cert-group-title {
  margin: 0;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.faq {
  background: rgba(47, 55, 76, 0.85);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.faq-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

.faq-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.faq-card p {
  color: var(--muted);
  font-size: 14px;
}

.projects {
  background: rgba(36, 43, 60, 0.9);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.project-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.project-card h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.project-card p {
  color: var(--muted);
  font-size: 14px;
}

.project-link {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.project-icon {
  width: 14px;
  height: 14px;
}

.experience {
  background: linear-gradient(
    180deg,
    rgba(36, 43, 60, 0.9),
    rgba(31, 37, 52, 0.95)
  );
}

.timeline {
  position: relative;
  padding: 20px 0 40px;
  display: grid;
  gap: 30px;
}

.line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: translateX(-50%);
}

.entry {
  width: min(520px, 100%);
  background: rgba(36, 43, 60, 0.9);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  position: relative;
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: hidden;
  transition: max-height 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.entry.left {
  margin-right: auto;
}

.entry.right {
  margin-left: auto;
}

.entry:hover {
  max-height: 2000px;
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  overflow: visible;
}

.read-more {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: grid;
  place-items: center;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: #fff;
  opacity: 1;
  transition: opacity 0.2s ease;
  border-radius: 12px;
  pointer-events: none;
}

.entry:hover .read-more {
  opacity: 0;
}

.entry::before {
  content: "";
  position: absolute;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.entry.left::before {
  right: -34px;
}

.entry.right::before {
  left: -34px;
}

.year {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.entry h3 {
  margin: 6px 0 4px;
  font-size: 18px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.exp-logo {
  width: 120px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}

.exp-head {
  display: flex;
  gap: 16px;
  align-items: center;
}

.exp-meta {
  display: grid;
  gap: 4px;
}

.role-title {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}

.role-time {
  color: var(--muted);
  font-size: 12px;
  margin-top: -4px;
}

.role-block {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 6px;
}

.exp-list {
  margin-left: 18px;
  color: var(--muted);
  font-size: 13px;
  display: grid;
  gap: 6px;
}

.footer {
  margin: 40px auto 60px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  padding: 0 clamp(20px, 6vw, 96px);
  position: relative;
  flex-wrap: wrap;
}

.footer-quote {
  color: var(--muted);
  font-size: 12px;
  margin-left: auto;
  text-align: right;
}

.footer-quote-italic {
  font-style: italic;
}

.footer-quote-text {
  font-style: normal;
  margin-left: 6px;
}

.easter-link {
  position: absolute;
  color: transparent;
  text-decoration: none;
  font-size: 5px;
  letter-spacing: 0;
  text-transform: none;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  display: inline-block;
  opacity: 0.1;
}

.easter-link::after {
  content: "Looks like you found the lost cat";
  position: absolute;
  left: 50%;
  bottom: 140%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.easter-link:hover::after {
  opacity: 1;
}


@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .line {
    left: 20px;
  }

  .entry {
    margin-left: 40px;
  }

  .entry.left,
  .entry.right {
    margin-right: 0;
  }

  .entry::before {
    left: -34px;
  }
}

@media (max-width: 600px) {
  .nav {
    padding: 14px 18px;
  }

  .hero {
    padding-top: 120px;
  }

  .section-header {
    flex-direction: column;
  }
}
