/* General icon box utility for all icon containers */
.icon-box {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  flex-shrink: 0;
  margin-bottom: 1rem;
}

/* General grid utility for all grid layouts */
.grid {
  display: grid;
  gap: 2rem;
}
/* ========================================================================== */

/* General Card Style for all cards (education, certification, expertise, project) */
.card {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px var(--shadow-light);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-medium);
  border-color: var(--primary-color);
}

/* Utilities, Animations, and Helpers */
/* NOTE: .fade-in, .slide-up, .scale-in are used by AOS or JS for dynamic animations */
/* ========================================================================== */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}
@keyframes fadeIn {
  to { opacity: 1; }
}

.slide-up {
  transform: translateY(30px);
  opacity: 0;
  animation: slideUp 0.8s ease forwards;
}
@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.scale-in {
  transform: scale(0.8);
  opacity: 0;
  animation: scaleIn 0.6s ease forwards;
}
@keyframes scaleIn {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
  z-index: 100;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.notification {
  border-radius: 8px;
  font-family: var(--font-primary);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.notification-content i {
  font-size: 1.1rem;
}

/* Dark Mode Adjustments */
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-input:focus {
  color: var(--text-primary) !important;
}