* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
  background-color: #0f021f;
  color: #f8f0ff;
  text-align: center;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}


body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(-45deg,
    #2e026d,
    #6d28d9,
    #ec4899,
    #9333ea,
    #3b0764);
  background-size: 400% 400%;
  animation: neonGradient 15s ease infinite;
  z-index: -1;
  filter: blur(60px);
  opacity: 0.5;
}

@keyframes neonGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* sticky header */
.sticky-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  z-index: 1000;

  /* 🌈 Glassy / glossy look */
  background: rgba(80, 0, 120, 0.25); /* base tint */
  background: linear-gradient(90deg,
    rgba(100, 0, 160, 0.35),
    rgba(60, 0, 80, 0.2)
  );
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);

  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(255, 0, 153, 0.25);
  border-radius: 0 0 10px 10px;

  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(-100%);

  padding: 30px 20px;
}

.sticky-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom right,
    rgba(255, 0, 200, 0.15),
    rgba(255, 255, 255, 0.05)
  );
  mix-blend-mode: overlay;
}


/* Content inside header */
.header-content {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.header-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 0, 221, 0.8);
  box-shadow: 0 0 10px rgba(255, 0, 221, 0.5);
  transition: transform 0.3s ease;
}
.header-avatar:hover {
  transform: scale(1.1);
}

.header-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 0 6px #e0b3ff;
  letter-spacing: 0.5px;
  margin-right: 50px;
}

.header-content #discord-status {
  font-size: 1rem;
  text-shadow: 0 0 8px #bb86fc;
  padding: 8px 18px;
  display: inline-block;
  backdrop-filter: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  margin: 10px;
}

.project-grid h3:nth-child(2) {
  align-self: center;
}

.lang-switcher {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-right: 50px;
}

.lang-flag {
  width: 30px;
  height: 30px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.lang-flag.active,
.lang-flag:hover {
  opacity: 1;
}


/* sections */
section, header, footer {
  width: 100%;
  max-width: 800px;
  padding: 60px 20px;
  margin: 0 auto;
}

/* hero */
.hero {
  padding-top: 80px;
}

#discord-status {
  font-size: 1.2rem;
  text-shadow: 0 0 8px #bb86fc;
  padding: 8px 18px;
  display: inline-block;
  backdrop-filter: blur(10px);
  transition: color 0.3s ease, text-shadow 0.3s ease;
  margin: 10px;
}
#discord-status p {
   font-size: 1.1rem;
  color: rgb(111, 111, 255);
  text-shadow: none;
  font-weight: bold;
}


header img {
  height: 200px;
  width: 200px;
  border: 1px solid #ea8afd81;
  border-radius: 100px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 10px #c77dff, 0 0 25px #9d4edd;
}

.hero .subtitle {
  font-size: 1.2rem;
  color: #e9d5ff;
  margin: 15px 0 30px;
}

.btn {
  display: inline-block;
  background: linear-gradient(90deg, #7b2ff7, #f107a3);
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 0 15px #7b2ff7, 0 0 25px #f107a3;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px #7b2ff7, 0 0 50px #f107a3;
}

/* sec h */
section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #f8f0ff;
  text-shadow: 0 0 6px #bb86fc;
}

/* abt */
.about p {
  color: #e2d4ff;
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
}

/* skilly */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
}

.skills-list .skills-column {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  width: 220px;
  height: fit-content;
  margin: 5px;
}

.skills-column .title {
  font-size: 1.2rem;
  color: #e9d5ff;
  margin: 15px 0 20px;
  width: 120px;
  border-bottom: 2px solid #e9d5ff;
}

.skills-column .subtitle {
  font-size: 1.1rem;
  color: #e9d5ff;
  margin: 15px 0 20px;
  width: 180px;
  border-bottom: 1px solid #e9d5ff;
}

.skills-list span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffb3ff;
  padding: 8px 18px;
  margin: 5px;
  border-radius: 20px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(255, 0, 255, 0.3);
}

.skills-list span:hover {
  background: rgba(255, 0, 255, 0.2);
  transform: scale(1.08);
}

.skills-list .no {
  background: none;
  border: none;
  color: #e9d5ff;
  padding: 0;
  margin: 15px 0 20px;
  border-radius: 0;
  font-size: 1.2rem;
  transition: none;
  box-shadow: none;
  width: 120px;
}
.skills-list .no:hover {
  background: none;
  transform: none;
}

/* project */
.projects {
  position: relative;
  z-index: 1;
}

.projects .project-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Base Card */
.project-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  padding: 25px;
  height: 220px;
  width: 350px;              
  display: flex;
  flex-direction: column;
  justify-content: flex-end;      /* text sits at bottom */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 12px rgba(255, 0, 153, 0.25);
}

/* Dark overlay */
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 2, 31, 0.6);
  z-index: 0;
  transition: background 0.3s ease;
}

.project-card:hover::before {
  background: rgba(15, 2, 31, 0.4);
}

/* Text styling */
.project-card h3,
.project-card p,
.project-card a {
  position: relative;
  z-index: 1;
}

.project-card h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: auto;
  text-shadow: 0 0 6px #bb86fc;
  text-align: left;
}

.projects .more {
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  margin-top: 10px;
  text-shadow: 0 0 6px #bb86fc;
}

