/* Base Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f9f9f9;
    background-image: linear-gradient(135deg, #f5f5f5 50%, #e0e0e0 100%);
    transition: background-color 0.3s, color 0.3s, background-image 0.3s;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212;
    background-image: linear-gradient(135deg, #1e1e1e 50%, #2c2c2c 100%);
    color: #f5f5f5;
}

body.dark-mode a {
    color: #f5f5f5;
}

body.dark-mode .header-container {
    background-color: rgba(0, 0, 0, 0.7);
}

body.dark-mode .hero-content h2,
body.dark-mode .hero-content p,
body.dark-mode #role {
    color: #f5f5f5;
}

body.dark-mode .skill-item,
body.dark-mode .project-item,
body.dark-mode .education-item,
body.dark-mode .tool-link {
    background-color: #1e1e1e;
    border-color: #444;
}

body.dark-mode .skill-item:hover,
body.dark-mode .project-item:hover,
body.dark-mode .education-item:hover {
    border-color: #007bff;
}

body.dark-mode button {
    background-color: #007bff;
}

body.dark-mode button:hover {
    background-color: #0056b3;
}

body.dark-mode #backToTop {
    background-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode #backToTop:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Header Styles */
header {
    background: rgba(0, 0, 0, 0.3); /* Adjust transparency with alpha value */
    color: #fff;
    padding: 0.5em 2em; /* Adjust padding for inline layout */
    position: fixed; /* Keep the header fixed at the top */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000; /* Ensure the header is above other content */
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space between title and navigation */
    max-width: 1200px;
    margin: 0 auto; /* Center the container */
}

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

nav {
    display: flex;
    align-items: center;
    
 margin-right: 89px;

}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1em;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.5em;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-left: 10px;
}

#darkModeToggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    transition: color 0.3s;
}

#darkModeToggle:hover {
    color: #ddd;
}

#downloadCV {
    background: #007bff;
    color: #fff;
    padding: 0.5em 1em;
    border-radius: 5px;
    transition: background-color 0.3s;
    text-decoration: none;
}

#downloadCV:hover {
    background-color: #0056b3;
}

/* Hero Section Styles */
.hero {
    background-image: url('https://images.pexels.com/photos/943096/pexels-photo-943096.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5em 1em;
    min-height: 100vh;
    position: relative;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    animation: fadeIn 2s ease-in-out;
}

.hero-content h2, .hero-content p, #role {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 2s forwards;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.hero-content h2 {
    font-size: 2.5em;
    animation-delay: 0.5s;
}

.hero-content p {
    font-size: 1.2em;
    animation-delay: 1s;
}

#role {
    font-size: 1.5em;
    animation-delay: 1.5s;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
.section {
    padding: 4em 1em;
    text-align: center;
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
}

.skills, .projects, .tools {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
}

.skill-item, .tool-link, .project-item  {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 1em;
    text-align: center;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    flex: 1 1 calc(33.333% - 2em); /* Responsive flexbox item */
    max-width: calc(33.333% - 2em);
    text-decoration: none; /* Remove underline */
    
}

.skill-item:hover, .tool-link:hover, .project-item:hover {
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
    font-size: 1rem;
    font-weight: 700;

}

.skill-item a, .tool-link a, .project-item a {
    text-decoration: none; /* Remove underline */
    color: inherit;
}

.skill-item .icon, .tool-link .icon {
    font-size: 2.5em; /* Larger icons */
    color: #007bff;
    transition: color 0.3s;
}

 .skill-item .icon:hover, .tool-link .icon:hover {
     color: #0056b3; 
}  

.skill-item h3, .tool-link h3 {
    margin: 0.5em 0;
}

/* Project Item Styles */
.project-item a {
    color: #007bff;
    text-decoration: none;
}

.project-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Education Section Styles */
.education-item {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 1em;
    margin-bottom: 1em;
    transition: box-shadow 0.3s, transform 0.3s;
}

.education-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
    font-size: 1rem;
    font-weight: 700;
}



/* Social Links Section Styles */
.social-links {
    padding: 4em 1em;
    text-align: center;
}

.social-links .section-content {
    max-width: 800px;
    margin: 0 auto;
}

.social-links h2 {
    font-size: 2em;
    margin-bottom: 1em;
}

.social-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
}

.social-card {
    flex: 1 1 calc(33.333% - 2em);
    max-width: calc(33.333% - 2em);
}

.social-link {
    display: block;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1em;
    text-align: center;
    color: #333;
    text-decoration: none;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.social-link:hover {
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.social-link i {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

.social-link p {
    margin: 0;
}

/* Dark Mode Styles for Social Links */
body.dark-mode .social-link {
    background: #1e1e1e;
    border-color: #444;
    color: #f5f5f5;
}

body.dark-mode .social-link:hover {
    border-color: #007bff;
}


/* Contact Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 1em;
    max-width: 600px;
    margin: 0 auto;
}

input, textarea {
    padding: 0.5em;
    border: 1px solid #ddd;
    border-radius: 5px;
}

button {
    background-color: #007bff;
    color: #fff;
    padding: 0.5em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1em;
    position: relative;
    width: 100%;
    bottom: 0;
}

/* Back to Top Button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 1em;
    right: 1em;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 50%;
    padding: 0.5em;
    cursor: pointer;
    font-size: 1.5em;
}

#backToTop:hover {
    background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5em;
        margin-left: 0;
    }

    .header-actions {
        margin-left: 0;
        margin-top: 1em;
    }

    .hero-content h2 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .hero-content #role {
        font-size: 1.2em;
    }

    .skill-item, .tool-link, .project-item {
        flex: 1 1 calc(50% - 2em); /* Adjust for smaller screens */
        max-width: calc(50% - 2em);
    }
}

@media (max-width: 480px) {
    .skill-item, .tool-link, .project-item {
        flex: 1 1 100%; /* Stack items on top of each other */
        max-width: 100%;
    }
}









@media (max-width:490px) {
    .header-container{
        display: none;
    }
}


