:root {
  --bg: #0f0f10;
  --nav-bg: rgba(14, 14, 14, 0.7);
  --text: #ffffff;

  --gradient: linear-gradient(
    90deg,
    #7209fc,
    #ff00ff,
    #008cff
  );

  --gradient2: linear-gradient(
    90deg,
    #ff006a,
    #d400ff,
    #8a0ae6,
    #8c00ff
  );
}

/* =========================
   BASE
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

/* =========================
   PARTICLES
========================= */

#particles-js {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
#particles-js canvas {
  pointer-events: none;
}
/* =========================
   NAVBAR
========================= */

.navbar {
  position: relative;
  z-index: 10;
}

.navdiv {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 20px 40px;

  background: var(--nav-bg);
  backdrop-filter: blur(12px);
}

.logo h3 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 4px;

  background: var(--gradient);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* NAV LINKS */

.navbar ul {
  list-style: none;

  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar ul li {
  position: relative;

  cursor: pointer;

  font-size: 1.1rem;
  font-weight: 500;

  color: var(--text);

  padding-bottom: 6px;

  transition: 0.3s ease;
}

.navbar ul li::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: 0;

  width: 0%;
  height: 2px;

  background: var(--gradient2);

  border-radius: 10px;

  transition: width 0.3s ease;
}

.navbar ul li:hover::after {
  width: 100%;
}
nav ul li a{
  text-decoration: none;
  color: var(--text);
}

.navbar ul li:hover {
  text-shadow: 0 0 10px rgba(124, 77, 255, 0.5);
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  z-index: 10;

  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 3rem;

  padding: 60px 80px;

  min-height: calc(100vh - 100px);
}

/* HERO TEXT */

