/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

header h1 {
    margin: 0;
}

header p {
    margin: 0;
    font-style: italic;
}

/* Navigation */
nav {
    background: #444;
    color: #fff;
    padding: 0.5rem 0;
    text-align: center;
}

nav ul {
    padding: 0;
    list-style: none;
}

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

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Sections */
section {
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

section h2 {
    color: #333;
    text-align: center;
}

/* Work Experience and Education Articles */
article {
    margin: 1rem 0;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

article h3 {
    color: #333;
}

/* Skills List */
section#skills ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 0;
}

section#skills ul li {
    width: 45%;
    background: #fff;
    margin: 10px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

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

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    nav ul li {
        display: block;
        margin: 0;
    }

    section#skills ul li {
        width: 90%;
    }
}


/* Existing styles... */

/* Dark Mode Toggle Switch */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1000;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display:none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
}

input:checked + .slider {
    background-color: #66bb6a;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* ... existing styles ... */

/* ... existing styles ... */

/* Dark Mode Styles */
body.dark-mode {
    background-color: #333;
    color: #c7c7c7; /* Lighter text color for better contrast */
}

body.dark-mode header,
body.dark-mode nav,
body.dark-mode footer {
    background: #222;
}

/* This will target all headings and other text elements in dark mode */
body.dark-mode,
body.dark-mode header h1,
body.dark-mode header p,
body.dark-mode nav ul li a,
body.dark-mode footer p,
body.dark-mode footer .theme-switch-wrapper em,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #fff; /* White text for better readability in dark mode */
}

body.dark-mode article {
    background: #444;
    color: #ddd;
}

/* Ensure article headings are also light in color */
body.dark-mode article h3 {
    color: #fff;
}

/* ... media queries and other styles ... */


/* Transition effect */
.transition {
    transition: background-color 0.5s ease, color 0.5s ease;
}

html, body, header, nav, footer, article, .theme-switch-wrapper {
    transition: background-color 0.5s ease, color 0.5s ease;
}
