body {
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0d1117;
    color: #ffffff;
    text-align: center;
}

header {
    padding: 20px;
    background: linear-gradient(45deg, #0f0c29, #302b63, #24243e);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}
hr{
    border: 1px solid cyan;
    width: 80%;
    margin: auto;
}
h1 {
    color: cyan;
    text-shadow: 0 0 5px cyan;
}
h2 {
    color: cyan;
    text-shadow: 0 0 5px cyan;
}
h4{
    color:white;
    margin-top: 5px;
    margin-bottom: 5px;
}
nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 10px;
}

nav a {
    color: cyan;
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.3s;
}
section {
    padding: 50px 20px;
}

img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid cyan;
    box-shadow: 0 0 10px cyan;
    margin-top: 20px;
}
/* Skills Section Styling */
/* Dark Theme */
body {
    background-color: #0a0a0a;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

/* Skills Section */
#skills {
    width: 85%;
    margin: auto;
    text-align: center;
    padding: 50px 0;
}

#skills h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: cyan;
    text-shadow: 0 0 5px cyan;
} 

/* Skills Grid */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
}

/* Skill Card */
.skill {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
    transition: transform 0.3s ease-in-out;
}

.skill:hover {
    transform: scale(1.05);
}

/* Skill Icon */
.skill i {
    font-size: 40px;
    color: #00ffcc;
    text-shadow: 0 0 5px #00ffcc;
    margin-bottom: 10px;
}

