/* ================================
   SPACE THEME - CSS Variables & Reset
================================ */
:root {
    /* Space Colors */
    --space-black: #0a0a0f;
    --space-dark: #0d0d1a;
    --space-purple: #1a1a2e;
    --nebula-pink: #ff6b9d;
    --nebula-purple: #c44eff;
    --nebula-blue: #4e9fff;
    --star-white: #ffffff;
    --star-yellow: #ffd93d;
    --planet-orange: #ff6b35;
    --planet-blue: #4ecdc4;
    --planet-purple: #a855f7;

    /* Primary colors */
    --primary-color: #a855f7;
    --primary-dark: #9333ea;
    --secondary-color: #4ecdc4;
    --accent-color: #ff6b9d;

    /* Text colors */
    --text-color: #e2e8f0;
    --text-light: #94a3b8;
    --text-muted: #64748b;

    /* Backgrounds */
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-bg-hover: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.08);

    /* Gradients */
    --gradient-space: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0d0d1a 100%);
    --gradient-nebula: linear-gradient(135deg, rgba(168, 85, 247, 0.4) 0%, rgba(78, 159, 255, 0.4) 50%, rgba(255, 107, 157, 0.4) 100%);
    --gradient-aurora: linear-gradient(135deg, #a855f7 0%, #4ecdc4 50%, #ff6b9d 100%);
    --gradient-card: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(78, 159, 255, 0.1) 100%);

    /* Shadows */
    --shadow-glow: 0 0 30px rgba(168, 85, 247, 0.3);
    --shadow-glow-sm: 0 0 15px rgba(168, 85, 247, 0.2);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);

    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--space-black);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================
   Space Background - Stars & Nebula
================================ */
.space-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--gradient-space);
    overflow: hidden;
}

