* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #1a1a2e, #0f0f1a);
  color: white;
  overflow-x: hidden;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  background-color: transparent;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #e1b4ff;
}

.logo span {
  color: white;
}

/*<---------------------------------Navigation styles---------------------------------------------------------------->*/
/* Container Style */
/* Nav Bar Container */
/* NAV BAR STYLING */

.robot-3d {
  position: absolute;
  top: 0;
  right: -20%;
}

.nav-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: transparent;
  list-style: none;
}


.nav-indicator {
  position: absolute;
  top: 50%;
  left: 0;
  height: 70%;
  border-radius: 999px;
  background-color: white;
  z-index: 0;
  transition: all 0.3s ease;
  transform: translateY(-50%);
}

.nav-bar li a {
  position: relative;
  z-index: 1;
  text-decoration: none;
  padding: 0.5rem 1.3rem;
  border-radius: 999px;
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-bar li a.active {
  color: black;
  font-weight: 700;
}

body.light-mode .nav-bar li a {
  color: black;
}

body.light-mode .nav-bar li a.active {
  color: white;
}

body.light-mode .nav-indicator {
  background-color: black;
}

body.light-mode .nav-bar {
  border: 1.5px solid rgba(0, 0, 0, 0.2);
}



/*<----------------------------------------------Text and buttons--------------------------------------------------------->*/

@keyframes navFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mode-toggle {
  font-size: 1.2rem;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem;
  gap: 2rem;
  width: 100vw;
  min-height: 100vh;
  margin: 0;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3rem;
  line-height: 1.4;
}

.hero-text .highlight {
  color: #c084fc;
}

.hero-text .highlight-2 {
  font-family: monospace;
  color: #a78bfa;
  letter-spacing: 1px;
}

.typewriter-text {
  margin-top: 1rem;
  font-size: 1rem;
  color: #d1c4e9;
  min-height: 24px;
}

.buttons-hero {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

.btn {
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: bold;
  transition: 0.3s;
}

.btn.primary {
  background: #a855f7;
  color: white;
}

.btn.primary:hover {
  background: #9333ea;
}

.btn.secondary {
  border: 1px solid white;
  color: white;
}

.btn.secondary:hover {
  background: white;
  color: black;
}

.hero-img img {
  width: 380px;
  filter: drop-shadow(0 0 20px rgba(160, 100, 255, 0.5));
}




/*<----------------------------------------------Dark Mode Toggle--------------------------------------------------------->*/
.mode-toggle {
  cursor: pointer;
}

.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #2c2c54;
  border-radius: 999px;
  width: 60px;
  height: 30px;
  padding: 5px;
  position: relative;
  transition: 0.3s ease;
}

.toggle .icon {
  width: 24px;
  height: 24px;
  text-align: center;
  line-height: 24px;
  font-size: 14px;
  border-radius: 50%;
  transition: 0.3s ease;
  z-index: 2;
  position: relative;
  color: #fff;
}

.toggle::before {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: 0.3s ease;
  z-index: 1;
}

body.light .toggle::before {
  left: 33px;
}

body.light {
  background: #f8f8f8;
  color: #222;
}


body.light header {
  background-color: #f9f9f9;
  color: #222;
}


body.light nav a {
  color: #222;
}

body.light nav a.active,
body.light nav a:hover {

  color: #222;
}

body.light nav a.active {
  background: transparent;
  color: #222;
}

.purple {
  color: #a855f7;
}


body.light .purple {
  color: #a855f7;
}


.btn.secondary {
  background: #f9f9f9;
  color: #222;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s ease;
}

/* Light mode – make it black */
body.light .btn.secondary {
  background: #222;
  color: #fff;
}

body.light .btn.secondary:hover {
  background: #000;
}

/* Default dark background */
.large-header {
  background: #111;
}


body.light .large-header {
  background: #fff;
}


body.light canvas {
  filter: brightness(0.7) contrast(1.1);
}


body.light #demo-canvas {
  mix-blend-mode: multiply;
}

/*<----------------------------------------------Image profile--------------------------------------------------------->*/
/* photo*/
/*
.img-container {
  position: relative;
  width: fit-content;
  filter: drop-shadow(0 0 30px rgba(160, 100, 255, 0.4));
  filter: blur(0,0,0,5);
}
.img-container img {
  display: block;
  width: 100%;
  height: auto;

  /* ✨ Transparent bottom fade ✨ */
