body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f3ec78, #af4261); /* Background gradient */
    overflow-x: hidden;
}

.container.hidden {
    display: none;
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #333;
    animation: spin 1s ease infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

aside {
    width: 300px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 20px;
    box-sizing: border-box;
}

aside .profile {
    text-align: center;
}

aside .profile img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
}

aside .profile h1 {
    font-size: 1.5em;
    margin: 10px 0;
}

aside .profile h2 {
    font-size: 1em;
    color: #666;
}

aside .profile .social-links a {
    margin: 0 5px;
    color: #333;
    text-decoration: none;
}

aside .profile .button {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    margin: 10px 0;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

nav ul li a:hover {
    background: #007bff;
    color: #fff;
}

main {
    flex: 1;
    padding: 40px;
    box-sizing: border-box;
}

main section {
    margin-bottom: 40px;
}

main section h1 {
    font-size: 2.5em;
    margin: 20px 0;
    color: #333;
    text-align: center;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.stat {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
    flex: 1;
    margin: 0 10px;
}

.skills {
    margin: 20px 0;
}

.skills h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.skills ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills li {
    background: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
}

.projects {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.project-item {
    flex: 1 1 calc(33.333% - 20px);
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s;
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-item img {
    width: 100%;
    height: auto;
}

.project-item h3 {
    margin: 10px;
}

.project-item p {
    margin: 10px;
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    aside {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        transform: translateX(-100%);
        z-index: 1000;
    }

    .toggle-button {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 30px;
        background: #007bff;
        color: #fff;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s ease, transform 0.3s ease;
        font-size: 20px;
        z-index: 1100;
    }

    aside.show ~ .toggle-button {
        left: 300px;
    }

    aside.show ~ .toggle-button i {
        transform: rotate(180deg);
    }

    aside.show {
        transform: translateX(0);
    }

    main {
        margin-left: 0;
        padding-left: 50px;
    }
}
