/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif
}

header {
    background: #333;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.logo{
    color:#ffd700;
    font-size:1.8rem;
    font-weight:bold
}
/* Navigation styling */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin: 0 1rem;
    /* Space between navigation items */
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    /* White text color for links */
    font-size: 1rem;
    transition: color 0.3s ease;
    /* Smooth color transition */
}

nav ul li a:hover {
    color: #ffd700;
    /* Gold color on hover */
}

.hero {
    position: relative;
    height: 100vh;
    background-image: url('../Images/a1.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    flex-direction: column;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Semi-transparent overlay */
    z-index: 1;
}
.hero-content {
    position: relative;
    max-width: 90%;
    /* Adjust to your preference */
    margin: 0 auto;
    z-index: 2;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.cta-button {
    background: #FFD700;
    /* Gold color */
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #ffcc00;
}

/* Responsive Images in Projects */
.featured-projects {
    padding: 2rem;
    background-color: #f9f9f9;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.project-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.project-image {
    width: 100%;
    height: auto;
    display: block;
}

.project-content {
    padding: 1rem;
}

.project-content h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #333;
}

.project-content p {
    font-size: 1rem;
    color: #666;
}

.project-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Skill Section */
.skills {
    padding: 50px 20px;
    background: #333;
    color: #fff;
    text-align: center;
}

.skill-item h3 {
    margin: 0;
    font-size: 1.2em;
    color: #333;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.skill-item {
    position: relative;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.skill-item:hover {
    transform: translateY(-5px);
    background-color: #e0e0e0;
}

.skill-item i {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #333;
}

/* About and Contact Sections */
.about-me {
    padding: 2rem;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-me h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
    color: #333;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    text-align: center;
}

.about-image {
    border-radius: 50%;
    width: 150px;
    /* Adjust size as needed */
    height: 150px;
    /* Adjust size as needed */
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.about-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    max-width: 700px;
}


.contact {
    padding: 2rem;
    background-color: #2c2c2c;
    /* Darker background color */
    text-align: center;
    color: #fff;
    /* Ensure text is readable on dark background */
}

.contact h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
    color: #ffd700;
    /* Gold color for headings */
}

.contact p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #ddd;
    /* Lighter color for the paragraph */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    background-color: #333;
    /* Dark background for the form */
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    width: 100%;
}

.form-group i {
    color: #ffd700;
    /* Gold color for icons */
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.contact-form label {
    align-self: flex-start;
    font-size: 1rem;
    color: #fff;
    /* White color for labels */
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-left: 0.5rem;
    /* Space between icon and input */
}

.contact-form button {
    background-color: #ffd700;
    /* Gold color for button */
    color: #333;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #e5b13b;
    /* Slightly darker gold for hover effect */
}

/* Popup */
.popup {
    position: absolute;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 10;
    width: 100%;
    max-width: 300px;
}

.popup-content {
    text-align: left;
}

.popup h3 {
    margin-top: 0;
    font-size: 1.5em;
    color: #333;
}

.popup p {
    margin-bottom: 0;
    font-size: 1em;
    color: #555;
}

.popup-content .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

#popup-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

#popup-description {
    font-size: 1.2rem;
}

/* Footer styling */
footer {
    background-color: #333;
    /* Dark background for consistency */
    color: #fff;
    /* White text for contrast */
    padding: 2rem 0;
    text-align: center;
    /* Center-align the text */
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    /* Shadow for a subtle depth effect */
}

.footer-content {
    max-width: 1200px;
    /* Center the content */
    margin: 0 auto;
    padding: 0 1rem;
    /* Horizontal padding */
}

.footer-content p {
    margin: 0;
    font-size: 1rem;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: #ffd700;
    /* Gold color for icons */
    font-size: 1.5rem;
    /* Larger icon size for visibility */
    margin: 0 0.5rem;
    /* Space between icons */
    text-decoration: none;
    transition: color 0.3s ease;
    /* Smooth color transition */
}

.social-links a:hover {
    color: #fff;
    /* Change color on hover for better visibility */
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        margin-top: 1rem;
    }

    nav ul li {
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    header {
        flex-direction: column;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .logo {
        margin-bottom: 15px;
    }
}