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

body {
  background: radial-gradient(circle at top, rgb(15, 37, 56), #05080f);
  color: #e6edf3;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #05080f;
}

::-webkit-scrollbar-thumb {
  background: rgba(77, 163, 255, 0.3);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(77, 163, 255, 0.5);
}

/* Cursor glow */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(77, 163, 255, 0.1), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: width 0.3s ease, height 0.3s ease;
}

/* NAV */
nav {
  display: flex;
  justify-content: space-between;
  padding: 24px 72px;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
}

.links a {
  margin-left: 32px;
  text-decoration: none;
  color: #9aa4b2;
  font-size: 0.95rem;
}

.links a:hover {
  color: #ffffff;
}

/* HERO */
.hero {
  display: flex;
  min-height: calc(100vh - 80px);
  padding: 80px 72px;
  gap: 60px;
}

.hero-left {
  flex: 1;
}

.intro {
  font-size: 1rem;
  opacity: 0.7;
}

h1 {
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: -2px;
  margin: 12px 0;
}

.typing {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  color: #4da3ff;
  margin-bottom: 24px;
  min-height: 1.5em;
}

.tagline {
  max-width: 520px;
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.7;
}

.buttons {
  margin-top: 36px;
}

.btn {
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid #4da3ff;
  text-decoration: none;
  color: #4da3ff;
  margin-right: 16px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn.small {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 8px;
}

/* RIGHT */
.hero-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.playground {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px);
  padding: 32px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  animation: float 6s ease-in-out infinite;
}

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

/* SECTIONS */
.section {
  padding: 100px 72px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.sys {
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: #94a3b8;
  margin-bottom: 28px;
}

p {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 18px;
}

.highlight {
  color: #4da3ff;
  font-weight: 600;
}

/* SKILLS */
.skills-block {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255,255,255,0.04);
  padding: 24px;
  border-radius: 12px;
  font-size: 0.95rem;
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(77, 163, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(77, 163, 255, 0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.project-card:hover::before {
  transform: translateX(100%);
}

.project-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.project-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #4da3ff;
  background: rgba(77, 163, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}

.project-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-features {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.project-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #e6edf3;
  margin-bottom: 8px;
}

.project-features i {
  color: #4da3ff;
}

.tech-stack-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tech-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
}

.project-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.tech {
  margin-top: 16px;
  font-size: 0.8rem;
  color: #7dd3fc;
  font-family: 'JetBrins Mono', monospace;
}

/* FOOTER */
footer {
  padding: 40px;
  text-align: center;
  opacity: 0.6;
  font-size: 0.9rem;
}


/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 72px; /* Reduced padding for a shorter height */
    background: linear-gradient(
        to bottom,  
        rgba(15, 37, 56, 0.8),
        rgba(15, 37, 56, 0.6)
    );
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: backdrop-filter 0.3s ease, background 0.3s ease;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: #94a3b8; /* soft slate */
  position: relative;
  transition: color 0.3s ease;
}

.header-nav a:hover {
  color: #e6edf3;
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #4da3ff;
  transition: width 0.3s ease;
}

.header-nav a:hover::after {
  width: 100%;
}

.sep {
  color: #475569;
  font-size: 1rem;
  user-select: none;
}


/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text {
  max-width: 720px;
  padding-top: 2px;
}

.about-side {
  display: flex;
  justify-content: flex-start;
}


/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.skill-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.skill-card:hover {
  border-color: rgba(77, 163, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #7dd3fc;
}

.skill-header i {
  color: #4da3ff;
}

.tags span {
  display: inline-block;
  margin: 6px 6px 0 0;
  padding: 6px 10px;
  background: rgba(77,163,255,0.15);
  border-radius: 20px;
  font-size: 0.75rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.contact-card:hover {
  border-color: rgba(77, 163, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-4px);
}

.contact-card span {
  font-size: 0.75rem;
  color: #7dd3fc;
}

.now-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  padding: 28px 32px;
  border-radius: 18px;
  min-width: 280px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.35);
  transition: transform 0.3s ease, background 0.3s ease;
}

.now-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

.now-header {
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: #7dd3fc;
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace;
}

.now-list {
  list-style: none;
  padding: 0;
}

.now-list li {
  font-size: 0.95rem;
  color: #e6edf3;
  margin-bottom: 10px;
  line-height: 1.6;
  position: relative;
  padding-left: 18px;
}

.now-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #4da3ff;
}

.about-side {
  display: flex;
  justify-content: flex-start;
}

/* Main card */
/* Timeline Section */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 60px auto;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(-50%);
}

.timeline-progress {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 0; /* Animated via JS */
  background: linear-gradient(to bottom, #4da3ff, #7dd3fc);
  transform: translateX(-50%);
  z-index: 1;
  transition: height 0.1s linear;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 24px;
  width: 16px;
  height: 16px;
  background: #05080f;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  z-index: 2;
  transition: all 0.4s ease;
}

.timeline-item.visible .timeline-dot {
  border-color: #4da3ff;
  box-shadow: 0 0 15px rgba(77, 163, 255, 0.5);
}

.timeline-item.left .timeline-dot {
  right: -8px;
}

.timeline-item.right .timeline-dot {
  left: -8px;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(77, 163, 255, 0.3);
  transform: translateY(-5px);
}

.timeline-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #7dd3fc;
  margin-bottom: 8px;
  opacity: 0.8;
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.timeline-item.left .timeline-header {
  justify-content: flex-end;
}

.timeline-header i {
  color: #4da3ff;
}

.institution {
  font-weight: 600;
  color: #e6edf3;
  margin-bottom: 8px;
}

.experience-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.experience-list li {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 6px;
  position: relative;
  padding-left: 18px;
}

.experience-list li::before {
  content: "»";
  position: absolute;
  left: 0;
  color: #4da3ff;
}

.tech-tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-item.left .tech-tags {
  justify-content: flex-end;
}

.tech-tags span {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(77, 163, 255, 0.1);
  color: #7dd3fc;
  border-radius: 6px;
  border: 1px solid rgba(77, 163, 255, 0.1);
}

/* Mobile Timeline */
@media (max-width: 768px) {
  .timeline-line, .timeline-progress {
    left: 20px;
    transform: none;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
    text-align: left !important;
  }
  
  .timeline-item.left, .timeline-item.right {
    left: 0;
  }
  
  .timeline-dot {
    left: 12px !important;
    right: auto !important;
  }
  
  .timeline-header {
    justify-content: flex-start !important;
  }
  
  .tech-tags {
    justify-content: flex-start !important;
  }
}

/* Helper Classes */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer Refinement */
footer {
  padding: 60px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(15, 37, 56, 0.2);
  margin-top: 100px;
}

/* Header Refinement */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 72px;
  background: rgba(15, 37, 56, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
