/* General Styles */
:root {
    --bg-color: #1a1a1a;
    --text-color: #f5f5f5;
    --nav-bg: #222;
    --nav-text: #dddddd;
    --accent-color: #ffa500; /* Orange highlight */
}
[data-theme="light"] {
    --bg-color: #f5f5f5;
    --text-color: #333;
    --nav-bg: #0044cc; /* Blue for light mode */
    --nav-text: #ffffff;
}
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--nav-bg);
    color: var(--nav-text);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.5rem 0;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    position: relative; /* Ensure positioning for the theme toggle */
}

#themeToggle {
    position: absolute;
    top: 5%; /* Adjust this value to position it higher */
    right: 1rem;
    background: none;
    border: none;
    color: var(--nav-text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}

#themeToggle:hover {
    transform: rotate(20deg);
}

.left-header {
    display: flex;
    align-items: center;
}
header .logo {
    text-decoration: none;
    color: var(--nav-text);
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 0.5rem;
}
header .linkedin-icon img {
    width: 20px;
    height: 20px;
    max-width: 100%;
}
header nav {
    flex-grow: 1;
    text-align: center;
}
header nav ul {
    list-style: none;
    display: inline-flex;
    margin: 0;
    padding: 0;
}
header nav ul li {
    margin: 0 1rem;
}
header nav ul li a {
    text-decoration: none;
    color: var(--nav-text);
    font-weight: bold;
    transition: color 0.3s;
}
header nav ul li a:hover,
header nav ul li a.active {
    color: var(--accent-color);
}
#themeToggle {
    background: none;
    border: none;
    color: var(--nav-text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}
#themeToggle:hover {
    transform: rotate(20deg);
}
main {
    margin-top: 60px;
}
.section {
    padding: 2rem 1rem; /* Reduced padding */
}
.section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}
.section p, .section ul {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}
footer {
    text-align: center;
    padding: 1rem 0;
    background-color: var(--nav-bg);
    color: var(--nav-text);
    margin-top: 2rem;
}
/* === Skills Section Styles === */
.skills-category {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap; /* Ensures responsiveness on smaller screens */
}
.skill {
    flex: 1 1 calc(33.333% - 2rem); /* 3 items per row with gaps accounted for */
    max-width: 300px; /* Ensures consistent width */
    background-color: var(--nav-bg);
    color: var(--nav-text);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, background-color 0.3s;
}
.skill:hover {
    transform: translateY(-5px);
    background-color: var(--accent-color);
    color: #fff;
}
.skill h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.skill ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
.skill ul li {
    margin: 0.5rem 0;
}
/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
header nav ul {
    list-style: none;
    display: inline-flex;
    margin: 0;
    padding: 0;
}
    header nav ul li {
        margin: 0.5rem;
    }
    header .logo-container {
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    header .linkedin-icon img {
        width: 16px; /* Smaller for mobile */
        height: 16px;
    }
    .experience-box {
        width: calc(100% - 2rem); /* Full width with padding */
        margin-bottom: 1rem; /* Add space between boxes */
    }
    .experience-boxes {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 1rem; /* Add padding to the sides */
    }
}
#summary {
    margin-bottom: 2rem; /* Add extra space below the About Me section */
}
#experience {
    margin-bottom: 4rem; /* Reduced space below the experience section */
}
/* Ensure project header is connected to the page's header */
#projects {
    margin-bottom: 4rem; /* Increase space below the projects section */
}
/* Add extra space below the skills section */
#skills {
    margin-bottom: 12rem; /* Increase space below the skills section */
}
/* Experience Section Styling */
.experience-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding: 0 1rem; /* Add padding to the sides */
}
.experience-box {
    background-color: var(--nav-bg);
    color: var(--nav-text);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, background-color 0.3s;
    position: relative;
    height: 100%; /* Ensure boxes are the same height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.experience-box:hover {
    transform: translateY(-5px);
    background-color: var(--accent-color);
    color: #fff;
}
.experience-link {
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Inherit text color */
}
.link-icon {
    margin-top: 1rem;
    font-size: 1.5em; /* Adjust icon size */
    text-align: center;
}

