.sidebar {
    background-color: #1E1E1E;
    width: 200px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 14px;
}

.sidebar-content {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 0 16px 14px;
    border-bottom: 1px solid #2E2E2E;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 0;
    margin-left: 0;
    flex-shrink: 0;
}

.sidebar-logo img {
    max-width: 100%;
    max-height: 100%;
}

.sidebar-text {
    color: #ffffff;
    font-size: 8px;
    margin-bottom: 0;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    width: 100%;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    display: flex; 
    align-items: center; 
    padding: 10px 16px;
    transition: background-color 0.3s ease;
}

.sidebar ul li a:hover {
    background-color: #00A65A;
}

.footer {
    text-align: center;
    background-color: #2E2E2E; 
    color: #ffffff; 
    padding: 24px 28px; 
    clear: both; 
    display: flex;
    justify-content: space-between; 
    align-items: flex-start; 
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 30px
}

.content .footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s, background-color 0.3s; 
}

.contact-info,
.social-icons {
    flex: 1 1 260px;
}

.contact-info h3,
.social-icons h3 {
    font-size: 18px; 
    margin-bottom: 10px; 
}

.contact-info p {
    font-size: 16px; 
}

.contact-info p a {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.social-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-icon-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    border-radius: 12px;
    touch-action: manipulation;
    vertical-align: middle;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.3s, background-color 0.3s;
}

.social-icons img {
    width: 30px; 
    margin: 0;
    border-radius: 8px;
    transform-origin: center bottom;
    transition: transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .content .footer a:hover,
    .content .footer a:focus-visible {
        color: #00FF80;
        background-color: transparent;
    }

    .content .footer .social-icons a:hover,
    .content .footer .social-icons a:focus-visible {
        background-color: rgba(0, 166, 90, 0.14);
    }

    .social-icons a:hover img,
    .social-icons a:focus-visible img {
        animation: footer-icon-bounce 0.38s ease;
    }
}

@media (hover: none) and (pointer: coarse) {
    .content .footer .social-icons a:active {
        background-color: rgba(0, 166, 90, 0.14);
    }

    .social-icons a:active img {
        animation: footer-icon-bounce 0.38s ease;
    }
}

.copyright {
    flex: 1;
    font-size: 14px; 
}

@keyframes footer-icon-bounce {
    0% {
        transform: translateY(0);
    }
    35% {
        transform: translateY(-4px);
    }
    65% {
        transform: translateY(1px);
    }
    100% {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    html,
    body {
        overscroll-behavior-y: none;
        overscroll-behavior-x: none;
        overflow-x: hidden;
        overflow-x: clip;
    }

    body {
        min-height: 100%;
        background-color: #121212;
        position: relative;
        isolation: isolate;
        overflow-x: hidden;
    }

    body::before {
        content: '';
        position: fixed;
        inset: 0;
        background: radial-gradient(circle at top, #1f1f1f 0%, #121212 48%);
        pointer-events: none;
        z-index: -1;
    }

    .content {
        background-color: transparent;
    }

    .sidebar {
        width: 100%; 
        height: auto; 
        position: static; 
        background-color: transparent;
        padding-top: 0;
    }

    .sidebar ul {
        padding: 66px 0 0;
        background-color: #1E1E1E;
    }

    .sidebar-content {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 200;
        margin-bottom: 0;
        padding: 10px 16px 12px;
        background-color: #1E1E1E;
        border-bottom: 1px solid #2E2E2E;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    }

    .sidebar-logo {
        margin-left: 0;
        margin-right: 0;
    }

    .sidebar-text {
        font-size: 10px;
        margin-bottom: 0;
    }

    .sidebar ul li:not(.sidebar-content) a {
        padding-left: 16px;
        padding-right: 16px;
    }

    .footer {
        padding: 18px 16px;
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .contact-info,
    .social-icons {
        flex: none;
        width: min(100%, 360px);
    }

    .contact-info {
        font-size: 14px; 
    }

    .social-icon-links {
        gap: 10px;
    }

    .social-icons img {
        width: 25px; 
    }

    .copyright {
        font-size: 12px; 
    }
}