/*  */

/* general styling  */

* {
    margin: 0;
    padding: 0;
}



body {
    /* background: linear-gradient(45deg, #000, #333, #000); */
    background: linear-gradient(45deg, #000, #333, #000);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    font-family: 'Times New Roman', Times, serif;
}

.topbar {
    display: flex;
    justify-content: space-between;
    padding: 40px;
    background-color: black;
}

.icons {
    display: flex;
    color: white;
    margin-right: 35px;
    gap: 20px;
    font-size: 1.2rem;
    cursor: pointer;
}

.icons a{
    color: white;
}

.star {
    color: brown;
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
}

.icons :hover {
    color: brown;
}

.links {
    display: flex;
    gap: 20px;
    margin-left: 25px;
    font-size: 1.0rem;
}

.links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.links a:hover {
    color: brown;
}



/* Footer Container */
.footer {
    background-color: #000; 
    color: white; 
    padding: 30px 0; /* Top and bottom padding */
    text-align: center;
    font-family: 'Arial', sans-serif;
}

/* Footer Content */
.footer-content {
    margin-bottom: 30px; /* Space between content and footer bottom */
}

.footer-logo {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-content p {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Social Icons */
.footer-social {
    margin-top: 20px;
}

.footer-social a {
    color: white;
    margin: 0 10px;
    font-size: 24px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #3498db; /* Hover effect (light blue) */
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #555; /* Thin top border */
    padding-top: 20px;
    font-size: 14px;
}

/* Footer Links */
.footer-links {
    list-style-type: none;
    padding: 0;
    margin-top: 10px;
}

.footer-links li {
    display: inline;
    margin: 0 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db; 
}

.portfolio-section {
    background: rgba(0, 0, 0, 0.15); /* tinted using dark blue #2980b9 */
    border: 1px solid rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    padding: 40px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin-bottom: 20px;
}

.portfolio-section .container {
    width: 85%;
    max-width: 1100px;
    margin: 0 auto;
}

.portfolio-section h2 {
    font-size: 28px;
    color: white;
    margin-bottom: 20px;
}

.portfolio-section p {
    font-size: 20px;
    color: white;
    margin-bottom: 40px;
    line-height: 2; /* Adds spacing between lines */
    text-align: justify; /* Aligns text evenly */
    padding: 0 15px;
    text-decoration: none;
    font-family: 'Arial', sans-serif;
    
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.portfolio-item {
    /* background-color: black; */
    background-color:#2980b9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
    transform: scale(1);
    cursor: pointer;
    position: relative;
    z-index: 0;
    overflow: hidden;
    will-change: transform;
}

.portfolio-item img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.portfolio-item h3 {
    font-size: 20px;
    color: white;
    margin-bottom: 10px;
}

.portfolio-item p {
    font-size: 14px;
    color: black;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: white;
    color: black;
    text-decoration: none;
    border-radius: 5px;
}

.btn:hover {
    background-color: #1e6fa7;
}

/* Skills Section */
.skills-section {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    max-width: 1100px;
    margin: 20px auto;
    text-align: center;
}

.skills-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: white;
}

.skills-section h3 {
    font-size: 1.8rem;
    margin: 30px 0;
    color: white;
}

.skills-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.5rem;
}

.skill i {
    font-size: 3rem;
    margin-bottom: 10px;
    transition: color 0.3s;
    color: white;
}

.skill span {
    margin-top: 10px;
    color: white;
}

.skill i:hover {
    color: brown;
}

.other-skills {
    margin-top: 40px;
    font-size: 1.5rem;
}

/* Add a shimmer animation effect to glassmorphism sections for a "shining" look */
.about-section,
.why-tech-section,
.experience-content {
    position: relative; /* Required for pseudo-element positioning */
    overflow: hidden;   /* Hide the pseudo-element overflow */
}

/* Create the shimmer effect using a pseudo-element */
.about-section::before,
.why-tech-section::before,
.experience-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 2s ease-in-out infinite;
}

@keyframes shine {
    0% {
        left: -150%;
    }
    100% {
        left: 150%;
    }
}

/* Add a gradient effect to the header */
.header {
    background: linear-gradient(45deg, #000, #333, #000);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
}   

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

/* Add a parallax effect to the header */
.header {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-size: 2rem;
}

/* Add a smooth scroll effect to the navigation links */
.links a {
    transition: color 0.3s;
}

.links a:hover {
    color: #3498db;
}

/* Add a smooth scroll effect to the navigation links */
.links a {
    transition: color 0.3s;
}

.links a:hover {
    color: #3498db;
}

/* responsive  */

/* Media Queries */ 

/* Small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Medium devices (tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}   
/* Large devices (desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* Make the header sticky */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

