/* Apply Ubuntu font globally */
body {
    font-family: 'Ubuntu', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #333;
    color: white;
    padding: 40px 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

header p {
    font-size: 1.2rem;
    opacity: 0;
    animation: fadeIn 1.5s ease-in forwards;
}

section {
    padding: 40px 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-in forwards;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

ul {
    list-style-type: none;
}

ul li {
    font-size: 1.1rem;
}

.skill-set {
    display: flex;
    justify-content: space-between;
}

.skill {
    width: 30%;
}

.bar {
    height: 10px;
    background-color: #ccc;
    margin-top: 10px;
    border-radius: 5px;
    opacity: 0;
    animation: growBar 1.5s ease-in forwards;
}

.html {
    width: 90%;
    background-color: #e44d26;
}

.css {
    width: 85%;
    background-color: #264de4;
}

.js {
    width: 80%;
    background-color: #f0db4f;
}

button {
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #444;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #444;
}

#contact-form {
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

#contact-form.show {
    transform: translateY(0);
    opacity: 1;
}

footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212;
    color: white;
}

header.dark-mode {
    background-color: #1f1f1f;
}

/* Dark mode toggle button styling */
button.theme-toggle-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

button.theme-toggle-button:hover {
    background-color: #444;
    transform: scale(1.1);
}

button.theme-toggle-button i {
    font-size: 20px;
}

/* Dark mode button color */
body.dark-mode button.theme-toggle-button {
    background-color: #e44d26; /* Light button for dark mode */
    color: #333;
}

/* Font Awesome Icons for Light/Dark mode */
body.dark-mode #theme-icon {
    content: "\f186"; /* Moon icon */
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes growBar {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}
