/* ================= ROOT ================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ================= BACKGROUND ================= */
.animated-bg {
  background: linear-gradient(120deg, #020617, #0f172a, #075985);
  background-size: 300% 300%;
  animation: gradientMove 10s ease infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ================= GLASS ================= */
.glass-card,
.project-card,
.skill-card,
.about-card,
.contact-card,
.tool-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* ================= NAVBAR ================= */
.glass-nav {
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-link {
  color: #e5e7eb;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #38bdf8;
}

.nav-link.active {
  color: #38bdf8;
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #38bdf8;
  border-radius: 2px;
}

/* ================= HERO ================= */
.hero-boot {
  animation: bootIn 0.8s ease-out both;
}

@keyframes bootIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ================= HERO BUTTON HOVER GLOW ================= */

/* Outline buttons (Download + Contact) */
.btn-secondary {
  position: relative;
  overflow: hidden;
}

/* Hover pop + glow */
.btn-secondary:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #020617;

  transform: translateY(-3px);
  box-shadow:
    0 0 14px rgba(56, 189, 248, 0.7),
    0 0 30px rgba(56, 189, 248, 0.45);
}

/* Extra smoothness */
.btn-secondary {
  transition: all 0.25s ease;
}

/* Keep primary stronger */
.btn-primary:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 0 20px rgba(56, 189, 248, 0.8),
    0 0 40px rgba(56, 189, 248, 0.6);
}


/* ================= BUTTONS ================= */
.btn-primary {
  padding: 12px 28px;
  border-radius: 999px;
  background: #38bdf8;
  color: black;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.5);
}

.btn-secondary {
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid #38bdf8;
  color: #38bdf8;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #38bdf8;
  color: black;
}

/* ================= ABOUT OVAL PILLS ================= */

.about-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 12px 22px;
  border-radius: 999px;

  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;

  background: rgba(56, 189, 248, 0.12);
  color: #e5faff;

  border: 1px solid rgba(56, 189, 248, 0.35);
  backdrop-filter: blur(10px);

  cursor: default;
  transition: all 0.3s ease;
}

/* Hover → pop + glow */
.about-pill:hover {
  transform: translateY(-4px) scale(1.03);
  background: rgba(56, 189, 248, 0.25);

  box-shadow:
    0 0 12px rgba(56, 189, 248, 0.6),
    0 0 30px rgba(56, 189, 248, 0.35);
}

/* Mobile tweak */
@media (max-width: 640px) {
  .about-pill {
    font-size: 0.9rem;
    padding: 10px 18px;
  }
}

/* ================= SKILLS GRID ================= */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  align-items: stretch;
  margin-top: 24px;
}

.skills-grid > div {
  flex: 1 1 calc(33.333% - 24px);
  min-width: 250px;
  max-width: 380px;
}


/* ================= TOOLS GRID ================= */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 24px; /* 🔥 REDUCED (main fix) */
  align-items: start;
}

/* ================= SKILL / TOOL CARDS ================= */
.skill-card,
.tool-card {
  padding: 24px;
  transition: all 0.3s ease;
  height:100%;
}

.skill-card {
  height: fit-content;
}

.skill-card:hover,
.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(56, 189, 248, 0.18);
}

/* Titles */
.skill-title,
.tool-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 18px;
}

/* ================= PILLS ================= */
.skill-tags,
.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-pill,
.tool-pill {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  background: rgba(56, 189, 248, 0.12);
  color: #67e8f9;
  border: 1px solid rgba(56, 189, 248, 0.35);
  transition: all 0.25s ease;
}

.skill-pill:hover,
.tool-pill:hover {
  background: rgba(56, 189, 248, 0.25);
  box-shadow:
    0 0 10px rgba(56, 189, 248, 0.6),
    0 0 25px rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

.skill-pill.active,
.tool-pill.active {
  background: rgba(56, 189, 248, 0.4);
  color: #020617;
  box-shadow:
    0 0 14px rgba(56, 189, 248, 0.9),
    0 0 35px rgba(56, 189, 248, 0.6);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .skills-grid,
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .skills-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= FLOATING ORBS ================= */
.cloud-orb {
  position: fixed;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(8,95,109,0.55), transparent 70%);
  filter: blur(40px);
  animation: floatCloud 18s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes floatCloud {
  to { transform: translateY(-80px); }
}

/* ================= SCROLL REVEAL ================= */
.reveal {
  opacity: 0;
  transform: translateY(60px) scale(0.96);
  filter: blur(4px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* ================= PROJECT CARDS ================= */

.project-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border-radius: 22px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.08);

  transition: all 0.35s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 25px 60px rgba(56, 189, 248, 0.18);
}

/* ================= PROJECT PILLS ================= */

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.project-pill {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 8px 18px;
  border-radius: 999px;

  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;

  background: rgba(56, 189, 248, 0.12);
  color: #67e8f9;

  border: 1px solid rgba(56, 189, 248, 0.35);
  transition: all 0.25s ease;
}

.project-pill:hover {
  transform: translateY(-2px) scale(1.04);
  background: rgba(56, 189, 248, 0.25);
  box-shadow:
    0 0 12px rgba(56, 189, 248, 0.6),
    0 0 30px rgba(56, 189, 248, 0.35);
}

/* ================= PROJECT BUTTONS ================= */

/* ================= PROJECT CARDS ================= */

.project-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border-radius: 22px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.08);

  transition: all 0.35s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(56, 189, 248, 0.18);
}

/* ================= PROJECT TAG PILLS ================= */

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.project-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 18px;
  border-radius: 999px;

  font-size: 0.85rem;
  font-weight: 500;

  color: #67e8f9;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);

  transition: all 0.25s ease;
}

