* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f0f23;
    min-height: 100vh;
    overflow-x: hidden;
    user-select: none;
}

/* Menu Bar */
.menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 14px;
    color: #e8e8e8;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.apple-logo {
    font-size: 16px;
}

.menu-title {
    font-weight: 500;
}

.menu-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.menu-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-icon {
    font-size: 14px;
}

/* Main Content */
.main-content {
    padding-top: 44px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.content-section {
    padding: 32px 20px;
    margin: 0 auto;
    max-width: 1200px;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    color: #f8f9fa;
    text-align: left;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
    margin-left: 4px;
}

/* About Section */
.about-section {
    background: rgba(25, 25, 45, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    margin: 24px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 28px;
}

.profile-section {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    flex-direction: row;
    text-align: left;
}

.avatar {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    background-image: url('un ragazzo discord.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
    margin-top: 8px;
}

.profile-info h1 {
    font-size: 32px;
    font-weight: 700;
    color: #f8f9fa;
    margin-bottom: 6px;
    letter-spacing: -0.025em;
}

.profile-info .title {
    font-size: 17px;
    color: #10b981;
    font-weight: 500;
    margin-bottom: 20px;
    opacity: 0.9;
}

.profile-info .bio {
    font-size: 16px;
    line-height: 1.5;
    color: #d1d5db;
    margin-bottom: 28px;
    max-width: 480px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: #e5e7eb;
    background: rgba(55, 65, 81, 0.4);
    padding: 12px 18px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.contact-item:hover {
    background: rgba(55, 65, 81, 0.6);
    transform: translateY(-1px);
}

.contact-item .icon {
    width: 18px;
    font-size: 16px;
}

/* Projects Section */
.projects-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    margin: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.project-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.project-card:hover,
.project-card:active {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

.project-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    margin-bottom: 16px;
}

.project-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.project-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
}

.tech-stack {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tech {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

/* Skills Section */
.skills-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    margin: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.skill-category h3 {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    text-align: center;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-item span {
    font-size: 16px;
    font-weight: 500;
    color: white;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #feca57, #ff6b6b);
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Navigation Dock */
.nav-dock {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 14px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 56px;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-1px);
}

.nav-icon {
    font-size: 22px;
    transition: transform 0.2s ease;
}

.nav-item:hover .nav-icon {
    transform: scale(1.05);
}

.nav-label {
    font-size: 11px;
    color: #d1d5db;
    font-weight: 500;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .content-section {
        padding: 24px 16px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 24px;
    }
    
    .profile-info h1 {
        font-size: 28px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skills-categories {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: stretch;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .nav-dock {
        bottom: 10px;
        padding: 8px 16px;
    }
    
    .nav-item {
        padding: 6px 8px;
        min-width: 50px;
    }
    
    .nav-icon {
        font-size: 20px;
    }
    
    .nav-label {
        font-size: 10px;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        align-items: center;
    }
    
    .section-title {
        text-align: center;
        font-size: 26px;
    }
    
    .contact-info {
        align-items: center;
        width: 100%;
    }
    
    .contact-item {
        justify-content: center;
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .profile-section {
        gap: 20px;
    }
    
    .avatar {
        width: 80px;
        height: 80px;
        border-radius: 20px;
        background-image: url('un ragazzo discord.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .profile-info h1 {
        font-size: 28px;
    }
    
    .profile-info .bio {
        font-size: 15px;
    }
    
    .contact-item {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .about-section {
        margin: 20px 12px;
        padding: 32px 24px;
    }
}