/*
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 40%);
  mask-image: linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 40%);
}*/
/*
.img-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35%; /* controls how much bottom gets blurred */
/*
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  filter: blur(25px);
  pointer-events: none;
  z-index: 2;
  border-radius: 30% 30% 50% 50% / 40%;
}/*
*/
/* media */

/*<------------------------------------------Canvas Background--------------------------------------------------------->*/
/* Make canvas full screen behind everything */
.large-header,
.content-wrapper,
header,
.hero {
  position: relative;
  z-index: 1;
}


.large-header {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #1a1a2e;
}


#demo-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}


.content-wrapper {
  position: relative;
  z-index: 2;
}


.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem;
  min-height: 80vh;
}


#tsparticles {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

.large-header,
.content-wrapper {
  position: relative;
  z-index: 1;
}


/*<------------------------------------------About Section--------------------------------------------------------->*/
.about-section {
  padding: 4rem 2rem;
  padding-top: 100px;
  background-color: var(--bg);
  color: var(--text);

}

.fade-section {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
}

.about-text {
  flex: 1 1 500px;
}

.about-text .section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-image {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 1.5rem;
  filter: drop-shadow(0 0 20px rgba(180, 100, 255, 0.2));
}


.light-mode .about-section {
  background: #fefefe;
  color: #111;
}


/*<------------------------------------------------Education Section--------------------------------------------------------->*/
.education-section {
  padding: 80px 20px;
  background: transparent;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
}

.section-title .highlight {
  color: #a970ff;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: auto;
  padding-left: 20px;
  border-left: 3px solid #a970ff;
}

.timeline-item {
  margin-bottom: 40px;
  position: relative;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  background: #a970ff;
  border-radius: 50%;
  position: absolute;
  left: -30px;
  top: 5px;
}

.timeline-item.invisible {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-date {
  font-size: 0.95rem;
  color: #999;
  margin-bottom: 6px;
  margin-left: 10px;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(169, 112, 255, 0.2);
  transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
}

.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 5px;
}

.timeline-content p {
  font-size: 0.95rem;
  color: #ccc;
  margin: 4px 0;
}

body.light-mode .timeline {
  border-color: #000;
}

body.light-mode .timeline-dot {
  background-color: #000;
}

body.light-mode .timeline-content {
  background: rgba(0, 0, 0, 0.05);
  color: #000;
}

body.light-mode .timeline-content h3 {
  color: #000;
}

body.light-mode .timeline-content p {
  color: #333;
}






/*<--------------hamburger--------------->*/
/* ---------------- DESKTOP STYLES ---------------- */
/* ----- Desktop Styles ----- */
header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  flex-wrap: wrap;
}

nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-bar {
  display: flex;
  gap: 2rem;
  position: relative;
}

.nav-bar li {
  list-style: none;
}

.nav-bar a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 10px;
  transition: all 0.3s ease;
}

.nav-bar a.active {
  border-bottom: 2px solid var(--highlight-color);
}

.mode-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
}


/* ----- Mobile Styles ----- */

@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    padding: 1rem 1.5rem;
    gap: 10px;
    
  }

  header h1 {
    font-size: 1.4rem;
    margin-top: 5px;
  }
  
 
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    font-size: 10px;
    }

  .hamburger {
    flex-direction: column;
    position: absolute;
    gap: 5px;
    cursor: pointer;
    top: 1.5rem;
    right: 1.5rem;
    /* adjust to make space for dark toggle */
    z-index: 1000;
  }

  .hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
  }

  .mode-toggle {
    position: relative;
    top: 0;
    right: 0;
    align-self: flex-start;
    margin-bottom: 5px;
    z-index: 1002;
  }

}

/* ============================= */
/* MOBILE HERO – HARD RESET */
/* ============================= */

@media (max-width: 768px) {

  .hero {
    padding: 90px 10px 300px;
  }

  .hero-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    position: relative;
  }

  /* 🔥 FORCE ROBOT TO TOP */
 .robot-3d{
  display: none;
 }

  /* TITLE AFTER ROBOT */
  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 14px;
  }

  /* DESCRIPTION */
  .typewriter-text {
    font-size: 0.95rem;
    max-width: 90%;
    margin-bottom: 22px;
  }

  /* BUTTONS STACKED */
  .buttons-hero {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    align-items: center;
  }

  .buttons-hero .btn {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }


  /* spline shouldn't block touches */
  spline-viewer {
    pointer-events: none;
  }
}
