:root {
  --profile-width: 0; /* Global scope variable */
}

body {
  font-family: Arial, sans-serif;
  background-color: #232323; /* 232323 */
  text-align: center;
  height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  padding-left:.25%;
}

/* Add a black background color to the top navigation */
.topnav {
  background-color: #333;
  overflow: hidden;
}

/* Style the links inside the navigation bar */
.topnav a {
  float: left;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.topnav .HackVay {
  color: #f2f2f2;
  float: right;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

/* Change the color of links on hover */
.topnav a:hover {
  background-color: rgb(83, 13, 102);
  color: white;
}

/* Add a color to the active/current link */
.topnav a.active {
  background-color: #55af55;
  color: white;
}
#Title {
  color: #757474;
  transition: border-color 0.25s ease-in-out, color 0.25s ease-in-out; 
}

#Title:hover {
    color: #75469a;
}

h1 {
  margin-bottom: 30px;
}

#tool-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
  justify-items: center;
}

.squircle {
  display: block;
  width: 120px;
  height: 120px;
  padding: 0;
  color: inherit;
  position: relative;
  border-radius: 25%; /* squircle shape */
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.squircle:hover {
  transform: scale(1.25);
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

/* Gradient overlay */
.squircle::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), white 95%);
  z-index: 1;
}

/* Tool title */
.squircle span {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  color: black;
  font-weight: bold;
  z-index: 2;
  font-size: 14px;
  text-align: center;
  pointer-events: none;
}

/* Background image */
.squircle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.About {
  position: relative;
  margin-top: 2.05%;
  margin-left: auto;
  margin-right: auto;
  font-size: 16px;
  overflow-wrap: break-word;
  background-color: #555;
  color: white;
  padding: 0.586%;
  height: 800px;
  width: 96%;
  z-index: 1;
}

#background-text {
    overflow-wrap: break-word;
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    white-space: pre-wrap;
    word-break: break-all;
}

.profile-pic {
  position: static;
  width: 341.4px;
  height: auto;
  border-radius: 12%;
  border: 8px solid #232323;
  margin-top: 1%;
  margin-left: auto;
  margin-right: auto;
  transition: border-color 0.25s ease-in-out, color 0.25s ease-in-out; 
  z-index: 7;
}

.profile-pic:hover {
    border-color: #3e0768;
}

.Name {
  margin-top: 0%;
  margin-left: auto;
  margin-right: auto;
  font-size: 50px;
}

.Introduction {
  margin-left: auto;
  margin-right: auto;
}
.bar {
    display: block;
    background-color: #727272;
    width: 100%;
    height: 1px;
    margin-top: 2.93%;
    margin-left: 0;
    margin-right: auto;
}

.secondbar {
    display: block;
    background-color: #727272;
    width: 100%;
    height: 2px;
    margin-top: 5%;
    margin-left: 0;
    margin-right: auto;
}

.Contact {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin-top: 2%;
    margin-left: 80%;
    text-decoration: none;
}

a {
    text-decoration: none;
    color: #FFFFFF;
    padding: 5.5%;
    transition: color 0.4s ease-in-out;
}

a:hover {
    color: #75469a;
}

.Logo {
    position: absolute;
    margin-top: -0.4686584651435267%;
    margin-left: 0.2%;
}

.GithubLogo {
    position: absolute;
    margin-top: -0.4686584651435267%;
    margin-left: 0.2%;
}

.EmailLogo {
    position: absolute;
    margin-top: -0.2%;
    margin-left: 0.2%;
}


.background-text {
  -webkit-user-select: none; /* Specifically for Chrome, Safari, and Opera */
  user-select: none;         /* Standard version for modern Chrome */
}

.LoadingSccreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #232323;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it covers all content */
}

.LoadingGif {
    width: 100%;
    height: auto;
}

/* background animation */

