/* ========== Reset ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: Arial, sans-serif;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    position: relative;
  }
  
  /* ========== Theme Variables ========== */
  body.light-mode {
    --bg-color: #f6faff;
    --text-color: #18233a;
    --muted-color: #6c7a96;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --card-bg: rgba(255, 255, 255, 0.88);
    --card-solid: #ffffff;
    --border-color: rgba(67, 111, 255, 0.2);
    --grid-color: rgba(67, 111, 255, 0.08);
    --primary-color: #2f6bff;
    --accent-color: #8d3dff;
    --glow-color: rgba(102, 120, 255, 0.18);
    --hover-shadow: 0 12px 28px rgba(67, 111, 255, 0.14);
    --card-hover-shadow: 0 22px 45px rgba(67, 111, 255, 0.17);
    --image-glow: 0 0 30px rgba(47, 107, 255, 0.34);
    --neutral-icon-color: #111111;

  }
  
  body.dark-mode {
    --bg-color: #0a1020;
    --text-color: #f2f6ff;
    --muted-color: #aeb9d3;
    --nav-bg: rgba(18, 27, 52, 0.94);
    --card-bg: rgba(13, 18, 45, 0.88);
    --card-solid: #0e1633;
    --border-color: rgba(67, 111, 255, 0.28);
    --grid-color: rgba(67, 111, 255, 0.08);
    --primary-color: #2f6bff;
    --accent-color: #9546ff;
    --glow-color: rgba(140, 80, 255, 0.16);
    --hover-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    --card-hover-shadow: 0 24px 52px rgba(0, 0, 0, 0.3);
    --image-glow: 0 0 32px rgba(47, 107, 255, 0.35);
    --neutral-icon-color: #ffffff;
  }
  
  body {
    background: var(--bg-color);
    color: var(--text-color);
  }
  
  /* ========== Global ========== */
  .container {
    width: min(1120px, 92%);
    margin: 0 auto;
    position: relative;
    z-index: 2;
  }
  
  .section {
    position: relative;
    z-index: 2;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  button {
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
  }
  
  /* ========== Background ========== */
  .page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-color: var(--bg-color);
    background-image:
      linear-gradient(var(--grid-color) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 48px 48px;
    overflow: hidden;
  }
  
  .shape {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    animation-fill-mode: forwards;
  }
  
  .shape-circle-top {
    width: 250px;
    height: 250px;
    border: 3px solid rgba(92, 132, 255, 0.2);
    border-radius: 50%;
    top: -50px;
    right: -50px;
    animation:
      shapeRevealTop 1.4s ease forwards,
      floatSlow 8s ease-in-out 1.4s infinite;
  }
  
  .shape-square-left {
    width: 160px;
    height: 220px;
    border: 3px solid rgba(162, 82, 255, 0.2);
    border-radius: 18px;
    left: -28px;
    top: 420px;
    transform: rotate(2deg);
    animation:
      shapeRevealLeft 1.4s ease 0.3s forwards,
      driftSlow 9s ease-in-out 1.7s infinite;
  }
  
  .shape-blob-bottom {
    width: 170px;
    height: 170px;
    background: rgba(140, 97, 255, 0.14);
    border-radius: 41% 59% 55% 45% / 42% 41% 59% 58%;
    right: 150px;
    bottom: 110px;
    animation:
      shapeRevealBottom 1.4s ease 0.6s forwards,
      blobFloat 7s ease-in-out 2s infinite;
  }
  
  /* ========== Header ========== */
  .header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 10px 0;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.02);
  }
  
  .header-content {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .home-header {
    justify-content: space-between;
  }
  
  .sub-header {
    justify-content: space-between;
  }
  
  .sub-header-nav-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    font-size: 18px;
    box-shadow: var(--hover-shadow);
  }
  
  .brand-name {
    font-size: 18px;
    font-weight: 700;
  }
  
  .navbar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--nav-bg);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 8px;
    box-shadow: var(--hover-shadow);
  }
  
  .nav-link {
    padding: 12px 20px;
    border-radius: 999px;
    color: var(--muted-color);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.35s ease;
  }
  
  .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .action-btn,
  .social-link {
    width: 44px;
    height: 44px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s ease;
    font-weight: 700;
    font-size: 17px;
  }
  
  .nav-link:hover,
  .nav-link.active,
  .action-btn:hover,
  .social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    box-shadow: 0 10px 22px rgba(107, 88, 255, 0.28);
    transform: translateY(-2px);
  }
  
  /* ========== Hero ========== */
  .hero {
    min-height: calc(75vh - 78px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 0 30px;
  }
  
  .hero-content {
    max-width: 760px;
  }
  
  .hero-image-wrapper {
    width: 190px;
    height: 190px;
    margin: 0 auto 22px;
    border-radius: 50%;
    padding: 5px;
    border: 4px solid var(--primary-color);
    box-shadow: var(--image-glow);
    animation: imageFloat 4.5s ease-in-out infinite;
    transition: transform 0.35s ease;
  }
  
  .hero-image-wrapper:hover {
    transform: scale(1.035);
  }
  
  .hero-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
  }
  
  .hero-greeting {
    font-size: 17px;
    color: var(--primary-color);
    margin-bottom: 14px;
  }
  
  .hero-title {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 10px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .hero-role {
    font-size: 26px;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 500;
  }
  
  .hero-description {
    max-width: 700px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.9;
    color: var(--muted-color);
  }
  
  /* ========== Section Heading ========== */
  .section-heading {
    text-align: center;
    margin-bottom: 34px;
  }
  
  .section-title {
    font-size: 40px;
    margin-bottom: 10px;
  }
  
  .section-subtitle {
    font-size: 18px;
    color: var(--muted-color);
  }
  
  /* ========== Tools ========== */
  .tools {
    padding: 20px 0 70px;
  }
  
  .tools-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    max-width: 860px;
    margin: 0 auto;
  }
  
  .tool-card {
    min-height: 112px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    box-shadow: var(--hover-shadow);
    transition: all 0.35s ease;
    backdrop-filter: blur(8px);
  }
  
  .tool-card i {
    font-size: 28px;
  }
  
  .tool-card span {
    font-size: 15px;
    font-weight: 700;
  }
  
  /* ========== Contact Page ========== */
  .contact-page {
    min-height: calc(100vh - 160px);
    padding: 40px 0 50px;
  }
  
  .contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 26px;
    align-items: start;
  }
  
  .contact-card {
    min-height: 250px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--hover-shadow);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    text-align: center;
    padding: 30px 20px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
  }
  
  .contact-icon {
    width: 78px;
    height: 78px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 12px 30px rgba(113, 79, 255, 0.25);
    transition: all 0.35s ease;
  }
  
  .contact-card h3 {
    font-size: 16px;
    color: var(--muted-color);
    font-weight: 600;
  }
  
  .contact-card p {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    word-break: break-word;
  }
  
  /* ========== Unified Box Hover ========== */
  .tool-card:hover,
  .contact-card:hover {
    transform: translateY(-8px);
    border-color: rgba(122, 88, 255, 0.5);
    box-shadow: var(--card-hover-shadow);
  }
  
  .contact-card:hover .contact-icon,
  .tool-card:hover i {
    transform: scale(1.06);
  }
  
  .contact-card::before,
  .tool-card::before {
    content: "";
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle, var(--glow-color), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
  }
  
  .contact-card:hover::before,
  .tool-card:hover::before {
    opacity: 1;
  }
  
  /* ========== Footer ========== */
  .footer {
    padding: 24px 0 22px;
    text-align: center;
  }
  
  .footer-content {
    border-top: 2px solid var(--primary-color);
    padding-top: 22px;
  }
  
  .footer-location {
    margin-bottom: 16px;
    font-size: 18px;
  }
  
  .footer-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
  }
  
  .footer-copy {
    font-size: 16px;
    color: var(--muted-color);
    font-weight: 600;
  }
  
  /* ========== Reveal Animations ========== */
  .reveal {
    animation: fadeUp 0.9s ease both;
  }
  
  .reveal-item {
    opacity: 0;
    animation: fadeUpSoft 0.8s ease forwards;
  }
  
  .reveal-item:nth-child(1) { animation-delay: 0.1s; }
  .reveal-item:nth-child(2) { animation-delay: 0.2s; }
  .reveal-item:nth-child(3) { animation-delay: 0.3s; }
  .reveal-item:nth-child(4) { animation-delay: 0.4s; }
  .reveal-item:nth-child(5) { animation-delay: 0.5s; }
  .reveal-item:nth-child(6) { animation-delay: 0.6s; }
  .reveal-item:nth-child(7) { animation-delay: 0.7s; }
  .reveal-item:nth-child(8) { animation-delay: 0.8s; }
  .reveal-item:nth-child(9) { animation-delay: 0.9s; }
  .reveal-item:nth-child(10) { animation-delay: 1s; }
  .reveal-item:nth-child(11) { animation-delay: 1.1s; }
  .reveal-item:nth-child(12) { animation-delay: 1.2s; }
  
  /* ========== Keyframes ========== */
  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes fadeUpSoft {
    from {
      opacity: 0;
      transform: translateY(22px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  
  @keyframes shapeRevealTop {
    0% {
      opacity: 0;
      transform: translateY(-60px) scale(0.9);
    }
    100% {
      opacity: 0.45;
      transform: translateY(0) scale(1);
    }
  }
  
  @keyframes shapeRevealLeft {
    0% {
      opacity: 0;
      transform: translateX(-60px) rotate(2deg) scale(0.92);
    }
    100% {
      opacity: 0.45;
      transform: translateX(0) rotate(2deg) scale(1);
    }
  }
  
  @keyframes shapeRevealBottom {
    0% {
      opacity: 0;
      transform: translateY(60px) scale(0.9);
    }
    100% {
      opacity: 0.45;
      transform: translateY(0) scale(1);
    }
  }
  
  @keyframes imageFloat {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-8px);
    }
  }
  
  @keyframes floatSlow {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(10px);
    }
  }
  
  @keyframes driftSlow {
    0%, 100% {
      transform: rotate(2deg) translateY(0);
    }
    50% {
      transform: rotate(2deg) translateY(-8px);
    }
  }
  
  @keyframes blobFloat {
    0%, 100% {
      transform: translateY(0) scale(1);
    }
    50% {
      transform: translateY(-8px) scale(1.02);
    }
  }


  /* ========== About Page ========== */
