* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #fff;
  border-radius: 10px;
}

/* Firefox Support */
* {
  scrollbar-width: thin;
  scrollbar-color: #fff transparent;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  height: 100%;
}

body {
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  width: 100%;
  cursor: none;
  /* Custom cursor for entire page */
}

#field {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 400px;
  min-height: 400px;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: crosshair;
  pointer-events: none;
  /* Allow clicks to pass through to content */
}

.container {
  padding: 1rem 6rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media screen and (max-width: 1200px) {
  .container {
    padding: 1rem 3rem;
  }
}

@media screen and (max-width: 768px) {
  .container {
    padding: 1rem 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 1rem 1rem;
  }
}

.title {
  text-align: center;
  font-size: 3rem;
  font-weight: bold;
}

@media screen and (max-width: 768px) {
  .title {
    font-size: 2.2rem;
  }
}

@media screen and (max-width: 480px) {
  .title {
    font-size: 1.8rem;
  }
}


header {
  position: fixed;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  width: 100%;
  height: 80px;
  z-index: 10000;
  /* Keep header above canvas */
  background-color: rgba(0, 0, 0, 0.6);
  /* شفافية مع لون أسود خفيف */
  backdrop-filter: blur(12px);
  /* يعطي تأثير Blur جميل للـ background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

header.scrolled {
  background-color: rgba(0, 0, 0, 0.9);
  padding: 12px 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

header .logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

header .logo img {
  height: 40px;
  width: auto;
}

header .logo a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 1px;
}

header nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

header nav a {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  padding: 4px 0;
}

header nav a:hover {
  color: #fff;
}

/* Modern Hover Effect for Desktop */
header nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

header nav a:hover::after {
  width: 100%;
}

header nav a.active {
  color: #fff;
}

header nav a.active::after {
  width: 100%;
}

/* ============================
   Header Social Icons (extra-nav)
   ============================ */
header .extra-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

header .extra-nav.header-socials ul {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

header .extra-nav.header-socials ul li {
  list-style: none;
}

header .extra-nav.header-socials ul li a {
  width: 34px;
  height: 34px;
  background-color: #fff;
  text-align: center;
  line-height: 34px;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 2px solid #fff;
  z-index: 1;
  padding: 0;
  text-decoration: none;
}

header .extra-nav.header-socials ul li a .icon {
  position: relative;
  color: #262626;
  transition: 0.5s;
  z-index: 3;
}

header .extra-nav.header-socials ul li a:hover .icon {
  color: #fff;
  transform: rotateY(360deg);
}

header .extra-nav.header-socials ul li a:before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  transition: 0.5s;
  z-index: 2;
}

header .extra-nav.header-socials ul li a:hover:before {
  top: 0;
}

header .extra-nav.header-socials ul li:nth-child(1) a:before {
  background: #25D366;
}

header .extra-nav.header-socials ul li:nth-child(2) a:before {
  background: #0077b5;
}

header .extra-nav.header-socials ul li:nth-child(3) a:before {
  background: #333;
}

/* ============================
   Hamburger Menu
   ============================ */
header .hamburger-menu {
  cursor: pointer;
  display: none;
  z-index: 10001;
  position: relative;
  padding: 8px;
  transition: all 0.3s ease;
}

header .hamburger-menu:hover {
  transform: scale(1.1);
}

header .mobile-nav {
  display: none;
}

/* ============================
   Media Query - Mobile Menu
   ============================ */
@media screen and (max-width: 1024px) {
  header {
    padding: 16px 24px;
  }

  header nav,
  header .extra-nav {
    display: none;
  }

  header .hamburger-menu {
    display: block;
  }

  header .mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    z-index: 10000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  header .mobile-nav.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
    display: flex;
  }

  header .mobile-nav .close {
    position: absolute;
    top: 30px;
    right: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 5px;
    z-index: 10002;
  }

  header .mobile-nav .close:hover {
    transform: rotate(90deg) scale(1.1);
  }

  header .mobile-nav .close svg line {
    stroke: #fff;
    stroke-width: 2px;
  }

  header .mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-align: center;
    padding: 0;
  }

  header .mobile-nav ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 2.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
    position: relative;
  }

  header .mobile-nav ul li a:hover {
    color: #fff;
    transform: translateX(10px);
  }

  header .mobile-nav ul li a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
    transform: translateY(-50%);
  }

  header .mobile-nav ul li a:hover::after {
    width: 10px;
  }

  header .mobile-nav ul li {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  header .mobile-nav.show ul li {
    transform: translateY(0);
    opacity: 1;
  }

  header .mobile-nav.show ul li:nth-child(1) { transition-delay: 0.1s; }
  header .mobile-nav.show ul li:nth-child(2) { transition-delay: 0.15s; }
  header .mobile-nav.show ul li:nth-child(3) { transition-delay: 0.2s; }
  header .mobile-nav.show ul li:nth-child(4) { transition-delay: 0.25s; }
  header .mobile-nav.show ul li:nth-child(5) { transition-delay: 0.3s; }
  header .mobile-nav.show ul li:nth-child(6) { transition-delay: 0.35s; }
  header .mobile-nav.show ul li:nth-child(7) { transition-delay: 0.4s; }
}

.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
  /* Keep content above canvas */
}

.hero .container .content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.hero .container .content .text-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex: 1;
  gap: 8px;
}

