:root {
  --accent: #00bcd4;
  --accent-2: #0097a7;
  --ink: #323232;
  --muted: #646464;
  --meta: #999999;
  --line: #dddddd;
  --track: #eeeeee;
  --surface: #ffffff;
  --radius: 4px;
  --font: "Cairo", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
  background: #fff;
  line-height: 1.65;
  min-height: 100vh;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #fff;
  display: grid;
  place-items: center;
  transition: opacity 0.4s, visibility 0.4s;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.double-bounce {
  width: 40px;
  height: 40px;
  position: relative;
}

.double-bounce span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
  animation: bounce 2s infinite ease-in-out;
}

.double-bounce span:last-child {
  animation-delay: -1s;
}

@keyframes bounce {
  0%, 100% { transform: scale(0); }
  50% { transform: scale(1); }
}

/* Background */
.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(to bottom right, rgba(0, 188, 212, 0.4), transparent 55%),
    linear-gradient(to top left, rgba(0, 151, 167, 0.25), #f5f5f5 50%);
}

.bg-bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bg-bubbles li {
  position: absolute;
  list-style: none;
  display: block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  bottom: -160px;
  animation: square 22s infinite linear;
  border-radius: 4px;
}

.bg-bubbles li:nth-child(1) { left: 10%; width: 50px; height: 50px; animation-delay: 0s; }
.bg-bubbles li:nth-child(2) { left: 20%; width: 28px; height: 28px; animation-delay: 2s; animation-duration: 14s; }
.bg-bubbles li:nth-child(3) { left: 25%; animation-delay: 4s; }
.bg-bubbles li:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; }
.bg-bubbles li:nth-child(5) { left: 70%; }
.bg-bubbles li:nth-child(6) { left: 80%; width: 90px; height: 90px; animation-delay: 3s; }
.bg-bubbles li:nth-child(7) { left: 32%; width: 100px; height: 100px; animation-delay: 7s; }
.bg-bubbles li:nth-child(8) { left: 55%; width: 25px; height: 25px; animation-delay: 15s; animation-duration: 30s; }
.bg-bubbles li:nth-child(9) { left: 25%; width: 15px; height: 15px; animation-delay: 2s; animation-duration: 28s; }
.bg-bubbles li:nth-child(10) { left: 90%; width: 70px; height: 70px; animation-delay: 11s; }

@keyframes square {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.7; }
  100% { transform: translateY(-120vh) rotate(600deg); opacity: 0; }
}

/* Page shell */
.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2vh 16px;
}

.container {
  position: relative;
  width: 100%;
  max-width: 1268px;
  height: 84vh;
  min-height: 560px;
}

/* Vertical header nav */
.header {
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  z-index: 20;
}

