* {
  margin: 0;
    cursor: none !important;
  padding: 0;
  box-sizing: border-box;
}

html , body{
  margin: 0;
  padding: 0;
}
body {
  cursor: none;
  margin: 0;
  background-color: #0f0f0f;
  color: white;
  font-family: Arial, sans-serif;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 100;
  padding: 20px 50px;

  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
}

.navbar ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.navbar a {
  position: relative;
  color: white;
  text-decoration: none;
}

/* underline animation */
.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #4f46e5;
  transition: 0.3s;
}
.navbar a:hover {
  color: #4f46e5;
}
.navbar a:hover::after {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  margin-top: 80px;
  display: flex;
  align-items: center;
  padding: 0 80px;

  background: 
    linear-gradient(to right, rgba(0,0,0,0.5), rgba(0,0,0,0.2)),
    url('../assets/images/profile.jpg') no-repeat center/cover;
    filter: brightness(1);
}

.hero-content h3 {
  font-size: 30px;
  color: #aaa;
  letter-spacing: 2px;
  transform: translateY(-40px);
}

.hero-content h1 {
  font-size: 60px;
  font-weight: 800;
  margin: 10px 0;
  transform: translateY(-50px);
}

.hero-content p {
  font-size: 10;
  color: #bbb;
  max-width: 700px;
  margin-bottom: 30px;
  transform: translateY(-45px);
}


.buttons {
  margin-top: 20px;
  transform: translateY(-50px);
}

.contact button,
.buttons button {
  padding: 12px 28px;
  margin-right: 12px;
  background: transparent;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #4f46e5;
  box-shadow: 0 0 10px rgba(79,70,229,0.3);
}

.contact button:hover,
.buttons button:hover {
  background: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.section-title {
  font-size: 36px;
  margin-bottom: 40px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  position: relative;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 20px; /* increased */
  border: 1px solid rgba(79, 70, 229, 0.4);
  transition: all 0.3s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(120deg, #4f46e5, #22d3ee);
  -webkit-mask: 
    linear-gradient(#000 0 0) content-box, 
    linear-gradient(#000 0 0);
    mask: 
    linear-gradient(#000 0 0) content-box, 
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(79, 70, 229, 0.4);
  border: 1px solid #4f46e5;
}
.project-card h3 {
  margin-bottom: 10px;
}

.project-card p {
  color: #bbb;
  margin-bottom: 15px;
}

.project-card a {
  color: #4f46e5;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

.hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: linear-gradient(
    to right,
    rgba(0,0,0,0.8),
    rgba(0,0,0,0.4),
    rgba(0,0,0,0)
  );
}

.content-bg {
  background: 
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.4)),
    url('../assets/images/background.jpg') no-repeat center top / cover;
    filter: brightness(1.5);
    min-height: 100vh;
  padding-top: 80px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 120px); /* 3 per row */
  justify-content: center; /* center horizontally */
  gap: 40px;
  margin-top: 40px;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-card {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; /* TRUE circle */
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(79, 70, 229, 0.5);
  transition: 0.3s;
}
.skill-card i.devicon-python-plain {
  font-size: 36px;
  color: #3776AB; /* Python blue */
}
.skill-card i {
  font-size: 40px;
  width: 36px;
  height: 36px;
  position: relative;
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.5);
}
.skill-name {
  position: absolute;
  bottom: -25px;

  font-size: 14px;
  color: #aaa;

  opacity: 0;
  transition: 0.3s;
    left: 50%;
  transform: translateX(-50%) translateY(10px);
}
.skill-card:hover .skill-name {
  opacity: 1;
  transform: translateY(0);
  color: #4f46e5;
    transform: translateX(-50%) translateY(0);
}
.navbar a.active {
  color: #4f46e5;
}

/* Glow border */
.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(120deg, #4f46e5, #22d3ee);
  -webkit-mask: 
    linear-gradient(#000 0 0) content-box, 
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;

  mask: 
    linear-gradient(#000 0 0) content-box, 
    linear-gradient(#000 0 0);
  mask-composite: exclude;

  pointer-events: none;
}

/* Hover effect */
.skill-card:hover {
  transform: translateY(-8px) scale(1.1);
  background: #4f46e5;
}

.contact {
  padding: 100px 80px;
  background: #111;
}

.socials {
  position: absolute;
  bottom: 30px;
  left: 80px;

  display: flex;
  gap: 20px;
}

.socials a {
  display: flex;
  align-items: center;
  gap: 8px;

  font-size: 16px;  
  opacity: 0.8;

  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.socials a:hover {
  opacity: 1;
  color: #4f46e5;
}
.socials i {
  width: 18px;
  height: 18px;
}

.projects,
.skills {
  background: transparent;
  padding: 100px 50px;
  margin: 0px;
}

.about,
.contact {
  padding: 100px 50px;
  font-size: 20px;
  background: transparent;
  margin: 0;
}

.logo {
  position: relative;
  cursor: pointer;
  display: inline-block;
}

.logo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #4f46e5;
  transition: 0.3s;
}

.logo:hover::after {
  width: 100%;
}

.section-title {
  position: relative;
  display: inline-block; /* IMPORTANT */
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0%;
  height: 2px;
  background: #4f46e5;
  transition: 0.3s;
}

.section-title:hover::after {
  width: 100%;
}

.hero-name {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.hero-name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0%;
  height: 3px;

  background: #b91c1c;

  transition: 0.3s;
}

.hero-name:hover::after {
  width: 100%;
}
/* main dot */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

/* trailing glow */
.cursor-trail {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;

  background: radial-gradient(circle, rgba(79,70,229,0.4), transparent);
  filter: blur(10px);

  transform: translate(-50%, -50%);
  transition: background 0.2s ease;
}
.cursor-dot.hover {
  transform: translate(-50%, -50%) scale(2);
}