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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animated Background */
.space-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #16213e 35%, #0f0f23 100%);
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
}

.star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: linear-gradient(45deg, #64ffda, #00bcd4);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(100vh) translateX(0px) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(100px) rotate(360deg); opacity: 0; }
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* 3D Profile Card */
.profile-section {
    perspective: 1000px;
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.profile-card {
    width: 400px;
    height: 500px;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.profile-card:hover {
    transform: rotateY(15deg) rotateX(10deg) scale(1.05);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: rotateY(180deg);
}

.profile-card.flipped {
    transform: rotateY(180deg);
}
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(45deg, #64ffda, #00bcd4, #9c27b0);
    padding: 3px;
    margin-bottom: 1.5rem;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 20px rgba(100, 255, 218, 0.5); }
    to { box-shadow: 0 0 30px rgba(100, 255, 218, 0.8), 0 0 40px rgba(156, 39, 176, 0.3); }
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #64ffda;
}

.avatar-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #64ffda, #9c27b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.profile-title {
    font-size: 1.1rem;
    color: #b0b0b0;
    margin-bottom: 1rem;
}

.profile-description {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.6;
}

/* Social Links */
.social-section {
    margin-bottom: 4rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #64ffda, #9c27b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 30px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64ffda;
    font-size: 2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.social-link:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 20px 40px rgba(100, 255, 218, 0.3);
}

.social-link:hover::before {
    left: 100%;
}

/* Projects Section */
.projects-section {
    margin-bottom: 4rem;
}

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

.project-folder {
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.project-folder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(100, 255, 218, 0.1), rgba(156, 39, 176, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
}

.project-folder:hover::before {
    opacity: 1;
}

.project-folder:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.folder-icon {
    font-size: 2.5rem;
    color: #64ffda;
    margin-bottom: 1rem;
    display: block;
}

.project-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.project-description {
    font-size: 0.9rem;
    color: #b0b0b0;
    line-height: 1.5;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.project-folder:hover .project-description {
    opacity: 1;
    max-height: 100px;
    margin-top: 1rem;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    transition: opacity 0.4s ease 0.2s;
}

.project-folder:hover .project-tech {
    opacity: 1;
}

.tech-tag {
    background: linear-gradient(45deg, #64ffda, #00bcd4);
    color: #000;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Scroll Animation */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .profile-card {
        width: 320px;
        height: 450px;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-folder {
        padding: 0.25rem;
    }

    .card-face {
        padding: 0.5rem;
    }
}

/* Shooting Stars */
.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: linear-gradient(45deg, #64ffda, #ffffff);
    border-radius: 50%;
    box-shadow: 0 0 10px #64ffda, 0 0 20px #64ffda, 0 0 30px #64ffda;
}

.shooting-star::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    width: 60px;
    height: 1px;
    background: linear-gradient(to left, #64ffda, transparent);
    transform: translateY(-50%);
}

@keyframes shoot {
    0% {
        transform: translateX(0) translateY(0) rotate(-45deg);
        opacity: 1;
    }
    100% {
        transform: translateX(-400px) translateY(200px) rotate(-45deg);
        opacity: 0;
    }
}

/* Star mouse repel effect */
.star.repelled {
    transition: transform 0.3s ease-out;
}