/* ================= Global ================= */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at 20% 30%, #1e1b4b 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, #1e1b4b 0%, transparent 40%),
    linear-gradient(-45deg, #0f172a, #0f1523, #070910, #1a0f3d);
  background-size: 400% 400%;
  animation: gradientBG 25s ease infinite;
  color: #ffffff;
  cursor: none; /* Hide default cursor */
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3b82f6, #780fd8);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #60a5fa, #a855f7);
}

/* Noise Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: 0.05;
  pointer-events: none;
  z-index: 10000;
  filter: contrast(150%) brightness(100%);
}

h1,
h2,
h3,
.logo,
.section-title,
.title {
  font-family: "Outfit", sans-serif;
}

/* Custom Cursor */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: #3b82f6;
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
  transition: transform 0.1s ease;
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(59, 130, 246, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  z-index: 9998;
  pointer-events: none;
  transition: transform 0.15s ease-out;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #0f172a;
}

/* Start nav-bar*/
.modern-nav {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
  backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4, #780fd8);
  z-index: 2000;
  transition: width 0.1s ease;
}

.nav-container {
  width: 85%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo a {
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  letter-spacing: 1px;
}

.logo span {
  color: #3b82f6;
}

/* Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-links li a {
  text-decoration: none;
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  transition: 0.3s;
}

/* Animated underline */
.nav-links li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  transition: 0.3s ease;
  transform: translateX(-50%);
}

.nav-links li a:hover {
  color: #ffffff;
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Button (لو موجود) */
.nav-btn {
  padding: 8px 18px;
  border-radius: 30px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s ease;
}

.nav-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    flex-direction: column;
    text-align: center;
    padding: 25px 0;
    gap: 25px;
    transform: translateY(-200%);
    transition: 0.4s ease;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
  }
}
/* Floating Shapes */
.floating-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1),
    rgba(120, 15, 216, 0.1)
  );
  filter: blur(40px);
  animation: drift 20s infinite alternate ease-in-out;
}

.s1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}
.s2 {
  width: 400px;
  height: 400px;
  bottom: 10%;
  right: 10%;
  animation-delay: -5s;
}
.s3 {
  width: 250px;
  height: 250px;
  top: 40%;
  left: 50%;
  animation-delay: -10s;
}

@keyframes drift {
  from {
    transform: translate(0, 0) rotate(0deg);
  }
  to {
    transform: translate(50px, 50px) rotate(10deg);
  }
}

.project-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced Glassmorphism & Projects */
.project-card,
.education-card,
.training-card,
.certificate-card,
.chiled,
.soft-skill-card {
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease !important;
  position: relative;
  overflow: hidden;
}

/* Spotlight Glow Effect */
.project-card::before,
.education-card::before,
.training-card::before,
.certificate-card::before,
.chiled::before,
.soft-skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y),
    rgba(59, 130, 246, 0.1),
    transparent 40%
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.project-card:hover::before,
.education-card:hover::before,
.training-card:hover::before,
.certificate-card:hover::before,
.chiled:hover::before,
.soft-skill-card:hover::before {
  opacity: 1;
}

.project-card:hover,
.education-card:hover,
.training-card:hover,
.certificate-card:hover,
.chiled:hover,
.soft-skill-card:hover {
  border-color: rgba(59, 130, 246, 0.5) !important;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(59, 130, 246, 0.1) !important;
}

