* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background-color: #0f172a;
  color: #e5e7eb;
  padding: 20px;
}

/* HERO */
.hero {
  text-align: center;
  padding: 60px 20px;
}

header h1 {
  font-size: 36px;
  margin-bottom: 6px;
  background: linear-gradient(90deg, #22c55e, #34d399, #5eead4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(34, 197, 94, 0.35);
}


.subtitle {
  font-size: 18px;
  color: #94a3b8;
  margin-bottom: 20px;
}

/* NAV */
nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

nav a {
  text-decoration: none;
  color: #e5e7eb;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  transition: 0.25s ease;
  border: 1px solid transparent;
}

nav a {
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover {
  color: var(--accent-soft);
}

nav a::after {
  background: var(--accent);
}

/* SECTIONS */
section {
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    padding: 24px;
    margin-bottom: 24px;
    border-radius: 14px;

    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04),
        0 20px 40px rgba(0,0,0,0.4);

    animation: fadeIn 0.8s ease forwards;
}


section h2 {
  color: var(--accent-soft);
  letter-spacing: 0.5px;
  text-shadow: 0 0 12px rgba(34, 197, 94, 0.25);
}


section h3 {
  margin-top: 10px;
  margin-bottom: 4px;
  color: #cbd5f5;
}

/* PROJECTS */
#projects ul {
  padding-left: 20px;
  margin-top: 10px;
}

#projects a,
#contact a {
  color: var(--accent-soft);
}

#projects a:hover,
#contact a:hover {
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}


/* CONTACT */
#contact a {
  color: #a5b4fc;
  text-decoration: none;
  font-weight: 600;
}

/* BUTTON */
#theme-toggle {
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid #4f46e5;
  color: #e5e7eb;
  cursor: pointer;
  transition: 0.25s ease;
}

#theme-toggle:hover {
  box-shadow: 0 0 12px #4f46e5;
}

/* PROFILE PIC */
.profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 3px solid var(--accent);
  box-shadow: 0 0 26px var(--accent-glow);
}

/* LIGHT MODE */
body.light {
  background: #f5f5f5;
  color: #111;
}

body.light section {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

body.light .subtitle {
  color: #555;
}

body.light nav a {
  color: #111;
}

body.light #theme-toggle {
  color: #111;
  border-color: #555;
}

body.light .profile-pic {
  box-shadow: 0 0 14px rgba(0,0,0,0.15);
}

/* MAIN */
main {
  max-width: 900px;
  margin: 0 auto;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MOBILE */
@media (max-width: 600px) {
  body {
    padding: 12px;
  }

  header h1 {
    font-size: 1.6rem;
  }

  nav {
    flex-direction: column;
    gap: 10px;
  }

  section {
    padding: 16px;
  }
}

:root {
  --accent: #22c55e;          /* emerald green */
  --accent-soft: #34d399;     /* mint */
  --accent-glow: rgba(34, 197, 94, 0.55);
  --bg-gradient: radial-gradient(circle at top, #0f172a, #020617);
}


body {
    background: var(--bg-gradient);
}

.profile-pic {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fadeUp 1s ease forwards;
}

.delay-1 {
  animation-delay: 0.4s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.project-card {
  padding: 20px;
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* TIMELINE - UPDATED GREEN LINE STYLING */
.timeline {
  position: relative;
  margin-top: 20px;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, 
    transparent 0%, 
    #22c55e 10%, 
    #22c55e 90%, 
    transparent 100%);
  box-shadow: 
    0 0 8px rgba(34, 197, 94, 0.5),
    0 0 15px rgba(34, 197, 94, 0.2);
  animation: linePulse 3s ease-in-out infinite;
}

@keyframes linePulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; box-shadow: 0 0 12px rgba(34, 197, 94, 0.7); }
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item .dot {
  position: absolute;
  left: -36px; /* Adjusted to align with new line */
  top: 6px;
  width: 16px;
  height: 16px;
  background: #22c55e;
  border-radius: 50%;
  border: 3px solid #0f172a;
  box-shadow: 
    0 0 0 3px rgba(34, 197, 94, 0.3),
    0 0 12px #22c55e;
  z-index: 1;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.time {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 8px;
  font-style: italic;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;

    background:
        radial-gradient(circle at 20% 30%, rgba(79,70,229,0.25), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(56,189,248,0.18), transparent 40%);

    animation: glowShift 12s ease-in-out infinite alternate;
}

@keyframes glowShift {
  0% {
    background:
      radial-gradient(circle at 20% 30%, rgba(79,70,229,0.25), transparent 40%),
      radial-gradient(circle at 80% 70%, rgba(56,189,248,0.18), transparent 40%);
  }
  100% {
    background:
      radial-gradient(circle at 30% 40%, rgba(79,70,229,0.25), transparent 40%),
      radial-gradient(circle at 70% 60%, rgba(56,189,248,0.18), transparent 40%);
  }
}

#learning-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.learning-item {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.15);
    color: #c7d2fe;
    border: 1px solid rgba(79, 70, 229, 0.4);
    font-size: 0.85rem;
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.2);
}

section > * + * {
    margin-top: 12px;
}

.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
}