.about-page {
    padding: 40px 0 70px;
    min-height: calc(100vh - 160px);
  }
  
  .about-intro-card {
    max-width: 920px;
    margin: 0 auto 70px;
    min-height: 320px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    box-shadow: var(--hover-shadow);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    text-align: center;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
  }
  
  .about-intro-name {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .about-intro-role {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 700;
  }
  
  .about-intro-text {
    max-width: 900px;
    font-size: 20px;
    line-height: 2;
    color: var(--muted-color);
  }
  
  .training-section {
    margin-top: 10px;
  }
  
  .section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(47, 107, 255, 0.12);
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
  }
  
  .training-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 28px;
  }
  
  .training-card {
    min-height: 340px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow: var(--hover-shadow);
    backdrop-filter: blur(8px);
    padding: 28px 28px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
  }
  
  .training-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--text-color);
  }
  
  .training-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 14px;
    line-height: 1.8;
  }
  
  .training-date {
    font-size: 16px;
    color: var(--muted-color);
    font-weight: 700;
    margin-bottom: 18px;
  }
  
  .training-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  
  .training-list li {
    position: relative;
    color: var(--muted-color);
    font-size: 16px;
    line-height: 1.8;
    padding-inline-start: 22px;
  }
  
  .training-list li::before {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d7dbe5;
    top: 10px;
    inset-inline-start: 0;
  }
  
  .training-list li::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 2px;
    background: var(--accent-color);
    top: 11.5px;
    inset-inline-end: 0;
  }
  
  .training-card:hover,
  .training-card.active-card {
    transform: translateY(-8px);
    border-color: rgba(74, 123, 255, 0.7);
    box-shadow: var(--card-hover-shadow);
  }
  
  .training-card::before,
  .about-intro-card::before {
    content: "";
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle, var(--glow-color), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
  }
  
  .training-card:hover::before,
  .about-intro-card:hover::before,
  .training-card.active-card::before {
    opacity: 1;
  }

  .tool-card.excel i {
    color: #1d6f42;
  }
  
  .tool-card.tableau i {
    color: #f28c28;
  }
  
  .tool-card.powerbi i {
    color: #f2c811;
  }
  
  .tool-card.python i {
    color: #3776ab;
  }
  
  .tool-card.sql i {
    color: #0088aa;
  }
  
  .tool-card.sqlserver i {
    color: #d32f2f;
  }
  