.menu-btn {
  display: none;
  width: 72px;
  height: 72px;
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.05);
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.menu {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.menu li + li a {
  border-top: 1px solid transparent;
  background-image: radial-gradient(ellipse at center, #ddd 0%, transparent 70%);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: top center;
}

.menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 72px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  transition: color 0.2s;
}

.menu a i {
  font-size: 18px;
}

.menu a:hover,
.menu a.is-active {
  color: var(--accent);
}

/* Profile card */
.card-started {
  position: absolute;
  top: 0;
  right: 88px;
  width: min(480px, calc(100% - 96px));
  height: 100%;
  z-index: 10;
}

.profile {
  position: relative;
  height: 100%;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.slide {
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 52%;
  background:
    linear-gradient(rgba(0, 188, 212, 0.18), rgba(0, 188, 212, 0.08)),
    linear-gradient(145deg, #006064, #0097a7 60%, #00bcd4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 40px;
  color: #fff;
  text-align: center;
}

.slide-content {
  position: relative;
  z-index: 3;
  padding: 0 1rem;
}

.slide::before,
.slide::after {
  content: "";
  position: absolute;
  bottom: -40px;
  width: 120%;
  height: 80px;
  background: var(--surface);
}

.slide::before {
  left: -10%;
  transform: rotate(8deg);
}

.slide::after {
  right: -10%;
  transform: rotate(-6deg);
}

.image {
  position: relative;
  z-index: 2;
  margin-top: 28%;
  width: 146px;
  height: 146px;
}

.image::before {
  content: "";
  position: absolute;
  top: 10px;
  right: -10px;
  width: 146px;
  height: 146px;
  background: rgba(0, 188, 212, 0.12);
  border-radius: 0;
  z-index: -1;
}

.img-placeholder {
  width: 146px;
  height: 146px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: linear-gradient(145deg, #00bcd4, #006064);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 3rem;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.image img {
  width: 146px;
  height: 146px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 5;
}

.profile .title {
  position: relative;
  z-index: 2;
  margin-top: 1rem;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--ink);
  padding: 0 1rem;
}

.subtitle {
  position: relative;
  z-index: 2;
  margin-top: 0.45rem;
  font-size: 16px;
  line-height: 20px;
  color: var(--accent);
  min-height: 20px;
}

.subtitle .cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-inline-start: 2px;
  vertical-align: -2px;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.social {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 1rem;
  margin-top: 1.1rem;
}

.social a {
  color: var(--ink);
  font-size: 16px;
  transition: color 0.2s;
}

.social a:hover {
  color: var(--accent);
}

.lnks {
  margin-top: auto;
  width: 100%;
  height: 70px;
  display: flex;
  border-top: 1px solid transparent;
  background-image: radial-gradient(ellipse at center, #ddd 0%, transparent 70%);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: top center;
}

.lnks .lnk {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.lnks .lnk:first-child {
  background-image: radial-gradient(ellipse at center, #ddd 0%, transparent 70%);
  background-size: 1px 100%;
  background-repeat: no-repeat;
  background-position: left center;
}

.lnks .lnk:hover {
  color: var(--accent);
}

/* Content cards */
.card-inner {
  position: absolute;
  top: 15px;
  left: 15px;
  right: calc(88px + min(480px, calc(100% - 96px)) + 15px);
  bottom: 15px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  z-index: 5;
}

.card-inner.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  z-index: 6;
}

.card-wrap {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 30px;
  scrollbar-width: thin;
}

.content + .content {
  margin-top: 2rem;
  padding-top: 0.5rem;
}

.content .title {
  position: relative;
  font-size: 20px;
  line-height: 21px;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 30px;
  min-height: 51px;
}

.content .title::before {
  content: "";
  position: absolute;
  right: -12px;
  top: -8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.15), rgba(0, 188, 212, 0.01));
}

.content .title span {
  position: relative;
}

.content .title span::first-letter {
  color: var(--accent);
}

.content .title::after {
  content: "";
  position: absolute;
  bottom: 15px;
  right: 0;
  left: 0;
  height: 1px;
  background: radial-gradient(ellipse at right, #ddd 0%, transparent 70%);
}

.text-box p {
  margin-bottom: 1rem;
}

.text-box strong {
  color: var(--ink);
  font-weight: 600;
}

.info-list ul {
  display: grid;
  gap: 0.65rem;
}

.info-list li {
  color: var(--muted);
}

.info-list strong {
  color: var(--ink);
}

.avail {
  color: var(--accent);
  font-weight: 600;
}

.lead-text {
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}

.col {
  padding: 0 12px;
  width: 100%;
}

.col-full { width: 100%; }
.col-half { width: 50%; }
.col-third { width: 33.333%; }

/* Offer tiles */
.pricing-item {
  text-align: center;
  padding: 1.5rem 0.75rem;
  position: relative;
}

.pricing .col-half:nth-child(odd) .pricing-item {
  background-image: radial-gradient(ellipse at center, #ddd 0%, transparent 70%);
  background-size: 1px 100%;
  background-repeat: no-repeat;
  background-position: left center;
}

.pricing-item .icon {
  font-size: 36px;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.pricing-item .name {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.pricing-item .lnk {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s;
}

.pricing-item .lnk:hover {
  color: var(--accent);
}

/* Fun facts */
.fuct-item {
  text-align: center;
  padding: 1rem 0.5rem;
}

.fuct-item .icon {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.fuct-item .name {
  font-size: 15px;
  color: var(--muted);
}

/* Services */
.service-item {
  padding: 1.25rem 0;
  position: relative;
}

.services .col-half:nth-child(odd) .service-item {
  background-image: radial-gradient(ellipse at center, #ddd 0%, transparent 70%);
  background-size: 1px 100%;
  background-repeat: no-repeat;
  background-position: left center;
}

.service-item .icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 0.85rem;
}

.service-item .name {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.service-item p {
  font-size: 15px;
  color: var(--muted);
}

/* Resume */
.resume-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5rem;
  padding-bottom: 0.85rem;
  background-image: radial-gradient(ellipse at right, #ddd 0%, transparent 70%);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: bottom center;
}

.resume-title i {
  font-size: 28px;
  color: var(--accent);
}

.resume-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid transparent;
  background-image: radial-gradient(ellipse at right, #ddd 0%, transparent 70%);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: bottom center;
}

.resume-item:last-child {
  background-image: none;
  padding-bottom: 0;
}

.resume-item .date {
  display: inline-block;
  font-size: 13px;
  line-height: 18px;
  color: #ccc;
  border: 1px solid #eee;
  padding: 0 6px;
  margin-bottom: 0.55rem;
  border-radius: 2px;
}

.resume-item.active .date {
  color: var(--accent);
  border-color: var(--accent);
}

.resume-item .name {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.resume-item .company {
  font-size: 14px;
  color: var(--meta);
  margin-bottom: 0.45rem;
}

.resume-item p {
  font-size: 14px;
}

/* Skills */
.skill-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin: 0.5rem 0 1rem;
}

.skill-title i {
  color: var(--accent);
}

.skills-list.circles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 0.75rem;
  margin-bottom: 1.5rem;
}

.skills-list.circles .skill-item {
  text-align: center;
}

.circle {
  width: 90px;
  height: 90px;
  margin: 0 auto 0.5rem;
  position: relative;
}

.circle svg {
  transform: rotate(-90deg);
  width: 90px;
  height: 90px;
}

.circle .bg {
  fill: none;
  stroke: #eee;
  stroke-width: 4;
}

.circle .fg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}

.circle .pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.skills-list.circles .skill-item > span:last-child,
.skills-list.circles .label {
  font-size: 13px;
  color: var(--muted);
}

.skills-list.list {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.skills-list.list li {
  position: relative;
  padding-inline-start: 1.25rem;
  font-size: 15px;
}

.skills-list.list li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset-inline-start: 0;
  color: var(--accent);
  font-size: 14px;
}

.skills-list.percent {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.skill-bar .name {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.skill-bar .progress {
  height: 5px;
  background: #eee;
  border-radius: 2px;
  overflow: hidden;
}

.skill-bar .progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

.skills-list.dotted {
  display: grid;
  gap: 1rem;
}

.skill-dot .name {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.skill-dot .dots {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.skill-dot .dots i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #eee;
  display: block;
}

.skill-dot .dots i.on {
  background: var(--accent);
}

/* Buttons / form */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.button:hover {
  background: var(--accent-2);
}

.button-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.button-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.cv-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.contact-form .group {
  margin-bottom: 0.85rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-social {
  margin-top: 1.25rem;
}

.contact-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff !important;
  display: grid;
  place-items: center;
}

.contact-social a:hover {
  background: var(--accent-2);
  color: #fff !important;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 100;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.06);
  color: #fff;
}

/* Responsive */
@media (max-width: 1120px) {
  body { overflow: auto; }

  .page {
    align-items: flex-start;
    padding: 16px;
  }

  .container {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .header {
    position: sticky;
    top: 0;
    right: auto;
    width: 100%;
    order: 0;
    z-index: 50;
    background: var(--surface);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  }

  .menu-btn {
    display: none;
  }

  .menu {
    display: flex;
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
    justify-content: space-around;
  }

  .menu li {
    flex: 1;
  }

  .menu li + li a {
    background-image: none;
    border-top: none;
  }

  .menu.is-open {
    display: flex;
  }

  .menu a {
    height: 64px;
    font-size: 11px;
  }

  .card-started {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: auto;
    order: 1;
  }

  .profile {
    height: auto;
    min-height: 520px;
  }

  .image {
    margin-top: 160px;
  }

  .card-inner {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    order: 2;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .card-inner.is-active {
    display: block;
  }

  .card-wrap {
    height: auto;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 680px) {
  .col-half,
  .col-third {
    width: 100%;
  }

  .pricing .col-half:nth-child(odd) .pricing-item,
  .services .col-half:nth-child(odd) .service-item {
    background-image: none;
  }

  .menu.is-open {
    display: flex;
  }

  .profile .title {
    font-size: 24px;
  }

  .cv-links {
    grid-template-columns: 1fr;
  }

  .card-wrap {
    padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-bubbles li,
  .double-bounce span,
  .subtitle .cursor {
    animation: none !important;
  }
}