.area{
    background: #232323;  
    background: -webkit-linear-gradient(to left, #8f94fb, #4e54c8);  
    margin-top: 33.39%;
    border-top: 0.59% solid #FFFFFF;
    margin-bottom: 15%;
    width: 100%;
    height:100vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.blog-squircle {
    margin-left: auto;
    margin-right: auto;
    width: 95%;
    height: 300px;
    position: relative;
    border-radius: 50px; /* squircle shape */
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-squircle:hover {
    transform: scale(1.025);
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

.blog-squircle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-squircle span {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-weight: bold;
    z-index: 3;
    font-size: 16px;
    text-align: center;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 5px;
}

.circles{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.circles li{
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    bottom: 150px;
    
}

.circles li:nth-child(1){
    left: 25%;
    width: 5px;
    height: 5px;
    animation: moveUp 25s linear infinite;
    animation-delay: 0s;
    animation-duration: 8s;
}


.circles li:nth-child(2){
    left: 10%;
    width: 6px;
    height: 6px;
    animation: moveDown 25s linear infinite;
    animation-delay: 2s;
    animation-duration: 10s;
}

.circles li:nth-child(3){
    left: 70%;
    width: 7px;
    height: 7px;
    animation: moveUp 25s linear infinite;
    animation-delay: 4s;
    animation-duration: 12s;
}

.circles li:nth-child(4){
    left: 40%;
    width: 8px;
    height: 8px;
    animation: moveDown 25s linear infinite;
    animation-delay: 0s;
    animation-duration: 14s;
}

.circles li:nth-child(5){
    left: 65%;
    width: 9px;
    height: 9px;
    animation: moveUp 25s linear infinite;
    animation-delay: 0s;
    animation-duration: 16s;
}

.circles li:nth-child(6){
    left: 75%;
    width: 10px;
    height: 10px;
    animation: moveDown 25s linear infinite;
    animation-delay: 3s;
    animation-duration: 18s;
}

.circles li:nth-child(7){
    left: 35%;
    width: 11px;
    height: 11px;
    animation: moveUp 25s linear infinite;
    animation-delay: 7s;
    animation-duration: 20s;
}

.circles li:nth-child(8){
    left: 50%;
    width: 12px;
    height: 12px;
    animation: moveDown 25s linear infinite;
    animation-delay: 15s;
    animation-duration: 22s;
}

.circles li:nth-child(9){
    left: 20%;
    width: 15px;
    height: 15px;
    animation: moveUp 25s linear infinite;
    animation-delay: 2s;
    animation-duration: 24s;
}

.circles li:nth-child(10){
    left: 85%;
    width: 16px;
    height: 16px;
    animation: moveDown 25s linear infinite;
    animation-delay: 0s;
    animation-duration: 25s;
}

.circles li:nth-child(11){
    left: 25%;
    width: 5px;
    height: 5px;
    animation: moveUp 25s linear infinite;
    animation-delay: 0s;
    animation-duration: 8s;
}


.circles li:nth-child(12){
    left: 10%;
    width: 6px;
    height: 6px;
    animation: moveDown 25s linear infinite;
    animation-delay: 2s;
    animation-duration: 10s;
}

.circles li:nth-child(13){
    left: 70%;
    width: 7px;
    height: 7px;
    animation: moveUp 25s linear infinite;
    animation-delay: 4s;
    animation-duration: 12s;
}

.circles li:nth-child(14){
    left: 40%;
    width: 8px;
    height: 8px;
    animation: moveDown 25s linear infinite;
    animation-delay: 0s;
    animation-duration: 14s;
}

.circles li:nth-child(15){
    left: 65%;
    width: 9px;
    height: 9px;
    animation: moveUp 25s linear infinite;
    animation-delay: 0s;
    animation-duration: 16s;
}

.circles li:nth-child(16){
    left: 75%;
    width: 10px;
    height: 10px;
    animation: moveDown 25s linear infinite;
    animation-delay: 3s;
    animation-duration: 18s;
}

.circles li:nth-child(17){
    left: 35%;
    width: 11px;
    height: 11px;
    animation: moveUp 25s linear infinite;
    animation-delay: 7s;
    animation-duration: 20s;
}

.circles li:nth-child(18){
    left: 50%;
    width: 12px;
    height: 12px;
    animation: moveDown 25s linear infinite;
    animation-delay: 15s;
    animation-duration: 22s;
}

.circles li:nth-child(19){
    left: 20%;
    width: 15px;
    height: 15px;
    animation: moveUp 25s linear infinite;
    animation-delay: 2s;
    animation-duration: 24s;
}

.circles li:nth-child(20){
    left: 85%;
    width: 16px;
    height: 16px;
    animation: moveDown 25s linear infinite;
    animation-delay: 0s;
    animation-duration: 25s;
}


@keyframes moveUp {
    0%{
        transform: translate(200px, -250px);
    }
    100%{
        transform: translate(-200px, -1000px); /* left + up */
    }
}

@keyframes moveDown {
    0%{
        transform: translate(200px, -250px);
    }
    100%{
        transform: translate(-200px, 1000px); /* left + down */
    }
}
