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

body {
    font-family: Inter, Helvetica, Arial, system-ui, -apple-system;
    background: linear-gradient(135deg, #0a0e14 0%, #111822 50%, #1a252f 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

.container {
    max-width: 420px;
    width: 100%;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-dots {
    position: absolute;
    top: -35px;
    right: 15px;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
}

.menu-dots:hover {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.1);
}

.profile-section {
    text-align: center;
    margin-bottom: 45px;
}

.profile-image {
    width: 130px;
    height: 130px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.profile-image::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.profile-image:hover::before {
    opacity: 1;
}

.profile-image:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: -moz-crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.profile-image:hover img {
    transform: scale(1.05);
}

.name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #f8fafc;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 45px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 28px;
    padding: 10px;
}

.social-link:hover {
    color: #ffffff;
    transform: translateY(-2px) scale(1.1);
}

.portfolio-sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.portfolio-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: white;
    backdrop-filter: blur(25px);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
    text-align: center;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-card:nth-child(1) { animation-delay: 0.1s; }
.portfolio-card:nth-child(2) { animation-delay: 0.2s; }
.portfolio-card:nth-child(3) { animation-delay: 0.3s; }
.portfolio-card:nth-child(4) { animation-delay: 0.4s; }

.portfolio-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(96, 165, 250, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 20px;
}

.portfolio-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.portfolio-card:hover::after {
    left: 100%;
}

.portfolio-card:hover::before {
    opacity: 1;
}

.portfolio-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.25),
        0 10px 20px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(96, 165, 250, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 17px;
    font-weight: 600;
    color: #f1f5f9;
    letter-spacing: -0.3px;
    transition: all 0.3s ease;
}

.portfolio-card:hover .card-title {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Enhanced responsive design */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .container {
        max-width: 370px;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .name {
        font-size: 26px;
    }
    
    .social-link {
        font-size: 26px;
        padding: 8px;
    }
    
    .portfolio-card {
        padding: 16px 22px;
        border-radius: 18px;
    }
    
    .card-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 340px;
    }
    
    .profile-image {
        width: 110px;
        height: 110px;
    }
    
    .name {
        font-size: 24px;
    }
    
    .social-links {
        gap: 14px;
    }
    
    .social-link {
        font-size: 24px;
        padding: 6px;
    }
    
    .portfolio-card {
        padding: 14px 18px;
    }
    
    .card-title {
        font-size: 15px;
    }
}
