.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    z-index: 1100;
    width: 250px;
    height: 100vh;
    padding-top: 80px;
    border-right: 1px solid var(--accent-border);
    background: var(--surface-solid);
    box-shadow: 18px 0 50px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease;
}

.sidebar a {
    display: block;
    padding: 12px 25px;
    color: var(--text-secondary);
    font-weight: 600;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.sidebar a:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.sidebar.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    visibility: hidden;
    opacity: 0;
    background: rgba(3, 7, 12, 0.58);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    cursor: pointer;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.sidebar-overlay.active {
    visibility: visible;
    opacity: 1;
}

body.menu-open {
    overflow: hidden;
}

.light-mode .sidebar-overlay {
    background: rgba(32, 41, 54, 0.28);
}

/* Mobile menu controls */
.close-btn,
.menu-btn {
    display: grid;
    padding: 0;
    place-items: center;
    border: 1px solid var(--accent-border);
    color: var(--accent);
    background: var(--surface);
    cursor: pointer;
    text-shadow: none;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.menu-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1200;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    font-size: 1rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.menu-btn i {
    color: inherit;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 38px;
    height: 38px;
    border-color: transparent;
    border-radius: 10px;
    color: var(--accent);
    background: transparent;
    font-size: 1.7rem;
    line-height: 1;
}

.menu-btn:hover,
.close-btn:hover {
    border-color: var(--accent-border);
    color: var(--accent-strong);
    background: var(--accent-soft);
}

.menu-btn:hover {
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.2),
        0 0 16px rgba(77, 216, 230, 0.1);
    transform: translateY(-2px);
}

.close-btn:hover {
    transform: rotate(5deg);
}

.menu-btn:active {
    transform: scale(0.96);
}

.menu-btn:focus-visible,
.close-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (max-width: 576px) {
    .menu-btn {
        top: 14px;
        left: 14px;
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }
}

.section {
    padding: 80px 0;
    border-bottom: 2px solid #00eaff;
    text-align: center;
}

.btn-custom {
    background-color: #00eaff;
    color: black;
    text-shadow: 0 0 5px #000000;
    box-shadow: 0 0 10px #00eaff;
    transition: 0.3s;
}

.btn-custom:hover {
    background-color: #ff0099;
    box-shadow: 0 0 20px #ff0099;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background: #111;
    border: 1px solid #ff0099;
    box-shadow: 0 0 10px #ff0099;
    color: #00eaff;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    padding: 20px;
}

.card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 0 20px #ff0099, 0 0 40px #ff00ff;
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00eaff;
    text-shadow: 0 0 10px #00eaff, 0 0 20px #00ffff;
    text-align: center;
}

.card-text {
    font-size: 1rem;
    color: #ff0099;
    text-shadow: 0 0 5px #ff0099, 0 0 10px #ff00ff;
    opacity: 0.9;
}

.card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    align-items: center;
}

.card .btn-custom {
    align-self: center;
    margin-top: auto;
    width: auto;
    padding: 8px 16px;
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 576px) {
    .card {
        width: 90%;
        margin: auto;
    }
}

.about-photo-container {
    position: relative;
    display: inline-block;
}

.about-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff0099;
}

.emoji-container {
    position: absolute;
    top: 50%;
    left: -35px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    max-width: 100%;
}

.about-photo-container:hover .emoji-container {
    opacity: 1;
}

@media (max-width: 768px) {
    .emoji-container {
        left: 10px;
        position: relative;
        transform: none;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 5px;
    }
}

.emoji {
    font-size: 24px;
}

.about-text {
    text-align: left;
}

@keyframes glitch {
    0% { text-shadow: 2px 2px #ff0099; }
    50% { text-shadow: -2px -2px #00eaff; }
    100% { text-shadow: 2px 2px #ff0099; }
}

.glitch {
    animation: glitch 1s infinite alternate;
}

footer {
    position: relative;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #ff0099;
    text-shadow: 0 0 5px #ff0099, 0 0 10px #ff00ff;
    font-size: 14px;
    letter-spacing: 1px;
    border-top: 2px solid #ff0099;
    box-shadow: 0 0 10px #ff0099;
}

footer p {
    margin: 0;
    padding: 5px;
    font-weight: bold;
}

.skills-list {
    list-style: none;
    padding-left: 0;
}

.skills-list li {
    padding-left: 10px;
}

.skills-category ul li {
    color: #ff0099 ;
    font-weight: bold;
    text-shadow: 0 0 8px #ff0099, 0 0 15px #ff0099;
    transition: 0.3s;
}

.skills-category ul li:hover {
    color: #ffff00;
    text-shadow: 0 0 10px #ffff00, 0 0 20px #ffcc00;
    transform: scale(1.1);
}

ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.typing-cursor::after {
    content: "|";
    animation: blink 0.7s infinite;
    color: #00eaff;
    font-weight: bold;
}

@keyframes blink {
    50% { opacity: 0; }
}
