@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: 
    radial-gradient(ellipse at 20% 0%, rgba(26, 26, 46, 0.8) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(22, 33, 62, 0.6) 0%, transparent 50%),
    #0a0a0f;
  color: #f8fafc;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated background orbs */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

body::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
  top: -200px;
  left: -100px;
  animation: float 20s ease-in-out infinite;
}

body::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
  bottom: -150px;
  right: -100px;
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection styling */
::selection {
  background: rgba(99, 102, 241, 0.3);
  color: #f8fafc;
}

/* Certification card styles */
.cert-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.cert-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.cert-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.cert-card .cert-info h4 {
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cert-card .cert-info h4 a {
  color: #38bdf8;
  text-decoration: none;
  transition: color 0.2s;
}

.cert-card .cert-info h4 a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.cert-card .cert-info .date {
  color: #64748b;
  font-size: 0.85rem;
}

/* Skills section */
.skill-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.skill-card:hover {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(30, 41, 59, 0.6);
  transform: translateY(-2px);
}

.skill-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.skill-card span {
  display: block;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Nav pills for skills tabs */
.nav-pills .nav-link {
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.1);
  margin: 0 0.25rem;
  border-radius: 0.5rem;
}

.nav-pills .nav-link:hover {
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.7);
}

.nav-pills .nav-link.active {
  color: #f8fafc;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
  border-color: rgba(99, 102, 241, 0.4);
}

/* Certification category cards */
.cert-category-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 0;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
  height: 100%;
  overflow: hidden;
}

.cert-category-card:hover {
  transform: translateY(-5px);
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
}

.cert-category-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  border-bottom: 1px solid var(--glass-border);
  color: var(--color-primary);
}

.cert-category-body {
  padding: 1.5rem;
}

.cert-badge-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  background: white;
  padding: 0.5rem;
  border-radius: 8px;
}

.cert-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text);
}

.cert-item svg {
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: var(--color-primary);
}

.cert-link {
  color: #38bdf8;
  text-decoration: underline;
  transition: color 0.2s;
}

.cert-link:hover {
  color: #7dd3fc;
}