.skill h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.skill p {
    font-size: 14px;
    opacity: 0.8;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    margin-top: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.progress {
    height: 100%;
    border-radius: 6px;
    animation: load 2s ease-in-out;
    box-shadow: 0 0 10px;
}

/* Custom Progress Colors */
.c { width: 85%; background: #00aaff; box-shadow: 0 0 10px #00aaff; }
.cpp { width: 80%; background: #ff4c4c; box-shadow: 0 0 10px #ff4c4c; }
.python { width: 75%; background: #ffcc00; color: #000; box-shadow: 0 0 10px #ffcc00; }
.js { width: 70%; background: #f7df1e; color: #000; box-shadow: 0 0 10px #f7df1e; }
.css { width: 90%; background: #2965f1; box-shadow: 0 0 10px #2965f1; }
.electronics { width: 65%; background: #27ae60; box-shadow: 0 0 10px #27ae60; }

/* Progress Animation */
@keyframes load {
    from { width: 0; }
}
a {
    color: cyan;
    text-decoration: none;
}

a:hover {
    color: lime;
    text-shadow: 0 0 10px lime;
}
/* Form Styling */
form {
    margin: 20px auto;
    width: 80%;
    max-width: 600px; /* Ensures the form doesn't stretch too wide on large screens */
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 0 10px cyan;
    text-align: center; /* Centers the text inside the form */
}

/* Input and Textarea Styling */
input[type="text"],
input[type="email"],
textarea {
    width: 100%; /* Makes the input fields and textarea take up the full width */
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
    background-color: #0d1117;
    color: cyan;
    border: 1px solid cyan;
    box-sizing: border-box; /* Ensures padding doesn't cause layout issues */
}

/* Submit Button Styling */
button[type="submit"] {
    padding: 10px 20px;
    border: none;
    background-color: cyan;
    color: #0d1117;
    border-radius: 8px;
    cursor: pointer;
    align-self: center;
    font-size: 1.1em; /* Makes the button text a little larger for emphasis */
    transition: background-color 0.3s ease; /* Adds hover effect */
}

/* Hover effect for button */
button[type="submit"]:hover {
    background-color: #00bcd4; /* Slightly darker cyan on hover */
}

/* Success message styling */
.success-message {
    font-size: 1.1em;
    color: green;
    margin-top: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    textarea {
        width: 100%; /* Full width on smaller screens */
    }
}

section[ id="about"] {
    margin: 20px auto;
    width: 80%;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 0 10px cyan;
    text-align: center;
    color:white;
}
footer {
    padding: 15px;
    background: #0a0a23;
    color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}
 /* Mobile Responsiveness for Project Cards */ 
 @media (max-width: 768px) {
    /* Adjust the grid layout for small screens */
    .projects-container {
        grid-template-columns: 1fr; /* Stack project cards vertically on smaller screens */
        gap: 20px; /* Reduced gap between cards */
    }

    /* Project Card Styling */
    .project-card {
        padding: 15px; /* Reduced padding to fit better on mobile */
        text-align: center; /* Ensure text is centered */
        box-shadow: 0 0 10px rgba(0, 255, 204, 0.5); /* Retain the glowing shadow effect */
    }

    /* Project Image Styling */
    .project-img {
        width: 80%; /* Adjust image width for better fit on smaller screens */
        height: auto; /* Maintain the aspect ratio of images */
        margin: 0 auto 15px; /* Center the image and provide some space below */
        border: navy; /* Keep the border color */
        object-fit: cover; /* Ensure image fits within its container */
        border-radius: 10px; /* Keep the rounded corners for the image */
    }

    /* Project Card Heading */
    .project-card h3 {
        font-size: 1.4em; /* Adjust font size for titles on smaller screens */
        color: white; /* Keep the text white */
        margin-bottom: 10px;
        margin-top: auto ;
    }

    /* Project Card Description */
    .project-card p {
        font-size: 1em; /* Adjust font size for descriptions */
        color: #fff; /* Keep text white */
        opacity: 0.8; /* Maintain the subtle opacity effect */
        margin-bottom: 15px;
        margin-top: auto;
    }

    /* GitHub Link Styling */
    .github-link {
        padding: 10px 20px; /* Adjust padding for mobile devices */
        font-size: 1em; /* Adjust font size for the button */
        text-decoration: none; /* Remove underline from the link */
        background-color: #007bff; /* Retain the background color */
        color: white; /* Keep the text white */
        border-radius: 5px; /* Keep the rounded corners */
        transition: background-color 0.3s ease; /* Retain transition effect on hover */
        margin-top: auto;
    }

    /* GitHub Link Hover Effect */
    .github-link:hover {
        background-color: #0056b3; /* Slightly darker color on hover */
    }
}

/* Projects Section */
.projects-section {
    width: auto;
    background-color: #0a0a0a; /* Retain dark background for the section */
    padding: 50px 0;
    text-align: center;
}

.projects-section .section-header h2 {
    font-size: 2.5em; /* Keep the large font size for header */
    margin-bottom: 10px;
    color: cyan; /* Cyan text color for consistency with theme */
    text-shadow: 0 0 5px cyan; /* Keep glowing text effect */
}

.projects-section .section-header p {
    font-size: 1.2em; /* Smaller font for description */
    color: white; /* White text color */
    margin-bottom: 30px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Ensure the cards adjust based on screen width */
    gap: 30px;
    justify-content: center;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent background */
    border: none;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.5); /* Glowing box shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px); /* Hover effect for card */
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.5); /* Retain the glowing shadow on hover */
}

.project-img {
    width: 50%; /* Default image width */
    height: 50%; /* Default height */
    border: navy; /* Border color */
    object-fit: cover; /* Ensure image fits within the box */
    border-radius: 10px; /* Rounded corners for the image */
    margin-bottom: 15px; /* Space between image and text */
    margin-top: auto;
}

.project-card h3 {
    font-size: 1.6em; /* Heading size for project titles */
    color: white; /* Keep the title color white */
    margin-bottom: 10px;
    margin-top: auto;
}

.project-card p {
    font-size: 1em; /* Description text size */
    color: #fff; /* White text color */
    opacity: 0.8; /* Slightly transparent text for description */
    margin-bottom: 15px;
    margin-top: auto;
}

.github-link {
    display: inline-block;
    background-color: #007bff; /* GitHub link background color */
    color: white; /* Text color */
    padding: 12px 25px; /* Padding around the link */
    border-radius: 5px; /* Rounded corners for the button */
    font-size: 1.1em; /* Font size of the button text */
    text-decoration: none; /* Remove underline */
    transition: background-color 0.3s ease; /* Smooth background change on hover */
    margin-top: auto;
}

.github-link:hover {
    background-color: #0056b3; /* Darker shade when hovering */
}

.social-links{
    a{
display:inline-flex;
align-items: center;
justify-content: center;
width: 30px;
height: 30px;    
border-radius: 50%;
background-color: transparent;

color:#00ffff;
border: 2px solid #00ffff;
font-size: 20px;
margin: 5px;
transition: 0.3s;
}
a:hover {
    color: lime;
    text-shadow: 0 0 10px lime;
}
}