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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    color: #fff;
    overflow-x: hidden;
    cursor: none;
}

.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #8b5cf6;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    box-shadow: 0 0 20px #8b5cf6;
}

.cursor-trail {
    width: 5px;
    height: 5px;
    background: #8b5cf6;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.6;
}

#stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.rocket {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 80px;
    cursor: pointer;
    z-index: 100;
    transition: transform 0.3s ease;
}

.rocket:hover {
    transform: translateY(-10px) scale(1.1);
}

.rocket-body {
    width: 40px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    position: absolute;
    left: 10px;
    border-radius: 20px 20px 5px 5px;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
}

.rocket-window {
    width: 15px;
    height: 15px;
    background: #10b981;
    border-radius: 50%;
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px #10b981;
}

.rocket-fin {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid #581c87;
    position: absolute;
    bottom: 0;
}

.rocket-fin.left {
    left: -10px;
}

.rocket-fin.right {
    right: -10px;
}

.rocket-flame {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 25px;
    background: linear-gradient(to bottom, #ff6b00, #ff0000, transparent);
    border-radius: 0 0 50% 50%;
    animation: flame 0.2s infinite alternate;
}

@keyframes flame {
    to {
        transform: translateX(-50%) scaleY(1.2);
        opacity: 0.8;
    }
}

header {
    text-align: center;
    padding: 100px 20px 60px;
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.3), rgba(16, 185, 129, 0.3));
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 60px;
    animation: fadeInDown 1s ease;
    position: relative;
    overflow: hidden;
}

.planet {
    position: absolute;
    border-radius: 50%;
    animation: orbit 20s linear infinite;
}

.planet1 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #c92a2a);
    top: 10%;
    right: 10%;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.6);
}

.planet2 {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, #4dabf7, #1864ab);
    bottom: 15%;
    left: 8%;
    animation: orbit 15s linear infinite reverse;
    box-shadow: 0 0 25px rgba(77, 171, 247, 0.6);
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(20px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(20px) rotate(-360deg);
    }
}

h1 {
    font-size: 3.5em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
    }
    to {
        filter: drop-shadow(0 0 25px rgba(102, 126, 234, 0.9));
    }
}

.subtitle {
    font-size: 1.5em;
    color: #10b981;
    margin-bottom: 10px;
}

.school {
    font-size: 1.1em;
    color: #a78bfa;
    opacity: 0.9;
}

.bio {
    max-width: 700px;
    margin: 30px auto 0;
    padding: 25px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    backdrop-filter: blur(5px);
}

.bio p {
    font-size: 1.05em;
    line-height: 1.8;
    color: #cbd5e1;
    text-align: left;
}

section {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    animation: fadeInUp 1s ease;
    position: relative;
}

.satellite {
    position: absolute;
    width: 30px;
    height: 30px;
    top: -15px;
    right: 20px;
    animation: satellite-spin 10s linear infinite;
}

@keyframes satellite-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.satellite-body {
    width: 15px;
    height: 15px;
    background: #8b5cf6;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px #8b5cf6;
}

.satellite-panel {
    width: 25px;
    height: 8px;
    background: linear-gradient(90deg, #1e40af, #3b82f6, #1e40af);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.satellite-panel.left {
    right: 15px;
}

.satellite-panel.right {
    left: 15px;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #8b5cf6;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    margin: 15px auto;
    border-radius: 2px;
    box-shadow: 0 0 10px #667eea;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.skill-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-card:hover::before {
    opacity: 1;
    animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.skill-card:hover {
    transform: translateY(-10px) scale(1.05) rotateY(10deg);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6);
    border-color: #8b5cf6;
}

.skill-name {
    font-weight: bold;
    font-size: 1.1em;
    color: #fff;
    position: relative;
    z-index: 1;
}

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

.project-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.3), transparent);
    transition: left 0.5s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card::after {
    content: '🛸';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    opacity: 0;
    transition: all 0.4s ease;
}

.project-card:hover::after {
    opacity: 1;
    transform: translateY(-10px);
}

.project-card:hover {
    transform: translateY(-15px) rotateY(5deg);
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.6);
    border-color: #10b981;
}

.project-title {
    font-size: 1.8em;
    color: #10b981;
    margin-bottom: 15px;
    font-weight: bold;
}

.project-description {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tech-tag {
    background: rgba(139, 92, 246, 0.3);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    border: 1px solid rgba(139, 92, 246, 0.5);
    color: #c4b5fd;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(139, 92, 246, 0.5);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
}

.workshop-section {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2));
    border-color: rgba(239, 68, 68, 0.3);
}

.workshop-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.workshop-item {
    background: rgba(239, 68, 68, 0.2);
    padding: 20px 40px;
    border-radius: 15px;
    border: 1px solid rgba(239, 68, 68, 0.4);
    font-size: 1.3em;
    font-weight: bold;
    color: #fca5a5;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.workshop-item::before {
    content: '⚡';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5em;
    opacity: 0;
    transition: all 0.3s ease;
}

.workshop-item:hover::before {
    opacity: 1;
    animation: spark 0.5s ease infinite;
}

@keyframes spark {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
}

.workshop-item:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.6);
}

.contact-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.2));
    border-color: rgba(59, 130, 246, 0.3);
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 50px;
    background: rgba(59, 130, 246, 0.2);
    border: 2px solid rgba(59, 130, 246, 0.4);
    border-radius: 50px;
    color: #93c5fd;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: bold;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4), transparent);
    transition: left 0.6s ease;
}

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

.contact-link:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.6);
    border-color: #3b82f6;
    color: #fff;
}

.github-icon {
    width: 35px;
    height: 35px;
    transition: transform 0.4s ease;
}

.contact-link:hover .github-icon {
    transform: rotate(360deg) scale(1.2);
}

.link-arrow {
    font-size: 1.5em;
    transition: transform 0.4s ease;
}

.contact-link:hover .link-arrow {
    transform: translateX(10px);
}

.constellation {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.constellation-line {
    position: absolute;
    height: 1px;
    background: rgba(139, 92, 246, 0.3);
    transform-origin: left center;
}

.meteor-shower {
    position: fixed;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px white;
    animation: meteor-fall 3s linear infinite;
    opacity: 0;
}

@keyframes meteor-fall {
    0% {
        opacity: 1;
        transform: translateY(-100px) translateX(-100px);
    }
    100% {
        opacity: 0;
        transform: translateY(1000px) translateX(500px);
    }
}

.astronaut {
    position: fixed;
    width: 60px;
    height: 80px;
    right: 50%;
    top: 20%;
    animation: float-astronaut 6s ease-in-out infinite;
    z-index: 10;
}

@keyframes float-astronaut {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(-5deg);
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) translateX(40px) rotate(0deg);
    }
    75% {
        transform: translateY(-40px) translateX(20px) rotate(-5deg);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }
    
    h2 {
        font-size: 2em;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .rocket {
        width: 50px;
        height: 70px;
        right: 20px;
        bottom: 20px;
    }

    .astronaut {
        display: none;
    }
}