/* ---------- RESET & GLOBAL ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #03050a;
  background-image:
    radial-gradient(
      circle at 25% 10%,
      rgba(0, 180, 255, 0.12) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 75% 80%,
      rgba(180, 60, 255, 0.12) 0%,
      transparent 45%
    );
  color: #eef2f8;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  position: relative;
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

a {
  text-decoration: none;
  touch-action: manipulation;
}

/* ---------- NAVBAR (GLASS EFFECT) ---------- */
nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1000px;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow: hidden;
  height: auto;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, #5ef0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  flex-shrink: 1;
}

.nav-btn {
  padding: 0.5rem 1.3rem;
  font-size: 0.9rem;
  border-radius: 40px;
  color: white;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.nav-links a {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.nav-btn:hover {
  background: #5ef0ff;
  color: #03050a;
  border-color: #5ef0ff;
  transform: translateY(-2px);
}

/* ---------- SECTION LAYOUT ---------- */
section {
  padding: 90px 6%;
  position: relative;
  z-index: 2;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

/* ---------- BASE GLASS CARD STYLE ---------- */
.glass-card,
.skill-item,
.service-card,
.project-card,
.cert-card,
.filter-btn,
.years-box,
.company-card,
.graphic-card,
.behance-card {
  background: rgba(20, 30, 45, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 255, 255, 0.15);
  border-radius: 32px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
  transition: all 0.15s ease;
  outline: 1px solid rgba(94, 240, 255, 0.05);
  will-change: transform;
}

.glass-card:hover,
.skill-item:hover,
.service-card:hover,
.project-card:hover,
.company-card:hover,
.graphic-card:hover,
.behance-card:hover {
  border-color: #5ef0ff;
  transform: translateY(-4px) scale(1.02);
}

/* ---------- GRADIENT TEXT ---------- */
.gradient-text {
  background: linear-gradient(130deg, #00eaff, #0080ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  letter-spacing: 1px;
}

h1,
h2,
h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3rem;
  line-height: 1.2;
}

h2 {
  font-size: 3rem;
  margin-bottom: 3rem;
  display: inline-block;
  border-left: 6px solid #5ef0ff;
  padding-left: 1.5rem;
}

/* ---------- PROFILE IMAGE WITH HOVER ---------- */
.profile-wrapper {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.profile-wrapper {
  position: relative;
  padding: 20px;
}

.tech-badge {
  position: absolute;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(94, 240, 255, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5ef0ff;
  font-size: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 3;
  animation: gentleFloat 4s infinite ease-in-out;
}

.icon-1 {
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}
.icon-2 {
  top: 50%;
  right: -15%;
  animation-delay: 1s;
}
.icon-3 {
  bottom: 10%;
  left: -5%;
  animation-delay: 2s;
}

@keyframes gentleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 768px) {
  .tech-badge {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}
.profile-img {
  width: 300px;
  height: 340px;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(145deg, #1b3b4f, #2a1e3a);
  border: 3px solid rgba(94, 240, 255, 0.6);
  box-shadow: 0 0 50px #00ccff55;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.15s;
}

.profile-img:hover {
  border-radius: 50% 30% 50% 30% / 40% 50% 30% 60%;
}

/* ---------- TYPING ANIMATION ---------- */
#typing-line {
  font-size: 2rem;
  font-weight: 600;
  margin: 0.5rem 0 1rem;
  min-height: 3rem;
  background: linear-gradient(130deg, #00eaff, #0080ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.cursor {
  display: inline-block;
  width: 5px;
  height: 1.2em;
  background: #5ef0ff;
  margin-left: 5px;
  vertical-align: middle;
  animation: blink 1s infinite;
  box-shadow: 0 0 15px #5ef0ff;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------- HERO SECTION ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-left .badge-exp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 234, 255, 0.03);
  border: 1px solid rgba(0, 234, 255, 0.3);
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #a5f0ff;
  margin-top: 2rem;
  backdrop-filter: blur(12px);
  transition: all 0.15s ease;
}

.hero-left .badge-exp:hover {
  background: rgba(0, 234, 255, 0.1);
  border-color: #00eaff;
  transform: translateY(-2px);
}

.whatsapp-btn {
  background: rgba(37, 211, 102, 0.2);
  border: 1.5px solid #25d366;
  color: #fff;
  padding: 0.8rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(12px);
  margin-top: 2rem;
  transition: 0.15s;
}

.whatsapp-btn:hover {
  background: rgba(37, 211, 102, 0.3);
  transform: scale(1.05);
}

/* ---------- ABOUT SECTION ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.feature-badge {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.feature-item {
  background: rgba(94, 240, 255, 0.08);
  border-radius: 60px;
  padding: 0.5rem 1.8rem;
  border: 1px solid #5ef0ff;
}

.years-exp-box {
  background: linear-gradient(
    145deg,
    rgba(15, 42, 58, 0.4),
    rgba(21, 12, 43, 0.4)
  );
  backdrop-filter: blur(15px);
  border-radius: 28px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(0, 234, 255, 0.3);
  max-width: 180px;
  transition: all 0.15s ease;
  will-change: transform;
}

.years-exp-box span {
  background: linear-gradient(135deg, #00eaff, #0080ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  display: block;
  font-size: 2.5rem;
}

.years-exp-box:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #00eaff;
}

/* ---------- SKILLS SECTION ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.skill-item {
  background: rgba(20, 30, 45, 0.4);
  border: 1px solid rgba(94, 240, 255, 0.2);
  border-radius: 30px;
  padding: 1.5rem 1rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.15s ease;
  will-change: transform;
}

.skill-item:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #5ef0ff;
}

.skill-img {
  width: 70px;
  height: 70px;
  margin-bottom: 1rem;
  object-fit: contain;
  transition: transform 0.15s;
}

.skill-item:hover .skill-img {
  transform: scale(1.1) rotate(3deg);
}

.skill-item span {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

/* ---------- SERVICES SECTION ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  position: relative;
  padding: 3rem 2rem;
  text-align: center;
  overflow: hidden;
  transition: all 0.15s;
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  background: rgba(0, 234, 255, 0.05);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 1px solid rgba(0, 234, 255, 0.2);
  transition: all 0.15s;
}

.service-icon {
  font-size: 2.5rem;
  color: #00eaff;
  transition: all 0.15s;
}

.service-card:hover .icon-wrapper {
  transform: rotateY(180deg);
  background: #00eaff;
}

.service-card:hover .service-icon {
  color: #03050a;
}

.service-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #fff;
}

.service-card p {
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

.service-card-btn {
  display: inline-block;
  background: transparent;
  border: 1px solid #5ef0ff;
  color: #5ef0ff;
  padding: 0.7rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.15s;
}

.service-card-btn:hover {
  background: #5ef0ff;
  color: #03050a;
}

/* ---------- BACKEND PROJECTS ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  padding: 1.5rem;
  border-radius: 24px;
  transition: all 0.15s;
}

.project-img {
  height: 180px;
  border-radius: 16px;
  margin-bottom: 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-size: cover;
  background-position: center;
  transition: transform 0.15s;
}

.project-card:hover .project-img {
  transform: scale(1.02);
}

.project-card h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.8rem;
}

.project-links {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
}

.github-btn {
  flex: 1;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 234, 255, 0.3);
  padding: 0.6rem;
  border-radius: 12px;
  color: #fff;
  transition: 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.github-btn:hover {
  background: rgba(0, 234, 255, 0.1);
  border-color: #5ef0ff;
  transform: translateY(-2px);
}

/* ---------- GRAPHIC DESIGN PORTFOLIO ---------- */
.graphic-portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.graphic-card {
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(94, 240, 255, 0.2);
  cursor: pointer;
  transition: all 0.15s;
}

.graphic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.15s;
}

.graphic-card:hover {
  border-color: #5ef0ff;
  transform: scale(1.02);
}

.graphic-card:hover img {
  transform: scale(1.05);
}

/* ---------- FILTER BUTTONS ---------- */
.design-filters {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #2f323a;
  color: #ccc;
  padding: 0.6rem 1.5rem;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
  background: #5ef0ff;
  border-color: #5ef0ff;
  color: #03050a;
}

/* ---------- COMPANIES SECTION ---------- */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.company-card {
  padding: 2.5rem 2rem;
  text-align: center;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.15s ease;
  will-change: transform;
}

.company-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  object-fit: cover;
  border: 2px solid rgba(0, 234, 255, 0.2);
  padding: 5px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.15s;
}

.company-card h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1rem;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.stats .count {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  display: block;
}

.stats small {
  color: #9ca3af;
}

.company-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.company-link {
  font-size: 1.4rem;
  color: #cbd5e1;
  transition: all 0.15s;
}

.company-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(0, 234, 255, 0.3);
}

.company-card:hover .company-img {
  border-color: #00eaff;
  transform: rotate(5deg) scale(1.1);
}

.company-link:hover {
  color: #00eaff;
  transform: translateY(-3px);
}

/* ---------- BEHANCE SECTION ---------- */
.behance-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.behance-card {
  aspect-ratio: 16/9;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(94, 240, 255, 0.3);
  cursor: pointer;
  transition: all 0.15s;
}

.behance-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.behance-card:hover {
  transform: scale(1.02);
  border-color: #5ef0ff;
}

/* ---------- CERTIFICATES SECTION ---------- */
.cert-featured {
  margin-bottom: 3rem;
  padding: 2rem;
  border-radius: 32px;
  background: linear-gradient(
    145deg,
    rgba(20, 30, 45, 0.5),
    rgba(25, 22, 35, 0.5)
  );
  border: 1px solid rgba(94, 240, 255, 0.3);
  position: relative;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.cert-card {
  padding: 1.5rem;
  border-radius: 24px;
  background: rgba(20, 30, 45, 0.3);
  position: relative;
  overflow: hidden;
}

.cert-img {
  aspect-ratio: 16/11;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
  cursor: pointer;
  border: 1px solid rgba(94, 240, 255, 0.2);
  position: relative;
}

.cert-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.cert-img::after {
  content: '\f00e';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(94, 240, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.2s;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.cert-img:hover::after {
  opacity: 1;
}

.cert-img:hover img {
  transform: scale(1.1);
}

.cert-card h3 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.cert-card p {
  color: #cbd5e1;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
}

.view-btn {
  display: inline-block;
  border: 1px solid #5ef0ff;
  color: #5ef0ff;
  padding: 0.3rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  transition: 0.15s;
  cursor: pointer;
  background: transparent;
}

.view-btn:hover {
  background: #5ef0ff;
  color: #03050a;
}

.featured-grid .cert-card::before {
  content: '★ FEATURED';
  position: absolute;
  top: 15px;
  right: -30px;
  background: #5ef0ff;
  color: #03050a;
  padding: 0.2rem 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  transform: rotate(45deg);
  z-index: 2;
  pointer-events: none;
}

.featured-grid .cert-card {
  padding: 1.5rem;
  background: rgba(30, 40, 60, 0.4);
  border: 2px solid rgba(94, 240, 255, 0.3);
}

.featured-grid .cert-card h3 {
  font-size: 1.2rem;
}

.featured-grid .cert-card p {
  font-size: 0.95rem;
}

/* ---------- CV DOWNLOAD SECTION ---------- */
.cv-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  background: radial-gradient(
    circle at center,
    rgba(94, 240, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 60px;
  margin-top: 3rem;
}

.cv-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #00eaff, #5ef0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border: none;
}

.cv-btn {
  background: rgba(94, 240, 255, 0.1);
  border: 2px solid #5ef0ff;
  color: #fff;
  font-size: 1.2rem;
  padding: 0.8rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.cv-btn:hover {
  background: #5ef0ff;
  color: #03050a;
  transform: scale(1.05) translateY(-3px);
}

/* ---------- CONTACT SECTION ---------- */
.contact-container {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  color: #fff;
  text-decoration: none;
  transition: all 0.15s;
  gap: 10px;
}

.contact-item i {
  font-size: 2.5rem;
  transition: 0.15s;
}

.contact-item:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.05);
}

.whatsapp:hover {
  border-color: #25d366;
  color: #25d366;
}
.email:hover {
  border-color: #5ef0ff;
  color: #5ef0ff;
}
.linkedin:hover {
  border-color: #0077b5;
  color: #0077b5;
}
.github:hover {
  border-color: #fff;
  color: #fff;
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 3rem 0;
  margin-top: 5rem;
  position: relative;
  text-align: center;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(94, 240, 255, 0.3),
    transparent
  );
}

.footer span {
  color: #5ef0ff;
  font-weight: 700;
}

/* ---------- FLOATING WHATSAPP BUTTON ---------- */
.whatsapp-float {
  position: fixed !important;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 99999 !important;
  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    background 0.2s ease;
  contain: none;
  transform: translateZ(0) !important;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
}

/* ---------- GLIGHTBOX CUSTOMIZATION ---------- */
.gslide-title,
.gslide-description {
  display: none !important;
}

.gslide-image img {
  border-radius: 15px !important;
  border: 2px solid #5ef0ff !important;
}

.goverlay {
  background: rgba(0, 0, 0, 0.9) !important;
}

/* ---------- RESPONSIVE DESIGN ---------- */

@media (max-width: 1024px) {
  nav {
    width: 90%;
  }
  .nav-btn {
    padding: 0.4rem 1.1rem;
    font-size: 0.85rem;
  }
  h1,
  h2 {
    font-size: 2.8rem;
  }
  .profile-img {
    width: 280px;
    height: 320px;
  }
  .featured-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .nav-logo {
    font-size: 1rem;
  }
  .nav-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  .nav-links {
    gap: 5px;
  }
}

@media (max-width: 768px) {
  .tech-badge {
    animation: gentleFloatMobile 4s infinite ease-in-out !important;
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  section:first-of-type {
    padding-top: 120px;
  }
  nav {
    top: 10px;
    width: 95%;
    padding: 0.4rem 1rem;
  }
  .nav-container {
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .nav-btn {
    margin: 0 auto;
  }
  .nav-links {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }
  h1,
  h2 {
    font-size: 2.5rem;
  }
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .profile-img {
    width: 250px;
    height: 280px;
    margin: 0 auto;
  }
  .years-exp-box {
    margin: 0 auto;
  }
  .graphic-portfolio {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .featured-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  /* الجزء الخاص بتعطيل الـ Effects في الموبايل */
  .glass-card,
  .skill-item,
  .service-card,
  .project-card,
  .cert-card,
  .company-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  * {
    animation-duration: 0.8s;
  }

  .glass-card,
  .skill-item,
  .nav,
  section::before {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(10, 15, 25, 0.95) !important;
  }

  .glass-card:hover,
  .project-card:hover {
    transform: none !important;
  }
}

@media (max-width: 480px) {
  section:first-of-type {
    padding-top: 140px;
  }
  h1,
  h2 {
    font-size: 2rem;
  }
  .profile-img {
    width: 200px;
    height: 220px;
  }
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .graphic-portfolio {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

/* ----------- Performance Optimization & Globals ----------- */

.glass-card,
.skill-item,
.service-card,
.project-card,
.cert-card,
.company-card,
.graphic-card,
.profile-img,
.tech-badge {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform, opacity;
}

.glass-card,
.skill-item,
.service-card,
.project-card,
.nav {
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  background: rgba(10, 15, 25, 0.7) !important;
}

.nav-btn,
.filter-btn,
.github-btn,
.view-btn {
  transition:
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.2s ease !important;
}

@keyframes gentleFloatMobile {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-5px) rotate(5deg);
  }
}