.project-card p {
  color: #d1b3ff;
  text-align: left;
}

.project-card a {
  color: #f107a3;
  text-decoration: none;
  font-weight: 500;
}

.project-card a:hover {
  text-decoration: underline;
}

/* Hover animation */
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(255, 0, 153, 0.4), 0 0 40px rgba(136, 58, 255, 0.3);
}

.project-grid .project1 {
  background-image: url('images/ancient.png');
  background-position: left;
}

.project-grid .project2 {
  background-image: url('images/lang-switcher.gif');
  background-position: left;
}


/* footer */
.footer {
  background-color: rgba(15, 2, 31, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 60px 20px;
  margin-top: auto;
}

.footer h2 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 25px;
  text-shadow: 0 0 10px #c77dff;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 25px;
}

.socials a {
  color: #d1b3ff;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.socials a:hover {
  color: #fff;
  text-shadow: 0 0 10px #f107a3, 0 0 20px #7b2ff7;
}

.footer p {
  font-size: 0.85rem;
  color: #a78bfa;
}


/* LANG TOAST */

.lang-toast {
  position: fixed;
  top: -100px;
  left: 50%;
  margin-top: 60px;
  transform: translateX(-50%);
  background: rgba(104, 249, 167, 0.394);
  color: white;
  padding: 1rem 1.5rem 1rem 1.5rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-shadow: 2px 4px 12px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition:
    opacity 0.3s ease,
    top 0.5s ease;
}

.lang-toast img {
  width: 20px;
  height: auto;
}

.lang-toast.show {
  top: 1rem;
  opacity: 1;
  pointer-events: auto;
}

.hidden {
  display: none;
}


/* RESPONSIVE */

@media (max-width: 780px) {
  .header-name {
    margin-right: 20px;
  }
  .lang-switcher {
    margin-right: 20px;
  }
  .project-card {
    height: 200px;
    width: 350px;
  }
}
@media (max-width: 720px) {
  .header-name {
    margin-right: 10px;
  }
  .hero .lang-switcher {
    margin-right: 50px;
  }
  .project-card {
    height: 180px;
    width: 320px;
  }
}
@media (max-width: 700px) {
  .header-name {
    margin-right: 5px;
  }
  .lang-switcher {
    margin-right: 5px;
  }
  .project-card {
    height: 160px;
    width: 300px;
    padding: 15px;
  }
  .project-card h3 {
    font-size: 1.1rem;
    margin-bottom: auto;
  }
  .project-card p {
    font-size: 0.8rem;
  }
}
@media (max-width: 690px) {
  .header-name {
    margin-right: 10px;
  }
  .lang-switcher {
    margin-right: 10px;
  }
  .header-tag {
    width: 300px;
  }
}
@media (max-width: 650px) {
  .header-name {
    margin-right: 5px;
  }
  .lang-switcher {
    margin-right: 5px;
  }
  .project-card {
    height: 160px;
    width: 300px;
    padding: 15px;
  }
  .project-card h3 {
    font-size: 1.1rem;
    margin-bottom: auto;
  }
  .project-card p {
    font-size: 0.8rem;
  }
}
@media (max-width: 620px) {
  .hero {
    margin-top: 50px;
  }
  .header-name {
    margin-right: 5px;
  }
  .lang-switcher {
    margin-right: 5px;
  }
  .about p {
    font-size: 1.3rem;
    padding: 20px;
  }
  .project-card {
    height: 230px;
    width: 400px;
    padding: 15px;
  }
  .project-card h3 {
    font-size: 1.1rem;
    margin-bottom: auto;
  }
  .project-card p {
    font-size: 0.8rem;
  }
}
@media (max-width: 590px) {
  .header-name {
    margin-right: 10px;
  }
   .header-tag {
    width: 250px;
  }
  .hero .lang-switcher {
    margin-right: 10px;
  }
  .header-content #discord-status {
  font-size: 1rem;
  text-shadow: 0 0 8px #bb86fc;
  padding: 8px 18px;
  display: inline-block;
  backdrop-filter: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  margin: 5px;
}
}
@media (max-width: 550px) {
  .header-name {
    margin-right: 30px;
  }
  .lang-switcher {
    margin-right: 5px;
  }
  .header-content #discord-status {
  font-size: 1rem;
  text-shadow: 0 0 8px #bb86fc;
  padding: 8px 18px;
  display: inline-block;
  backdrop-filter: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  margin: 5px;
  width: 200px;
}
}
@media (max-width: 540px) {
  .sticky-header {
    width: 400px;
  }
  .header-name {
    margin-right: 0;
  }
  
   .lang-switcher {
    margin-left: 5px;
  }
 .hero  .lang-switcher {
    margin-right: 40px;
  }
   .about p {
    font-size: 1.2rem;
    padding: 20px;
  }
   .project-card {
    height: 200px;
    width: 350px;
    padding: 15px;
  }
  .project-card h3 {
    font-size: 1.3rem;
    margin-bottom: auto;
  }
  .project-card p {
    font-size: 1rem;
  }
   .header-content  #discord-status {
  font-size: 1rem;
  text-shadow: 0 0 8px #bb86fc;
  padding: 4px 8px;
  display: inline-block;
  backdrop-filter: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  margin: 5px;
  width: 100px;
}
}