/* Global */
body.light {
  background-color: #f3f4f6;
  color: #020617;
}

/* Gradient blobs */
.gradient-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(70px);
  opacity: 0.45;
  animation: float 18s ease-in-out infinite alternate;
}

.gradient-blob-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #22d3ee, transparent 70%);
  top: -80px;
  left: -60px;
}

.gradient-blob-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
  top: 40%;
  right: -100px;
}

.gradient-blob-3 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #f97316, transparent 70%);
  bottom: -80px;
  left: 15%;
}

/* Custom cursor */
#custom-cursor {
  transform: translate(-50%, -50%);
  transition:
    transform 0.12s ease-out,
    width 0.12s ease-out,
    height 0.12s ease-out;
}

/* Reusable */
.nav-link,
.nav-link-mobile {
  color: #e5e7eb;
  position: relative;
}

.nav-link::after,
.nav-link-mobile::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, #22d3ee, #6366f1);
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link-mobile:hover::after {
  width: 100%;
}

.pill {
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  border-width: 1px;
  border-color: rgba(148, 163, 184, 0.5);
  background-color: rgba(15, 23, 42, 0.7);
}

.pill-primary {
  border-color: rgba(45, 212, 191, 0.8);
  background: linear-gradient(to right,
      rgba(8, 47, 73, 0.9),
      rgba(15, 23, 42, 0.9));
  color: #a5f3fc;
}

.pill-outline {
  color: #cbd5f5;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.6rem 1.3rem;
  border-radius: 9999px;
  background: linear-gradient(to right, #22c55e, #06b6d4, #6366f1);
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f172a;
  box-shadow: 0 15px 30px rgba(8, 47, 73, 0.6);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.7);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
  font-size: 0.78rem;
  background-color: rgba(15, 23, 42, 0.7);
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.btn-ghost:hover {
  background-color: rgba(30, 64, 175, 0.6);
  border-color: rgba(191, 219, 254, 0.9);
  transform: translateY(-1px);
}

.icon-link {
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background-color: rgba(15, 23, 42, 0.6);
  color: #cbd5e1;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.icon-link:hover {
  background: linear-gradient(to right,
      rgba(56, 189, 248, 0.25),
      rgba(129, 140, 248, 0.3));
  transform: translateY(-1px);
}

/* Glassmorphism */
.glass-card {
  background:
    radial-gradient(circle at top left,
      rgba(148, 163, 184, 0.18),
      transparent 55%),
    radial-gradient(circle at bottom right,
      rgba(15, 23, 42, 0.7),
      rgba(15, 23, 42, 0.95));
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(24px);
}

.profile-bg {
  background-image: url('assests/profile.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Sections */
.section-header {
  text-align: center;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.section-subtitle {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Typing cursor */
.typing-cursor {
  display: inline-block;
  width: 1px;
  background-color: #e5e7eb;
  animation: blink 0.9s steps(2, start) infinite;
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 0.75rem;
}

.timeline-dot {
  position: absolute;
  left: -0.55rem;
  top: 0.2rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 9999px;
  background: linear-gradient(to bottom right, #22d3ee, #6366f1);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

/* Skill bars */
.skill-bar {
  width: 100%;
  height: 0.45rem;
  border-radius: 9999px;
  background-color: rgba(15, 23, 42, 0.85);
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 9999px;
  background: linear-gradient(to right, #22c55e, #22d3ee, #6366f1);
  transition: width 1.1s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Circular skills */
.circle-wrapper {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 9999px;
  border: 3px solid rgba(148, 163, 184, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.circle-inner {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 9999px;
  background: radial-gradient(circle,
      rgba(15, 23, 42, 0.95),
      rgba(15, 23, 42, 0.75));
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle-number {
  font-size: 0.8rem;
  color: #e5e7eb;
}

/* Projects */
.project-card {
  perspective: 1000px;
}

.project-inner {
  height: 100%;
  border-radius: 1.3rem;
  padding: 1.1rem;
  background: radial-gradient(circle at top,
      rgba(56, 189, 248, 0.14),
      rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  transform-style: preserve-3d;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.project-card:hover .project-inner {
  transform: translateY(-4px) rotateX(4deg) rotateY(-4deg);
  box-shadow: 0 25px 70px rgba(15, 23, 42, 1);
  border-color: rgba(96, 165, 250, 0.9);
}

.project-badge {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  color: #a5f3fc;
  background: rgba(8, 47, 73, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.6);
}

.project-title {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.project-desc {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: #e5e7eb;
}

.project-list {
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: #cbd5e1;
}

.project-list li {
  margin-left: 0.9rem;
  list-style-type: disc;
}

.project-tech {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.65rem;
}

.project-tech span {
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.project-links {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.project-link {
  font-size: 0.7rem;
  color: #a5b4fc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.project-link:hover {
  color: #e0f2fe;
}

/* Form */
.form-label {
  display: block;
  font-size: 0.7rem;
  margin-bottom: 0.2rem;
  color: #9ca3af;
}

.form-input {
  width: 100%;
  font-size: 0.75rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background-color: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.form-input:focus {
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.7);
}

/* Contact row */
.contact-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.55rem;
  border-radius: 0.9rem;
  border: 1px solid transparent;
  background-color: rgba(15, 23, 42, 0.8);
  color: #cbd5e1;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    transform 0.15s ease;
}

.contact-row span:first-of-type {
  color: #9ca3af;
}

.contact-row:hover {
  border-color: rgba(59, 130, 246, 0.9);
  background-color: rgba(15, 23, 42, 0.95);
  transform: translateY(-1px);
}

/* Animations */
@keyframes float {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(30px, 40px, 0);
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}