/* Magnetic Button Helper */
.view,
.down,
.contact-form button,
.nav-btn {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Start Hero Section  */
.hero-section {
  width: 80%;
  margin: 60px auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  gap: 20px;
}

.hero-section .left h1 {
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(90deg, #780fd8, #ff4d6d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-section .left p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 25px;
}

.hero-section .left .view,
.hero-section .left .down {
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.hero-section .left .view {
  background-color: #780fd8;
  color: #fff;
  text-decoration: none;
}

.hero-section .left .view:hover {
  background: linear-gradient(135deg, #780fd8, #ff4d6d);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(120, 17, 216, 0.5);
}
.typing-text::after {
  content: "|";
  margin-left: 5px;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.hero-section .left .down {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
}

.hero-section .left .down:hover {
  background: #fff;
  color: #0f1523;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.hero-section .left .linkedin-link {
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  background: #0077b5;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-section .left .linkedin-link:hover {
  background: #00a0dc;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 119, 181, 0.5);
}

/* Social row — appears below the main CTA buttons */
.hero-section .left .hero-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
      margin-left: 21px;
}

.hero-section .left .github-link-hero {
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  background: #333;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-section .left .github-link-hero:hover {
  background: #444;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(51, 51, 51, 0.5);
}

.hero-section .right {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  overflow: hidden;
  justify-self: end;
  position: relative;
  transition: all 0.4s ease;
}

.hero-section .right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.1);
}

.hero-section .right::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #780fd8, #ff4d6d);
  z-index: -1;
  opacity: 0.6;
  filter: blur(15px);
}

.hero-section .right:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 0 30px rgba(120, 17, 216, 0.4);
}
/* Responsive Hero */
@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    height: auto;
  }

  .hero-section .right {
    margin: 0 auto;
  }
}
/*End Hero Section  */

/* Start About Section  */
.about-section {
  width: 80%;
  max-width: 1200px;
  margin: 100px auto;
  display: grid;
  grid-template-columns: 25% 75%; /* خليت العمود الأيسر أصغر */
  align-items: center;
  gap: 30px;
  border-radius: 15px;
  padding: 20px;
  background: rgba(15, 15, 20, 0.8);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.about-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.about-section .left {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-image: url("/image/my-photo.png");
  background-size: cover;
  background-position: center;
  margin: 0 auto;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.about-section .left:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(120, 17, 216, 0.6);
}

/* ===== Right Content ===== */
.about-section .right {
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-section .right .title {
  font-size: 28px;
  font-weight: 700;
  color: #ff6b81;
  margin-bottom: 10px;
  text-transform: capitalize;
}

.about-section .right hr {
  width: 60%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 10px 0;
}

.about-section .right p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  font-size: 18px;
}

.about-section .right .info {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.about-section .right .info div {
  background: #090c14;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid rgba(15, 21, 35, 0.7);
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-section .right .info div:hover {
  background: linear-gradient(135deg, #780fd8, #ff4d6d);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(120, 17, 216, 0.6);
}

/* ================= Responsive ================= */
@media (max-width: 768px) {
  .about-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-section .left {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px auto;
  }

  .about-section .right .info {
    justify-content: center;
  }
}
/* End About Section  */

/*  Start  EDUCATION SECTION */

.education-section {
  background: #0f172a; /* Dark Navy Background */
  color: #cbd5e1;
  padding: 70px 0;
  font-family: "Segoe UI", sans-serif;
}

.section-title {
  text-align: center;
  font-size: 28px;
  color: #ffffff;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #3b82f6; /* Accent Blue */
  margin: 10px auto 0;
  border-radius: 2px;
}

.education-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  width: 85%;
  margin: auto;
}

.education-card {
  background: #1e293b;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: 0.4s;
}

.education-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px rgba(59, 130, 246, 0.4);
}
.edu-faculty {
  display: inline-block;
  background: #3b82f6; /* Accent Blue */
  color: #fff;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 12px;
  transition: 0.3s;
}

.education-card:hover .edu-faculty {
  background: #06b6d4; /* Hover Accent */
  transform: scale(1.05);
}

/* Card Title & Description */
.education-card h3 {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 8px;
}

.education-card p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
}

/*  RESPONSIVE */

@media (max-width: 768px) {
  .education-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}
/*end section education*/

/* Start Case Study Section  */
.case-study {
  width: 80%;
  max-width: 500px;
  margin: 100px auto;
  text-align: center;
}

.case-study .section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 50px;
  background: linear-gradient(90deg, #780fd8, #ff4d6d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.case-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.case-card {
  background: #0f1523;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.case-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.case-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #fff;
}

.case-card p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.case-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(120, 17, 216, 0.6);
}

.case-card:hover img {
  transform: scale(1.1);
}

/* Responsive Case Study */
@media (max-width: 768px) {
  .case-container {
    grid-template-columns: 1fr;
  }
}

/* Start Section Traninig */

.training-section {
  padding: 100px 8%;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  position: relative;
}

.training-section .section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 70px;
  color: #fff;
  position: relative;
}