/* Stars layers */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.stars-layer-1 {
    background-image:
        radial-gradient(2px 2px at 20px 30px, #fff, 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(2px 2px at 160px 120px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 230px 80px, #fff, transparent),
        radial-gradient(2px 2px at 300px 150px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 370px 50px, #fff, transparent),
        radial-gradient(2px 2px at 450px 180px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 520px 90px, #fff, transparent),
        radial-gradient(2px 2px at 600px 130px, rgba(255,255,255,0.9), transparent);
    background-size: 650px 200px;
    animation: twinkle 8s ease-in-out infinite;
}

.stars-layer-2 {
    background-image:
        radial-gradient(1px 1px at 50px 100px, #fff, transparent),
        radial-gradient(2px 2px at 120px 50px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 200px 150px, #fff, transparent),
        radial-gradient(1px 1px at 280px 80px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 350px 200px, #fff, transparent),
        radial-gradient(1px 1px at 420px 30px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 500px 120px, #fff, transparent),
        radial-gradient(1px 1px at 580px 170px, rgba(255,255,255,0.9), transparent);
    background-size: 600px 220px;
    animation: twinkle 12s ease-in-out infinite reverse;
}

.stars-layer-3 {
    background-image:
        radial-gradient(1px 1px at 80px 60px, rgba(255,215,0,0.8), transparent),
        radial-gradient(2px 2px at 180px 140px, rgba(78,159,255,0.7), transparent),
        radial-gradient(1px 1px at 260px 30px, rgba(255,107,157,0.6), transparent),
        radial-gradient(2px 2px at 340px 110px, rgba(168,85,247,0.7), transparent),
        radial-gradient(1px 1px at 430px 180px, rgba(78,205,196,0.6), transparent),
        radial-gradient(2px 2px at 550px 70px, rgba(255,215,0,0.7), transparent);
    background-size: 580px 200px;
    animation: twinkle 15s ease-in-out infinite;
}

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

/* Nebula effects */
.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.nebula-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.5) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.nebula-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(78, 159, 255, 0.4) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

.nebula-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(-30px, -20px) scale(1.02); }
}

/* Floating Planets */
.planets {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

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

.planet-1 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff6b35 100%);
    box-shadow:
        inset -15px -10px 20px rgba(0,0,0,0.4),
        0 0 30px rgba(255, 107, 53, 0.4);
    top: 15%;
    right: 10%;
    animation-duration: 45s;
}

.planet-1::before {
    content: '';
    position: absolute;
    width: 140%;
    height: 20px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    top: 50%;
    left: -20%;
    transform: translateY(-50%) rotateX(75deg);
    border-radius: 50%;
}

.planet-2 {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 50%, #4ecdc4 100%);
    box-shadow:
        inset -10px -8px 15px rgba(0,0,0,0.4),
        0 0 20px rgba(78, 205, 196, 0.4);
    bottom: 20%;
    left: 8%;
    animation-duration: 60s;
    animation-direction: reverse;
}

.planet-3 {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #a855f7 100%);
    box-shadow:
        inset -8px -6px 12px rgba(0,0,0,0.4),
        0 0 15px rgba(168, 85, 247, 0.4);
    top: 60%;
    right: 15%;
    animation-duration: 35s;
}

.moon {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
    box-shadow:
        inset -4px -3px 8px rgba(0,0,0,0.3),
        0 0 10px rgba(226, 232, 240, 0.3);
    top: 25%;
    left: 20%;
    animation-duration: 25s;
}

@keyframes orbit {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

/* Shooting Stars */
.shooting-star {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), transparent);
    animation: shoot 3s ease-in-out infinite;
    opacity: 0;
}

.shooting-star:nth-child(1) {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.shooting-star:nth-child(2) {
    top: 40%;
    left: 60%;
    animation-delay: 2s;
}

.shooting-star:nth-child(3) {
    top: 70%;
    left: 20%;
    animation-delay: 4s;
}

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

/* ================================
   Typography
================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--star-white);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    width: 100%;
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-aurora);
    border-radius: 2px;
    box-shadow: var(--shadow-glow-sm);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    margin-top: 1.5rem;
}

/* ================================
   Navigation
================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-aurora);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--nebula-purple);
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* ================================
   Hero Section
================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    color: var(--star-white);
    z-index: 1;
    padding: 20px;
}

.hero-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid transparent;
    background: linear-gradient(var(--space-dark), var(--space-dark)) padding-box,
                var(--gradient-aurora) border-box;
    box-shadow: var(--shadow-glow), 0 0 60px rgba(168, 85, 247, 0.2);
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: var(--shadow-glow), 0 0 60px rgba(168, 85, 247, 0.2); }
    50% { box-shadow: 0 0 50px rgba(168, 85, 247, 0.5), 0 0 100px rgba(168, 85, 247, 0.3); }
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text-light);
}

.hero-name {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--star-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-light);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

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

/* ================================
   About Section
================================ */
.about {
    padding: 100px 0;
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.about-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.about-info {
    display: grid;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 15px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.info-item:hover {
    transform: translateX(10px);
    background: var(--card-bg-hover);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow-sm);
}

.info-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-aurora);
    color: var(--star-white);
    border-radius: 10px;
    font-size: 1rem;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.info-value {
    font-weight: 600;
    color: var(--text-color);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--gradient-card);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ================================
   Experience Section
================================ */
.experience {
    padding: 100px 0;
    position: relative;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 2rem;
    border: 1px solid rgba(168, 85, 247, 0.3);
    background: var(--card-bg);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--gradient-aurora);
    color: var(--star-white);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-sm);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--gradient-aurora);
    box-shadow: var(--shadow-glow-sm);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--gradient-aurora);
    border: 4px solid var(--space-dark);
    border-radius: 50%;
    top: 0;
    box-shadow: var(--shadow-glow-sm);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid rgba(168, 85, 247, 0.2);
    padding: 1.5rem;
    border-radius: 15px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow-sm);
}

.timeline-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-aurora);
    color: var(--star-white);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--nebula-purple);
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Achievements Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.achievement-card {
    background: var(--card-bg);
    border: 1px solid rgba(168, 85, 247, 0.2);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-aurora);
}