.tool-card.scraping i,
.tool-card.wrangling i,
.tool-card.statistics i {
  color: var(--neutral-icon-color);
}
/* ========== Projects Page ========== */
.projects-page {
  padding: 40px 0 70px;
  min-height: calc(100vh - 160px);
}

.projects-main-title {
  font-family: 'Tajawal', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 13px;  
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


.projects-main-subtitle {
  font-size: 19px;
  color: var(--muted-color);
  text-align: center;
  line-height: 1.9;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 38px;
  margin-top: 55px;
  align-items: stretch;
}

.project-card {
  background: var(--card-solid);
  border: 1px solid rgba(74, 123, 255, 0.35);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(62, 103, 255, 0.08);
  position: relative;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(120, 100, 255, 0.16), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 50px rgba(90, 106, 255, 0.16);
  border-color: rgba(98, 110, 255, 0.55);
}

.project-cover {
  height: 280px;
  background: linear-gradient(135deg, #4f84ff, #e4489d);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.project-card:hover .project-cover img {
  transform: scale(1.05);
  filter: brightness(1.04);
}

.project-content {
  padding: 34px 34px 36px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(136, 126, 255, 0.14);
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 22px;
  width: fit-content;
}

.project-title {
  font-size: 23px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-color);
  transition: all 0.35s ease;
}

.project-card:hover .project-title {
  color: var(--primary-color);
}

.project-description {
  font-size: 17px;
  line-height: 1.9;
  color: var(--muted-color);
  margin-bottom: 24px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
  margin-top: auto;
}

.project-tag {
  padding: 11px 20px;
  color: var(--primary-color);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(147, 51, 234, 0.1));
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.3s ease;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.project-tag:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(109, 87, 255, 0.2);
}

