* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
  color: #fff;
  overflow-x: hidden;
}

.hero-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.glass:hover {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(102, 126, 234, 0.15);
  border: 1px solid rgba(102, 126, 234, 0.3);
  color: #a5b4fc;
  transition: all 0.2s ease;
  display: inline-block;
}

.badge:hover {
  background: rgba(102, 126, 234, 0.25);
  border-color: rgba(102, 126, 234, 0.5);
  transform: scale(1.05);
}

.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(102, 126, 234, 0.5);
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.4);
}

.carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 126, 234, 0.5) transparent;
}

.carousel::-webkit-scrollbar {
  height: 8px;
}

.carousel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.carousel::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.5);
  border-radius: 10px;
}

.carousel {
  align-items: stretch;
}

.carousel-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px; 
}

.carousel-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(102, 126, 234, 0.4);
  transform: scale(1.02);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.timeline-item {
  position: relative;
  padding-left: 32px;
  margin-bottom: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #667eea;
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.8);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 18px;
  width: 2px;
  height: calc(100% + 10px);
  background: linear-gradient(180deg, rgba(102, 126, 234, 0.5) 0%, transparent 100%);
}

.timeline-item:last-child::after {
  display: none;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a5b4fc;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-link:hover {
  background: rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.4);
  transform: translateX(4px);
}

.stats-card {
  text-align: center;
  padding: 20px;
}

.stats-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-label {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: 4px;
}

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

.float-animation {
  animation: float 3s ease-in-out infinite;
}

.project-card {
  position: relative;
  overflow: hidden;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.cert-carousel {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cert-viewport {
  overflow: hidden;
  flex: 1 1 auto;
}
.cert-track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(.22,.9,.35,1);
}
.cert-item {
  flex: 0 0 calc((100% - 40px) / 3);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 320px;
}
.cert-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
}

@media (min-width: 640px) {
  .carousel-item { flex: 0 0 calc((100% - 20px) / 2); }
}

@media (min-width: 1024px) {
  .carousel-item { flex: 0 0 calc((100% - 48px) / 3); }
}
.cert-prev, .cert-next {
  background: rgba(102,126,234,0.12);
  border: 1px solid rgba(102,126,234,0.25);
  color: #e6e9ff;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  cursor: pointer;
}
.cert-prev:hover, .cert-next:hover {
  transform: translateY(-3px);
}

.tech-badge {
  background: linear-gradient(90deg, rgba(102,126,234,0.16), rgba(118,75,162,0.08));
  border: 1px solid rgba(255,255,255,0.06);
  color: #dfe7ff;
}

.project-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}
