* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000;
    --secondary-color: #fff;
    --hover-color: #ccc;
    --light-bg: #f9f9f9;
    --dark-bg: #1a1a1a;
}

body {
    font-family: Arial, sans-serif;
    color: var(--primary-color);
    background-color: var(--secondary-color);
    transition: background-color 0.3s, color 0.3s;
    position: relative;
}

body.dark {
    color: var(--secondary-color);
    background-color: var(--primary-color);
}

header {
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

#theme-switcher {
    background-color: transparent;
    border: none;
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 20px;
    z-index: 10;
}

#theme-switcher i {
    color: var(--primary-color);
    transition: color 0.3s;
}

body.dark #theme-switcher i {
    color: var(--secondary-color);
}

main {
    padding: 20px;
}

section {
    margin: 40px 0;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
    text-align: center;
}

body.dark section {
    background-color: var(--dark-bg);
}

section h2 {
    margin-bottom: 15px;
}

.skill-set {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.skill {
    flex: 1 1 calc(33% - 20px);
    background-color: var(--secondary-color);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.dark .skill {
    background-color: #333;
}

.project-highlight {
    margin: 20px 0;
    background-color: var(--secondary-color);
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.project-highlight:hover {
    transform: scale(1.02);
}

body.dark .project-highlight {
    background-color: #333;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--hover-color);
}

.social-icon {
    margin-right: 10px;
    color: inherit;
    transition: color 0.3s;
}

.social-icon:hover {
    color: var(--hover-color);
}

footer {
    text-align: center;
    padding: 20px;
}

/* Scrollbar customization for Webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin-bottom: 10px;
    }

    .skill {
        flex: 1 1 100%;
    }
}

form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: transparent;
    transition: background-color 0.3s;
}

body.dark form {
    background-color: transparent;
}

label {
    margin-bottom: 8px;
    font-weight: bold;
    color: inherit;
}

input[type="email"],
textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s;
    background-color: transparent;
    color: inherit;
}

input[type="email"]:focus,
textarea:focus {
    border-color: #e5e5e5;
    outline: none;
}

button[type="submit"] {
    padding: 10px;
    background-color: #000000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #000000;
}
