


@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

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

:root {
    --accent-pink: #F472B6;
    --dark-bg: #0A0A0F;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #FFFFFF;
    --text-secondary: #B8BCC8;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Animated Space Background */
.space-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0A0A0F 0%, #1A1A2E 50%, #16213E 100%);
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: twinkle 10s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Floating Astronaut */
.astronaut {
    position: absolute;
    top: 22%;
    left: 46%;
    transform: translateX(-50%);
    z-index: 1;
    animation: float 4s ease-in-out infinite;
}

.astronaut-img {
    width: 120px;
    height: auto;
}

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

/* Header with Animated Name */
.header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    gap: 1rem;
    padding: 3rem 1rem 0;
    width: 100%;
}

.constellation-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 5rem;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    width: auto;
    position: relative;
    background: none;
    color: inherit;
    animation: none;
    display: inline-block;
}

@keyframes fadeShimmer {
    0% {
        opacity: 0;
        filter: brightness(2) blur(2px);
    }
    100% {
        opacity: 1;
        filter: brightness(1) blur(0);
    }
}

.constellation-name span {
    color: #fff;
    font-weight: 600;
}

@keyframes typingReveal {
    0% { width: 0; }
    100% { width: 100%; }
}

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

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    animation: fadeInUp 1s 1s both;
    align-self: center;
    max-width: 800px;
    text-align: center;
    line-height: 1.6;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-left: 3rem;
    padding-right: 3rem;
}

.nav-links {
    display: flex;
    gap: 1rem;
    font-weight: 600;
}

.nav-contacts {
    display: flex;
    gap: 1rem;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav a:hover {
    color: var(--text-primary);
    background: var(--accent-pink);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
    border-radius: 25px;
}

/* Sections */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, var(--accent-pink), var(--accent-pink), var(--accent-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.align-left h2 {
    text-align: left;
}

.align-right h2 {
    text-align: right;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    margin: 0 auto;
    height: 400px;
    width: auto;
    max-width: 100%;
    align-self: flex-start;
}

.about-img {
    width: auto;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.about-text strong {
    color: inherit;
    font-weight: bold;
}

/* Experience Section */
.experience-tabs {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-button {
    padding: 0.8rem 1.5rem;
    border: none;
    background: var(--card-bg);
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.tab-button.active,
.tab-button:hover {
    background: var(--accent-pink);
    color: white;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

.tab-content {
    display: none;
    animation: fadeInUp 0.6s ease;
    text-align: left;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.tab-content.active {
    display: block;
}

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

.project-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(244, 114, 182, 0.3);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.experience-tabs .project-tech {
    justify-content: flex-start;
}

.tech-tag {
    background: var(--accent-pink);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.github-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.github-link:hover {
    color: var(--accent-pink);
    text-decoration: underline;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.social-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    padding: 0.3rem 0.6rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-pink);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
    border-radius: 25px;
}

.icon-img {
    width: 24px;
    height: 24px;
    display: block;
    filter: brightness(0) invert(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .constellation-name {
        font-size: 3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .nav {
        position: relative;
        top: auto;
        right: auto;
        justify-content: center;
        margin-bottom: 2rem;
    }

    .astronaut {
        display: none;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Proper spacing for paragraphs in .tab-content and .project-card */
.tab-content p,
.project-card p {
    line-height: 1.8;
    margin-bottom: 1rem;
}