.achievement-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.achievement-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-aurora);
    border-radius: 50%;
    color: var(--star-white);
    font-size: 1.5rem;
    box-shadow: var(--shadow-glow-sm);
}

.achievement-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.achievement-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.achievement-year {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--glass-bg);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--nebula-purple);
    font-weight: 500;
}

/* ================================
   Skills Section
================================ */
.skills {
    padding: 100px 0;
    position: relative;
}

.skills-container {
    display: grid;
    gap: 3rem;
    margin-top: 3rem;
}

.skills-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
}

.skills-category h3 i {
    color: var(--nebula-purple);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    background: var(--card-bg);
    border: 1px solid rgba(168, 85, 247, 0.2);
    padding: 1.5rem;
    border-radius: 15px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.skill-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow-sm);
}

.skill-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-aurora);
    color: var(--star-white);
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.skill-name {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.skill-bar {
    height: 8px;
    background: rgba(168, 85, 247, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-aurora);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    padding: 0.5rem 1.25rem;
    background: var(--card-bg);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
    cursor: default;
}

.skill-tag:hover {
    background: var(--gradient-aurora);
    color: var(--star-white);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-sm);
}

/* ================================
   Projects Section
================================ */
.projects {
    padding: 100px 0;
    position: relative;
}

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

.project-card {
    background: var(--card-bg);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-aurora);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.project-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-aurora);
    border-radius: 15px;
    color: var(--star-white);
    font-size: 1.5rem;
    box-shadow: var(--shadow-glow-sm);
}

.project-badge {
    padding: 0.35rem 0.75rem;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--nebula-purple);
    font-weight: 500;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.project-role {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

.project-role i {
    color: var(--nebula-purple);
}

.project-description {
    margin-bottom: 1.5rem;
}

.project-description ul {
    list-style: none;
    padding: 0;
}

.project-description li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.project-description li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--nebula-purple);
}

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

.tech-tag {
    padding: 0.35rem 0.75rem;
    background: var(--glass-bg);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-color);
    transition: var(--transition);
}

.tech-tag:hover {
    background: var(--primary-color);
    color: var(--star-white);
    border-color: transparent;
}

/* ================================
   Travel Section
================================ */
.travel {
    padding: 100px 0;
    position: relative;
}

