* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

:root {
  --primary-gradient: linear-gradient(135deg, #03a9f4, #f441a5);
  --secondary-gradient: linear-gradient(135deg, #f441a5, #03a9f4);
  --nav-bg: rgba(11, 11, 11, 0.95);
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #000000;
  color: #eee;
  line-height: 1.6;
}

html {
  scrollbar-width: none;
  scroll-behavior: smooth;
  font-size: 16px;
}

header{
  overflow: visible;
}

/* Navigation Bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

/* Navigation Items */
.container {
  position: relative;
  border-radius: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.container::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 1rem;
  background: var(--primary-gradient);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.container:hover::before {
  opacity: 1;
  filter: blur(20px);
}

.container:active::before {
  filter: blur(10px);
}

.nav-links button {
  position: relative;
  font-size: 1.1rem;
  padding: 0.8rem 1.5rem;
  border-radius: 0.8rem;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.nav-links button a {
  color: inherit;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.nav-links button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--secondary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-links button:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(3, 169, 244, 0.3);
}

.nav-links button:hover::after {
  opacity: 0.2;
}

/* Active State */
.nav-links button:active {
  transform: translateY(0);
  filter: brightness(0.9);
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 2rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links button {
    padding: 0.6rem 1rem;
    font-size: 1rem;
  }

  .logo {
    font-size: 2rem;
  }
}

/*!Home */
.home {
  padding-top: 50px;
}

.home-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  place-items: center;
}

/*! home card */
.nft {
  user-select: none;
  max-width: 300px;
  border: 1px solid #ffffff22;
  background-color: #282c34;
  background: linear-gradient(0deg, #282c34 0%, rgba(17, 0, 32, 0.5) 100%);
  box-shadow: 0 7px 20px 5px #00000088;
  border-radius: 0.7rem;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  overflow: hidden;
  transition: 0.5s all;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center content horizontally */
  justify-content: center;
  /* Optionally center content vertically */
}

.nft hr {
  width: 100%;
  border: none;
  border-bottom: 1px solid #88888855;
  margin-top: 0;
}

.nft ins {
  text-decoration: none;
}

.nft .main {
  display: flex;
  flex-direction: column;
  width: 90%;
  padding: 1rem;
  align-items: center;
  /* Center the children horizontally */
  text-align: center;
  /* Center text horizontally */
}

.nft .main .tokenImage {
  border-radius: 50%;
  max-width: 100%;
  height: 250px;
  object-fit: cover;
  margin: 0 auto;
  /* Center the image horizontally */
}

.nft .main .description {
  margin: 0.5rem 0;
  color: #a89ec9;
}

.nft .main .tokenInfo {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nft .main .tokenInfo .price {
  display: flex;
  align-items: center;
  color: #ee83e5;
  font-weight: 700;
}

.nft .main .tokenInfo .price ins {
  margin-left: -0.3rem;
  margin-right: 0.5rem;
}

.nft ::before {
  position: fixed;
  content: "";
  box-shadow: 0 0 100px 40px #ffffff08;
  top: -10%;
  left: -100%;
  transform: rotate(-45deg);
  height: 60rem;
  transition: 0.7s all;
}

.nft:hover {
  border: 1px solid #ffffff44;
  box-shadow: 0 7px 50px 10px #000000aa;
  transform: scale(1.015);
  filter: brightness(1.3);
}

.nft:hover ::before {
  filter: brightness(0.5);
  top: -100%;
  left: 200%;
}

/*! Home typewriter */
.text {
  color: white;
  display: inline;
}

.animated-text {
  font-size: 52px;
  font-weight: 700;
  min-width: 280px;
  justify-self: center;
  align-self: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
}

.typewriter-text {
  padding-top: 10px;
  color: #fff;
  font-size: 20px;
  letter-spacing: 1.5px;
}

.text-typewriter {
  padding-top: 15px;
  color: #fff;
  font-size: 18px;
  opacity: 0.9;
}

.animated-text span {
  position: relative;
}

.animated-text span::before {
  content: "Youtuber";
  animation: words 20s infinite;
  background: linear-gradient(45deg, #ff7f50, #ffaa80);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(255, 127, 80, 0.4);
}

.animated-text span::after {
  content: "";
  position: absolute;
  width: calc(100% + 10px);
  height: 100%;
  background-color: #000000;
  /* Match this with your page background */
  border-left: 3px solid #ff7f50;
  right: -10px;
  animation: cursor 0.9s infinite ease-in-out, typing 20s steps(9) infinite;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

@keyframes cursor {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes words {

  0%,
  18% {
    content: "Bot Maker";
  }

  20%,
  38% {
    content: "Blogger";
  }

  40%,
  58% {
    content: "Developer";
  }

  60%,
  78% {
    content: "Student;

  }

  80%,
  98% {
    content: "Gamer";
  }
}

@keyframes typing {

  10%,
  15%,
  30%,
  35%,
  50%,
  55%,
  70%,
  75%,
  90%,
  95% {
    width: 0;
  }

  5%,
  20%,
  25%,
  40%,
  45%,
  60%,
  65%,
  80%,
  85% {
    width: calc(100% + 10px);
  }
}

/*!About*/

.about {
  margin-top: 100px;
}


.about-heading {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
  flex-direction: column;
}

.skills-container {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2rem;
}

.skill-card {
  background: rgba(40, 40, 40, 0.9);
  /* Changed to solid dark color */
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
}

.skill-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg,
      transparent 20%,
      var(--glow-color),
      transparent 80%);
  animation: rotate 3s linear infinite;
}

.skill-card::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
  border-radius: 13px;
}

.skill-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.progress-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--progress-color) var(--progress-value),
      #333 0);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 0 0 25px var(--glow-color);
}

.progress-circle::before {
  content: attr(data-percent);
  position: absolute;
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 10px var(--glow-color);
}

.tech-label {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

/* Custom properties for each card */
.python-card {
  --progress-color: #61dafb;
  --glow-color: rgba(97, 218, 251, 0.3);
  --progress-value: 90%;
}

.bot-making-card {
  --progress-color: #f0db4f;
  --glow-color: rgba(240, 219, 79, 0.3);
  --progress-value: 75%;
}

.web-dev-card {
  --progress-color: #3178c6;
  --glow-color: rgba(49, 120, 198, 0.3);
  --progress-value: 15%;
}

/* ! Links*/
.my-links {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.links-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  padding: 20px;
  justify-content: center;
}

.card {
  width: 300px;
  height: 400px;
  border: 1px solid #ffffff44;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: 0.5s;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  cursor: pointer;
  background: rgba(20, 20, 20, 0.8);
  /* Semi-transparent dark background */
}

.card::before {
  content: '';
  position: absolute;
  width: 150px;
  height: 150%;
  background: linear-gradient(#00ccff, #d400d4);
  animation: animate 4s linear infinite;
}

.card::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: #151515;
  border-radius: 16px;
}

@keyframes animate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.card:hover {
  transform: translateY(-10px);
}

.links-logo {
  z-index: 1;
  margin-bottom: 20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: 0.3s;
}

.card:hover .links-logo {
  transform: scale(1.1);
}

.content {
  z-index: 1;
  text-align: center;
}

h2 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.5em;
}

p {
  color: #888;
  line-height: 1.6;
  margin-bottom: 20px;
}

.button {
  padding: 10px 30px;
  background: linear-gradient(45deg, #00ccff, #d400d4);
  border: none;
  border-radius: 25px;
  color: white;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Instagram Styling */
.instagram::before {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.instagram .links-logo {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* Telegram Styling */
.telegram::before {
  background: linear-gradient(45deg, #0088cc, #00a8e8);
}

.telegram .links-logo {
  background: linear-gradient(45deg, #0088cc, #00a8e8);
}

/* GitHub Styling */
.github::before {
  background: linear-gradient(45deg, #6e5494, #4078c0);
}

.github .links-logo {
  background: linear-gradient(45deg, #6e5494, #4078c0);
}

svg {
  width: 40px;
  height: 40px;
  fill: white;
}


/*!Contact Card */

.contact {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
  flex-direction: column;
  margin-bottom: 100px;
}

.heading {
  color: #fff;
  text-align: center;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 2.5rem;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.5),
    0 0 30px rgba(0, 255, 255, 0.4),
    0 0 50px rgba(0, 255, 255, 0.3);
}


.form-container {
  background: linear-gradient(135deg, rgba(30, 30, 40, 0.9), rgba(15, 15, 25, 0.8));
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 550px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 5px 15px rgba(91, 37, 195, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.form-container:hover {
  transform: translateY(-5px);
}

.form-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(91, 37, 195, 0.03) 0%, transparent 50%);
  z-index: -1;
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.form-title {
  margin-bottom: 35px;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(90deg, #c47bff, #ff7bac);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
  position: relative;
  animation: titleShine 3s ease-in-out infinite;
}

@keyframes titleShine {

  0%,
  100% {
    text-shadow: 0 0 10px rgba(196, 123, 255, 0.3);
  }

  50% {
    text-shadow: 0 0 20px rgba(255, 123, 172, 0.5);
  }
}

.form-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #c47bff, #ff7bac);
  border-radius: 3px;
  animation: linePulse 2s ease-in-out infinite;
}

@keyframes linePulse {

  0%,
  100% {
    width: 60px;
  }

  50% {
    width: 80px;
  }
}

.form-group {
  margin-bottom: 30px;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 10px;
  color: #c8c8d0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left center;
  position: absolute;
  top: 18px;
  left: 24px;
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 18px 24px;
  background: rgba(20, 20, 30, 0.7);
  color: #e8e8e8;
  border: 1px solid rgba(91, 37, 195, 0.2);
  border-radius: 14px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 16px;
  letter-spacing: 0.3px;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.1) inset,
    0 0 0 2px transparent;
}

.form-input:focus+.form-label,
.form-input:not(:placeholder-shown)+.form-label {
  transform: translateY(-38px) scale(0.85);
  color: #c47bff;
  padding: 2px 8px;
  background: rgba(20, 20, 30, 0.9);
  border-radius: 6px;
}

.form-input::placeholder {
  color: transparent;
}

.form-input:focus {
  padding: 20px 24px;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.2) inset,
    0 0 0 2px rgba(196, 123, 255, 0.5),
    0 0 25px rgba(196, 123, 255, 0.4);
  background: rgba(25, 25, 35, 0.8);
}

.form-input:hover {
  background: rgba(25, 25, 35, 0.6);
  border-color: rgba(196, 123, 255, 0.3);
}

textarea.form-input {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
  padding: 20px 24px;
}

.glow {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: calc(100% - 40px);
  border-radius: 12px;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(circle at center,
      rgba(196, 123, 255, 0.2) 0%,
      rgba(255, 123, 172, 0.1) 30%,
      transparent 70%);
  transition: opacity 0.4s ease;
  animation: glowPulse 2s infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
  }
}

.form-input:focus~.glow {
  opacity: 1;
}

.submit-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #9c42f5, #ff4081);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 20px rgba(156, 66, 245, 0.3);
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0));
  transition: all 0.6s ease;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(156, 66, 245, 0.4);
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:active {
  transform: translateY(0);
}

.input-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(196, 123, 255, 0.5);
  font-size: 18px;
  pointer-events: none;
  transition: all 0.3s ease;
}

.form-input:focus~.input-icon {
  color: rgba(196, 123, 255, 0.8);
  animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {

  0%,
  100% {
    transform: translateY(-50%);
  }

  50% {
    transform: translateY(-60%);
  }
}

.floating-particle {
  position: absolute;
  background: linear-gradient(45deg, #9c42f5, #ff4081);
  border-radius: 50%;
  opacity: 0.1;
  filter: blur(15px);
  animation: float 20s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
  }

  100% {
    transform: translateY(0) rotate(360deg);
  }
}

.success-message {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 15, 25, 0.95);
  border-radius: 16px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.success-message.active {
  display: flex;
}

.checkmark {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9c42f5, #ff4081);
  animation: checkmarkScale 0.5s ease;
}

@keyframes checkmarkScale {
  0% {
    transform: scale(0);
  }

  80% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}



/* ========== Responsive Design ========== */
/* Extra Small Devices (Phones ≤ 360px) */
@media (max-width: 360px) {

  /* Navigation Buttons */
  .nav-links button {
    width: 100%;
    text-align: center;
  }

  /* Typewriter Text */
  .animated-text {
    font-size: 1.75rem;
  }

  .typewriter-text {
    font-size: 1rem;
  }

  .nft {
    display: none;
  }
}

/* Small Devices (Phones ≤ 480px) */
@media (max-width: 480px) {

  /* Navigation */
  .navbar {
    flex-direction: column;
    padding: 1rem;
  }

  .nav-links {
    display: none;
  }

  /* Home Section */
  .animated-text {
    font-size: 2rem;
  }

  .nft {
    display: none;
  }

  .title {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }

  /* Skills Section */
  .progress-circle {
    width: 100px;
    height: 100px;
  }

  .tech-label {
    font-size: 1rem;
  }
}

/* Medium Devices (Tablets ≤ 768px) */
@media (max-width: 768px) {

  /* Home Section Adjustments */
  .home-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 5%;
  }

  .animated-text {
    font-size: 2.5rem;
    text-align: center;
  }

  .typewriter-text {
    font-size: 1.1rem;
    text-align: center;
  }

  /* Skills Section */
  .skills-container {
    padding: 1rem;
    gap: 1.5rem;
  }

  .skill-card {
    width: 100%;
    flex-basis: 100%;
  }

  .nft {
    display: none;
  }
}

/* Tablet Portrait (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .home-container {
    gap: 3rem;
    padding: 0 10%;
  }

  .nft {
    max-width: 280px;
  }

  .animated-text {
    font-size: 3rem;
  }
}

/* Mobile Landscape (height ≤ 500px) */
@media (max-height: 500px) and (orientation: landscape) {
  .home {
    padding-top: 30px;
  }
}



/* ! Footer */
footer {
  background-color: rgba(11, 11, 11, 0.95);
  color: white;
  padding: 2rem 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-section {
  flex-basis: 100%;
  margin-bottom: 1.5rem;
}

.footer-section h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.footer-section p {
  color: #9ca3af;
  margin: 0;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  /* Add this */
  align-items: center;
  /* Add this */
}

.social-links svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  /* Prevent icons from shrinking */
}

.social-links a:hover {
  color: white;
}

.copyright {
  text-align: center;
  color: #9ca3af;
}

@media (min-width: 768px) {
  .footer-section {
    flex-basis: 30%;
  }

  .copyright {
    text-align: right;
  }
}