.project-btn {
  width: fit-content;
  min-width: 178px;
  padding: 18px 28px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(97, 84, 255, 0.28);
  transition: all 0.35s ease;
  margin-top: 0;
}

.project-btn:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 20px 34px rgba(97, 84, 255, 0.35);
}

.project-btn i {
  font-size: 17px;
}
/* 
.projects-main-subtitle {
  font-size: 19px;
  color: var(--muted-color);
  text-align: center;
  line-height: 1.9;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 38px;
  margin-top: 55px;
}

.project-card {
  background: var(--card-solid);
  border: 1px solid rgba(74, 123, 255, 0.35);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(62, 103, 255, 0.08);
  position: relative;
  transition: all 0.4s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(120, 100, 255, 0.16), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 50px rgba(90, 106, 255, 0.16);
  border-color: rgba(98, 110, 255, 0.55);
}

.project-cover {
  height: 230px;
  background: linear-gradient(135deg, #4f84ff, #e4489d);
  position: relative;
  overflow: hidden;
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: fill; 
  display: block;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.project-card:hover .project-cover img {
  transform: scale(1.05);
  filter: brightness(1.04);
}

.project-content {
  padding: 34px 34px 36px;
  position: relative;
  z-index: 2;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(136, 126, 255, 0.14);
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.project-title {
  font-size: 23px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-color);
  transition: all 0.35s ease;
}

.project-card:hover .project-title {
  color: var(--primary-color);
}

.project-description {
  font-size: 17px;
  line-height: 1.9;
  color: var(--muted-color);
  margin-bottom: 24px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.project-tag {
  padding: 11px 20px;

  color: var(--primary-color);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(147, 51, 234, 0.1));
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.3s ease;
  border: 1px solid rgba(37, 99, 235, 0.2);
  
}

.project-tag:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(109, 87, 255, 0.2);
}

.project-btn {
  width: fit-content;
  min-width: 178px;
  padding: 18px 28px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(97, 84, 255, 0.28);
  transition: all 0.35s ease;
}

.project-btn:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 20px 34px rgba(97, 84, 255, 0.35);
}

.project-btn i {
  font-size: 17px;
}
 */

