/* Footer Styles */
.footer {
    width: 100%;
    max-width: 100%;
    padding: 15px;
    background-color: #ffffff;
    color: black;
    border-radius: 15px;
    text-align: left;
    transition: background-color 0.5s ease, color 0.5s ease;
    align-items: flex-start; /* Top align text within the footer */
    box-sizing: border-box; /* Ensure padding and border are included in the total width */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.dark-mode .footer {
    background-color: #2c2c2c; /* Darker background for better contrast */
    /* Removed box-shadow for dark mode */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.footer a {
    color: #000000;
    margin: 0px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.5s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.dark-mode .footer a {
    color: #bbbbbb; /* Softer white for less strain */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.footer a:hover {
    text-decoration: underline;
}

body.dark-mode .footer a:hover {
    color: #ffffff;
}

.footer-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0px;
    max-width: 100%; /* Adjusted to prevent overextending */
    box-sizing: border-box; /* Ensure padding and border are included in the total width */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.company-description, .social-media-links, .additional-links {
    flex: 1 1 30%;
    margin: 0%;
    max-width: 500px;
    padding-left: 15px;
    padding-right: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.company-description h1 {
    font-size: 2em;
    margin-bottom: 10px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.company-description p {
    font-size: 1.2em;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.social-media-links {
    display: flex;
    align-items: left;
    padding-left: 15px; /* Match padding with company description */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.social-media-links a img {
    width: 24px;
    height: 24px;
    margin: 0 5px;
    transition: transform 0.5s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.social-media-links a img:hover {
    transform: scale(1.1);
}

.link-column {
    display: flex;
    flex-direction: column;
    max-width: 150px;
    padding-left: 15px; /* Match padding with company description */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.link-column a {
    margin: 5px 0;
    font-size: 1.2em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {
    .link-column {
        display: none;
    }
    .company-description {
        flex: 1 1 100%;
        padding: 0px; /* Reduced padding for less space on sides */
        box-sizing: border-box; /* Include padding and border in element's total width and height */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}