﻿:root {
  color-scheme: dark;
  --bg: hsl(222 47% 11%);
  --bg-deep: hsl(222 47% 8%);
  --surface: rgba(12, 18, 32, 0.65);
  --surface-strong: rgba(10, 15, 28, 0.8);
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: rgba(224, 233, 255, 0.7);
  --primary: hsl(217 91% 60%);
  --primary-strong: hsl(214 88% 55%);
  --primary-glow: hsla(217, 91%, 60%, 0.35);
  --shadow: 0 20px 55px rgba(2, 8, 20, 0.55);
  --radius: 18px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(900px 600px at 15% 10%, hsla(217, 91%, 60%, 0.04), transparent 60%),
    radial-gradient(1200px 800px at 85% 90%, hsla(217, 91%, 60%, 0.04), transparent 65%),
    linear-gradient(160deg, var(--bg-deep) 0%, var(--bg) 55%, var(--bg-deep) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

.background-glow {
  position: fixed;
  inset: auto auto -40% -10%;
  width: 70vw;
  height: 70vh;
  background: radial-gradient(circle, hsla(217, 91%, 60%, 0.2), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -3;
}

.container {
  width: min(var(--max-width), 90vw);
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.services {
  padding: 96px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(6, 10, 18, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-image {
  width: 190px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(7, 12, 24, 0.5));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(87, 181, 255, 0.3), rgba(17, 30, 60, 0.9));
  border: 1px solid rgba(87, 181, 255, 0.4);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.logo-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

.logo-subtitle {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

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

.nav-icons {
  display: flex;
  gap: 10px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.language-option {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  min-width: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.language-option .flag-image {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  display: block;
}

.language-option:hover {
  color: var(--text);
}

.language-option:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary);
}

.language-option.is-active {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.icon-button {
  width: auto;
  height: auto;
  border-radius: 0;
  border: none;
  display: grid;
  place-items: center;
  background: transparent;
  padding: 2px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.icon-button:hover {
  transform: translateY(-1px);
  color: var(--primary);
}

.hero {
  min-height: calc(90vh - 72px);
  display: flex;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/home-shape.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.6;
  filter: invert(1) saturate(0.7) brightness(1.1);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 20, 0.68);
  backdrop-filter: blur(1px);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
  position: relative;
  z-index: 2;
}

.container.hero-grid {
  width: min(var(--max-width), 90vw);
  margin-top: -22px;
}

.hero-content {
  width: 100%;
  max-width: 50rem;
  min-width: 0;
  justify-self: start;
}

.eyebrow {
  font-family: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.eyebrow-icon {
  display: inline-flex;
  animation: eyebrow-pulse 1.8s ease-in-out infinite;
}

.eyebrow-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
}

@keyframes eyebrow-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
}

.hero-content h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 4.2vw, 4rem);
  line-height: 1.1;
  margin: 0 0 6px;
}

.headline-accent {
  display: block;
  background: linear-gradient(120deg, var(--primary) 0%, #1f4cff 100%);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 20px 40px rgba(87, 181, 255, 0.2);
}

.hero-roles {
  margin-bottom: 22px;
  min-height: clamp(2.6rem, 5.2vw, 4.6rem);
  width: 100%;
  display: flex;
  align-items: flex-end;
  overflow: visible;
}

.rotating-role {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.75rem, 4.1vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, var(--primary), #6bbdff);
  -webkit-background-clip: text;
  color: transparent;
  white-space: nowrap;
  max-width: 100%;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.rotating-role.is-enter {
  opacity: 0;
  transform: translateY(20px);
}

.rotating-role.is-exit {
  opacity: 0;
  transform: translateY(-20px);
}

.hero-summary {
  color: var(--muted);
  font-size: clamp(1.04rem, 1.2vw, 1.25rem);
  line-height: 1.625;
  width: 100%;
  max-width: none;
  margin: 0 0 32px;
  text-wrap: pretty;
}

.role-rotation {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 30px;
}

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

@media (min-width: 768px) {
  .hero-visual {
    margin-top: 24px;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 56px;
    align-items: center;
  }

  .hero-content {
    justify-self: start;
  }

  .hero-visual {
    margin-top: 0;
    width: 100%;
    justify-content: flex-end;
    justify-self: end;
    padding-right: clamp(0px, 0.8vw, 10px);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  max-width: 100%;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--primary-strong));
  color: #07101f;
  box-shadow: 0 12px 30px rgba(87, 181, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(87, 181, 255, 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
  backdrop-filter: blur(12px);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.hero-visual[data-reveal] {
  transition-delay: 0.2s;
}

.profile-shell {
  position: relative;
  width: 244px;
  height: 244px;
  display: grid;
  place-items: center;
}

@media (min-width: 640px) {
  .profile-shell {
    width: 276px;
    height: 276px;
  }
}

@media (min-width: 768px) {
  .profile-shell {
    width: 368px;
    height: 368px;
  }
}

.profile-photo {
  position: relative;
  z-index: 10;
  display: block;
  vertical-align: middle;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  padding: 8px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.2);
  filter: grayscale(40%) contrast(0.85) brightness(0.9);
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1), opacity 500ms cubic-bezier(0.4, 0, 0.2, 1);
  animation: hero-photo-in 0.8s ease 0.2s both;
}

.profile-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: hsla(217, 91%, 60%, 0.2);
  filter: blur(50px);
  z-index: 0;
}

.profile-glow-pulse {
  inset: 16px;
  background: hsla(217, 91%, 60%, 0.1);
  filter: blur(20px);
  animation: avatar-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes avatar-pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

@keyframes hero-photo-in {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.section-header h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0 0 16px;
}

.section-header p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 36px;
  line-height: 1.7;
}

.contact .section-header {
  text-align: center;
}

.contact .section-header p {
  margin: 0 auto 36px;
}

.grid {
  display: grid;
  gap: 20px;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.services-grid {
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 720px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.services .section-header h2 {
  position: relative;
  padding-bottom: 10px;
}

.services .section-header h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin-top: 12px;
  background: var(--primary);
  border-radius: 999px;
}

.services .service-card {
  padding: 22px;
  min-height: 210px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.services .service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(2, 8, 20, 0.35);
}

.services .service-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  margin-bottom: 14px;
  background: rgba(87, 181, 255, 0.1);
  border: 1px solid rgba(87, 181, 255, 0.2);
  display: grid;
  place-items: center;
  color: var(--primary);
  transition: background 0.25s ease;
}

.services .service-card:hover .service-icon {
  background: rgba(87, 181, 255, 0.2);
}

.services .service-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.services .service-card h3 {
  font-size: 0.98rem;
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
  margin: 0 0 12px;
}

.services .service-card p {
  font-size: 0.88rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  backdrop-filter: blur(16px);
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(87, 181, 255, 0.4);
  background: rgba(20, 30, 50, 0.75);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(87, 181, 255, 0.12);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 1.2rem;
  color: var(--primary);
}

.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.glass-card h3 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", sans-serif;
}

.glass-card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
}

.experience-column .section-header h2 {
  position: relative;
  padding-bottom: 10px;
}

.experience-column .section-header h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin-top: 12px;
  background: var(--primary);
}

.timeline {
  display: grid;
  gap: 20px;
  position: relative;
  padding-left: 20px;
  padding-right: 8px;
  border-left: 2px solid hsla(217, 91%, 60%, 0.2);
  max-height: 600px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: hsla(217, 91%, 60%, 0.35) transparent;
}

.timeline::before {
  content: none;
}

.timeline-card {
  position: relative;
  padding: 22px 22px 22px 26px;
}

.timeline-card h3 {
  margin: 6px 0 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 26px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.timeline-date {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: hsla(217, 91%, 60%, 0.8);
}

.timeline-company {
  display: block;
  margin-top: 4px;
  color: hsla(217, 91%, 60%, 0.8);
  font-size: 0.9rem;
}

.timeline-card ul {
  margin: 16px 0 0;
  padding-left: 0;
  color: var(--muted);
  list-style: none;
}

.timeline-card li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}

.timeline-card li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0.2em;
  font-size: 1rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.9;
}

.timeline::-webkit-scrollbar {
  width: 6px;
}

.timeline::-webkit-scrollbar-track {
  background: transparent;
}

.timeline::-webkit-scrollbar-thumb {
  background: hsla(217, 91%, 60%, 0.3);
  border-radius: 999px;
}

.tech-column .section-header h2 {
  position: relative;
  padding-bottom: 10px;
}

.tech-column .section-header h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin-top: 12px;
  background: var(--primary);
}

