@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


* {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: rgb(0, 0, 33);
    color: white;
    font-family: 'Poppins', sans-serif;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 80px;
    background-color: rgb(18, 18, 62);
}

nav ul {
    display: flex;
    justify-content: center;
}

nav ul li {
    list-style: none;
    margin: 0 23px;
}

nav ul li a {
    text-decoration: none;
    color: white;
}

nav ul li a:hover {
    color: rgb(179, 179, 241);
}

.left {
    font-size: 1.5rem;
}

.firstSection {
    display: flex;
    justify-content: space-around;
    align-items: center;
    
}

.firstSection > div {
    width: 36%;
}

.leftSection {
    font-size: 2.5rem;
    margin: 70px, 0;
}
.leftSection .btn{
    padding: 12px;
    background-color: #1e2167;
    color: white;
    border: 2px solid white;
    border-radius: 6px;
    font-size: 20px;
    cursor: pointer;
}

.rightSection img {
    width: 80%;
    margin: 0;
}

.purple {
    color: rgb(170, 107, 228);
}

#element {
    color: rgb(170, 107, 228);
}

footer {
    background-color: #2e2e51;
    padding: 20px 0;
    text-align: center;
}

.footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer-first h3 {
    margin-bottom: 20px;
}

.footer-second ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.footer-second ul li {
    margin: 0 10px;
}

.footer-second ul li img {
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.footer-second ul li:hover {
    color: rgb(179, 179, 241);
}

.footer-second a {
    text-decoration: none;
}
#Aboutme {
    width: 90%;
    margin: 0 auto; /* Centers the element within its container */
    text-align: left; /* Aligns text to the left */
    font-size: 1rem; /* Ensures font size is set */
}
.purple2{
    text-align: center;
}
#skills {
    padding: 50px 20px;
    text-align: center;
    background-color: rgb(0, 0, 33); /* Black background */
}
.skills2{
    color: white;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
    color: white; /* White text color */
}

.skill-category h3 {
    color: #ffffff; /* White text for category title */
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.skill-category p {
    font-size: 1rem;
    color: #b3b3b3; /* Light gray text for skill descriptions */
}

/* Styling for individual skill categories */
.skill-category {
    background-color: rgb(2, 2, 63); /* Dark gray background for each category */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); /* Dark shadow for contrast */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hover effect for skill cards */
.skill-category:hover {
    transform: translateY(-10px) scale(1.05); /* Slight lift and enlarge effect */
    opacity: 0.9;
}

/* Hover effect for images in skill categories */
.skill-category img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    filter: grayscale(100%); /* Make images grayscale */
    transition: filter 0.3s ease;
}

/* Colorize images on hover */
.skill-category img:hover {
    filter: grayscale(0%); /* Remove grayscale on hover */
}

#certificates {
    padding: 50px 20px;
    background-color: rgb(0, 0, 33); /* Black background */
    text-align: center;
}

#certificates h2 {
    color: #ffffff; /* White text for heading */
    font-size: 2rem;
    margin-bottom: 30px;
}

.certificate-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.certificate-card {
    background-color: rgb(2, 2, 63); /* Dark gray background for card */
    padding: 20px;
    border-radius: 8px;
    color: #ffffff; /* White text */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); /* Darker shadow for contrast */
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0; /* Initially hidden */
    animation: fadeIn 0.6s forwards;
}

.certificate-card h3 {
    color: #ffffff; /* White text for heading */
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.certificate-card p {
    font-size: 1rem;
    color: #b3b3b3; /* Light gray text for description */
}

.certificate-card:hover {
    transform: translateY(-10px) scale(1.05); /* Lift and slightly enlarge */
    opacity: 0.9;
}

.certificate-card:nth-child(1) {
    animation-delay: 0.2s;
}

.certificate-card:nth-child(2) {
    animation-delay: 0.4s;
}

.certificate-card:nth-child(3) {
    animation-delay: 0.6s;
}

.certificate-card:nth-child(4) {
    animation-delay: 0.8s;
}

.certificate-card:nth-child(5) {
    animation-delay: 1s;
}

/* Grayscale effect for images */
.certificate-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    filter: grayscale(100%); /* Apply grayscale effect to images */
    transition: filter 0.3s ease;
}

/* Hover effect to colorize image */
.certificate-card:hover {
    filter: grayscale(0%); /* Colorize image on hover */
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px); /* Start below */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* End at original position */
    }
}
#projects{
    padding: 50px 20px;
    text-align: center;
    background-color: rgb(0, 0, 33);
}
.contact-section {
    padding: 50px 20px;
    background-color: rgb(0, 0, 33); /* Background color */
    color: white; /* Text color */
    text-align: center; /* Center text */
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: rgb(170, 107, 228); /* Using the same purple color */
}

.contact-container {
    display: flex;
    justify-content: space-around; /* Space around content */
    align-items: flex-start; /* Align items to the top */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.contact-info {
    width: 40%; /* Control width */
    max-width: 500px; /* Max width for larger screens */
    text-align: left; /* Left-align text */
}

.contact-info ul {
    list-style: none; /* Remove list style */
    padding: 0; /* Remove padding */
}

.contact-info ul li {
    margin: 10px 0; /* Spacing between items */
}

.contact-info a {
    color: rgb(179, 179, 241); /* Light color for links */
    text-decoration: none; /* No underline */
}

.contact-info a:hover {
    color: rgb(255, 255, 255); /* Change color on hover */
}

.contact-form {
    width: 40%; /* Control width */
    max-width: 500px; /* Max width for larger screens */
}

.contact-form h3 {
    margin-bottom: 20px; /* Space below heading */
}

.contact-form input, .contact-form textarea {
    width: 100%; /* Full width inputs */
    padding: 12px; /* Padding */
    margin: 10px 0; /* Margin between inputs */
    border: 2px solid rgb(170, 107, 228); /* Border color */
    border-radius: 6px; /* Rounded corners */
    background-color: rgb(2, 2, 63); /* Background for inputs */
    color: white; /* Text color */
}

.contact-form button {
    padding: 12px;
    background-color: rgb(170, 107, 228); /* Button color */
    color: white; /* Text color */
    border: none; /* No border */
    border-radius: 6px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    font-size: 16px; /* Font size */
}

.contact-form button:hover {
    background-color: #1e2167; /* Darker shade on hover */
}
.sidebar{
    position: fixed;
    top:0;
    right:0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: rgba(2, 2, 78, 0.55);
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 10px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}
.sidebar li{
    width: 100%;
}
.sidebar a{
    width: 100%;
}
.menu{
    display: none;
}
@media(max-width: 800px){
    .hideOnMobile{
        display: none;
    }
    .menu{
        display: block;
    }
}
@media(max-width: 400px){
    .sidebar{
        width: 100%;
    }
}
@media(max-width: 800px){
    .text{
        font-size: 1.2rem;
    }
}
@media(max-width: 800px){
    .buttons{
        width: 20%;
       
    }
}
@media(max-width: 800px){
    .contact-info{
        width: 30%;
       
    }
    .email{
        font-size: 0.9rem;
    }
}
@keyframes appear{
    from{
        opacity: 0;
        scale: 0.5;
    }
    to{
        opacity: 1;
        scale: 1;
    }
}
.hidden{
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0 cover 40%;
}
#chatContainer {
    display: none; /* Hidden initially */
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 70%;
    height: 80%;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
}
@media (min-width: 1024px) {
    #chatContainer {
        width: 50%;
    }
}
/* Simple button styling */
#openChatButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1001;
}
#closeChatBox{
    bottom:17px;
    position: fixed;
    right: 30px;
    background-color: green;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    display: none;
}

