/* Reset default margins/padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Full-screen layout with hidden overflow */
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #000000, #000000); /* Soft gradient */
  font-family: 'Poppins', sans-serif;
}

/* The canvas behind everything */
canvas {
  position: fixed;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* Container for the name and social boxes */
.content-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

/* Main title styling */
.main-title {
  font-size: 72px;
  font-weight: 700;
  margin-bottom: 30px;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  font-family: 'Helvetica Neue', 'Segoe UI', sans-serif;
  line-height: 1.1;
  letter-spacing: -0.5px;
  text-align: center;

  background: linear-gradient(90deg, 
    #000000,   /* Black */
    #ffffff,   /* White */
    #000000,   /* Black */
    #ffffff,   /* White */
    #000000,   /* Black */
    #ffffff    /* White */
  );
  background-size: 600%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradientFlow 12s ease infinite;
}

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


/* Social boxes container */
.social-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Social box styling */
.box {
  text-decoration: none;
  color: #FFF;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.5px;
  text-transform: capitalize;
  height: 56px; /* ✅ Fixed height for uniformity */
  width: 170px; /* Optional: keep consistent width */
  line-height: 1;
  display: flex; /* ✅ Use flex to align text */
  align-items: center;
  justify-content: flex-start;

  border-radius: 12px;
  transition: all 0.3s ease;
  backdrop-filter: blur(15px);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 15px rgba(255, 255, 204, 0.05);

  background-repeat: no-repeat;
  background-position: 15px center;
  background-size: 30px 30px; /* ✅ Constrain all icons uniformly */
  padding-left: 65px;

  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}


/* Hover effect */
.box:hover {
  background: rgba(200, 200, 255, 0.5);
  transform: translateY(-5px);
  box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.3);
}

/* Individual social platform icons */
.box.twitter {
  background-image: url("https://img.icons8.com/?size=48&id=8HtzWaaC5y60&format=png");
  background-size: 35px 35px
}

.box.discord {
  background-image: url("https://img.icons8.com/?size=48&id=6Bc9ur2o7rfS&format=png");
  background-size: 35px 35px
}

.box.github {
  background-image: url("https://img.icons8.com/?size=48&id=Mhl1TfJLdkh5&format=png");
  background-size: 35px 35px
}

.box.reddit {
  background-image: url("https://img.icons8.com/?size=48&id=IsfFxUYvG2ht&format=png");
  background-size: 37px 40px;
}

.box.telegram {
  background-image: url("https://img.icons8.com/?size=48&id=Q7Ekaw3BkWRp&format=png");
  background-size: 35px 35px;
}

.box.email {
  background-image: url("https://img.icons8.com/?size=48&id=l6hLI08P4ys1&format=png");
  background-size: 30px 30px;
}

.box.linkedin {
  background-image:
url("https://img.icons8.com/?size=48&id=DYoTRhf8VVC1&format=png");
  background-size: 35px 35px;
}
@media (max-width: 600px) {
  .box.linkedin {
    grid-column: 1 / -1;         /* Span full row */
    justify-self: center;        /* Center the box */
    width: max-content;          /* Let it grow to fit full text */
    padding-left: 55px;          /* Preserve space for icon */
    padding-right: 25px;         /* Ensure text has breathing room */
    box-sizing: border-box;
    text-align: center;
  }
}



/* Glassy image wrapper like the social boxes */
.photo-glass-wrapper {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  overflow: hidden;
  backdrop-filter: blur(15px);
  background: rgba(255, 255, 255, 0); /* Frosted background */
  box-shadow: 0 8px 15px rgba(255, 255, 204, 0);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image inside the glass wrapper */
.photo-glass {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}


/* MEDIA QUERY for mobile screens */
@media (max-width: 600px) {
  .main-title {
    font-size: 40px;
  }
  .social-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 90%;
    margin: 0 auto;
    justify-items: center;
  } 
}
