:root {
  --main: #ffa142;
  --accent: #0078b0;
  --soft: #f6f7f9;
  --bright: #ffd574;
  --card-bg: rgb(195 195 228 / 46%);
  --fade: rgba(20,30,48,0.7);
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--main);
  min-height: 100vh;
  color: #213047;
}

.hero-bg {
  position: relative;
  width: 100vw;
  max-width: 100%;
  height: 481px;
  overflow: hidden;
  background: linear-gradient(270deg, #10b3ff, #ffd574, #f6f7f9, #10b3ff);
  background-size: 400% 400%;
  animation: gradientMove 12s ease-in-out infinite;
}

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

header {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4.2rem 1rem 2.5rem 1rem;
  color: #fff;
}
header .avatar {
  margin: 2.5rem auto 1rem auto;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: url('Assets/profile_pic.jpg') ;
  background-position: center 20%;
  background-size: cover;
  /* border: 5px solid var(--bright); */
  /* box-shadow: 0 0 40px #fff3, 0 0 0 7px var(--accent) inset; */
  transition: box-shadow 0.25s; animation: popIn 1.3s 0.2s backwards;
}
header .avatar:hover { box-shadow: 0 0 80px #00000077, 0 0 0 7px var(--accent) inset; }

#typewriter-text {
  font-family: inherit;
  letter-spacing: 2px;
}

.hero-name #typewriter-text {
  color: #fff;
  text-shadow: 2px 3px 12px rgba(20,30,48,0.45), 0 1px 0 #213047;
}
.hero-bg #hero-desc {
  color: #fff;
  text-shadow: 2px 3px 12px rgba(20,30,48,0.45), 0 1px 0 #213047;
}

#typewriter-caret {
  display: inline-block;
  width: 0.15em;
  margin-bottom: 1%;
  color: var(--accent);
  animation: caret-blink 1s steps(1) infinite;
  vertical-align: middle;
}

@keyframes caret-blink {
  0%,100% { opacity: 0; }
  50% { opacity: 1; }
}


.hero-lead {
  margin: 0.1rem 0 0.8rem 0;
  font-size: 1.25rem;
  letter-spacing: 1.2px;
  font-weight: 600;
  color: #fafbfd;
  text-shadow: 2px 2px 12px #6510ae32;
}
.hero-links {
  margin: 0.5rem 0 0 0;
}

.wave-separator {
  position: absolute;
  left: 0;
  bottom: -2%;
  width: 100vw;
  height: 120px;
  z-index: 2;
  pointer-events: none;
  line-height: 0;
}

.animated-wave svg {
  animation: waveMove 4s ease-in-out infinite;
}

@keyframes waveMove {
  0% { transform: translateX(0); }
  50% { transform: translateX(-30px); }
  100% { transform: translateX(0); }
}

.hero-bg {
  position: relative;
}

.hero-links a {
  display: inline-block;
  margin: 0 0.4em;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 0.5em 1.3em;
  border-radius: 20px;
  text-decoration: none;
  letter-spacing: 1px;
  box-shadow: 0 2px 12px #10b3ff55;
  transition: background .2s, letter-spacing .2s;
}
.hero-links a:hover { background: var(--bright); color: var(--main); letter-spacing: 3px;}
.main-bg {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  z-index: 0;
  overflow: hidden;
  background: none;
}
#bg-canvas {
  position: absolute;
  left: 0; top: 0;
  width: 100vw; height: 100%;
  z-index: 0; /* stays behind main content */
  display: block;
  pointer-events: none;
}
main {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.6rem 2vw 1.2rem;
}
section {
  margin-top: 2.2rem;
  background: var(--card-bg);
  border-radius: 1.25rem;
  box-shadow: 0 7px 34px -7px #10b3ff17;
  padding: 2.2rem 2.2rem 1.7rem 2.2rem;
  transition: box-shadow .3s, background .2s;
  position: relative;
  overflow: hidden;
}

section h2 {
  position: relative;
  margin: 0 0 1.3rem 0;
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 700;
}

