/* RESET + VARIABLES */
:root {
  --bg-dark: #0e0e1a;
  --bg-mid: #14142b;
  --bg-card: #1f1f3a;

  --purple: #7c5cff;
  --pink: #ff5ea8;
  --sage: #9ad0b6;

  --text-muted: rgba(255,255,255,0.65);
}

.meta {
  color: #9ad0b6; /* sage green */
}

a:hover {
  color: #9ad0b6; /* sage green on hover */
}

.hero-sub span {
  color: #9ad0b6; /* optional subtle highlight */
}

.focus-card, .experience-card, .tech-grid span {
  border: 1px solid rgba(154,208,182,0.3); /* subtle sage */
}

.focus-card:hover, .experience-card:hover {
  box-shadow: 0 8px 20px rgba(154,208,182,0.2);
}

h2::after {
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--sage));
}

.decor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #9ad0b6; /* sage green */
  position: absolute;
  animation: float 6s infinite;
}
/* @keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
} */

/* GLOBAL STYLES */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: white;
}
section {
  padding: 5rem 1.5rem;
}
.container {
  max-width: 980px;
  margin: 0 auto;
}

/* TYPOGRAPHY */
h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
h3 {
  margin: 0;
  font-size: 1.1rem;
}
p {
  line-height: 1.6;
  max-width: 760px;
  color: var(--text-muted);
}
h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 0.75rem;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--sage));
  border-radius: 2px;
}

/* HERO */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  opacity: 0.7;
}
.hero-sub {
  font-size: 1.1rem;
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}
.btn {
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.btn.primary {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white;
}
.btn.secondary {
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
}

/* GRADIENT TEXT */
.gradient-text {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 10s ease-in-out infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ABOUT / CORE FOCUS / EXPERIENCE / TECH STACK */
.about { background: var(--bg-dark); }
.focus { background: var(--bg-mid); }
.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.focus-card {
  background: var(--bg-card);
  padding: 1.75rem;
  border-radius: 14px;
}

.experience { background: var(--bg-dark); }
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.experience-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.experience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(124,92,255,0.25);
}
.meta {
  display: block;
  font-size: 0.85rem;
  opacity: 0.6;
  margin: 0.3rem 0 0.75rem;
}

.tech { background: var(--bg-mid); }
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.tech-grid span {
  background: var(--bg-card);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* ANIMATIONS */
.fade-in {
  opacity: 1 !important;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
html {
  scroll-behavior: smooth;
}


@keyframes slow-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


/* Hashnode Blog Carousel */
.hashnode-carousel {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.6s ease-in-out;
}

.hashnode-carousel.fade-in.visible {
  opacity: 1;
  max-height: 120px; /* adjust based on number of items */
}

.hashnode-carousel a {
  display: block;
}

.hashnode-carousel img {
  width: 60px;
  height: 60px;
  object-fit: cover; /* ensures image fills the square nicely */
  border-radius: 50%; /* makes it circular */
}

.hashnode-carousel img:hover {
  transform: scale(1.3) rotate(-5deg);
  box-shadow: 0 0 15px rgba(124,92,255,0.7),
              0 0 25px rgba(255,94,168,0.5),
              0 0 35px rgba(154,208,182,0.4);
}
section {
  position: relative;
}

section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 10%, rgba(124,92,255,0,0.06), transparent 60%);
  pointer-events: none;
}

/* RESUME SECTION  */
.resume {
  padding: 6rem 4rem;
  background: radial-gradient(circle at top, #1b1b3a, #0f0f1a);
  text-align: center
}
.resume-sub {
  max-width: 600px;
  margin: 0 auto 3rem;
  opacity: 0.8;
}
/* This is for the orbit stuff */
.resume-orbit{
  position:relative;
  width: 300px;
  height: 300px;
  margin: 0 auto 4rem;
}

.orbit-rotator {
  position: absolute;
  inset: 0;
  animation: orbit 18s linear infinite;
}

.resume-orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  /* border: 1px dashed rgba(154,208,182,0.25); */
  border-radius: 50%;
}
.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  margin-left: -150px;
  transform: translate(-50%, -50%);
  animation: orbit 18s linear infinite;
}
.planet-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;

  transform: translateX(120px);
  display: flex;
  justify-content: center;
  align-items: center;
}
.float-wrapper {
  animation: float 4s ease-in-out infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* This is for the planets */
.resume-planet {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff7ac8, #7c5cff, #2a2a55);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  box-shadow: 0 0 40px rgba(124,92,255,0.6);  
  animation: float 4s ease-in-out infinite;
  border: none;
}
.resume-planet::before {
  content: "";
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  border: 2px solid rgba(198,255,214,0.6);
}
.resume-planet span {
  z-index: 1;
}
.resume-planet:hover {
  transform:  scale(1.05);
  box-shadow: 0 0 60px rgba(255,122,200,0.8);

}
/* .resume-orbit .resume-planet {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  margin-left: -110px;
  margin-top: -110px;
  transform-origin: center center; 
} */

/* orbit animation */
@keyframes orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* floating planets */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px);}
}
/* Modal */
.resume-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 30, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.resume-modal.active {
  display: flex;
}

.resume-modal-content {
  background: #0f0f1a;
  border-radius: 20px;
  padding: 2rem;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 60px rgba(124, 92, 255, 0.6);
}

.modal-sub {
  opacity: 0.75;
  margin-bottom: 1.5rem;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  color: #ffff ;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

/* iframe */
.resume-iframe {
  width: 100%;
  height: 60vh;
  border: none;
  border-radius: 12px;
  margin-top: 1.5rem;
}

/* Blog area */

.blog {
  background: var(--bg-dark);
  padding: 6rem 1.5rem;
}

.blog-sub {
  max-width: 640px;
  margin-bottom: 3rem;
  opacity: 0.85;
}

.blog-featured {
 background: var(--bg-card);
 border-radius: 18px;
 padding: 1.5rem;
 display: grid;
 grid-template-columns: 1fr 1.2fr;
 gap: 1.5rem;
 align-items: center;
 box-shadow: 0 20px 50px rgba(0,0,0,0.35);
 max-width: 800px;
 margin: 0 auto;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(124,92,255,0.25);
}

.blog-content img {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  object-fit: cover;

}

.blog-featured img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
}

.blog-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.blog-content p {
  margin-bottom: 1.25rem;
}

.blog-actions {
  margin-top: 2.5rem;
}

.blog-skeleton {
  width: 100%;
  height: 180px;
  border-radius: 14px;
  background: linear-gradient(90deg, #1f1f3a 24%, #2a2a55 37%, #1f1f3a 63%);

  background-size: 400% 100%;
  animation: skeleton 1.4 ease infinite;
}

@keyframes skeleton {
  0% { background-position: 100% 50%;}
  100% {background-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .blog-featured {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .blog-featured img {
    width: 100%;
    height: auto;
  }
}