
body {
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #212534;
  color: #eaeaea;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background .4s, color .4s;
  padding-top: 80px;
  /* Matches header height */
}

/* Particle Background */
.particles-bg {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: fadeInParticles 1.2s ease-out forwards;
}

@keyframes fadeInParticles {
  to {
    opacity: 1;
  }
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #1e1f29;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Internal Flexbox */
.header-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Left Side */
.header-left {
  text-align: left;
}

/* Right Side */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Resume Button */
.button {
  background: #353757;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.button:hover {
  background: #45477e;
}

/* Dark Mode Toggle */
.dark-toggle {
  background: #353757;
  color: #fff;
  padding: 8px 12px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s, transform 0.2s;
}

.dark-toggle:hover {
  background: #45477e;
  transform: translateY(-2px);
}

@keyframes headerIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

header p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.2;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  /* space between resume + toggle */
}

.typewriter {
  overflow: hidden;
  border-right: .13em solid #40a0ff;
  white-space: nowrap;
  letter-spacing: .1em;
  animation: typing 2.1s steps(40, end) 1s both,
    blink-caret 0.8s step-end infinite;
  font-size: 1.5rem;
  font-weight: bold;
  color: #eaeaea;
  text-shadow: 0 2px 24px #72d2ff88;
}

@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 100%
  }
}

@keyframes blink-caret {
  50% {
    border-color: transparent
  }
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  /* fixed messy margin */
  padding: 10px 20px;
  background: linear-gradient(92deg, #359eff 70%, #ae9aff 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.95em;
  box-shadow: 0 4px 18px rgba(80, 155, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .33s;
}

.button:after {
  content: '';
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-left: 6px;
  border: solid 2px #fff;
  border-radius: 2px;
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
  transition: border-color .25s;
}

.button:hover {
  background: linear-gradient(92deg, #156ded 60%, #8c72f6 100%);
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(56, 120, 235, 0.3);
}


.dark-toggle {
  position: relative;
  /* no more absolute overlap */
  background: #353757;
  color: #fff;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 16px;
  border: none;
  font-size: 0.9em;
  transition: background .3s;
}

.dark-toggle:hover {
  background: #45477e;
}


#contact {
  background: linear-gradient(135deg, rgba(40, 44, 70, 0.95), rgba(25, 28, 45, 0.95));
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 0 18px rgba(80, 155, 255, 0.22),
    0 0 42px rgba(60, 120, 255, 0.13);
  max-width: 640px;
  margin: 70px auto;
  color: #eaeaea;
  animation: glowBox 2s ease-in-out infinite alternate;
}

@keyframes glowBox {
  from {
    box-shadow: 0 0 12px rgba(80, 155, 255, 0.18),
      0 0 22px rgba(60, 120, 255, 0.12);
  }

  to {
    box-shadow: 0 0 20px rgba(80, 155, 255, 0.35),
      0 0 50px rgba(60, 120, 255, 0.25);
  }
}

#contact .section-title {
  font-size: 28px;
  margin-bottom: 20px;
  text-align: center;
  color: #a6cbff;
  text-shadow: 0 0 18px rgba(100, 180, 255, 0.5);
}

#contact .contact-info p {
  margin: 14px 0;
  font-size: 17px;
  line-height: 1.7;
  color: #d8d8d8;
}

#contact a {
  text-decoration: none;
  color: #5dbbff;
  font-weight: 600;
  transition: all 0.3s ease;
}

#contact a:hover {
  color: #fff;
  text-shadow: 0 0 16px #40a0ff;
}

.contact-item {
  opacity: 0;
  transform: translateX(-30px);
  animation: slideIn 0.8s ease forwards;
}

.contact-item:nth-child(1) {
  animation-delay: 0.2s;
}

.contact-item:nth-child(2) {
  animation-delay: 0.4s;
}

.contact-item:nth-child(3) {
  animation-delay: 0.6s;
}

.contact-item:nth-child(4) {
  animation-delay: 0.8s;
}

.contact-item:nth-child(5) {
  animation-delay: 1s;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


.section {
  max-width: 820px;
  margin: 30px auto;
  background: rgba(34, 39, 61, 0.97);
  border-radius: 10px;
  box-shadow: 0 3px 30px 2px rgba(72, 128, 215, 0.13);
  padding: 40px 38px 30px 38px;
  position: relative;
  opacity: 0;
  transform: translateY(48px) scale(.97);
  transition: opacity .9s cubic-bezier(.7, .15, .19, 1.2),
    transform .8s cubic-bezier(.7, .15, .19, 1.2);
}

.section.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: sectionIn 1s cubic-bezier(.7, .15, .19, 1.2) forwards;
}

@keyframes sectionIn {
  from {
    opacity: 0;
    transform: translateY(48px) scale(.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


h2 {
  color: #a6cbff;
  margin-bottom: 13px;
  font-size: 1.5em;
}

h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: #5d95f6;
  margin-top: 5px;
}

h3 {
  color: #e0e1ff;
  margin-top: 1.7em;
}

ul,
.section p,
li {
  font-size: 1.07em;
  margin-bottom: 0.7em;
  margin-top: 0.34em;
  list-style-position: inside;
}

a {
  color: #87ccff;
  transition: color 0.22s;
  text-decoration: none;
}

a:hover {
  color: #fff;
  text-decoration: underline;
  text-shadow: 0 2px 24px #72d2ff77;
}


#experience-timer {
  font-weight: bold;
  color: #ffe566;
  font-size: 1.07em;
  text-shadow: 0 1px 6px #917c307c;
  letter-spacing: .05em;
  animation: growIn 1.2s;
}

@keyframes growIn {
  0% {
    transform: scale(0.88);
  }

  100% {
    transform: scale(1);
  }
}


footer {
  
  text-align: center;
  padding: 20px;
  background: rgba(25, 28, 45, 0.95);
  color: #aaa;
  font-size: 0.9em;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  
}

footer p {
  margin: 6px 0;
}


@media (max-width: 650px) {
  header {
    padding-top: 18px;
    height: 65px;
  }

  .section {
    padding: 18px 5vw;
  }

  .typewriter {
    font-size: 1.25rem;
  }

  body {
    padding-top: 70px;
  }
}