.project-pill:hover {
  transform: translateY(-2px);
  background: rgba(56, 189, 248, 0.22);
  box-shadow:
    0 0 12px rgba(56, 189, 248, 0.6),
    0 0 26px rgba(56, 189, 248, 0.35);
}

/* ================= GITHUB COMING SOON PILL ================= */

/* ================= GITHUB COMING SOON PILL ================= */

.project-actions {
  margin-top: 10px;
}

.github-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 22px;
  border-radius: 999px;

  font-size: 0.85rem;
  font-weight: 600;

  color: #67e8f9;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);

  cursor: pointer;
  user-select: none;

  transition: all 0.25s ease;
}

/* 🟦 HOVER → soft glow */
.github-pill:hover {
  background: rgba(56, 189, 248, 0.22);
  transform: translateY(-2px);
  box-shadow:
    0 0 10px rgba(56, 189, 248, 0.55),
    0 0 22px rgba(56, 189, 248, 0.35);
}

/* ✨ CLICK → strong glow */
.github-pill.active {
  background: rgba(56, 189, 248, 0.38);
  color: #020617;

  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 0 18px rgba(56, 189, 248, 0.95),
    0 0 40px rgba(56, 189, 248, 0.6);
}

/* ================= EXPERIENCE & EDUCATION ================= */

#experience {
  position: relative;
}

/* Timeline wrapper */
.timeline-clean {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Each timeline card */
.timeline-row {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;

  padding: 28px 32px;

  transition: all 0.35s ease;
}

/* Hover effect */
.timeline-row:hover {
  transform: translateY(-6px);
  box-shadow:
    0 18px 40px rgba(56, 189, 248, 0.18),
    inset 0 0 0 1px rgba(56, 189, 248, 0.15);
}

/* Remove unused dot */
.timeline-dot {
  display: none;
}

/* Content */
.timeline-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #ffffff;
}

.timeline-meta {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #38bdf8;
  margin-bottom: 14px;
}

/* Description text */
.timeline-content p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Muted extra info */
.timeline-muted {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #94a3b8;
}

/* Mobile */
@media (max-width: 640px) {
  .timeline-row {
    padding: 22px 20px;
  }

  .timeline-content h3 {
    font-size: 1.1rem;
  }
}

/* ================= TIMELINE ACCENT (NON-BREAKING) ================= */

/* Wrapper becomes reference */
.timeline-clean {
  position: relative;
  padding-left: 48px; /* space for timeline */
}

/* Vertical line */
.timeline-clean::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;

  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(56, 189, 248, 0.6),
    rgba(56, 189, 248, 0.15)
  );
}

/* Timeline dot per card */
.timeline-row {
  position: relative;
}

.timeline-row::before {
  content: "";
  position: absolute;

  left: -32px;        /* aligns on line */
  top: 36px;          /* visually centered */

  width: 12px;
  height: 12px;
  border-radius: 50%;

  background: #38bdf8;
  box-shadow:
    0 0 0 6px rgba(56, 189, 248, 0.25),
    0 0 18px rgba(56, 189, 248, 0.8);
}

/* Mobile safety */
@media (max-width: 640px) {
  .timeline-clean {
    padding-left: 36px;
  }

  .timeline-clean::before {
    left: 12px;
  }

  .timeline-row::before {
    left: -28px;
  }
}

/* ================= CONTACT CARDS – FINAL POLISH ================= */

.contact-card {
  position: relative;
  padding: 28px 24px;
  border-radius: 28px;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );

  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);

  text-align: center;
  transition: all 0.35s ease;
  overflow: hidden;
}

/* subtle gradient edge */
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(56, 189, 248, 0.35),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* icon styling */
.contact-card h3 {
  margin-top: 10px;
  font-weight: 600;
}

.contact-card p {
  color: #9ca3af;
  font-size: 0.9rem;
}

/* hover magic */
.contact-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 20px 60px rgba(56, 189, 248, 0.18),
    inset 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.contact-card:hover::before {
  opacity: 1;
}

/* emoji/icon float */
.contact-card:hover {
  animation: floatCard 3s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% {
    transform: translateY(-10px) scale(1.02);
  }
  50% {
    transform: translateY(-14px) scale(1.02);
  }
}

/* click / focus feedback */
.contact-card:active {
  transform: scale(0.98);
  box-shadow:
    0 0 25px rgba(56, 189, 248, 0.45);
}

/* mobile spacing safety */
@media (max-width: 640px) {
  .contact-card {
    padding: 24px 20px;
  }
}



.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: #38bdf8;
  width: 0%;
  z-index: 9999;
}



section, header {
  position: relative;
  z-index: 1;
}

/* ================= FOOTER ================= */

.site-footer {
  margin-top: 120px;
  padding: 24px 12px;

  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;

  background: linear-gradient(
    to top,
    rgba(2, 6, 23, 0.6),
    transparent
  );

  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-name {
  color: #38bdf8;
  font-weight: 500;
}

/* subtle hover glow */
.site-footer:hover .footer-name {
  text-shadow:
    0 0 6px rgba(56, 189, 248, 0.6),
    0 0 14px rgba(56, 189, 248, 0.4);
}

/* ================= CLOUD CURSOR ================= */
body, html {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z"/></svg>') 10 10, auto;
}

a, button, .skill-pill, .github-pill, .nav-link, .contact-card, .project-card, .skill-card, .tool-card, .about-pill {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23ffffff" stroke="%23ffffff" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z"/></svg>') 10 10, pointer !important;
}