@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

#vanta-bg {
    min-height: 100vh;
    background: linear-gradient(-45deg, #1a1a1a, #2d2d2d, #1e3a8a, #1e40af);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    position: relative;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#vanta-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.about-container {
    max-width: 1200px;
    width: 100%;
    background: rgba(243, 13, 13, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 60px;
    border: 1px solid rgba(248, 6, 6, 0.1);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    position: relative;
    text-align: justify;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 1s ease-out;
}

.about-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3c4452, #494f5c, #3d4355, #4d5968);
    border-radius: 32px;
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.profile-image-container {
    position: relative;
    width: 250px;
    height: 250px;
    animation: float 6s ease-in-out infinite;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    object-fit: cover;
    border: 4px solid red;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-image-container::before,
.profile-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 30px;
    z-index: -1;
}

.profile-image-container::before {
    background: red;
    transform: translate(10px, 10px);
    opacity: 0.3;
    transition: transform 0.3s ease;
}

.profile-image-container:hover::before {
    transform: translate(15px, 15px);
}

.cv-button {
    background: red;
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(236, 46, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.cv-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
}

.cv-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.cv-button:hover::before {
    transform: translateX(100%);
    transition: transform 0.6s ease;
}

.content-section {
    color: white;
    animation: slideIn 1s ease-out 0.3s backwards;
}

.about-title {
    font-size: 3.5rem;
    margin-bottom: 30px;
    background:red;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: red;
    border-radius: 2px;
}

.about-text {
    color: #e5e7eb;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.stat-item:hover::before {
    transform: translateX(100%);
    transition: transform 0.6s ease;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: red;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    animation: pulse 2s infinite;
}

.stat-label {
    color: #9ca3af;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-tag {
    background: rgba(59, 130, 246, 0.1);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.skill-tag:hover {
    background:red;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

@media (max-width: 1024px) {
    .about-container {
        padding: 40px;
        gap: 40px;
    }
    
    .about-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .profile-section {
        order: -1;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-title {
        font-size: 2.5rem;
    }

    .profile-image-container {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr;
    }

    .about-title {
        font-size: 2rem;
    }

    .cv-button {
        padding: 14px 30px;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #vanta-bg,
    .profile-image-container,
    .stat-number {
        animation: none;
    }
}