/* ======css reset=====/ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
/* body {
  margin: 0;
  overflow-x: hidden;
  background: #0d1117;
  color: #c9d1d9;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
} */
body {
  margin: 0;
  overflow-x: hidden;
  background: #0d1117;
  color: #c9d1d9;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative; /* ensure it acts as a containing block */
  z-index: 0;
}

/* Animated conic gradient glow overlay */
body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    #2ba74c 10%,
    transparent 30%,
    transparent 50%,
    #2ba74c 60%,
    transparent 80%,
    transparent
  );
  animation: spin-body 15s linear infinite;
  z-index: -1;
  opacity: 0.2;
  pointer-events: none;
}
@keyframes spin-body {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
/* =====accessibility=========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* ========focus styles for accessibility=========== */
*:focus {
  outline: 2px solid #58a6ff;
  outline-offset: 2px;
}
/* ==============Typography================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

a {
  color: #58a6ff;
  text-decoration: none;
  transition: all 0.3s ease box-shadow 0.2s ease;
}
a:hover {
  color: #79c0ff;
  text-decoration: underline;
}
/* ==========moblie navigation toogle===================== */
.mobile-nav-checkbox {
  display: none;
}

.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
  background: rgba(22, 27, 34, 0.95);
  border: 1px solid rgba(0, 255, 0, 0.2);
  border-radius: 8px;
  padding: 0.75rem;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  transition: all 0.3s ease;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: #2ba74c;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.mobile-nav-checkbox:checked + .mobile-nav-toggle .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-nav-checkbox:checked + .mobile-nav-toggle .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-nav-checkbox:checked + .mobile-nav-toggle .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* =============navigation=============== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(22, 27, 34, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 255, 0, 0.1);
  border-bottom: 1px solid rgba(0, 255, 0, 0.2);
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(13, 17, 23, 0.98);
  box-shadow: 0 4px 30px rgba(0, 255, 0, 0.2);
}
.navbar:hover {
  box-shadow: 0 4px 30px rgba(0, 255, 0, 0.2);
}
.nav-left {
  font: size 1.5rem;
  font-weight: 700;
  font-family: "JetBrains", monospace;
}
.navbar .portfolio {
  color: #2ba74c;
  text-shadow: 0 0 10px rgba(43, 167, 76, 0.5);
  transition: all 0.3s ease;
}
.navbar .portfolio:hover {
  text-shadow: 0 0 20px rgba(43, 167, 76, 0.5);
  transform: all 0.3s ease;
}
.nav-right .nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.navbar .nav-menu li a {
  font-size: 1rem;
  font-weight: 500;
  color: #c9d1d9;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.navbar .nav-menu li a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(43, 167, 76, 0.2));
  transition: left 0.5s ease;
}

.navbar .nav-menu li a.hover::before,
.navbar .nav-menu li a.active::before {
  left: 100%;
}
.navbar .nav-menu li a:hover,
.navbar .nav-menu li a.active {
  color: #2ba74c;
  background: rgba(43, 167, 76, 0.5);
  text-shadow: 0 0 10px rgba(43, 167, 76, 0.5);
  transform: translateY(-2px);
}