.travel-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.travel-tab {
    padding: 1rem 2rem;
    border: 1px solid rgba(168, 85, 247, 0.3);
    background: var(--card-bg);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.travel-tab:hover,
.travel-tab.active {
    background: var(--gradient-aurora);
    color: var(--star-white);
    border-color: transparent;
    box-shadow: var(--shadow-glow-sm);
}

.travel-region {
    display: none;
    animation: fadeIn 0.5s ease;
}

.travel-region.active {
    display: block;
}

.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.place-card {
    background: var(--card-bg);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.place-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.place-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.place-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.place-card:hover .place-image img {
    transform: scale(1.1);
}

.place-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(168, 85, 247, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.place-card:hover .place-overlay {
    opacity: 1;
}

.view-photos {
    color: var(--star-white);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.place-info {
    padding: 1.5rem;
}

.place-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.place-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ================================
   Photo Modal
================================ */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.photo-modal.active {
    display: flex;
}

.modal-content {
    background: var(--space-purple);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--glass-bg);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary-color);
    color: var(--star-white);
}

.modal-content h3 {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    font-size: 1.5rem;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.modal-gallery img:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow-sm);
}

/* ================================
   Lightbox
================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.98);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: var(--shadow-glow);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: var(--glass-bg);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--text-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-color);
    color: var(--star-white);
    border-color: transparent;
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
}

.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

/* ================================
   Footer
================================ */
.footer {
    background: rgba(10, 10, 15, 0.9);
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    color: var(--text-color);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social .social-link {
    background: var(--glass-bg);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.footer-social .social-link:hover {
    background: var(--primary-color);
    color: var(--star-white);
    border-color: transparent;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    color: var(--text-muted);
}

.footer-bottom i {
    color: var(--accent-color);
}

/* ================================
   Responsive Design
================================ */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 50px;
        text-align: left !important;
    }

    .timeline-item .timeline-dot {
        left: 10px !important;
        right: auto !important;
    }

    .planet-1 { width: 60px; height: 60px; }
    .planet-2 { width: 40px; height: 40px; }
    .planet-3 { width: 25px; height: 25px; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-name {
        font-size: 2.5rem;
    }

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

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .tabs {
        gap: 0.5rem;
    }

    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .nebula-1 { width: 400px; height: 400px; }
    .nebula-2 { width: 350px; height: 350px; }
    .nebula-3 { width: 300px; height: 300px; }
}

@media (max-width: 480px) {
    .hero-image {
        width: 150px;
        height: 150px;
    }

    .hero-name {
        font-size: 2rem;
    }

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

    .planet { display: none; }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--space-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-aurora);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ================================
   Cosmos: ray-traced black hole (cosmos.js)
================================ */
.space-bg .planets { display: none; }

/* the WebGL sky replaces the CSS stars & nebulae (they would not be lensed) */
.space-bg.cosmos-gl > .stars,
.space-bg.cosmos-gl > .nebula,
.space-bg.cosmos-gl .dynamic-stars { display: none; }

.cosmos-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.8s ease;
}
.cosmos-canvas.is-ready { opacity: 1; }

.cosmos-hud {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 60;
    max-width: 330px;
    padding: 9px 14px;
    display: flex;
    flex-direction: column;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: rgba(225, 215, 255, 0.72);
    background: rgba(12, 10, 28, 0.72);
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-radius: 12px;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    opacity: 0.85;
    transition: opacity 0.4s ease, border-color 0.4s ease;
}

.cosmos-hud__bar {
    display: flex;
    align-items: center;
    gap: 14px;
}
.cosmos-hud:hover,
.cosmos-hud.is-open { opacity: 1; border-color: rgba(168, 85, 247, 0.45); }

.cosmos-hud__title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
    flex-shrink: 0;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(192, 132, 252, 0.95);
}
.cosmos-hud__title::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff8a3d;
    box-shadow: 0 0 10px #ff8a3d;
    animation: cosmosPulse 2.4s ease-in-out infinite;
}

/* telemetry folds open on hover / click */
.cosmos-hud__more {
    display: grid;
    grid-template-rows: 0fr;
    max-width: 0;
    transition: grid-template-rows 0.45s ease, max-width 0.45s ease;
}
.cosmos-hud__more > div { overflow: hidden; }
.cosmos-hud:hover .cosmos-hud__more,
.cosmos-hud.is-open .cosmos-hud__more { grid-template-rows: 1fr; max-width: 400px; }

.cosmos-telemetry {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 14px;
    min-width: 270px;
    margin-top: 10px;
    padding: 10px 0 8px;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
}
.cosmos-telemetry span { opacity: 0.55; }
.cosmos-telemetry b {
    font-weight: 500;
    text-align: right;
    color: rgba(255, 255, 255, 0.92);
    font-variant-numeric: tabular-nums;
}

.cosmos-eq {
    white-space: nowrap;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 14px;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 0 14px rgba(168, 85, 247, 0.6);
    transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
}
.cosmos-eq.is-out {
    opacity: 0;
    transform: translateY(6px);
    filter: blur(4px);
}
.cosmos-eq small {
    display: none;
    margin-bottom: 3px;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-style: normal;
    font-size: 9.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(110, 170, 255, 0.9);
    text-shadow: none;
}
.cosmos-hud.is-mini:not(:hover):not(.is-open) .cosmos-eq { display: none; }
.cosmos-hud:hover .cosmos-eq small,
.cosmos-hud.is-open .cosmos-eq small { display: block; }
.cosmos-hud sub,
.cosmos-hud sup { font-size: 0.7em; }

.cosmos-hint {
    font-size: 10px;
    line-height: 1.7;
    letter-spacing: 0.1em;
    opacity: 0.5;
}

@keyframes cosmosPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.7); }
}

@media (max-width: 900px) {
    .cosmos-hud { display: none; }
}
