/* ============ Base ============ */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* ============ Education View More/Less ============ */
.edu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #22d3ee;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.edu-toggle:hover {
  color: #67e8f9;
}
.edu-toggle.open i {
  transform: rotate(180deg);
}
.edu-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.edu-details.hidden {
  display: none;
}
.edu-details li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.5;
}
.edu-details li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: #22d3ee;
}

/* ============ Nav ============ */
.glass {
  background: rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-link {
  position: relative;
  transition: color 0.25s ease;
}
.nav-link:hover {
  color: #22d3ee;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #22d3ee, #3b82f6);
  transition: width 0.25s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* ============ Glass cards (used across Education / Skills / Contact) ============ */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 10px 40px -12px rgba(34, 211, 238, 0.25);
}

/* ============ Social icons ============ */
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  transition: all 0.25s ease;
}
.social-icon:hover {
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.4);
  color: #22d3ee;
  transform: translateY(-2px);
}

/* ============ Typing cursor ============ */
.typed-cursor {
  animation: blink 0.8s infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ============ Skills ============ */
.skill-icon {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
}

.tag-pill {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.tag-pill-outline {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.06);
}

/* ============ Projects ============ */
.filter-pill {
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
  cursor: pointer;
}
.filter-active {
  background: linear-gradient(90deg, #22d3ee, #3b82f6);
  color: #020617;
  font-weight: 600;
  border-color: transparent;
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 10px 40px -12px rgba(34, 211, 238, 0.25);
}

/* ============ Certifications ============ */
.cert-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.cert-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 10px 40px -12px rgba(34, 211, 238, 0.25);
}
.cert-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.6rem;
  background: rgba(34, 211, 238, 0.1);
  color: #22d3ee;
  display: flex;
  align-items: center;
  justify-content: center;
}
.date-pill {
  font-size: 0.65rem;
  padding: 0.3rem 0.6rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  white-space: nowrap;
}
.cert-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  padding: 0.6rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}
.cert-btn:hover {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.4);
  color: #22d3ee;
}

/* ============ Contact ============ */
.contact-info-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
}
.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  background: rgba(34, 211, 238, 0.12);
  color: #22d3ee;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.6rem;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  color: white;
  outline: none;
  transition: border-color 0.2s ease;
}
.form-input::placeholder {
  color: #64748b;
}
.form-input:focus {
  border-color: rgba(34, 211, 238, 0.5);
}

/* ============ Responsive tweaks ============ */
@media (max-width: 768px) {
  #mobileMenu.open {
    display: flex;
  }
}