.training-section .section-title::after {
  content: "";
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 5px;
}

.training-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.training-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 30px;
  border-radius: 20px;
  transition: 0.4s ease;
  position: relative;
  overflow: hidden;
}

.training-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9, transparent);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: 0.4s;
}

.training-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.training-card:hover::before {
  opacity: 1;
}

/* Institute */

.training-institute {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #38bdf8;
  margin-bottom: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.training-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #fff;
}

.training-card p {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.7;
}

/* Responsive */

@media (max-width: 768px) {
  .training-section {
    padding: 70px 5%;
  }

  .training-card {
    padding: 30px 20px;
  }
}
/* End Section Training*/

/*Start Section Certificates*/

.certificates-section {
  padding: 100px 8%;
  background: #0b1220;
  position: relative;
}

.certificates-section .section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 70px;
  color: #fff;
  position: relative;
}

.certificates-section .section-title::after {
  content: "";
  width: 70px;
  height: 4px;
  background: #38bdf8;
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 5px;
}

.certificates-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.certificate-card {
  background: linear-gradient(145deg, #111827, #1f2937);
  padding: 35px 25px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  transition: 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.certificate-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.certificate-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, #38bdf8 0%, transparent 70%);
  top: -60px;
  right: -60px;
  opacity: 0.15;
  transition: 0.4s;
}
.certificate-card:hover::before {
  opacity: 0.3;
}

.certificate-institute {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #38bdf8;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.certificate-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #fff;
}

.certificate-card p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
}
/* Responsive */
@media (max-width: 768px) {
  .certificates-section {
    padding: 70px 5%;
  }

  .certificate-card {
    padding: 30px 20px;
  }
}
/* End Section Certificates*/

/*Start section skills */
.skills-section {
  width: 80%;
  max-width: 1200px;
  margin: 50px auto;
  text-align: center;
}

.skills-section > p {
  font-size: 38px;
  font-weight: 900;
  color: #ff6b81;
  text-transform: capitalize;
  margin-bottom: 50px;
  letter-spacing: 2px;
  position: relative;
}

.skills-section > p::after {
  content: "";
  position: absolute;
  width: 0;
  height: 4px;
  left: 50%;
  bottom: -10px;
  background: #ff6b81;
  border-radius: 2px;
  transform: translateX(-50%);
  transition:
    width 0.5s ease,
    background 0.5s ease;
}

.skills-section > p:hover::after {
  width: 50%;
  background: #780fd8;
}

