/* Base Styles with 3D Aesthetic */
:root {
    --primary-color: #1a237e;
    --secondary-color: #00bcd4;
    --dark-bg: #0a0a12;
    --light-text: #e0e0e0;
    --medium-gray: #424242;
    --dark-gray: #1a1a24;
    --accent-green: #00e676;
    --accent-blue: #2962ff;
    --neon-blue: #00f7ff;
    --neon-pink: #ff00f7;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    perspective: 1000px;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(41, 98, 255, 0.05) 0%, transparent 50%),
        linear-gradient(to bottom, var(--dark-bg), var(--dark-gray));
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
}

/* 3D Background Elements */
.bg-cube, .bg-sphere, .bg-pyramid {
    position: fixed;
    z-index: 1;
    opacity: 0.15;
    filter: blur(60px);
    animation: float 15s infinite ease-in-out;
}

.bg-cube {
    width: 300px;
    height: 300px;
    background: var(--neon-blue);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    transform: rotateZ(45deg);
}

.bg-sphere {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--neon-pink);
    bottom: 10%;
    right: 10%;
    animation-delay: 3s;
}

.bg-pyramid {
    width: 0;
    height: 0;
    border-left: 200px solid transparent;
    border-right: 200px solid transparent;
    border-bottom: 350px solid var(--accent-green);
    top: 50%;
    right: 20%;
    animation-delay: 6s;
    transform: rotateX(60deg) rotateZ(45deg);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-50px) rotate(5deg);
    }
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    transform-style: preserve-3d;
}

.profile-pic-container {
    position: relative;
    margin-right: 1.5rem;
    transform-style: preserve-3d;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary-color);
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.5);
    transition: all 0.5s ease;
    transform: translateZ(20px);
}

.profile-pic:hover {
    transform: translateZ(30px) rotateY(15deg);
    box-shadow: 0 0 50px rgba(0, 188, 212, 0.8);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 2.5rem;
    margin: 0;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transform: translateZ(10px);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    transform: translateZ(15px);
}

.profile-title {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin: 0.5rem 0 0;
    font-weight: 300;
    text-shadow: 0 0 5px rgba(0, 188, 212, 0.5);
    transform: translateZ(10px);
}

/* Sections */
section {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: rgba(30, 30, 42, 0.7);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    transform: translateZ(0);
}

section:hover {
    transform: translateZ(20px) rotateX(1deg) rotateY(1deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

h2 {
    color: var(--secondary-color);
    margin-top: 0;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--medium-gray);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 8px rgba(0, 188, 212, 0.4);
    transform: translateZ(10px);
}

/* Store Section */
.store-scroll-container {
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) var(--dark-gray);
    transform-style: preserve-3d;
}

.store-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.store-scroll-container::-webkit-scrollbar-track {
    background: var(--dark-gray);
    border-radius: 10px;
}

.store-scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 10px;
}

.store-items {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem;
    width: max-content;
}

.store-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--light-text);
    transition: all 0.5s ease;
    min-width: 140px;
    transform-style: preserve-3d;
}

.store-item:hover {
    transform: translateZ(20px) scale(1.05);
}

.store-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 15px;
    border: 2px solid var(--medium-gray);
    transition: all 0.5s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.store-item:hover img {
    border-color: var(--secondary-color);
    box-shadow: 0 10px 25px rgba(0, 188, 212, 0.5);
}

.store-item span {
    margin-top: 0.8rem;
    text-align: center;
    font-size: 0.9rem;
    transform: translateZ(10px);
}

/* Social Media Section (Modified) */
.social-section {
    margin-bottom: 3rem;
    text-align: center;
    transform-style: preserve-3d;
}

.social-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    transform: translateZ(10px);
}

.social-icons a {
    color: var(--light-text);
    font-size: 1.5rem;
    transition: all 0.5s ease;
    display: inline-block;
    transform-style: preserve-3d;
}

.social-icons a:hover {
    transform: translateZ(20px) scale(1.2);
}

.social-icons .fa-facebook:hover {
    color: #1877f2;
    text-shadow: 0 0 15px rgba(24, 119, 242, 0.7);
}

.social-icons .fa-tiktok:hover {
    color: #fe2c55;
    text-shadow: 0 0 15px rgba(254, 44, 85, 0.7);
}

.social-icons .fa-youtube:hover {
    color: #ff0000;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
}

.social-icons .fa-telegram:hover {
    color: #0088cc;
    text-shadow: 0 0 15px rgba(0, 136, 204, 0.7);
}

.social-icons .fa-github:hover {
    color: #6e5494;
    text-shadow: 0 0 15px rgba(110, 84, 148, 0.7);
}

/* Skills Section (Modified) */
.skills-section {
    margin-bottom: 3rem;
    text-align: center;
    transform-style: preserve-3d;
}

.skills-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.skills-container {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
}

.skill:hover {
    transform: translateZ(20px) scale(1.1);
}

.skill i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    transition: all 0.5s ease;
}

.skill:hover i {
    filter: drop-shadow(0 0 10px currentColor);
}

.skill .fa-html5 {
    color: #e34c26;
}

.skill .fa-css3-alt {
    color: #264de4;
}

.skill .fa-js {
    color: #f0db4f;
}

.skill .fa-java {
    color: #007396;
}

.skill-percent {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-top: 0.3rem;
    text-shadow: 0 0 5px rgba(0, 188, 212, 0.5);
}

/* Bio Section (Moved to bottom) */
.bio-section {
    margin-bottom: 0;
    transform-style: preserve-3d;
}

.bio-section p {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.8;
    transform: translateZ(10px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-pic {
        margin-bottom: 1rem;
        margin-right: 0;
    }

    .profile-name {
        justify-content: center;
        font-size: 2rem;
    }

    .skills-container {
        gap: 1.5rem;
    }

    .social-icons {
        gap: 1.2rem;
    }

    .social-icons a {
        font-size: 1.3rem;
    }

    .bg-cube, .bg-sphere, .bg-pyramid {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .profile-pic {
        width: 120px;
        height: 120px;
    }

    .profile-name {
        font-size: 1.8rem;
    }

    .store-item {
        min-width: 110px;
    }

    .store-item img {
        width: 100px;
        height: 100px;
    }

    .skill i {
        font-size: 2.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) translateZ(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

section, .social-section, .skills-section {
    animation: fadeIn 0.8s ease-out forwards;
}

.profile-header {
    animation: fadeIn 0.6s ease-out forwards;
}

.store-section {
    animation-delay: 0.1s;
}

.social-section {
    animation-delay: 0.2s;
}

.skills-section {
    animation-delay: 0.3s;
}

.bio-section {
    animation-delay: 0.4s;
}

/* Hover Effects */
a, button {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 3D Card Effect */
.store-item, .skill {
    position: relative;
    transform-style: preserve-3d;
}

.store-item::before, .skill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    border-radius: inherit;
    transform: translateZ(-5px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.store-item:hover::before, .skill:hover::before {
    opacity: 1;
}