section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin-top: 8px;
  border-radius: 3px;
  background: linear-gradient(90deg, #10b3ff, #ffd574);
  animation: headingLineAnim 6s ease-in-out infinite alternate;
}
@keyframes headingLineAnim {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.skill-tags {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin-top:.5em;
}
.skill-tags span {
  background: var(--accent);
  color: #fff;
  padding: .5em 1.2em;
  border-radius: 17px;
  font-weight: 600;
  font-size: 1.02em;
  box-shadow: 0 2px 9px #10b3ff33;
  transition: background .2s, box-shadow .2s;
  animation: popIn 0.9s cubic-bezier(.24,1.01,.67,.71) backwards;
}

.skill-tags span:hover {
  animation: pulseSkill 0.4s;
  background: var(--bright);
  color: #fff;
}
@keyframes pulseSkill {
  0%   { transform: scale(1);     box-shadow: 0 0 0 #ffd57400; }
  50%  { transform: scale(1.13);  box-shadow: 0 2px 9px #ffd57477; }
  100% { transform: scale(1);     box-shadow: 0 0 0 #ffd57400; }
}

.project-card {
  display: flex; flex-direction: column; align-items: start;
  margin-bottom: 1.3rem;
  border-radius: 18px;
  background: linear-gradient(110deg, #10b3ff18 25%, #fff 100%);
  padding: 1.3em 1.5em;
  box-shadow: 0 2px 15px #10b3ff21;
  animation: popIn .9s backwards;
}

.project-card {
  transition:
    transform 0.45s cubic-bezier(.32,1.56,.48,1),
    box-shadow 0.3s cubic-bezier(.22,1,.36,1),
    background 0.3s;
}

.project-card:hover {
  transform: translateY(-16px) scale(1.045) rotateX(5deg);
  box-shadow:
    0 12px 36px -8px #10b3ff33,
    0 0 0 4px #ffd57455 inset;
  background: linear-gradient(120deg, #fff 60%, #10b3ff13 100%);
  z-index: 2;
}

.card-icon {
  width: 40px; height: 40px;
  margin-bottom: .7em; border-radius: 44%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.65em;
  box-shadow: 0 1px 10px #ffd57433;
  position: relative;
}
.icon-todos {
  background: url('Assets/to-do-list.png') no-repeat center center;
  background-size: contain; /* scales image inside */
  color: transparent; /* hide any text */
}

.icon-todos::before {
  content: none; /* Removes the current square block */
}

.icon-flag {
  background: url('Assets/red-flag.png') no-repeat center center;
  background-size: contain; /* scales image inside */
  color: transparent; /* hide any text */
}

.icon-flag::before {
  content: none; /* Removes the current square block */
}


.icon-bot {
  background: url('Assets/chat-bot.png') no-repeat center center;
  background-size: contain;
  color: transparent;
}

.icon-bot::before {
  content: none; /* Removes the robot emoji */
}

.timeline ul, .accolades ul {
  margin: 0; padding: 0; list-style: none;
}
.timeline li, .accolades li {
  margin: 1.3em 0 0.3em 2.1em;
  position: relative;
  font-size: 1.07em;
}

.timeline li:before {
  content:''; position: absolute; left: -2.2em; top: 0em; width:1.1em; height:1.1em; background: var(--accent); border-radius:50%;
}

.accolades li:before {
  content:''; position: absolute; left: -2.2em; top: 0em; width:1.1em; height:1.1em; background: var(--accent); border-radius:50%;
}
.time {
  color: var(--bright);
  background: var(--main);
  border-radius: 12px;
  font-size: .93em;
  padding: 0 .7em 0 .7em;
  margin-left: .6em;
  margin-right: .6em;
  vertical-align: middle;
}
footer {
  text-align: center; color: #fff;
  background: var(--main); margin-top: 2.5rem; font-size: 1.09em;
  padding: 2.4rem 0 1.5rem 0;
  letter-spacing: .7px;
}
@keyframes popIn {
  0% { transform: scale(0.72); opacity: 0;}
  82% { transform: scale(1.09);}
  100% { transform: scale(1); opacity: 1;}
}
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-70px);}
  100% { opacity: 1; transform: translateY(0);}
}
.reveal { opacity:0; transform: translateY(38px) scale(0.97); transition: opacity 0.8s, transform 0.8s;}
.reveal.visible {opacity:1; transform:none;}