.tech-column {
  position: sticky;
  top: 96px;
  align-self: start;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.tech-tags span {
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-family: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.82rem;
  transition: border-color 0.3s ease, background 0.3s ease;
  cursor: default;
}

.tech-tags span:hover {
  border-color: hsla(217, 91%, 60%, 0.5);
}

.tech-panel {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0.6;
  filter: grayscale(1);
  border-radius: 12px;
}

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

.tech-icon {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.5);
}

.tech-icon svg {
  width: 40px;
  height: 40px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

@media (max-width: 640px) {
  .tech-panel {
    padding: 22px;
  }

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

  .tech-icon svg {
    width: 32px;
    height: 32px;
  }
}

.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
  justify-content: center;
}

.contact-card {
  text-align: center;
  padding: 32px 28px;
}

.contact-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: rgba(87, 181, 255, 0.14);
}

.contact-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.contact-action.revealed {
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(87, 181, 255, 0.6);
  background: rgba(87, 181, 255, 0.12);
  color: var(--text);
}

.site-footer {
  padding: 30px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

@media (max-width: 960px) {
  .nav-bar {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-links {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
  }

  .language-switcher {
    margin-left: auto;
  }

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .split {
    gap: 28px;
  }

  .hero {
    min-height: calc(90vh - 64px);
    padding-top: 44px;
    padding-bottom: 40px;
  }

  .container.hero-grid {
    margin-top: -12px;
  }

  .timeline {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }

  .tech-column {
    position: static;
    top: auto;
  }
}

@media (max-width: 640px) {
  .logo-image {
    width: 154px;
  }

  .nav-bar {
    gap: 14px;
    padding: 14px 0;
  }

  .language-option {
    min-width: 52px;
    padding: 5px 9px;
    font-size: 0.72rem;
  }

  .nav-links {
    gap: 14px;
    font-size: 0.75rem;
  }

  .nav-icons {
    gap: 14px;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
  }

  .hero-roles {
    min-height: clamp(2.5rem, 11vw, 3.1rem);
  }

  .rotating-role {
    font-size: clamp(1.6rem, 7.2vw, 2rem);
  }

  .hero-summary {
    font-size: 1.02rem;
    line-height: 1.6;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .tech-tags {
    gap: 8px;
  }

  .tech-tags span {
    font-size: 0.78rem;
    padding: 7px 10px;
  }

  .tech-panel {
    margin-top: 28px;
  }
}
