/* Strategic Consulting adapted as an individual portfolio for Hicham AIFOUT. */
:root {
  --navy-950: #050b14;
  --navy-900: #07111f;
  --navy-850: #0a1727;
  --navy-800: #0d1d30;
  --navy-750: #12253b;
  --slate-500: #71849a;
  --slate-300: #aebdca;
  --slate-200: #ced9e4;
  --white: #f8fbff;
  --cyan: #62d6ff;
  --cyan-soft: #b9edff;
  --cyan-dark: #0d789d;
  --line: rgba(174, 213, 232, 0.16);
  --panel: rgba(15, 31, 50, 0.84);
  --panel-strong: #0e2034;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --header-height: 124px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--navy-900);
  color: var(--slate-200);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: var(--cyan);
  color: var(--navy-950);
}

a {
  color: inherit;
}

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

button {
  font: inherit;
}

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

h1,
h2,
h3,
h4,
p,
ul {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--white);
  line-height: 1.12;
  text-wrap: balance;
}

h2 {
  margin-bottom: 1.15rem;
  font-size: clamp(2.1rem, 4.8vw, 3.85rem);
  letter-spacing: -0.045em;
}

h3 {
  letter-spacing: -0.025em;
}

section {
  position: relative;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.section-shell {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: clamp(5.5rem, 10vw, 8.5rem);
  position: relative;
  z-index: 2;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.8rem 1rem;
  transform: translateY(-180%);
  border-radius: 8px;
  background: var(--cyan);
  color: var(--navy-950);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--cyan) !important;
  outline-offset: 4px;
}

.navbar {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 11, 20, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar.is-scrolled {
  background: rgba(5, 11, 20, 0.98);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.24);
}

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

.nav-primary {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.logo-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), #6c8cff);
  color: var(--navy-950);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 28px rgba(98, 214, 255, 0.22);
}

.nav-tools,
.language-switch {
  display: flex;
  align-items: center;
}

.nav-tools {
  gap: 1.25rem;
}

.header-email {
  color: var(--slate-300);
  font-size: 0.88rem;
  text-underline-offset: 4px;
}

.header-email:hover {
  color: var(--white);
}

.language-switch {
  gap: 0.18rem;
  color: var(--slate-500);
}

.language-switch a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--slate-300);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.language-switch a:hover {
  color: var(--white);
  border-color: var(--line);
}

.language-switch a.is-active {
  border-color: rgba(98, 214, 255, 0.5);
  background: rgba(98, 214, 255, 0.1);
  color: var(--cyan);
}

.nav-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.nav-scroll::-webkit-scrollbar {
  display: none;
}

.nav-links {
  min-width: max-content;
  min-height: 53px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(0.35rem, 1.7vw, 2rem);
  list-style: none;
}

