* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Roboto", sans-serif;
    background-color: black;
    color: white;
    overflow-y: auto;
    height: auto;
}

/* Header Styling */
.header {
    text-align: center;
    padding: 50px 0;
    background-color: #1e1e1e;
    color: #ccff00;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.header h1 {
    font-size: 3rem;
    margin: 0;
}

/* Navbar Styling */
.navbar {
    background-color: #111;
    padding: 15px 0;
    /* position: sticky; */
    top: 0;
    overflow: hidden;
}

.navbar ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

.navbar li {
    margin: 0 15px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.navbar a:hover {
    background-color: #ccff00;
    color: black;
}

/* About Section */
.about {
    padding: 50px;
    text-align: center;
}

.about h2 {
    font-size: 2.5rem;
    color: #ccff00;
    margin-bottom: 20px;
}

.about p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: #ddd;
}
.techstack {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: black;
    flex-wrap: wrap; /* Wraps items if they don't fit in one line */
}

.techstack h2 {
    width: 100%; /* Ensure the heading spans across the full width */
    font-size: 2.5rem;
    color: #ccff00;
    margin-bottom: 20px;
    text-align: center;
}

.techstack img {
    margin: 10px; /* Add spacing between icons */
    width: 50px; /* Adjust the icon size if needed */
    height: 50px;
}

.techstack p {
    width: 100%; /* Ensures the text spans across the full width */
    margin-top: 20px;
    font-size: 1.2rem;
    color: #ddd;
    text-align: center;
}

/* Projects Section */
.projects {
    padding: 50px;
    text-align: center;
    background-color: #1e1e1e;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0 auto;
}

.card-grid {
    display: flex; /* Use flexbox for layout */
    flex-wrap: wrap; /* Allow cards to wrap onto new lines */
    justify-content: center; /* Center the cards horizontally */
    gap: 5px;
    width: 100%;
}

.card {
    background-color: #2c2c2c;
    border-radius: 8px;
    color: #ffffff;
    transition: transform 0.2s ease;
    max-width: 300px;
    min-width: 200px;
    height: auto;
    margin: 0 auto;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px  #ccff00d1;
}
.card-header {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-footer {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    width: 90%;
    margin-top: 15px;
}
.project-image {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-top: 10px;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.card-footer img {
    width: 15px;
    height: 15px;
}

.projects h2 {
    font-size: 2.5rem;
    color: #ccff00;
    margin-bottom: 20px;
}

.projects p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: #ddd;

}
.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

button.open-live {
    background-color: #ccff00;
    color: #000;
    border: none;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(204, 255, 0, 0.3);
}

button.open-live:hover {
    background-color: #b2e100;
    transform: scale(1.05);
}
button.github-link {
    background-color: transparent;
    border: 2px solid #ccff00;
    color: #ccff00;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

button.github-link:hover {
    background-color: #ccff00;
    color: black;
    transform: scale(1.05);
}
.button-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 8px;
  }
/* Tennis Ball Animation */
/* .container {
    position: relative;
    height: 100vh;
    width: 100%;

} */


/* .tennis {
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    height: 20vh;
    width: 20vh;
    background-color: #ccff00;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    animation: bounce 3s ease-in-out infinite; /* Bounce animation */
    /* overflow: hidden; */
/* } */

/* Tennis ball curved lines */
/* .tennis::before, .tennis::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-sizing: border-box;
    border: 5px solid white;
    background: transparent;
}

.tennis::before {
    left: -65%;
}


.tennis::after {
    right: -65%;
} */
/* Animation Keyframes */
/* @keyframes bounce {
    0% {
        left: 0;
        top: 0;
        transform: scale(1);
    }
    /*No 25% so the animation is smoother*/
/*
    50% {
        left: 50%;
        top: 80%;
        transform: scale(1);
    }
    75% {
        left: 75%;
        top: 60%;
        transform: scale(1);
    }
    100% {
        left: 100%;
        top: 80%;
        transform: scale(1);
    }
} */



/* Responsive Design */
@media (max-width: 480px) {
    .navbar ul {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center the nav items */
        padding: 5px 0;
    }

    .navbar li {
        margin: 10px 0; /* Add spacing between nav items */
    }
    .tennis {
        height: 10vh; /* Smaller ball size for mobile */
        width: 10vh; /* Smaller ball size for mobile */
    }
    .navbar a:hover {
        background-color: #ccff00;
        color: black;
    }
/* Project View */
    .projects {
        padding: 10px;
    }
    .card-grid {
       flex-direction: column; /* Single column layout */
        align-items: center;
        gap: 20px; /* Maintain space between cards */
    }
    .card {
        width: 90%; /* Full width of the container */
        border: 1px solid #444;
        box-shadow: 0 4px 8px rgba(204, 255, 0, 0.2);
    }
    .card:active { /* Card active since the hover don't work on mobile */
        transform: translateY(-5px);
        box-shadow: 0 8px 16px  #ccff00d1;
    }


    button.open-live {
        background-color: #ccff00;
        color: #000;
        border: none;
        padding: 10px 16px;
        font-size: 0.95rem;
        font-weight: bold;
        border-radius: 25px;
        cursor: pointer;
        margin-top: 10px;
        transition: all 0.3s ease;
        box-shadow: 0 2px 6px rgba(204, 255, 0, 0.3);
    }
    
    button.open-live:hover {
        background-color: #b2e100;
        transform: scale(1.05);
    }
}

/* Footer */
.footer {
    background-color: #111;
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 1rem;
    bottom: 0;
}

.footer p {
    margin: 0;
    color: #ccff00;
}