nav a.active {
    color: var(--accent);
}

nav a.active::after {
    width: 100%;
}

/* Light mode timeline adjustments */
body.light .timeline::before {
  background: linear-gradient(to bottom, 
    transparent 0%, 
    #10b981 10%, 
    #10b981 90%, 
    transparent 100%);
  box-shadow: 
    0 0 8px rgba(16, 185, 129, 0.4),
    0 0 15px rgba(16, 185, 129, 0.2);
}

body.light .timeline-item .dot {
  background: #10b981;
  border: 3px solid #f5f5f5;
  box-shadow: 
    0 0 0 3px rgba(16, 185, 129, 0.3),
    0 0 12px #10b981;
}

/* TIMELINE CONTENT STYLING */
.timeline-content {
  padding-left: 10px;
}

/* Fix project cards inside timeline */
.timeline-content .projects-grid {
  margin-top: 20px;
}

.timeline-content .project-card {
  margin-bottom: 0;
}

/* Adjust timeline items for better spacing */
.timeline-item {
  margin-bottom: 30px;
}

.timeline-item:last-child {
  margin-bottom: 10px;
}

/* Make sure all sections have proper timeline styling */
section .timeline {
  margin-top: 15px;
}

/* About section specific adjustment */
#about .timeline-content p {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Contact section link styling */
#contact .timeline-content a {
  color: #a5b4fc;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

#contact .timeline-content a:hover {
  color: #22c55e;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

/* Volunteering section adjustments */
#volunteering .timeline-item {
  margin-bottom: 40px;
}

#volunteering .timeline-item:last-child {
  margin-bottom: 10px;
}

#volunteering h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

/* ===== SOCIAL MEDIA ICONS ===== */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #e5e7eb;
  width: 80px;
  padding: 15px 10px;
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.social-link:hover {
  transform: translateY(-5px);
  background: rgba(34, 197, 94, 0.1);
  border-color: #22c55e;
  box-shadow: 0 10px 20px rgba(34, 197, 94, 0.2);
}

.social-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  fill: #e5e7eb;
  transition: all 0.3s ease;
}

/* Icon colors on hover */
.social-link:hover .social-icon {
  fill: #22c55e;
  transform: scale(1.1);
}

/* Specific icon colors (optional - you can remove if you want all green) */
.social-link:nth-child(1):hover .social-icon { fill: #ea4335; } /* Email - Red */
.social-link:nth-child(2):hover .social-icon { fill: #333; }     /* GitHub - Black */
.social-link:nth-child(3):hover .social-icon { fill: #0077b5; }  /* LinkedIn - Blue */
.social-link:nth-child(4):hover .social-icon { fill: #e4405f; }  /* Instagram - Pink */
.social-link:nth-child(5):hover .social-icon { fill: #1877f2; }  /* Facebook - Blue */

.social-link span {
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 4px;
}

/* Light mode adjustments */
body.light .social-link {
  color: #111;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light .social-icon {
  fill: #333;
}

body.light .social-link:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

body.light .social-link:hover .social-icon {
  fill: #10b981;
}

/* Responsive design for social links */
@media (max-width: 768px) {
  .social-links {
    gap: 15px;
  }
  
  .social-link {
    width: 70px;
    padding: 12px 8px;
  }
  
  .social-icon {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .social-links {
    gap: 10px;
  }
  
  .social-link {
    width: 65px;
    padding: 10px 5px;
  }
  
  .social-icon {
    width: 24px;
    height: 24px;
  }
  
  .social-link span {
    font-size: 0.75rem;
  }
}

/* Fix contact section spacing */
#contact .timeline-content {
  padding-left: 15px; /* Add some space from the green line */
  margin-left: 0;
}

/* Adjust social links spacing */
#contact .social-links {
  justify-content: flex-start;
  margin-left: 0;
  padding-left: 0;
  gap: 20px; /* Keep consistent gap between icons */
}

/* Make sure icons don't touch the green line */
#contact .timeline-item {
  position: relative;
}

/* Optional: Add a little more space if needed */
#contact .social-link {
  margin-left: 5px;
}

footer {
  text-align: center;
  font-size: 0.9rem;
}