.nav-links a {
  height: 53px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: var(--slate-300);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a.active {
  border-bottom-color: var(--cyan);
}

.hero {
  min-height: max(720px, 100svh);
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 24%, rgba(98, 214, 255, 0.14), transparent 28%),
    linear-gradient(135deg, #050b14 0%, #0a192a 48%, #10263e 100%);
}

.hero::before,
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(183, 224, 242, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 224, 242, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 90%);
  mask-image: linear-gradient(to bottom, #000 20%, transparent 90%);
}

.hero-grid {
  min-height: max(720px, 100svh);
  padding-top: calc(var(--header-height) + 4.25rem);
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.hero-content {
  position: relative;
  z-index: 3;
  animation: heroEnter 0.8s ease both;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 0.65rem;
  color: var(--white);
  font-size: clamp(3rem, 7.4vw, 6.2rem);
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.hero-role {
  margin-bottom: 1.7rem;
  color: var(--cyan-soft);
  font-size: clamp(1.25rem, 2.55vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.hero-positioning {
  max-width: 680px;
  margin-bottom: 1.6rem;
  color: var(--slate-200);
  font-size: clamp(1rem, 1.65vw, 1.18rem);
  line-height: 1.72;
}

.hero-facts {
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
}

.hero-facts li,
.tech-tags li {
  border: 1px solid rgba(98, 214, 255, 0.22);
  border-radius: 999px;
  background: rgba(98, 214, 255, 0.07);
  color: var(--cyan-soft);
  font-size: 0.78rem;
  font-weight: 650;
}

.hero-facts li {
  padding: 0.48rem 0.8rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.84rem 1.18rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(98, 214, 255, 0.5);
  background: rgba(98, 214, 255, 0.09);
}

.button-primary {
  border-color: var(--cyan);
  background: var(--cyan);
  color: var(--navy-950);
  box-shadow: 0 14px 35px rgba(98, 214, 255, 0.17);
}

.button-primary:hover {
  border-color: var(--cyan-soft);
  background: var(--cyan-soft);
}

.button-arrow {
  font-size: 1.05em;
  line-height: 1;
}

.hero-visual {
  position: relative;
  z-index: 3;
  justify-self: end;
  width: min(100%, 430px);
}

.portrait-frame {
  position: relative;
  aspect-ratio: 0.98;
  padding: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(183, 237, 255, 0.22);
  border-radius: 38% 12% 32% 12%;
  background: linear-gradient(145deg, rgba(98, 214, 255, 0.15), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: -1;
  background: conic-gradient(from 90deg, transparent 0 35%, rgba(98, 214, 255, 0.34), transparent 58%);
  animation: rotateFrame 22s linear infinite;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  border-radius: 36% 10% 30% 10%;
  object-fit: cover;
  object-position: center;
}

.portrait-line {
  position: absolute;
  z-index: 2;
  inset: 1.7rem -1rem -1rem 1.7rem;
  border: 1px solid rgba(98, 214, 255, 0.32);
  border-radius: 38% 12% 32% 12%;
  pointer-events: none;
}

.experience-stamp {
  position: absolute;
  z-index: 4;
  right: -1rem;
  bottom: 1.5rem;
  width: 128px;
  height: 128px;
  display: grid;
  place-content: center;
  padding: 1rem;
  border: 1px solid rgba(98, 214, 255, 0.34);
  border-radius: 50%;
  background: rgba(5, 11, 20, 0.92);
  color: var(--white);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.experience-stamp strong {
  display: block;
  color: var(--cyan);
  font-size: 1.7rem;
  letter-spacing: -0.05em;
}

.geometric-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.geo-shape {
  position: absolute;
  opacity: 0.12;
  background: linear-gradient(135deg, var(--cyan), transparent 72%);
  animation: floatShape 13s ease-in-out infinite;
}

.geo-shape:nth-child(1) {
  top: 22%; left: 5%; width: 95px; height: 95px;
  clip-path: polygon(50% 0, 100% 25%, 86% 82%, 25% 100%, 0 42%);
}

.geo-shape:nth-child(2) {
  top: 16%; right: 12%; width: 110px; height: 110px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  animation-delay: -4s;
}

.geo-shape:nth-child(3) {
  bottom: 14%; left: 12%; width: 72px; height: 72px;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  animation-delay: -7s;
}

.geo-shape:nth-child(4) {
  right: 5%; bottom: 10%; width: 88px; height: 88px;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation-delay: -2s;
}

.geo-shape:nth-child(5) {
  top: 50%; left: 52%; width: 54px; height: 54px;
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  animation-delay: -9s;
}

.section-index {
  position: absolute;
  top: clamp(4rem, 7vw, 6rem);
  right: 0;
  margin: 0;
  color: rgba(174, 213, 232, 0.07);
  font-size: clamp(5.5rem, 14vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
  pointer-events: none;
}

.section-heading {
  max-width: 780px;
  position: relative;
  z-index: 2;
}

.section-heading > p:last-child,
.subsection-heading > p:last-child,
.contact-heading > p:last-child {
  max-width: 68ch;
  margin-bottom: 0;
  color: var(--slate-300);
  font-size: 1.03rem;
}

.services {
  background:
    linear-gradient(135deg, rgba(98, 214, 255, 0.025), transparent 44%),
    var(--navy-850);
}

.services::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.44;
  background-image: repeating-linear-gradient(135deg, rgba(98, 214, 255, 0.035) 0 1px, transparent 1px 30px);
}

.services-layout {
  margin-top: 3.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 390px);
  align-items: start;
  gap: clamp(2rem, 5vw, 4.2rem);
}

.services-content {
  min-height: 490px;
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(5, 11, 20, 0.66);
  box-shadow: var(--shadow);
}

.service-details {
  display: none;
}

.service-details.active {
  display: block;
  animation: panelIn 0.38s ease both;
}

.service-number {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(98, 214, 255, 0.34);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
}

.service-details h3 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.service-subtitle {
  margin-bottom: 1.35rem;
  color: var(--cyan-soft);
  font-size: 0.95rem;
  font-weight: 650;
}

.service-details > p {
  color: var(--slate-300);
}

.service-features {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.service-features li {
  position: relative;
  padding: 0.72rem 0 0.72rem 1.75rem;
  border-bottom: 1px solid rgba(174, 213, 232, 0.09);
  color: var(--slate-200);
}

.service-features li:last-child {
  border-bottom: 0;
}

.service-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: var(--cyan);
}

.service-tools {
  margin-top: 1.7rem;
  color: var(--slate-500);
  font-size: 0.84rem;
}

.service-tools strong {
  color: var(--slate-200);
}

.services-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.service-tab {
  width: 100%;
  min-height: 72px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(18, 37, 59, 0.48);
  color: var(--slate-300);
  cursor: pointer;
  text-align: left;
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.service-tab::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  transform: scaleY(0);
  background: var(--cyan);
  transition: transform 0.22s ease;
}

.service-tab:hover,
.service-tab[aria-selected="true"] {
  transform: translateX(6px);
  border-color: rgba(98, 214, 255, 0.35);
  background: rgba(98, 214, 255, 0.08);
  color: var(--white);
}

.service-tab[aria-selected="true"]::before {
  transform: scaleY(1);
}

.tab-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(98, 214, 255, 0.1);
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.tab-copy {
  min-width: 0;
}

.tab-copy strong,
.tab-copy span {
  display: block;
}

.tab-copy strong {
  color: inherit;
  font-size: 0.92rem;
}

.tab-copy span {
  margin-top: 0.2rem;
  color: var(--slate-500);
  font-size: 0.75rem;
  line-height: 1.35;
}

.about-section {
  overflow: hidden;
  background: linear-gradient(135deg, #0d2136 0%, #0b1828 55%, #10283f 100%);
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 86px);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
}

.about-content {
  position: relative;
  padding-left: 1.6rem;
}

.about-content::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--cyan), transparent 90%);
}

.about-content p:not(.eyebrow) {
  color: var(--slate-200);
  font-size: 1.02rem;
  line-height: 1.8;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.profile-stat,
.profile-pillar {
  border: 1px solid rgba(183, 237, 255, 0.15);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.profile-stat {
  grid-column: 1 / -1;
  padding: 2.2rem;
}

.profile-stat strong,
.profile-stat span {
  display: block;
}

.profile-stat strong {
  color: var(--cyan);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 850;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.profile-stat span {
  margin-top: 0.75rem;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-pillar {
  min-height: 150px;
  padding: 1.35rem;
}

.profile-pillar .pillar-mark {
  display: block;
  margin-bottom: 1.6rem;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.profile-pillar p {
  margin-bottom: 0;
  color: var(--slate-200);
  font-size: 0.92rem;
  line-height: 1.5;
}

.projects-section {
  background: var(--navy-900);
}

.projects-grid {
  margin-top: 3.6rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.project-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(18, 37, 59, 0.88), rgba(8, 18, 31, 0.9));
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(98, 214, 255, 0.35);
  box-shadow: var(--shadow);
}

.project-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.project-top {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.company-logo {
  width: 126px;
  height: 66px;
  display: grid;
  place-items: center;
  padding: 0.7rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-period {
  color: var(--slate-500);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: right;
}

.project-body {
  flex: 1;
  padding: 1.6rem;
}

.project-client {
  margin-bottom: 0.45rem;
  font-size: 1.55rem;
}

.project-role {
  margin-bottom: 1.35rem;
  color: var(--cyan-soft);
  font-size: 0.88rem;
  font-weight: 650;
}

.project-label {
  display: block;
  margin: 1.25rem 0 0.45rem;
  color: var(--slate-500);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-body p,
.project-actions li {
  color: var(--slate-300);
  font-size: 0.92rem;
}

.project-actions {
  margin: 0;
  padding-left: 1.15rem;
}

.project-actions li + li {
  margin-top: 0.38rem;
}

.tech-tags {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
}

.tech-tags li {
  padding: 0.35rem 0.6rem;
  font-size: 0.72rem;
}

.subsection-heading {
  max-width: 780px;
  margin-top: clamp(5rem, 10vw, 8rem);
}

.subsection-heading h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
}

.personal-grid {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.personal-card {
  min-height: 255px;
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #10243a, #091523);
}

.personal-card::after {
  content: attr(data-mark);
  position: absolute;
  right: -0.35rem;
  bottom: -1.35rem;
  color: rgba(98, 214, 255, 0.055);
  font-size: 7rem;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
}

.personal-card h4 {
  max-width: 16ch;
  margin-bottom: 0.85rem;
  font-size: 1.38rem;
}

.personal-card p {
  max-width: 56ch;
  margin-bottom: 1.25rem;
  color: var(--slate-300);
  font-size: 0.92rem;
}

.personal-card .tech-tags {
  position: relative;
  z-index: 2;
}

.experience-section {
  background:
    radial-gradient(circle at 12% 20%, rgba(98, 214, 255, 0.07), transparent 24%),
    var(--navy-850);
}

.timeline {
  max-width: 980px;
  margin: 3.7rem auto 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 145px;
  width: 1px;
  background: linear-gradient(to bottom, var(--cyan), var(--line) 12%, var(--line) 88%, transparent);
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 3.2rem;
  position: relative;
}

.timeline-item + .timeline-item {
  margin-top: 1.5rem;
}

.timeline-date {
  padding-top: 1.5rem;
  color: var(--cyan-soft);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.4;
  text-align: right;
}

.timeline-card {
  position: relative;
  padding: 1.5rem 1.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(7, 17, 31, 0.74);
}

.timeline-card::before {
  content: "";
  position: absolute;
  top: 1.8rem;
  left: -3.55rem;
  width: 11px;
  height: 11px;
  border: 3px solid var(--navy-850);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 1px rgba(98, 214, 255, 0.5);
}

.timeline-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.35rem;
}

.timeline-role {
  margin-bottom: 0.8rem;
  color: var(--cyan-soft);
  font-size: 0.88rem;
  font-weight: 650;
}

.timeline-summary {
  margin-bottom: 0;
  color: var(--slate-300);
  font-size: 0.93rem;
}

.timeline-card details {
  margin-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.timeline-card summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--cyan);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  list-style: none;
}

.timeline-card summary::-webkit-details-marker {
  display: none;
}

.timeline-card summary::after {
  content: "+";
  font-size: 1.2rem;
}

.timeline-card details[open] summary::after {
  content: "−";
}

.timeline-responsibilities {
  margin: 0 0 0.5rem;
  padding-left: 1.15rem;
  color: var(--slate-300);
  font-size: 0.9rem;
}

.timeline-responsibilities li + li {
  margin-top: 0.45rem;
}

.education-section {
  background: var(--navy-900);
}

.education-grid {
  margin-top: 3.4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.education-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.education-logo {
  height: 88px;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
}

.education-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.education-year {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.education-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.17rem;
}

.education-card p {
  margin-bottom: 0.35rem;
  color: var(--slate-300);
  font-size: 0.88rem;
}

.education-card small {
  color: var(--slate-500);
  font-size: 0.78rem;
}

.languages-block {
  margin-top: 3rem;
  padding-top: 2.3rem;
  border-top: 1px solid var(--line);
}

.languages-block h3 {
  margin-bottom: 1.4rem;
  font-size: 1.35rem;
}

.languages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.language-card {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(18, 37, 59, 0.48);
}

.language-card strong,
.language-card span {
  display: block;
}

.language-card strong {
  color: var(--white);
  font-size: 0.95rem;
}

.language-card span {
  margin-top: 0.2rem;
  color: var(--slate-500);
  font-size: 0.8rem;
}

.contact {
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(98, 214, 255, 0.15), transparent 28%),
    linear-gradient(135deg, #09192a, #102942);
}

.contact::before {
  background-size: 80px 80px;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 95%);
  mask-image: linear-gradient(to top, #000, transparent 95%);
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(370px, 1.1fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.contact-heading h2 {
  font-size: clamp(2.25rem, 5vw, 4.2rem);
}

.contact-card {
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border: 1px solid rgba(183, 237, 255, 0.18);
  border-radius: var(--radius-xl);
  background: rgba(5, 11, 20, 0.74);
  box-shadow: var(--shadow);
}

.contact-list {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.78rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-list span:first-child {
  color: var(--slate-500);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.contact-list span:last-child,
.contact-list a {
  color: var(--white);
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
}

.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  background: var(--navy-950);
}

.footer-content {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-identity {
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer p {
  margin: 0;
  color: var(--slate-500);
  font-size: 0.78rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--slate-300);
  font-size: 0.78rem;
  text-underline-offset: 4px;
}

.noscript {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 2000;
  padding: 1rem;
  border-radius: 10px;
  background: #fff;
  color: #111;
  text-align: center;
}

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.animate {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroEnter {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-24px) rotate(120deg); }
}

@keyframes rotateFrame {
  to { transform: rotate(360deg); }
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  :root { --header-height: 124px; }

  .nav-links { justify-content: flex-start; }

  .hero-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(250px, 0.82fr);
    gap: 2.5rem;
  }

  .experience-stamp {
    right: -0.5rem;
    width: 112px;
    height: 112px;
  }

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

  .services-tabs {
    order: -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-tab:hover,
  .service-tab[aria-selected="true"] {
    transform: translateY(-3px);
  }

  .tab-copy span { display: none; }

  .services-content { min-height: 0; }

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

  .about-content { max-width: 760px; }

  .about-visual { max-width: 700px; }

  .contact-shell {
    grid-template-columns: 1fr;
  }

  .contact-heading { max-width: 720px; }
}

@media (max-width: 720px) {
  :root { --header-height: 117px; }

  html { scroll-padding-top: calc(var(--header-height) + 12px); }

  section { scroll-margin-top: calc(var(--header-height) + 12px); }

  .section-shell,
  .nav-container,
  .footer-content {
    width: min(100% - 30px, 1200px);
  }

  .nav-primary { height: 64px; }

  .nav-links,
  .nav-links a { min-height: 52px; height: 52px; }

  .logo-name { font-size: 0.82rem; }

  .header-email { display: none; }

  .nav-tools { gap: 0; }

  .language-switch a { width: 40px; height: 40px; }

  .hero,
  .hero-grid { min-height: 0; }

  .hero-grid {
    padding-top: calc(var(--header-height) + 3.25rem);
    padding-bottom: 4.5rem;
    grid-template-columns: 1fr;
    gap: 2.7rem;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 14vw, 4.8rem);
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero-positioning { font-size: 1rem; }

  .hero-visual {
    width: min(84vw, 360px);
    justify-self: center;
  }

  .experience-stamp { right: -0.6rem; bottom: 0.6rem; }

  .section-index { right: 0.25rem; }

  .services-tabs {
    width: calc(100vw - 15px);
    margin-left: 0;
    padding: 0 15px 0 0;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
  }

  .services-tabs::-webkit-scrollbar { display: none; }

  .service-tab {
    width: min(78vw, 270px);
    min-height: 70px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .service-tab:hover,
  .service-tab[aria-selected="true"] { transform: none; }

  .services-content { padding: 1.4rem; }

  .about-content { padding-left: 1rem; }

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

  .project-card:last-child:nth-child(odd) { grid-column: auto; }

  .timeline::before { left: 5px; }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding-left: 1.5rem;
  }

  .timeline-date {
    padding-top: 0;
    text-align: left;
  }

  .timeline-card::before {
    top: -1.95rem;
    left: -1.79rem;
  }

  .timeline-item + .timeline-item { margin-top: 2rem; }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .section-shell { padding-block: 4.5rem; }

  .logo { gap: 0.55rem; }

  .logo-icon { width: 34px; height: 34px; border-radius: 9px; }

  .nav-links { gap: 1.05rem; }

  .nav-links a { font-size: 0.84rem; }

  .hero h1 { letter-spacing: -0.055em; }

  .hero-role { font-size: 1.22rem; }

  .hero-actions,
  .contact-actions { gap: 0.55rem; }

  .button {
    min-height: 47px;
    padding-inline: 0.95rem;
    font-size: 0.82rem;
  }

  .about-visual { grid-template-columns: 1fr; }

  .profile-stat { grid-column: auto; }

  .profile-pillar { min-height: 0; }

  .project-top {
    min-height: 105px;
    padding: 1.1rem;
  }

  .company-logo { width: 108px; height: 58px; }

  .project-body,
  .personal-card,
  .timeline-card,
  .education-card,
  .contact-card { padding: 1.25rem; }

  .education-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.9rem;
  }

  .education-logo { height: 70px; padding: 0.5rem; }

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

  .contact-list li { grid-template-columns: 1fr; gap: 0.2rem; }
}

@media (max-width: 350px) {
  .logo-name { font-size: 0.74rem; letter-spacing: 0.055em; }

  .language-switch a { width: 37px; }

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

  .project-period { font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}