/* ========== Project Details Page ========== */
.project-details-page {
  padding: 40px 0 00px;
  min-height: calc(100vh - 160px);
}

.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 36px;
}

.project-image-card {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--hover-shadow);
  backdrop-filter: blur(8px);
  transition: all 0.35s ease;
  padding: 0;
}

.project-image-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow);
}

/* لو استخدمت صورة في مشروع تاني */
.project-image-card img {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: fill;
  border-radius: 28px;
}

/* Power BI iframe */
.project-image-card iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  background: #fff;
}

/* changed from grid to column layout */
.project-details-box {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: stretch;
}
.project-summary{
  margin: 32px 0px;
}

.project-summary,
.project-description-box {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  box-shadow: var(--hover-shadow);
  backdrop-filter: blur(8px);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.project-summary::before,
.project-description-box::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, var(--glow-color), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.project-summary:hover::before,
.project-description-box:hover::before {
  opacity: 1;
}

.project-details-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(136, 126, 255, 0.14);
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.project-details-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 18px;
  line-height: 1.4;
}

.project-details-short {
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted-color);
  margin-bottom: 22px;
}

.project-details-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-tool {
  padding: 10px 16px;
  border-radius: 12px;
  color: var(--primary-color);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(147, 51, 234, 0.1));
  border: 1px solid rgba(37, 99, 235, 0.2);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.project-tool:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  transform: translateY(-2px);
}

.project-description-box h3 {
  font-size: 24px;
  margin-bottom: 18px;
  color: var(--primary-color);
  font-weight: 800;
}

.project-description-box p {
  font-size: 17px;
  line-height: 2;
  color: var(--muted-color);
  margin-bottom: 18px;
}

.project-back-wrap {
  margin-top: 32px;
  display: flex;
  justify-content: flex-start;
}

.project-back-btn {
  width: fit-content;
  min-width: 180px;
  padding: 16px 24px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(97, 84, 255, 0.28);
  transition: all 0.35s ease;
}

.project-back-btn:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 20px 34px rgba(97, 84, 255, 0.35);
}

/* ========== Responsive Header / Navbar ========== */
@media (max-width: 768px) {
  .header {
    padding: 8px 0;
  }

  .header-content {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .sub-header,
  .home-header {
    justify-content: center;
  }

  .brand {
    justify-content: center;
  }

  .sub-header-nav-wrap {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .navbar {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 22px;
    padding: 10px;
    gap: 8px;
  }

  .nav-link {
    padding: 10px 16px;
    font-size: 14px;
  }

  .header-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .action-btn,
  .social-link {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .project-image-card {
    aspect-ratio: auto;
    border-radius: 20px;
  }

  .project-image-card img {
    border-radius: 20px;
  }

  .project-image-card iframe {
    height: 420px;
  }
}

@media (max-width: 600px) {
  .project-details-page {
    padding: 30px 0 0px;
  }

  .project-image-card {
    border-radius: 20px;
  }

  .project-image-card img {
    border-radius: 20px;
  }

  .project-image-card iframe {
    height: 320px;
  }

  .project-summary,
  .project-description-box {
    border-radius: 20px;
    padding: 20px;
  }

  .project-details-title {
    font-size: 22px;
  }

  .project-description-box h3 {
    font-size: 20px;
  }

  .project-description-box p,
  .project-details-short {
    font-size: 15px;
  }
}