.parent {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.chiled {
  width: 250px;
  height: 250px;
  background: linear-gradient(145deg, #0f1523, #070910);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    background 0.4s ease;
  cursor: pointer;
}

.chiled:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(120, 17, 216, 0.5);
  background: linear-gradient(145deg, #780fd8, #ff4d6d);
}

.chiled img {
  width: 60px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.chiled:hover img {
  transform: rotate(15deg) scale(1.1);
}

.chiled .title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  text-transform: capitalize;
}

.skill-bar {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
}

.skill-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #780fd8;
  border-radius: 10px;
  transition: width 1s ease;
}

.chiled:hover .skill-bar span {
  width: 80%;
}

/* Responsive Skills */
@media (max-width: 992px) {
  .chiled {
    width: 45%;
  }
}

@media (max-width: 576px) {
  .chiled {
    width: 80%;
  }
}
/*End section skills */

/* ================= Soft Skills Section ================= */
.soft-skills-section {
  width: 80%;
  max-width: 1200px;
  margin: 100px auto;
  text-align: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.soft-skills-section > p {
  font-size: 38px;
  font-weight: 900;
  color: #ff6b81;
  margin-bottom: 50px;
  text-transform: capitalize;
  position: relative;
}

.soft-skills-section > p::after {
  content: "";
  position: absolute;
  width: 0;
  height: 4px;
  left: 50%;
  bottom: -10px;
  background: #780fd8;
  border-radius: 2px;
  transform: translateX(-50%);
  transition:
    width 0.5s ease,
    background 0.5s ease;
}

.soft-skills-section > p:hover::after {
  width: 50%;
  background: #ff4d6d;
}

.soft-skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* Card */
.soft-skill-card {
  width: 250px;
  background: linear-gradient(145deg, #0f1523, #070910);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    background 0.4s ease;
  cursor: pointer;
}

.soft-skill-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(120, 17, 216, 0.5);
  background: linear-gradient(145deg, #780fd8, #ff4d6d);
}

.soft-skill-card img {
  width: 60px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.soft-skill-card:hover img {
  transform: rotate(15deg) scale(1.1);
}

.soft-skill-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.soft-skill-card p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 992px) {
  .soft-skill-card {
    width: 45%;
  }
}

@media (max-width: 576px) {
  .soft-skill-card {
    width: 80%;
  }
}

/* Start Project Section */
.project-section {
  width: 80%;
  max-width: 1200px;
  margin: 80px auto;
  text-align: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.project-section > p {
  font-size: 38px;
  font-weight: 900;
  color: #ff6b81;
  margin-bottom: 50px;
  text-transform: capitalize;
  position: relative;
}

.project-section > p::after {
  content: "";
  position: absolute;
  width: 0;
  height: 4px;
  left: 50%;
  bottom: -10px;
  background: #780fd8;
  border-radius: 2px;
  transform: translateX(-50%);
  transition:
    width 0.5s ease,
    background 0.5s ease;
}

.project-section > p:hover::after {
  width: 50%;
  background: #ff4d6d;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.project-card {
  width: 300px;
  height: 450px;
  background: linear-gradient(145deg, #0f1523, #070910);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    background 0.4s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(120, 17, 216, 0.5);
  background: linear-gradient(145deg, #780fd8, #ff4d6d);
}

.project-card img {
  width: 100%;
  height: 50%;
  border-radius: 15px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.project-card:hover img {
  transform: scale(1.05) rotate(2deg);
}

.project-card .project-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  text-transform: capitalize;
}

.project-card .project-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.project-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.project-actions a {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.github-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.github-btn:hover {
  background: #fff;
  color: #0f1523;
  transform: translateY(-3px);
}

.demo-btn {
  background: #780fd8;
  color: #fff;
}

.demo-btn:hover {
  background: linear-gradient(135deg, #780fd8, #ff4d6d);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(120, 17, 216, 0.4);
}

/*  Responsive  */
@media (max-width: 992px) {
  .project-card {
    width: 45%;
  }
}

@media (max-width: 576px) {
  .project-card {
    width: 80%;
  }
}
/* end project section */

/*section contact */
/*  Contact Section  */
.contact {
  width: 80%;
  max-width: 1200px;
  margin: 100px auto;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
}

.contact > p {
  font-size: 38px;
  font-weight: 900;
  color: #ff6b81;
  margin-bottom: 50px;
  text-transform: capitalize;
  position: relative;
}

.contact > p::after {
  content: "";
  position: absolute;
  width: 0;
  height: 4px;
  left: 50%;
  bottom: -10px;
  background: #780fd8;
  border-radius: 2px;
  transform: translateX(-50%);
  transition:
    width 0.5s ease,
    background 0.5s ease;
}

.contact > p:hover::after {
  width: 50%;
  background: #ff4d6d;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

/* ================= Contact Form ================= */
.contact-form {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 10px rgba(120, 17, 216, 0.5);
}

.contact-form button {
  padding: 15px 25px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #780fd8, #ff4d6d);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(120, 17, 216, 0.5);
}

/* ================= Contact Info ================= */
.contact-info {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info div {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}
.contact-info a {
  text-decoration: none;
  font-size: 18px;
  color: #ffffff;
}

.contact-info div:hover {
  transform: translateY(-5px);
  background: linear-gradient(145deg, #780fd8, #ff4d6d);
  box-shadow: 0 15px 30px rgba(120, 17, 216, 0.5);
}

.contact-info h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-info p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
}

/* ================= Responsive ================= */
@media (max-width: 992px) {
  .contact-container {
    flex-direction: column;
    text-align: center;
  }

  .contact-form,
  .contact-info {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .contact-form button {
    width: 100%;
  }
}
/*section contact */

/* =========================
   MODERN FOOTER DESIGN
========================= */

.modern-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 80px 0 25px;
  font-family: "Segoe UI", sans-serif;
}

.footer-container {
  width: 85%;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 50px;
}

/* Brand */
.footer-brand h2 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 24px;
}

.footer-brand p {
  line-height: 1.7;
  color: #94a3b8;
}

/* Headings */
.footer-links h4,
.footer-contact h4 {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 16px;
  position: relative;
}

.footer-links h4::after,
.footer-contact h4::after {
  content: "";
  width: 40px;
  height: 3px;
  background: #3b82f6;
  position: absolute;
  left: 0;
  bottom: -8px;
  border-radius: 2px;
}

/* Links */
.footer-links a,
.footer-contact a {
  display: block;
  text-decoration: none;
  color: #94a3b8;
  margin-bottom: 14px;
  transition: 0.3s ease;
  font-size: 14px;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #3b82f6;
  padding-left: 6px;
}

/* Contact icons */
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact i {
  font-size: 14px;
  color: #3b82f6;
}

/* Bottom */
.footer-bottom {
  text-align: center;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid #1e293b;
  font-size: 13px;
  color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    text-align: center;
  }

  .footer-links h4::after,
  .footer-contact h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-contact a {
    justify-content: center;
  }
}
/* ================= GLOBAL RESPONSIVE ================= */
@media (max-width: 1200px) {
  .hero-section {
    width: 90%;
  }
  .about-section {
    width: 90%;
  }
  .skills-section {
    width: 90%;
  }
  .project-section {
    width: 90%;
  }
  .contact {
    width: 90%;
  }
}

/* ================= HERO SECTION ================= */
@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-section .left h1 {
    font-size: 36px;
  }
  .hero-section .left p {
    font-size: 16px;
  }
  .hero-section .right {
    width: 250px;
    height: 250px;
    margin: 0 auto;
  }
}

/* ================= ABOUT SECTION ================= */
@media (max-width: 992px) {
  .about-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-section .left {
    width: 130px;
    height: 130px;
    margin: 0 auto 20px auto;
  }
  .about-section .right .info {
    justify-content: center;
  }
}

/* ================= SKILLS SECTION ================= */
@media (max-width: 992px) {
  .chiled {
    width: 45%;
  }
}

@media (max-width: 576px) {
  .chiled {
    width: 80%;
  }
}

/* ================= PROJECT SECTION ================= */
@media (max-width: 992px) {
  .project-card {
    width: 45%;
  }
}

@media (max-width: 576px) {
  .project-card {
    width: 80%;
  }
}

/* ================= CONTACT SECTION ================= */
@media (max-width: 992px) {
  .contact-container {
    flex-direction: column;
    text-align: center;
  }
  .contact-form,
  .contact-info {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .contact-form button {
    width: 100%;
  }
}

/* ================= EDUCATION SECTION ================= */
@media (max-width: 992px) {
  .education-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

/* ================= CASE STUDY SECTION ================= */
@media (max-width: 992px) {
  .case-container {
    grid-template-columns: 1fr;
  }
}

/* ================= TRAINING SECTION ================= */
@media (max-width: 768px) {
  .training-section {
    padding: 70px 5%;
  }
  .training-card {
    padding: 30px 20px;
  }
}

/* ================= CERTIFICATES SECTION ================= */
@media (max-width: 768px) {
  .certificates-section {
    padding: 70px 5%;
  }
  .certificate-card {
    padding: 30px 20px;
  }
}

/* ================= FOOTER ================= */
@media (max-width: 768px) {
  .footer-container {
    text-align: center;
  }
  .footer-links h4::after,
  .footer-contact h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-contact a {
    justify-content: center;
  }
}

/* ================= NAVBAR MOBILE ================= */
@media (max-width: 768px) {
  .modern-nav {
    padding: 12px 0;
  }
  .nav-links {
    width: 100%;
    top: 65px;
  }
  .menu-toggle {
    display: flex;
  }
}

/* ================= GENERAL FONT ADJUST ================= */
@media (max-width: 576px) {
  body {
    font-size: 14px;
  }
  .hero-section .left h1 {
    font-size: 28px;
  }
  .hero-section .left p {
    font-size: 14px;
  }
  .skills-section > p,
  .project-section > p,
  .contact > p {
    font-size: 28px;
  }
}
