body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #000; /* Default dark mode background */
    color: white; /* Default dark mode text color */
    transition: background-color 0.5s, color 0.5s;
}
canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
header.container {
    top: 20px; /* Margin from top */
    left: 20px; /* Padding from left */
    right: 20px; /* Padding from right */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 50px;
    color: inherit; /* Inherit color from the section */
    z-index: 10;
    border-radius: 10px; /* Optional: rounded corners */
    transition: color 0.5s;
    background: none; /* Remove background */
}
.logo{
    font-size: 24px;
    font-weight: bold;
    transition: color 0.5s;
    position: relative;
}
.logo::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: linear-gradient(to right, #de1d8d, #DE1D75);
    transition: width 0.3s ease, right 0.3s ease;
}
.logo:hover::after {
    width: 100%;
    right: 0;
}
.nav-links {
    display: flex;
    gap: 20px;
}
.nav-links a {
    color: inherit; /* Inherit color from the section */
    text-decoration: none;
    font-size: 18px;
    transition: color 0.5s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: linear-gradient(to right, #de1d8d, #DE1D75);
    transition: width 0.3s ease, right 0.3s ease;
}
.nav-links a:hover::after {
    width: 100%;
    right: 0;
}
.nav-links a#mode-icon:hover::after {
    width: 0; /* No underline effect for the mode icon */
}
.light-mode {
    background-color: #fff; /* Light mode background */
    color: black; /* Light mode text color */
}
.light-mode header.container {
    color: inherit; /* Inherit color from the section */
}
.light-mode .nav-links a {
    color: inherit; /* Inherit color from the section */
}
section {
    padding: 100px 20px;
    text-align: center;
    min-height: 100vh;
    transition: background-color 0.5s, color 0.5s;
}
#home {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Align items to the left */
    height: 100vh;
    padding-left: 50px; /* Add padding to the left */
    padding-right: 50px; /* Add padding to the right */
    color: inherit; /* Inherit color from the section */
}
.intro {
    position: relative;
    z-index: 1;
    text-align: left; /* Align text to the left */
    margin-top: -370px; /* Move the section slightly higher */
}
.intro h1 {
    font-size: 96px; /* Increase font size */
    margin-bottom: 20px;
}
.intro p {
    font-size: 50px;
    margin-bottom: 20px;
}
.read-more {
    font-size: 25px;
    color: inherit; /* Inherit color from the section */
    text-decoration: none;
    border-bottom: 2px solid currentColor;
    padding-bottom: 2px;
    transition: color 0.3s;
}
.read-more:hover {
    color: #de1d8d; /* Change text color on hover */
}
#blog {
    background-color: #fff;
    color: #000;
}
#about {
    background-color: #f4f4f4;
    color: #000;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    transition: background-color 0.5s, color 0.5s;
}
#about .content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}
#about .description {
    flex: 1;
    max-width: 50%;
}
#about .description h1 {
    font-size: 48px;
    margin-bottom: 20px;
}
#about .description p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}
#about .profile-pic {
    flex: 1;
    max-width: 40%;
    text-align: center;
}
#about .profile-pic img {
    max-width: 100%; /* Ensure the image takes full width */
    height: auto; /* Maintain aspect ratio */
}
#about .hire-me {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #de1d8d;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    transition: background-color 0.3s;
}
#about .hire-me:hover {
    background-color: #c0176b;
}
#about .social-media {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
}
#about .social-media a {
    color: #000;
    font-size: 24px;
    transition: color 0.3s;
}
#about .social-media a:hover {
    color: #de1d8d;
}
#about .additional-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}
#about .additional-info img {
    max-width: 100%;
    height: auto;
}
#about .additional-info div {
    width: 100%;
    text-align: center;
}
#contact {
    background-color: #e0e0e0;
    color: #000;
}
.light-mode #blog,
.light-mode #about,
.light-mode #contact {
    background-color: inherit; /* Inherit background color from light mode */
    color: inherit; /* Inherit text color from light mode */
}
.blog-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.blog-card {
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 200px;
    transition: transform 0.3s;
}
.blog-card:hover {
    transform: translateY(-10px);
}
.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    padding: 20px;
}
.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: none;
    border-bottom: 2px solid black;
    background: none;
    font-size: 16px;
    color: black;
    caret-color: black; /* Set cursor color to black */
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: black; /* Set placeholder color to black */
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none; /* Remove the default focus outline */
    border-bottom: 2px solid black; /* Keep the underline style */
}
.contact-form button {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    background-color: black;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.contact-form button:hover {
    background-color: #333;
}
#success-message {
    color: green;
    font-size: 16px;
    margin-top: 10px;
}
.hidden {
    display: none;
}
.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-info h2 {
    margin: 0;
    font-size: 24px;
}
.contact-info p {
    margin: 0;
    font-size: 18px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header.container {
        padding: 10px 20px;
    }
    .logo {
        font-size: 20px;
    }
    .nav-links {
        gap: 15px;
    }
    .nav-links a {
        font-size: 16px;
    }
    .intro h1 {
        font-size: 48px; /* Adjust font size for smaller screens */
    }
    .intro p {
        font-size: 18px;
    }
    .read-more {
        font-size: 16px;
    }
    .blog-card {
        width: 100%;
    }
    .contact-container {
        flex-direction: column;
        align-items: center; /* Center align items */
        gap: 20px;
    }
    .contact-form, .contact-info {
        max-width: 100%;
        text-align: center;
    }
    #about {
        padding: 50px 20px; /* Adjust padding for smaller screens */
    }
    #about .content {
        flex-direction: column;
        align-items: center;
    }
    #about .description, #about .profile-pic {
        max-width: 100%;
        text-align: center;
    }
    #about .description p {
        font-size: 16px;
    }
    #about .profile-pic img {
        max-width: 100%; /* Ensure the image takes full width */
        height: auto; /* Maintain aspect ratio */
    }
    #about .additional-info {
        gap: 15px;
    }
    #about .additional-info img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    header.container {
        padding: 5px 10px;
    }
    .logo {
        font-size: 18px;
    }
    .nav-links {
        gap: 10px;
    }
    .nav-links a {
        font-size: 14px;
    }
    .intro h1 {
        font-size: 36px; /* Adjust font size for smaller screens */
    }
    .intro p {
        font-size: 16px;
    }
    .read-more {
        font-size: 14px;
    }
    .contact-container {
        flex-direction: column;
        align-items: center; /* Center align items */
        gap: 20px;
    }
    .contact-form, .contact-info {
        max-width: 100%;
        text-align: center;
    }
    #about {
        padding: 30px 10px; /* Adjust padding for smaller screens */
    }
    #about .description p {
        font-size: 14px;
    }
    #about .profile-pic img {
        max-width: 100%; /* Ensure the image takes full width */
        height: auto; /* Maintain aspect ratio */
    }
    #about .additional-info {
        gap: 10px;
    }
    #about .additional-info img {
        max-width: 100%;
        height: auto;
    }
}
footer {
    background-color: black;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Copyright text */
footer .copyright {
    font-size: 12px;
    margin-top: 20px;
}