/* =======main section layout============== */
main {
  flex: 1;
  padding-top: 80px;
}
.section {
  min-height: 100vh;
  padding: 1rem 0;
  display: flex;
  align-items: center;
}
.page-container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
  width: 100%;
}
/* ============home section styles=========== */
.home-section {
  min-height: calc(100vh - 80px);
}
.terminal-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.person {
  flex: 1;
  max-width: 600px;
  background: linear-gradient(135deg, #161b22 0%, #1c2128 100%);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 255, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.person::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #2ba74c, transparent);
  animation: scan 8s linear infinite;
}
@keyframes scan {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
.typing-container {
  position: relative;
  z-index: 10;
}
.command-text {
  font-family: "JetBrains Mono", monospace;
  color: #2ba74c;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.command-output {
  font-family: "JetBrains Mono" monospace;
  color: #58a6ff;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: bolder;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1.2rem;
  background: #2ba74c;
  margin-left: 4px;
  animation: blink-caret 1s step-end infinite;
}
.whoami-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  line-height: 1.8;
  color: #79c0ff;
  white-space: pre-line;
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border-left: 3px solid #2ba74c;
}
@keyframes blink-caret {
  50% {
    background: transparent;
  }
}
.action-row {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.btn.download {
  background: linear-gradient(135deg, #1cbd47 0%, #238636 100%);
  color: #000;
  font-family: "JetBrains Mono", monospace;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(43, 167, 76, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 44px; /* touch target size */
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn.download::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}
.btn.download:hover::before {
  left: 100%;
}
.btn.download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 167, 76, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.social-icons {
  display: flex;
  gap: 2rem;
}
.social-icons .fa-brands {
  width: 50px;
  height: 30px;
  background: linear-gradient(135deg, #21262d 0%, #596475 100%);
  color: #58a6ff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(88, 166, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 44px; /*Touch target size*/
}
/* .social-icons .fa-brands::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(88, 166, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
} */
.social-icons .fa-brands::before {
  opacity: 1;
}
.social-icons .fa-brands:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(88, 166, 255, 0.4);
}
.fa-brands.fa-github {
  text-decoration: none;
  color: #03070c;
  box-shadow: 0 8px 25px rgba(21, 23, 39, 0.2),
    0 0 0 1px rgba(104, 113, 168, 0.3);
}
.fa-brands.fa-whatsapp {
  color: #10a848;
  box-shadow: 0 8px 25px rgba(21, 207, 64, 0.2),
    0 0 0 1px rgba(105, 168, 95, 0.3);
}
.fa-brands.fa-linkedin {
  color: #065bb0;
  box-shadow: 0 8px 25px rgba(10, 102, 194, 0.2),
    0 0 0 1px rgba(10, 102, 194, 0.3);
}

/* =========image section styling============ */
.image-section {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.box-image {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  padding: 8px;
  background: conic-gradient(
    from 0deg,
    #6bf38f,
    #7cb1ec,
    #35f167,
    #9cbadb,
    #96e1aa
  );
  animation: rotate 20s linear infinite;
}
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.item-image {
  position: relative;
  width: 100%;
  height: 100%;
  background: #161b22;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}
.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.1);
  transition: filter 0.3 ease;
}
.item-image:hover {
  filter: grayscale(0%) contrast(1.2);
}

/* ============ubuntu style page headers============== */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}
.page-title {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #2ba74c;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(59, 197, 96, 0.3);
}
.command-prompt {
  color: #58a6ff;
  font-weight: 400;
}
.page-subtitle {
  font-size: 1.5rem;
  color: #8b949e;
  font-weight: 300;
}
.section-title {
  font-size: 1.8rem;
  color: #f0f6fc;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
/* ============projects section============== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.project-card {
  background: linear-gradient(135deg, #161b22 0%, #1c2128 100%);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(94, 156, 227, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2ba74c, #58a6ff, #2ba74c);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.project-card:hover::before {
  transform: scaleX(1);
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(88, 149, 214, 0.2);
}
.project-header {
  margin-bottom: 1.5rem;
}
.project-title {
  font-size: 1.4rem;
  color: #f0f6fc;
  margin-bottom: 1rem;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  background: rgba(88, 166, 255, 0.1);
  color: #58a6ff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(88, 166, 255, 0.2);
  transition: all 0.3s ease;
}
.tag:hover {
  background: rgba(88, 166, 255, 0.2);
  transform: scale(1.05);
}
.project-content {
  margin-bottom: 1.5rem;
}
.project-description {
  color: #c9d1d9;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.project-features h3 {
  color: #f0f6fc;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.project-features ul {
  list-style: none;
  padding-left: 0;
}
.project-features li {
  color: #8b949e;
  margin-bottom: 0.3rem;
  position: relative;
  padding-left: 1.5rem;
}
.project-features li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #2ba74c;
  font-size: 0.8rem;
}
.project-footer {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
/* ===================certificates section layout============ */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.certificate-card {
  background: linear-gradient(135deg, #161b22 0%, #1c2128 100%);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 215, 0, 0.1);
  transition: all 0.3 ease;
  position: relative;
  overflow: hidden;
}
.certificate-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.certificate-card:hover::before {
  transform: scaleX(1);
}
.certificate-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 215, 0, 0.2);
}
.certificate-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.certificate-badge {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}
.badge-icon {
  font-size: 1.8rem;
}
.certificate-title {
  font-size: 1.3rem;
  color: #f0f6fc;
  margin-bottom: 0.5rem;
}
.certificate-issuer {
  color: #58a6ff;
  font-weight: 500;
}
.certificate-content {
  margin-bottom: 2rem;
}
.certificate-description {
  color: #c9d1d9;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.certificate-details {
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid #ffd700;
}
.detail-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.detail-item:last-child {
  margin-bottom: 0;
}
.detail-label {
  color: #8b949e;
  font-weight: 500;
}
.detail-value {
  color: #f0f6fc;
}
/* =========skills section styling======= */
.languages-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}
.skill-card {
  background: linear-gradient(135deg, #161b22 0%, #1c2128);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(88, 166, 255, 0.1);
  transition: all 0, 3s ease;
}
.skill-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(88, 166, 255, 0.2);
}
.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.skill-name {
  font-size: 1.3rem;
  color: #f0f6fc;
}
.skill-level {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
}
.skill-level.expert {
  background: rgba(43, 167, 76, 0.2);
  color: #2ba74c;
  border: 1px solid rgba(43, 167, 76, 0.3);
}
.skill-level.advanced {
  background: rgba(88, 166, 255, 0.2);
  color: #58a6ff;
  border: 1px solid rgba(88, 166, 255, 0.3);
}
.skill-level.intermediate {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
}
.skill-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(139, 148, 158, 0.2);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2ba74c, #58a6ff);
  border-radius: 4px;
  transition: width 0.8s ease;
  position: relative;
}
.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
  animation: shimmer 4s infinite;
}
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
.progress-percentage {
  font-family: "JetBraina Mono", monospace;
  color: #58a6ff;
  font-weight: 600;
  min-width: 40px;
}
.skill-description {
  color: #8b949e;
  line-height: 1.6;
  font-size: 0.9rem;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
/* ==========contact section styling========= */
.contact-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.contact-method {
  background: linear-gradient(135deg, #161b22 0%, #1c2128 100%);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(88, 166, 255, 0.1);
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}
.contact-method:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(88, 166, 255, 0.2);
}
.method-icon i {
  width: 50px;
  height: 30px;
  background: linear-gradient(135deg, #21262d 0%, #596475 100%);
  color: #58a6ff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(88, 166, 255, 0.2);
  transition: all 0.3s ease;
  /* position: relative; */
  overflow: hidden;
  /* min-height: 30px; */
  flex-shrink: 0;
}
.method-content {
  flex: 1;
}
.method-title {
  font-size: 1.2rem;
  color: #f0f6fc;
  margin-bottom: 0.5rem;
}
.method-description {
  color: #8b949e;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.method-link {
  color: #58a6ff;
  font-weight: 500;
  word-break: break-all;
}
.location-info {
  background: linear-gradient(135deg, #161b22 0%, #1c2128 100%);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(43, 167, 76, 0.1);
}
.location-title {
  font-size: 1.3rem;
  color: #f0f6fc;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.location-icon {
  font-size: 1.5rem;
}
.location-text {
  font-size: 1.1rem;
  color: #2ba74c;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.timezone-text {
  color: #8b949e;
  font-size: 0.9rem;
}
/* =================footer section styling============= */

.site-footer {
  background: #0d1117;
  border-top: ipx solid rgba(0, 255, 0, 0.2);
  padding: 2rem;
  text-align: center;
  color: #8b949e;
  margin-top: auto;
}
/* ===========making it responsive============== */
/* ======tablet like devices========== */
@media (max-width: 1024px) {
  .terminal-container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .person {
    max-width: 100%;
  }
  .box-image {
    width: 250px;
    height: 250px;
  }
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .certificates-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}
/* ============mobile like devices========== */
@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex;
  }
  .navbar {
    padding: 1rem;
  }
  .nav-left {
    font-size: 1.2rem;
  }
  .nav-right {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(13, 17, 23, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: right 0.3s ease;
    border-left: 1px solid rgba(0, 255, 0, 0.2);
  }

  .mobile-nav-checkbox:checked ~ header .nav-right {
    right: 0;
  }
  .nav-right .nav-menu li a {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    display: block;
    text-align: center;
  }
  main {
    padding-top: 70px;
  }
  .section {
    min-height: auto;
    padding: 3rem 0;
  }
  .page-container {
    padding: 1rem;
  }
  .terminal-container {
    padding: 0 1rem;
    gap: 2rem;
  }
  .person {
    padding: 1.5rem;
  }
  .command-text,
  .command-output {
    font-size: 1rem;
  }
  .whoami-text {
    font-size: 0.9rem;
    padding: 0.8rem;
  }
  .action-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  .social-icons {
    justify-content: center;
  }
  .box-image {
    width: 200px;
    height: 200px;
  }
  .page-title {
    font-size: 1.2rem;
    line-height: 1.4;
  }
  .page-subtitle {
    font-size: 1rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .project-card {
    padding: 1.5rem;
  }
  .project-footer {
    flex-direction: column;
    gap: 0.8rem;
  }
  .certificate-card {
    padding: 1.5rem;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .skill-card {
    padding: 1.5rem;
  }
  .skill-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .contact-methods {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .contact-method {
    padding: 1.5rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .method-icon i {
    margin: 0 auto;
  }
}
/* =========smaller mobiles================ */
@media (max-width: 480px) {
  .navbar {
    padding: 0.8rem;
  }
  .nav-left {
    font-size: 1rem;
  }
  .page-container {
    padding: 0.8rem;
  }
  .terminal-container {
    padding: 0 0.8rem;
  }
  .person {
    padding: 1rem;
  }
  .command-text,
  .command-output {
    font-size: 0.9rem;
  }
  .whoami-text {
    font-size: 0.8rem;
  }
  .btn.download {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  .social-icons .fa-brands {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  .box-image {
    width: 150px;
    height: 150px;
  }
  .page-title {
    font-size: 1rem;
  }
  .page-subtitle {
    font-size: 0.9rem;
  }
  .project-card,
  .certificate-card,
  .skill-card {
    padding: 1rem;
  }
  .contact-method {
    padding: 1rem;
  }
  .method-icon i {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    /* padding-left: 3rem; */
  }
}
/* ==========typing animation styles========= */
.typing-animation {
  border-right: 2px solid #2ba74c;
  animation: blink-caret 1s step-end infinite;
}

/* =======to improve transitions for all interactive elements========== */
* {
  -webkit-tap-highlight-color: transparent;
}
/* ========to improve touch targets for mobile======== */
@media (max-width: 768px) {
  a,
  button,
  .project-link,
  .verify-link,
  .btn {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