.herotext {
  flex: 1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;

  background: var(--gradient2);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================
   TYPEWRITER
========================= */

.animated-text {
  margin-top: 1rem;

  font-size: 4rem;
  font-weight: 800;

  color: var(--text);

  line-height: 1.2;

  display: inline-block;

  min-height: 100px;
}

.animated-text span {
  position: relative;
  display: inline-block;
}

.animated-text span::before {
  content: "FullStack Developer";

  background-image: linear-gradient(
    90deg,
    #00eeff,
    #7c4dff,
    #ff2d95
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: words 20s infinite;
}

.animated-text span::after {
  content: "";

  position: absolute;

  top: 0;
  right: -8px;

  width: calc(100% + 8px);
  height: 100%;

  background: var(--bg);

  border-left: 2px solid white;

  animation:
    cursor 0.8s infinite,
    typing 20s steps(22) infinite;
}

/* =========================
   TYPEWRITER ANIMATIONS
========================= */

@keyframes cursor {
  to {
    border-left: 2px solid transparent;
  }
}

@keyframes words {
  0%,
  20% {
    content: "Frontend Developer";
  }

  21%,
  40% {
    content: "Graphic Designer";
  }

  41%,
  60% {
    content: "Web Designer";
  }

  61%,
  80% {
    content: "IoT Developer";
  }

  81%,
  100% {
    content: "武士!";
  }
}

@keyframes typing {
  10%,
  15%,
  30%,
  35%,
  50%,
  55%,
  70%,
  75%,
  90%,
  95% {
    width: 0;
  }

  5%,
  20%,
  25%,
  40%,
  45%,
  60%,
  65%,
  80%,
  85%,
  100% {
    width: calc(100% + 8px);
  }
}

/* =========================
   BUTTONS
========================= */

.buttons {
  margin-top: 2rem;

  display: flex;
  align-items: center;
  gap: 1.5rem;

  flex-wrap: wrap;
}

.buttons button {
  padding: 0.85rem 2rem;

  border-radius: 999px;
  border: 1px solid white;

  font-size: 1rem;
  font-weight: 500;

  cursor: pointer;

  transition: all 0.3s ease;
}

/* CV BUTTON */

.cv {
  background: white;
  color: var(--bg);
}

.cv:hover {
  background: transparent;
  color: white;

  transform: translateY(-3px);

  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

/* HIRE BUTTON */

.hire {
  background: transparent;
  color: white;
}

.hire:hover {
  background: white;
  color: var(--bg);

  transform: translateY(-3px);

  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

/* =========================
   SOCIALS
========================= */

.socials {
  margin-top: 2rem;

  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.socials a {
  text-decoration: none;
}

.socials i {
  width: 52px;
  height: 52px;

  display: inline-flex;
  justify-content: center;
  align-items: center;

  border-radius: 50%;

  font-size: 1.4rem;

  transition: 0.3s ease;

  cursor: pointer;
}

/* LINKEDIN */

.fa-linkedin {
  background: #0a66c2;
  color: white;
}

.fa-linkedin:hover {
  transform: translateY(-5px) scale(1.08);

  box-shadow: 0 0 25px rgba(10, 102, 194, 1);
}

/* GITHUB */

#github {
  background: #24292e;
  color: white;
}

#github:hover {
  transform: translateY(-5px) scale(1.08);

  box-shadow: 0 0 25px rgba(255, 255, 255, 1);
}

/* INSTAGRAM */

#instagram {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );

  color: white;
}

#instagram:hover {
  transform: translateY(-5px) scale(1.08);

  box-shadow: 0 0 25px rgba(214, 36, 159, 1);
}

/* =========================
   HERO IMAGE
========================= */

.heroimg img {
  width: 100%;
  max-width: 400px;
  display: block;
  clip-path: (49%);
  border-radius: 50%;

  /* ADD THESE */
  object-fit: cover;
  mix-blend-mode: lighten;

  /* OPTIONAL */
  filter: contrast(1.05);

  box-shadow:
    0 0 20px #7209fc,
    0 0 40px #7209fc,
    0 0 80px #ff00ff,
    0 0 120px #008cff;

  animation:
    pulseGlow 2s infinite alternate,
    float 3s ease-in-out infinite;
}

@keyframes pulseGlow{
  from{
    box-shadow:
      0 0 20px #7209fc,
      0 0 40px #7209fc,
      0 0 80px #ff00ff,
      0 0 120px #008cff;
  }

  to{
    box-shadow:
      0 0 35px #7209fc,
      0 0 70px #7209fc,
      0 0 120px #ff00ff,
      0 0 170px #008cff;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0px);
  }
}
/* =========================
   TABLET
========================= */

@media (max-width: 992px) {

  .hero {
    flex-direction: column-reverse;

    text-align: center;

    padding: 50px 30px;
  }

  .heroimg img {
    max-width: 320px;
  }

  .buttons,
  .socials {
    justify-content: center;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .animated-text {
    font-size: 3rem;
    min-height: 80px;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

  .navdiv {
    flex-direction: column;

    gap: 1rem;

    padding: 20px;
  }

  .navbar ul {
    gap: 1.2rem;
  }

  .navbar ul li {
    font-size: 1rem;
  }

  .hero {
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .animated-text {
    font-size: 2rem;

    min-height: 60px;
  }

  .buttons {
    flex-direction: column;
  }

  .buttons button {
    width: 220px;
  }

  .socials {
    gap: 1rem;
  }

  .socials i {
    width: 46px;
    height: 46px;

    font-size: 1.2rem;
  }

  .heroimg img {
    max-width: 240px;
  }
}
/* =========================
   JOURNEY SECTION
========================= */

.journey{
  position: relative;
  z-index: 10;

  padding: 100px 80px;
}

.section-title, .projects-title {
  font-size: 3rem;
  font-weight: 800;

  margin-bottom: 4rem;

  text-align: center;

  background: var(--gradient2);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* TIMELINE */

.timeline{
  position: relative;

  max-width: 900px;

  margin: auto;
}

/* CENTER LINE */

.timeline::before{
  content: "";

  position: absolute;

  left: 20px;
  top: 0;

  width: 3px;
  height: 100%;

  background: linear-gradient(
    to bottom,
    #7209fc,
    #ff00ff,
    #008cff
  );

  border-radius: 10px;
}

/* ITEM */

.timeline-item{
  position: relative;

  padding-left: 70px;

  margin-bottom: 4rem;
}

/* DOT */

.timeline-dot{
  position: absolute;

  left: 10px;
  top: 10px;

  width: 22px;
  height: 22px;

  border-radius: 50%;

  background: #7209fc;

  box-shadow:
    0 0 15px #7209fc,
    0 0 30px #ff00ff;
}

/* CARD */

.timeline-content{
  background: rgba(255,255,255,0.04);

  border: 1px solid rgba(255,255,255,0.08);

  padding: 25px;

  border-radius: 20px;

  backdrop-filter: blur(10px);

  transition: 0.3s ease;
}

.timeline-content:hover{
  transform: translateY(-5px);

  border-color: rgba(114,9,252,0.7);

  box-shadow:
    0 0 20px rgba(114,9,252,0.25);
}

/* TEXT */

.timeline-content h3{
  font-size: 1.5rem;
  font-weight: 700;

  margin-bottom: 10px;

  color: white;
}

.timeline-content span{
  display: inline-block;

  margin-bottom: 15px;

  color: #b3b3b3;

  font-size: 0.95rem;
}

.timeline-content p{
  color: #d4d4d4;

  line-height: 1.7;
}

/* RESPONSIVE */

@media (max-width: 768px){

  .journey{
    padding: 80px 25px;
  }

  .section-title{
    font-size: 2.3rem;
  }

  .timeline-item{
    padding-left: 55px;
  }

  .timeline-content{
    padding: 20px;
  }
}
/* =========================
   SCROLL REVEAL EFFECT
========================= */

.hidden{
  opacity: 0;

  filter: blur(5px);

  transform: translateY(50px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease,
    filter 0.8s ease;
}

.show{
  opacity: 1;

  filter: blur(0);

  transform: translateY(0);
}

/* STAGGER EFFECT */

.timeline-item:nth-child(1){
  transition-delay: 0ms;
}

.timeline-item:nth-child(2){
  transition-delay: 200ms;
}

.timeline-item:nth-child(3){
  transition-delay: 400ms;
}
.section-title, .projects-title {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(6px);

  transition: all 0.8s ease;
}

.section-title.show, .projects-title.show{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.projects{
  position: relative;
  z-index: 10;
  padding: 100px 80px;
}

.project-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);

  padding: 25px;
  border-radius: 18px;

  transition: 0.3s ease;

  position: relative;
  overflow: hidden;
}

.project-card:hover{
  transform: translateY(-8px);
  border-color: rgba(114,9,252,0.6);
  box-shadow: 0 0 25px rgba(114,9,252,0.25);
}

.project-card h3{
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.project-card p{
  font-size: 0.95rem;
  color: #cfcfcf;
  line-height: 1.6;
}

/* TAGS */
.tags{
  margin-top: 15px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tags span{
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;

  background: rgba(255,255,255,0.08);
  color: white;
}

/* LINKS */
.links{
  margin-top: 15px;
  display: flex;
  gap: 15px;
}

.links a{
  text-decoration: none;
  font-size: 0.9rem;
  color: #fff;

  border-bottom: 1px solid transparent;
  transition: 0.3s;
}

.links a:hover{
  border-bottom: 1px solid #ff00ff;
}
.project-img{
  width: 100%;
  height: 50%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 15px;
}

.project-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-img img{
  transform: scale(1.08);
}
/* =========================
   SECTION BASE (IMPORTANT FOR SCALE)
========================= */

.section {
  position: relative;
  z-index: 10;
  padding: 100px 80px;
}

/* =========================
   CONTACT
========================= */

.contact {
  text-align: center;
}

.contact-form {
  max-width: 650px;
  margin: auto;

  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* FORM GROUP (future JS validation hook) */
.form-group {
  width: 100%;
}

/* INPUTS */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;

  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);

  background: rgba(255,255,255,0.04);
  color: white;

  outline: none;

  transition: 0.3s ease;
}

/* focus animation hook */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #7209fc;
  box-shadow: 0 0 15px rgba(114,9,252,0.3);
  transform: scale(1.01);
}

/* BUTTON */
.btn-primary {
  padding: 1rem;
  border: none;

  border-radius: 999px;

  background: var(--text);
  color: var(--bg);

  font-weight: 600;

  cursor: pointer;

  transition: 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 25px rgba(114,9,252,0.4);
  color: white;
  background: var(--gradient2);
}

/* =========================
   FOOTER
========================= */

.footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  background-color: var(--bg);
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-text {
  color: #aaa;
  font-family:'poppins';
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.7;

  transition: 0.3s ease;
  font-family: "Poppins";
}

.footer-links a:hover {
  opacity: 1;
  color: #ff00ff;
}
.footer-container{
  background-color:var(--bg);
  z-index: 999;
}
input,
textarea,
button {
  font-family: "Poppins", sans-serif;
}
/* =========================
   PROJECT GRID
========================= */

/* =========================
   PROJECTS WRAPPER
========================= */

.projects {
  position: relative;
  z-index: 10;
  padding: 100px 80px;
}

/* =========================
   GRID (MAIN FIX)
========================= */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

/* =========================
   PROJECT CARD
========================= */

.project-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;

  overflow: hidden;
  display: flex;
  flex-direction: column;

  transition: 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 25px rgba(114,9,252,0.25);
}

/* IMAGE */

.project-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* TEXT */

.project-card h3 {
  padding: 1rem 1rem 0.5rem;
  font-size: 1.2rem;
}

.project-card p {
  padding: 0 1rem;
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.5;
}

/* TAGS */

.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1rem;
}

.tags span {
  background: rgba(255,255,255,0.08);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
}

/* LINKS (FIXED BOTTOM VISIBILITY) */

.links {
  margin-top: auto;
  display: flex;
  gap: 1rem;
  padding: 1rem;
}

.links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: white;
  opacity: 0.8;
  transition: 0.3s;
}

.links a:hover {
  opacity: 1;
  color: #ff00ff;
}


@media (max-width: 968px) {

  .project-grid {
    grid-template-columns: 1fr;
  }
}
#toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999999;
}

/* TOAST BOX */
.toast {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 18px;
  min-width: 260px;

  background: rgba(15, 15, 16, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);

  border-radius: 14px;

  color: white;
  font-family: "Poppins", sans-serif;

  box-shadow: 0 0 20px rgba(114, 9, 252, 0.25);

  transform: translateX(120%);
  animation: slideIn 0.4s ease forwards, fadeOut 0.4s ease 3.2s forwards;
}

/* GREEN CHECK CIRCLE */
.toast-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #00c853;
  color: white;
  font-weight: bold;

  box-shadow: 0 0 15px rgba(0, 200, 83, 0.5);
}

/* TEXT */
.toast span {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ANIMATIONS */
@keyframes slideIn {
  to {
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(120%);
  }
}