.hero .container .content .image-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image {
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: contain;
  animation: floatImage 4s ease-in-out infinite;
  filter: grayscale(100%) drop-shadow(0 0 30px rgba(255, 255, 255, 0.08));
  transition: filter 0.4s ease;
}

.hero-image:hover {
  filter: grayscale(0%) drop-shadow(0 0 30px rgba(255, 255, 255, 0.08));
}

@media screen and (max-width: 992px) {
  .hero-image {
    max-width: 340px;
  }
}

@keyframes floatImage {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@media screen and (max-width: 992px) {
  .hero .container .content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .hero .container .content .text-content {
    align-items: center;
  }
}

.hero .container .content svg {
  margin-bottom: -3rem;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.hero .container .content svg text {
  text-transform: uppercase;
  font-weight: bold;
  font-size: clamp(60px, 15vw, 220px);
  animation: stroke 5s infinite alternate;
}

@media screen and (max-width: 1200px) {
  .hero .container .content svg {
    margin-bottom: -2rem;
  }
}

@media screen and (max-width: 768px) {
  .hero .container .content svg {
    margin-bottom: -1rem;
  }
}

@media screen and (max-width: 480px) {
  .hero .container .content svg {
    margin-bottom: -0.5rem;
  }

  .hero .container .content svg text {
    font-size: clamp(100px, 25vw, 200px);
  }
}

.hero .container .content h1 {
  text-align: left;
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.4;
  width: 100%;
  max-width: 900px;
}

@media screen and (max-width: 992px) {
  .hero .container .content h1 {
    text-align: center;
  }
}

@media screen and (max-width: 1200px) {
  .hero .container .content h1 {
    font-size: 1.8rem;
    width: 80%;
  }
}

@media screen and (max-width: 768px) {
  .hero .container .content h1 {
    font-size: 1.5rem;
    width: 90%;
  }
}

@media screen and (max-width: 480px) {
  .hero .container .content h1 {
    font-size: 1.2rem;
    width: 95%;
  }
}

.hero .container .content h1 span {
  background: #fff;
  color: #000;
  font-weight: bold;
  padding: 4px;
  border-radius: 8px;
}

.hero .container .content button {
  cursor: pointer;
  padding: 0.1em 0.25em;
  width: 13em;
  height: 4.2em;
  color: #fff;
  background-color: #000;
  border: 0.08em solid #fff;
  border-radius: 0.3em;
  font-size: 12px;
  margin-top: 20px;
}

.hero .container .content button span {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: 0.4em;
  width: 8.25em;
  height: 2.5em;
  background-color: #000;
  border-radius: 0.2em;
  font-size: 1.5em;
  border: 0.08em solid #fff;
  box-shadow: 0 0.4em 0.1em 0.019em #fff;
}

.hero .container .content button span:active {
  transition: all 0.5s;
  transform: translate(0, 0.4em);
  box-shadow: 0 0 0 0 #fff;
}

.hero .container .content button span:not(active) {
  transition: all 1d;
}

.hero .container .content .cv-button {
  cursor: pointer;
  padding: 0.1em 0.25em;
  width: 19em;
  /* Increased width to fit text - increased from 15em */
  height: 4.2em;
  color: #fff;
  background-color: #000;
  border: 0.08em solid #fff;
  border-radius: 0.3em;
  font-size: 12px;
  margin-top: 20px;
  text-decoration: none;
  display: flex;
  /* Use flexbox for better centering */
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Download buttons container */
.hero .container .content .download-buttons {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
  /* Allow wrapping on small screens */
}

@media screen and (max-width: 992px) {
  .hero .container .content .download-buttons {
    justify-content: center;
  }
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
  .hero .container .content .download-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

.hero .container .content .cv-button span {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: 0.4em;
  width: 100%;
  /* Fill parent width - removed fixed width */
  height: 2.5em;
  background-color: #000;
  border-radius: 0.2em;
  font-size: 1.5em;
  /* Removed border to prevent size increase - حذف الحدود لمنع زيادة الحجم */
  box-shadow: 0 0.4em 0.1em 0.019em #fff;
  white-space: nowrap;
  /* Prevent text wrapping */
}

.hero .container .content .cv-button span:active {
  transition: all 0.5s;
  transform: translate(0, 0.4em);
  box-shadow: 0 0 0 0 #fff;
}

.about {
  min-height: 100vh;
  padding: 3rem 0;
  width: 100%;
  overflow-x: hidden;
  position: relative;
  z-index: 10;
  /* Keep content above canvas */
}

.about .container .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.about .container .content .about-me {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.about .container .content .about-me .profile {
  flex: 0 0 380px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.about .container .content .about-me .profile .image-box {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
  background-color: #191919;
  border-radius: 16px;
  width: 100%;
  max-width: 380px;
  height: 480px;
  max-height: 90vh;
}

.about .container .content .about-me .profile .image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.about .container .content .about-me .profile .image-box:hover img {
  filter: grayscale(0);
}

.about .container .content .about-me .description {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about .container .content .about-me .description .name-role {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about .container .content .about-me .description .name-role h1 {
  font-weight: bold;
  font-size: 3rem;
}

@media screen and (max-width: 768px) {
  .about .container .content .about-me .description .name-role h1 {
    font-size: 2.2rem;
  }
}

@media screen and (max-width: 480px) {
  .about .container .content .about-me .description .name-role h1 {
    font-size: 1.8rem;
  }
}

.about .container .content .about-me .description .name-role .role {
  width: 100%;
  display: flex;
}

.about .container .content .about-me .description .name-role .role h2 {
  font-weight: 500;
  font-size: 2rem;
  padding: 4px 6px;
  background-color: #fff;
  border-radius: 8px;
  color: #000;
}

@media screen and (max-width: 768px) {
  .about .container .content .about-me .description .name-role .role h2 {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .about .container .content .about-me .description .name-role .role h2 {
    font-size: 1.2rem;
  }
}

.about .container .content .about-me .description p {
  font-size: 1.2rem;
  text-align: justify;
  line-height: 1.6;
}

@media screen and (max-width: 768px) {
  .about .container .content .about-me .description p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .about .container .content .about-me .description p {
    font-size: 0.95rem;
  }
}

.cyber-about-panel {
  width: 100%;
  max-width: 1180px;
}

.cyber-window {
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    rgba(0, 0, 0, 0.82);
  background-size: 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), inset 0 0 40px rgba(255, 255, 255, 0.035);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cyber-window:hover {
  border-color: rgba(39, 201, 63, 0.42);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), inset 0 0 42px rgba(39, 201, 63, 0.08);
}

.cyber-window-bar {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  gap: 14px;
  padding: 12px 16px;
}

.window-controls {
  display: flex;
  gap: 8px;
}

.window-controls span {
  border-radius: 50%;
  height: 11px;
  width: 11px;
}

.window-controls span:nth-child(1) { background: #ff5f56; }
.window-controls span:nth-child(2) { background: #ffbd2e; }
.window-controls span:nth-child(3) { background: #fff; }

.cyber-window:hover .window-controls span:nth-child(3) { background: #27c93f; }

.cyber-window-bar p {
  color: rgba(255, 255, 255, 0.72);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9rem;
  margin: 0;
}

.cyber-window-body {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.8fr) minmax(180px, 0.45fr);
  padding: 22px;
}

.ascii-profile {
  min-width: 0;
}

.ascii-profile pre {
  color: rgba(255, 255, 255, 0.82);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(0.72rem, 1.4vw, 1rem);
  line-height: 1.35;
  margin: 0;
  overflow: auto;
  text-align: left;
  text-shadow: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: pre;
}

.cyber-window:hover .ascii-profile pre {
  color: #27c93f;
  text-shadow: 0 0 18px rgba(39, 201, 63, 0.3);
}

.cyber-metrics {
  display: grid;
  gap: 12px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
}

.metric-card span {
  color: rgba(255, 255, 255, 0.58);
  display: block;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.metric-card strong {
  color: #fff;
  display: block;
  font-size: 1.05rem;
  margin: 6px 0 10px;
}

.metric-bar {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  height: 7px;
  overflow: hidden;
}

.metric-bar i {
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.45));
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.cyber-window:hover .metric-bar i {
  background: linear-gradient(90deg, #27c93f, #ffffff);
  box-shadow: 0 0 16px rgba(39, 201, 63, 0.35);
}

.cyber-graph {
  align-items: end;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  display: flex;
  gap: 8px;
  min-height: 210px;
  padding: 16px;
  transition: border-color 0.3s ease;
}

.cyber-window:hover .cyber-graph {
  border-color: rgba(39, 201, 63, 0.24);
}

.cyber-graph div {
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.24));
  border-radius: 999px 999px 0 0;
  box-shadow: none;
  flex: 1;
  min-width: 10px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.cyber-window:hover .cyber-graph div {
  background: linear-gradient(180deg, #fff, rgba(39, 201, 63, 0.45));
  box-shadow: 0 0 18px rgba(39, 201, 63, 0.18);
}

.cyber-workflow {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.cyber-workflow div {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
}

.cyber-workflow span {
  color: #27c93f;
  display: block;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.cyber-workflow strong {
  color: #fff;
  display: block;
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.cyber-workflow p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
}

@media screen and (max-width: 1024px) {
  .cyber-window-body {
    grid-template-columns: 1fr 1fr;
  }

  .cyber-graph {
    grid-column: 1 / -1;
    min-height: 150px;
  }

  .cyber-workflow {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 700px) {
  .cyber-window-body {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .cyber-window-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .ascii-profile pre {
    font-size: 0.68rem;
  }

  .cyber-graph {
    min-height: 130px;
  }

  .cyber-workflow {
    grid-template-columns: 1fr;
  }
}

.education,
.skill,
.project,
.services,
.contact {
  padding: 3rem 0;
  width: 100%;
  position: relative;
  z-index: 10;
  /* Keep content above canvas */
}

.education .container .content,
.skill .container .content,
.project .container .content,
.services .container .content,
.contact .container .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  width: 100%;
}

/* Education Grid Styles */
.education-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.edu-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.edu-card::after {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  bottom: 16px;
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  font-family: "Font Awesome 6 Free";
  font-size: 16px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  position: absolute;
  right: 16px;
  transition: all 0.3s ease;
  width: 38px;
}

.edu-card.edu-ongoing::after {
  content: "\f017";
}

.edu-card.edu-completed::after {
  content: "\f00c";
}

.edu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: #fff;
  transition: all 0.4s ease;
}

.edu-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.edu-card:hover::after {
  background: #fff;
  color: #000;
  transform: scale(1.08);
}

.edu-card:hover::before {
  height: 100%;
}

.edu-year {
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.edu-info h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.edu-info p {
  font-size: 1rem;
  color: #aaa;
  margin: 0;
}

.edu-info .option {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 8px;
  font-style: italic;
}

@media screen and (max-width: 1024px) {
  .education-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media screen and (max-width: 768px) {
  .education-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}


.skill .container .content .skills {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 50%;
}

@media screen and (max-width: 1200px) {
  .skill .container .content .skills {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 70%;
  }
}

@media screen and (max-width: 768px) {
  .skill .container .content .skills {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 90%;
  }
}

@media screen and (max-width: 480px) {
  .skill .container .content .skills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}

.skill .container .content .skills .skill-box {
  padding: 4px;
  border: 2px solid #fff;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  filter: grayscale(100);
  transition: all 0.2s linear;
}

.skill .container .content .skills .skill-box:hover {
  filter: grayscale(0);
  transform: scale(1.02);
  transition: all 0.2s linear;
}

.skill .container .content .skills .skill-box img {
  width: 100%;
  height: 75%;
}

.skill .container .content .skills .skill-box {
  position: relative;
}

.skill .container .content .skills .skill-box::after {
  background: #fff;
  border-radius: 6px;
  bottom: calc(100% + 10px);
  color: #000;
  content: attr(data-skill);
  font-size: 0.78rem;
  font-weight: 700;
  left: 50%;
  line-height: 1.2;
  opacity: 0;
  padding: 7px 10px;
  pointer-events: none;
  position: absolute;
  text-align: center;
  transform: translate(-50%, 6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  z-index: 20;
}

.skill .container .content .skills .skill-box::before {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #fff;
  bottom: calc(100% + 4px);
  content: "";
  left: 50%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, 6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}

.skill .container .content .skills .skill-box:hover::after,
.skill .container .content .skills .skill-box:hover::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.project .container .content .projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  width: 85%;
}

@media screen and (max-width: 1200px) {
  .project .container .content .projects {
    width: 95%;
  }
}

@media screen and (max-width: 900px) {
  .project .container .content .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  .project .container .content .projects {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

.services .container .content .services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  justify-content: center;
  gap: 30px;
  width: 90%;
}

@media screen and (max-width: 900px) {
  .services .container .content .services-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    width: 100%;
  }
}

.services .container .content .services-grid .card {
  padding: 16px;
  border: 2px solid #fff;
  border-radius: 12px;
  min-height: 500px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.services .container .content .services-grid .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.services .container .content .services-grid .card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.services .container .content .services-grid .card:hover img {
  filter: grayscale(0);
}

.services .container .content .services-grid .card .description {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.services .container .content .services-grid .card .description h3 {
  font-weight: bold;
  font-size: 24px;
  color: #fff;
}

.services .container .content .services-grid .card .description p {
  font-size: 16px;
  font-weight: 400;
  text-align: justify;
  line-height: 1.6;
  color: #ddd;
}

.services .container .content .services-grid .card .description .action {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}

.services .container .content .services-grid .card .description .action .btn-email,
.services .container .content .services-grid .card .description .action .btn-projects {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 12px;
  border: 2px solid #fff;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  flex: 1;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: 0.3s linear;
  white-space: nowrap;
}

.services .container .content .services-grid .card .description .action .btn-projects {
  background: #fff;
  color: #000;
}

.services .container .content .services-grid .card .description .action .btn-email:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.services .container .content .services-grid .card .description .action .btn-projects:hover {
  background: #eee;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Response for small screens */
@media screen and (max-width: 480px) {
  .services .container .content .services-grid .card .description .action {
    flex-direction: column;
    gap: 8px;
  }
  .services .container .content .services-grid .card .description .action .btn-email,
  .services .container .content .services-grid .card .description .action .btn-projects {
    width: 100%;
    flex: none;
  }
}



.project .container .content .projects .card {
  padding: 16px;
  border: 2px solid #fff;
  border-radius: 12px;
  height: 450px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

.project .container .content .projects .card img {
  width: 100%;
  height: 50%;
  object-fit: cover;
  border-radius: 8px;
}

.project .container .content .projects .card .description {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 50%;
}

.project .container .content .projects .card .description h1 {
  font-weight: bold;
  font-size: 28px;
}

.project .container .content .projects .card .description p {
  font-size: 18px;
  font-weight: 400;
  text-align: justify;
}

.project .container .content .projects .card .description .action {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.project .container .content .projects .card .description .action button {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  border: 2px solid #fff;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  width: 25%;
  transition: 0.3s linear;
}

.project .container .content .projects .card .description .action button:hover {
  background: #fff;
  color: #000;
  transition: 0.3s linear;
}



.contact .container .content .contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  width: 50%;
  border: 4px solid #fff;
  border-radius: 20px;
}

.project .projects .card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2);
  border-color: #ff4d5a;
  /* Optional color highlight */
}

.project .projects .card img {
  width: 100%;
  height: 50%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project .projects .card:hover img {
  transform: scale(1.05);
}

/* Buttons hover inside card */
.project .projects .card .action button {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  border: 2px solid #fff;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  width: 25%;
  transition: all 0.3s ease;
}

.project .projects .card .action button:hover {
  background: #fff;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3);
}

.contact .container .content .contact-form .input {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.contact .container .content .contact-form .input input {
  width: 49%;
  padding: 12px;
  background: transparent;
  border: 3px solid #fff;
  border-radius: 8px;
  color: #fff;
}

.contact .container .content .contact-form .input input:focus {
  outline: none;
}

.contact .container .content .contact-form textarea {
  resize: none;
  padding: 12px;
  height: 300px;
  background: transparent;
  border: 3px solid #fff;
  border-radius: 8px;
  color: #fff;
}

.contact .container .content .contact-form textarea:focus {
  outline: none;
}

.contact .container .content .contact-form button {
  cursor: pointer;
  padding: 12px;
  border: 3px solid #fff;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  transition: 0.3s linear;
  margin-top: 8px;
  width: 100%;
}

.contact .container .content .contact-form button:hover {
  background: #fff;
  color: #000;
}

footer {
  display: flex;
  align-items: center;
  width: 100%;
  border-top: 2px solid #fff;
  overflow-x: hidden;
}

footer .container {
  padding: 4rem;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  height: 100%;
  gap: 2rem;
  justify-content: space-between;
}

footer .container .profile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 30%;
}

footer .container .information,
footer .container .resource,
footer .container .navigation {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 20%;
}

footer .container .profile .logo {
  display: flex;
  align-items: center;
  gap: 4px;
}

footer .container .profile .logo img {
  width: 50px;
  height: 50px;
}

footer .container .profile .logo a {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
}

footer .container .profile p {
  font-weight: 400;
  margin-bottom: 8px;
  width: 300px;
  /* Fixed width as requested */
  line-height: 1.5;
}

footer .container .profile .social-media-container ul {
  display: flex;
  padding: 0;
  margin: 0;
}

footer .container .profile .social-media-container ul li {
  list-style: none;
}

footer .container .profile .social-media-container ul li a {
  width: 50px;
  height: 50px;
  background-color: #fff;
  text-align: center;
  line-height: 50px;
  font-size: 22px;
  margin: 0 6px;
  display: block;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 3px solid #fff;
  z-index: 1;
}

footer .container .profile .social-media-container ul li a .icon {
  position: relative;
  color: #262626;
  transition: .5s;
  z-index: 3;
}

footer .container .profile .social-media-container ul li a:hover .icon {
  color: #fff;
  transform: rotateY(360deg);
}

footer .container .profile .social-media-container ul li a:before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f00;
  transition: .5s;
  z-index: 2;
}

footer .container .profile .social-media-container ul li a:hover:before {
  top: 0;
}

footer .container .profile .social-media-container ul li:nth-child(1) a:before {
  background: #3b5999;
}

footer .container .profile .social-media-container ul li:nth-child(2) a:before {
  background: #e4405f;
}

footer .container .profile .social-media-container ul li:nth-child(3) a:before {
  background: #0077b5;
}

footer .container .profile .social-media-container ul li:nth-child(4) a:before {
  background: #333;
}



footer .container .information h1,
footer .container .resource h1,
footer .container .navigation h1 {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  height: 50px;
  display: flex;
  align-items: center;
}

footer .container .information ul,
footer .container .resource ul,
footer .container .navigation ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

footer .container .information ul li,
footer .container .resource ul li,
footer .container .navigation ul li {
  cursor: pointer;
}

footer .container .information ul li::after,
footer .container .resource ul li::after,
footer .container .navigation ul li::after {
  content: "";
  display: block;
  border-bottom: 3px solid #fff;
  width: 40%;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s linear;
  margin-top: 4px;
}

footer .container .information ul li:hover::after,
footer .container .resource ul li:hover::after,
footer .container .navigation ul li:hover::after {
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.6s linear;
}

footer .container .information ul li a,
footer .container .resource ul li a,
footer .container .navigation ul li a {
  color: #fff;
  text-decoration: none;
}

@keyframes stroke {
  0% {
    stroke: white;
    stroke-width: 0;
    stroke-dashoffset: 25%;
    stroke-dasharray: 0 50%;
  }

  70% {
    stroke: white;
  }

  80% {
    stroke: white;
    stroke-width: 3;
  }

  100% {
    stroke: white;
    stroke-width: 0;
    stroke-dashoffset: -25%;
    stroke-dasharray: 50% 0;
  }
}

@media screen and (max-width: 1536px) {
  footer .container {
    gap: 2rem;
  }
}


@media screen and (max-width: 1024px) {

  /* About */
  .about .container .content .about-me {
    flex-direction: column;
  }

  .about .container .content .about-me .profile,
  .about .container .content .about-me .description {
    width: 100%;
  }

  /* ... other existing 1024px styles ... */

  .about .container .content .about-me .profile .image-box {
    width: 90%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 3/4;
  }

  /* Contact */
  .contact .container .content .contact-form {
    width: 80%;
  }
}

@media screen and (max-width: 768px) {

  /* Projects */
  .project .container .content .projects {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  /* Contact */
  .contact .container .content .contact-form {
    width: 100%;
  }

  .contact .container .content .contact-form .input input {
    width: 100%;
  }

  /* Footer */
  footer .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
  }

  footer .container .profile,
  footer .container .information,
  footer .container .resource,
  footer .container .navigation {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  footer .container .profile p {
    width: 100%;
  }

  footer .container .profile .social-media-container ul {
    justify-content: center;
  }

  footer .container .information h1,
  footer .container .resource h1,
  footer .container .navigation h1 {
    justify-content: center;
  }

  footer .container .information ul,
  footer .container .resource ul,
  footer .container .navigation ul {
    align-items: center;
  }
}

@media screen and (max-width: 450px) {
  .about .container .content .about-me .profile .image-box {
    width: 100%;
  }

  .project .container .content .projects .card {
    height: auto;
    min-height: 400px;
  }

  .project .container .content .projects .card .description .action button {
    width: 48%;
    font-size: 14px;
    padding: 10px;
  }

  .contact .container .content .contact-form {
    padding: 12px;
  }
}

/* Professional polish layer */
:root {
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.095);
  --line: rgba(255, 255, 255, 0.14);
  --muted: rgba(255, 255, 255, 0.68);
  --soft: rgba(255, 255, 255, 0.42);
  --accent: #27c93f;
}

body {
  cursor: auto;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body::before {
  background:
    radial-gradient(circle at 20% 15%, rgba(39, 201, 63, 0.08), transparent 24%),
    radial-gradient(circle at 82% 22%, rgba(89, 166, 255, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 34%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

header {
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid var(--line);
}

header .logo a {
  font-size: 20px;
  letter-spacing: 0;
}

header nav {
  gap: 24px;
}

header nav a,
header .extra-nav a {
  font-size: 14px;
}

header .extra-nav a {
  border-color: var(--line);
  border-radius: 6px;
  padding: 9px 14px;
}

.hero {
  padding-top: 72px;
}

.hero .container .content {
  gap: 56px;
}

.hero-kicker {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  text-transform: uppercase;
}

.hero .container .content svg {
  margin-bottom: -2.4rem;
}

.hero .container .content h1 {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.45rem, 2.4vw, 2.45rem);
  line-height: 1.32;
  max-width: 820px;
}

.hero-highlights,
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-highlights span {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 9px 13px;
}

.hero-stats {
  gap: 14px;
  margin-top: 8px;
}

.hero-stats div {
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 142px;
  padding: 13px 15px;
}

.hero-stats strong {
  color: #fff;
  display: block;
  font-size: 1.45rem;
  line-height: 1;
}

.hero-stats span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 7px;
  text-transform: uppercase;
}

.hero .container .content .cv-button {
  border-color: var(--line);
  border-radius: 8px;
  height: 4em;
  margin-top: 0;
  width: 17.5em;
}

.hero .container .content .cv-button span {
  border: 1px solid var(--line);
  box-shadow: 0 0.32em 0 rgba(255, 255, 255, 0.88);
  font-size: 1.25em;
}

.hero .container .content .cv-button.primary-action {
  background: #fff;
  color: #000;
}

.hero .container .content .cv-button.primary-action span {
  background: #fff;
  color: #000;
}

.hero-image {
  max-width: 440px;
}

.title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0;
}

.about .container .content,
.education .container .content,
.skill .container .content,
.services .container .content,
.contact .container .content {
  gap: 42px;
}

.about .container .content .about-me {
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.about .container .content .about-me .profile .image-box,
.edu-card,
.services .container .content .services-grid .card,
.contact .container .content .contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.about .container .content .about-me .description p,
.services .container .content .services-grid .card .description p {
  color: rgba(255, 255, 255, 0.76);
  text-align: left;
}

.about .container .content .about-me .description .name-role .role h2,
.hero .container .content h1 span {
  border-radius: 6px;
}

.services .container .content .services-grid {
  width: 100%;
}

.services .container .content .services-grid .card {
  min-height: 460px;
  padding: 18px;
}

.services .container .content .services-grid .card img {
  border: 1px solid var(--line);
  height: 230px;
}

.services .container .content .services-grid .card .description .action .btn-email,
.services .container .content .services-grid .card .description .action .btn-projects,
.contact .container .content .contact-form button {
  border-radius: 6px;
}

.contact-intro {
  color: var(--muted);
  margin-top: -26px;
  max-width: 620px;
  text-align: center;
}

.contact .container .content .contact-form {
  max-width: 760px;
}

.contact .container .content .contact-form .input input,
.contact .container .content .contact-form textarea {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact .container .content .contact-form .input input:focus,
.contact .container .content .contact-form textarea:focus {
  border-color: rgba(39, 201, 63, 0.55);
  box-shadow: 0 0 0 3px rgba(39, 201, 63, 0.1);
}

footer {
  background: rgba(0, 0, 0, 0.72);
  border-top: 1px solid var(--line);
}

@media screen and (max-width: 992px) {
  .hero {
    padding-top: 92px;
  }

  .hero .container .content {
    gap: 34px;
  }

  .hero-stats {
    justify-content: center;
  }

  .about .container .content .about-me {
    padding: 16px;
  }
}

@media screen and (max-width: 560px) {
  header {
    height: 72px;
    padding: 14px 18px;
  }

  header .logo a {
    font-size: 17px;
  }

  .hero .container .content svg {
    margin-bottom: -0.8rem;
  }

  .hero-highlights span {
    font-size: 0.76rem;
    padding: 7px 10px;
  }

  .hero-stats div {
    flex: 1 1 100%;
    min-width: 0;
  }

  .hero .container .content .cv-button {
    width: min(100%, 19em);
  }
}

/* Cleaner hero after removing extra CTAs */
.hero .container .content .text-content {
  gap: 14px;
}

.hero .container .content .download-buttons {
  margin-top: 12px;
}

.hero .container .content svg {
  margin-bottom: -4rem;
}

@media screen and (max-width: 768px) {
  .hero .container .content .download-buttons {
    flex-direction: row;
    gap: 12px;
  }

  .hero .container .content svg {
    margin-bottom: -2.2rem;
  }
}

@media screen and (max-width: 560px) {
  .hero .container .content .download-buttons {
    flex-direction: column;
  }

  .hero .container .content svg {
    margin-bottom: -1.4rem;
  }
}

/* Final responsive sizing pass */
img,
svg,
video,
canvas {
  max-width: 100%;
}

@media screen and (max-width: 1280px) {
  .container {
    padding-left: clamp(2rem, 4vw, 4rem);
    padding-right: clamp(2rem, 4vw, 4rem);
  }

  .services .container .content .services-grid {
    width: 100%;
  }
}

@media screen and (max-width: 1024px) {
  .hero {
    min-height: auto;
    padding: 110px 0 54px;
  }

  .hero .container .content {
    flex-direction: column;
  }

  .hero .container .content h1 {
    width: min(100%, 780px);
  }

  .about {
    min-height: auto;
  }

  .about .container .content .about-me {
    align-items: center;
  }

  .skill .container .content .skills {
    width: min(100%, 620px);
  }

  .contact .container .content .contact-form {
    width: min(100%, 760px);
  }
}

@media screen and (max-width: 768px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  header .mobile-nav ul {
    gap: 24px;
  }

  header .mobile-nav ul li a {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .hero {
    padding-top: 96px;
  }

  .hero .container .content h1 {
    font-size: clamp(1.15rem, 4.5vw, 1.55rem);
    line-height: 1.45;
    width: 100%;
  }

  .hero .container .content .download-buttons {
    align-items: stretch;
    justify-content: center;
    width: 100%;
  }

  .hero .container .content .cv-button {
    flex: 1 1 220px;
    max-width: 280px;
  }

  .about .container .content .about-me {
    padding: 14px;
  }

  .cyber-window-body {
    gap: 14px;
  }

  .services .container .content .services-grid .card {
    min-height: auto;
  }

  .services .container .content .services-grid .card img {
    height: clamp(180px, 42vw, 240px);
  }

  footer .container {
    gap: 1.5rem;
  }
}

@media screen and (max-width: 520px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .title {
    font-size: 1.8rem;
  }

  .hero {
    padding-top: 86px;
  }

  .hero .container .content {
    gap: 22px;
  }

  .hero .container .content svg {
    margin-bottom: -1rem;
  }

  .hero .container .content .cv-button {
    max-width: 100%;
    width: 100%;
  }

  .about .container .content .about-me .profile .image-box {
    height: auto;
    max-height: none;
  }

  .skill .container .content .skills {
    gap: 10px;
  }

  .skill .container .content .skills .skill-box {
    height: 86px;
  }

  .skill .container .content .skills .skill-box::after {
    max-width: 150px;
    white-space: normal;
  }

  .contact .container .content .contact-form textarea {
    height: 220px;
  }

  footer .container .profile .social-media-container ul {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* Featured graduation project */
.soutenance { padding: 4rem 0; position: relative; z-index: 10; }
.soutenance .content { display: flex; flex-direction: column; gap: 42px; width: 100%; }
.soutenance-heading { align-items: center; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.soutenance-heading .title, .soutenance-heading p { margin: 0; }
.soutenance-heading > p { color: #00c2ff; font-family: "Courier New", monospace; letter-spacing: .08em; text-transform: uppercase; }
.soutenance-kicker { align-items: center; background: rgba(0,255,159,.08); border: 1px solid rgba(0,255,159,.3); border-radius: 999px; color: #00ff9f; display: inline-flex; font-size: .76rem; font-weight: 800; gap: 8px; letter-spacing: .1em; padding: 8px 13px; text-transform: uppercase; }
.sentinel-showcase { background: linear-gradient(135deg,rgba(0,255,159,.06),rgba(0,194,255,.025) 44%,rgba(255,255,255,.02)); border: 1px solid rgba(0,255,159,.2); border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.45); display: grid; gap: 44px; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); overflow: hidden; padding: 28px; position: relative; width: 100%; }
.sentinel-showcase::before { background-image: linear-gradient(rgba(0,255,159,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(0,255,159,.035) 1px,transparent 1px); background-size: 28px 28px; content: ""; inset: 0; pointer-events: none; position: absolute; }
.sentinel-visual,.sentinel-copy { min-width: 0; position: relative; z-index: 1; }
.sentinel-visual { align-self: center; background: #050807; border: 1px solid rgba(0,255,159,.28); border-radius: 16px; box-shadow: 0 0 42px rgba(0,255,159,.09); overflow: hidden; }
.sentinel-window-bar,.sentinel-status { align-items: center; display: flex; }
.sentinel-window-bar { background: #0a0d0c; border-bottom: 1px solid rgba(0,255,159,.16); gap: 7px; min-height: 42px; padding: 0 14px; }
.sentinel-window-bar > span { background: #00ff9f; border-radius: 50%; height: 8px; opacity: .75; width: 8px; }
.sentinel-window-bar > span:nth-child(2) { background: #00c2ff; } .sentinel-window-bar > span:nth-child(3) { background: #ff5b5b; }
.sentinel-window-bar code { color: rgba(255,255,255,.48); font-size: .68rem; margin-left: 8px; }
.sentinel-visual > img {
  display: block;
  filter: grayscale(1);
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
  transition: filter .45s ease, transform .55s ease;
  width: 100%;
}

.sentinel-visual:hover > img {
  filter: grayscale(0);
  transform: scale(1.015);
}
.sentinel-status { border-top: 1px solid rgba(0,255,159,.16); color: rgba(255,255,255,.62); font: .72rem "Courier New",monospace; justify-content: space-between; padding: 12px 14px; text-transform: uppercase; }
.sentinel-status span { align-items: center; display: flex; gap: 8px; } .sentinel-status span i { background: #00ff9f; border-radius: 50%; box-shadow: 0 0 10px #00ff9f; height: 7px; width: 7px; } .sentinel-status strong { color: #00ff9f; }
.sentinel-copy { align-items: flex-start; display: flex; flex-direction: column; justify-content: center; }
.sentinel-label { color: #00ff9f; font: .76rem "Courier New",monospace; letter-spacing: .12em; margin-bottom: 12px; text-transform: uppercase; }
.sentinel-copy h3 { color: #fff; font-size: clamp(1.55rem,2.4vw,2.35rem); line-height: 1.16; margin: 0 0 18px; }
.sentinel-copy > p { color: rgba(255,255,255,.68); line-height: 1.72; margin: 0; }
.sentinel-capabilities { display: grid; gap: 10px; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 24px 0 20px; width: 100%; }
.sentinel-capabilities > div { align-items: flex-start; background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; display: flex; gap: 10px; padding: 13px; }
.sentinel-capabilities i { color: #00c2ff; margin-top: 3px; } .sentinel-capabilities span { color: rgba(255,255,255,.5); font-size: .76rem; line-height: 1.45; } .sentinel-capabilities strong { color: #fff; display: block; font-size: .84rem; }
.sentinel-stack { display: flex; flex-wrap: wrap; gap: 7px; } .sentinel-stack span { border: 1px solid rgba(0,255,159,.22); border-radius: 999px; color: #00ff9f; font: .7rem "Courier New",monospace; padding: 6px 9px; }
.sentinel-note { align-items: flex-start; background: rgba(255,91,91,.07); border-left: 2px solid #ff5b5b; display: flex; gap: 10px; margin: 20px 0; padding: 11px 13px; }
.sentinel-note i { color: #ff5b5b; margin-top: 3px; } .sentinel-note p { color: rgba(255,255,255,.58); font-size: .74rem; line-height: 1.5; margin: 0; }
.sentinel-action { align-items: center; background: #00ff9f; border-radius: 9px; color: #020806; display: inline-flex; font-size: .82rem; font-weight: 800; gap: 9px; padding: 12px 15px; text-decoration: none; transition: .25s ease; }
.sentinel-action:hover { box-shadow: 0 0 24px rgba(0,255,159,.28); transform: translateY(-2px); }
@media screen and (max-width: 992px) { .sentinel-showcase { grid-template-columns: 1fr; } }
@media screen and (max-width: 600px) { .soutenance { padding: 3rem 0; } .soutenance-heading > p { font-size: .76rem; } .sentinel-showcase { border-radius: 18px; gap: 28px; padding: 14px; } .sentinel-capabilities { grid-template-columns: 1fr; } .sentinel-window-bar code { font-size: .55rem; } .sentinel-status { align-items: flex-start; flex-direction: column; gap: 7px; } }

/* Monochrome treatment shared with the rest of the portfolio. */
.soutenance-heading > p,
.soutenance-kicker,
.sentinel-label,
.sentinel-status strong,
.sentinel-capabilities i,
.sentinel-stack span { color: #fff; }
.soutenance-kicker { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.16); }
.sentinel-showcase { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.12); box-shadow: 0 24px 70px rgba(0,0,0,.4); }
.sentinel-showcase::before { background-image: linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px); }
.sentinel-visual { background: #080808; border-color: rgba(255,255,255,.14); box-shadow: 0 18px 42px rgba(0,0,0,.36); }
.sentinel-window-bar,.sentinel-status { border-color: rgba(255,255,255,.1); }
.sentinel-window-bar > span,
.sentinel-window-bar > span:nth-child(2),
.sentinel-window-bar > span:nth-child(3),
.sentinel-status span i { background: #fff; }
.sentinel-status span i { box-shadow: 0 0 9px rgba(255,255,255,.65); }
.sentinel-capabilities > div { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.1); transition: .25s ease; }
.sentinel-capabilities > div:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.22); transform: translateY(-3px); }
.sentinel-stack span { border-color: rgba(255,255,255,.16); }
.sentinel-note { background: rgba(255,255,255,.035); border-left-color: rgba(255,255,255,.55); }
.sentinel-note i { color: rgba(255,255,255,.72); }
.sentinel-action { background: #fff; color: #000; }
.sentinel-action:hover { background: #e9e9e9; box-shadow: 0 10px 28px rgba(255,255,255,.12); }

/* Blog page */
.blog-page {
  min-height: 100vh;
  padding-top: 110px;
  position: relative;
  z-index: 10;
}

.blog-hero .container {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.blog-kicker {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  text-transform: uppercase;
}

.blog-intro {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
  max-width: 680px;
}

.blog-list {
  padding: 42px 0 70px;
  position: relative;
  z-index: 10;
}

.blog-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.blog-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 250px;
  padding: 22px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.blog-card:hover {
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-5px);
}

.blog-category {
  align-self: flex-start;
  background: #fff;
  border-radius: 999px;
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 10px;
  text-transform: uppercase;
}

.blog-card h2 {
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.28;
  margin: 0;
}

.blog-card p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
  margin: 0;
}

.blog-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.52);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  gap: 10px;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
}

@media screen and (max-width: 768px) {
  .blog-page {
    padding-top: 92px;
  }

  .blog-list {
    padding-top: 30px;
  }
}

@media screen and (max-width: 520px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card {
    min-height: auto;
    padding: 18px;
  }
}
