:root {
    --color-primary: #0767d5;
    --color-secondary: #438ce0;
    --color-bg: #ffffff;
    --color-text: #333;
    --color-link:#2471c9;
    --color-link-hover: #e8275e;
    --color-link-visited: #2471c9;
    --color-gradient-start: #178edd;
    --color-gradient-middle: #3fa5cb;
    --color-gradient-end: #cf3465;
    --color-project-bg: #f9f9f9;

    --max-width: 65rem;

}


/* Universal reset for padding, margin, and box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure body and html cover full viewport height */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    height: 100%;
    font-family: 'Ubuntu', 'Press Start 2P', cursive; /* NES.css retro font */
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.4;
    /* overflow: hidden; */
}

main {
    flex: 1;
    padding: 20px;
}

a {
  color: var(--color-link); /* normal link color */
  text-decoration: none;
}

a:hover {
  color: var(--color-link-hover); /* color on hover */
}

a:visited {
  color: var(--color-link-visited); /* color when clicked/visited */
}

/* Position particles container behind content */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1; /* Place particles behind other content */
    /* background-color: #ffffff; Optional background color */
}

/* Header Section */
header {
    position: relative; /* Ensure particles stay within header */
    /* background-color: #ffffff; */
    color: var(--color-text);
    padding: 2rem 0;
    display: flex;
    justify-content: center;
}

.gradient-box {
    text-align: center;
}

.animated-gradient-text {
    display: inline-block;
    align-content: center;
    text-align: center;
    font-size: 3.2rem;
    font-weight: bold;

    /* Use your new gradient style */
    background: radial-gradient(circle, var(--color-gradient-start) 0%, var(--color-gradient-end) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Add animation for shine effect */
    background-size: 200%;
    animation: text-shine 3s ease-in-out infinite alternate;
    -webkit-animation: text-shine 3s ease-in-out infinite alternate;

}

/* Define the animation */
@keyframes text-shine {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}


/* .animated-gradient-text {
    align-content: center;
    text-align: center;
    font-size: 3.2rem;
    font-weight: bold;
    background: linear-gradient(90deg, var(--color-gradient-start), var(--color-gradient-middle), var(--color-gradient-end), var(--color-gradient-middle), var(--color-gradient-start));
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-move 20s infinite cubic-bezier(0.52, -0.11, 0.48, 1.18);
}

@keyframes gradient-move {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
} */


.header-content {
    display: flex;
    flex-direction: column;
    max-width: var(--max-width);
    width: 100%;
    padding: 0 1rem;
    z-index: 1; /* Place header content above particles */

}

.description-box {
    display: flex;
    align-items: center;
    text-align: justify;
    flex-direction: column;
    justify-content: center;
    margin: 0.5rem;

}
.description-text-box{
    background: rgba(255, 255, 255, 0.919); 
    backdrop-filter: blur(2px);    
    border-radius: 10px; 
    /* padding: 0.5rem; */
}



.profile-photo {
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 2rem;
    border-radius: 1;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

#contact {
    margin-top: 1rem;
    margin-left: 1rem;
}

/* Projects Section */
#projects {
    max-width: var(--max-width);
    margin: 0 auto;
    /* height: 200px; */
}

#projects h2 {
    font-size: 2rem;
    padding: 10px;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.project {
    display: flex;
    background: var(--color-project-bg);
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    align-self: center;
    /* border: 1px  #000000; */
}

.project-info {
    padding: 1rem;
    flex: 1;
    color : var(--color-text)
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    margin-bottom: 0.8rem;
}

.links a {
    text-decoration: none;
    color: #4c5b61;
    background: #dfdfe3;
    padding: 0.5rem;
    border-radius: 5px;
    margin-right: 0.5rem;
    transition: background 0.3s;
}

.links a:hover {
    background: var(--color-secondary);
    color: #ffffff;
}

/* footer {
    font-size: 0.9rem;
    text-align: center;
    padding: 0.6rem;
    background: var(--color-primary);
    color: var(--color-bg);
    z-index: 1;
} */

footer {
    font-size: 0.9rem;
    text-align: center;
    padding: 0.6rem;

    /* Animated radial gradient background */
    background: radial-gradient(circle, var(--color-gradient-start) 0%, var(--color-link-hover) 100%);
    background-size: 200%;
    animation: footer-shine 6s ease-in-out infinite alternate;
    -webkit-animation: footer-shine 6s ease-in-out infinite alternate;

    color: var(--color-bg);
    z-index: 1;
}

/* Smooth radial gradient movement */
@keyframes footer-shine {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}



